mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Remove Xiaomi umi Support
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
Syntax 3
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "/Xiaomi/umi/HiFi.conf"
|
||||
Comment "HiFi quality Music."
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
SectionVerb {
|
||||
EnableSequence [
|
||||
cset "name='BRH DSP1 Preload Switch' 1"
|
||||
cset "name='BRH DRE Switch' 1"
|
||||
cset "name='BRH PCM Soft Ramp' 4ms"
|
||||
cset "name='BRH Analog PCM Volume' 18"
|
||||
cset "name='BRH ASP TX1 Source' DSPTX1"
|
||||
cset "name='BRH DSP RX1 Source' ASPRX1"
|
||||
cset "name='BRH DSP RX2 Source' ASPTX2"
|
||||
|
||||
cset "name='BLH DSP1 Preload Switch' 1"
|
||||
cset "name='BLH DRE Switch' 1"
|
||||
cset "name='BLH PCM Soft Ramp' 4ms"
|
||||
cset "name='BLH Analog PCM Volume' 18"
|
||||
cset "name='BLH ASP TX1 Source' DSPTX1"
|
||||
cset "name='BLH DSP RX1 Source' ASPRX1"
|
||||
cset "name='BLH DSP RX2 Source' ASPTX2"
|
||||
|
||||
cset "name='TERT_MI2S_RX Audio Mixer MultiMedia1' 1"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='BRH DSP1 Preload Switch' 0"
|
||||
cset "name='BRH DRE Switch' 0"
|
||||
cset "name='BRH PCM Soft Ramp' zero"
|
||||
cset "name='BRH Analog PCM Volume' 0"
|
||||
cset "name='BRH ASP TX1 Source' zero"
|
||||
cset "name='BRH DSP RX1 Source' zero"
|
||||
cset "name='BRH DSP RX2 Source' zero"
|
||||
|
||||
cset "name='BLH DSP1 Preload Switch' 0"
|
||||
cset "name='BLH DRE Switch' 0"
|
||||
cset "name='BLH PCM Soft Ramp' zero"
|
||||
cset "name='BLH Analog PCM Volume' 0"
|
||||
cset "name='BLH ASP TX1 Source' zero"
|
||||
cset "name='BLH DSP RX1 Source' zero"
|
||||
cset "name='BLH DSP RX2 Source' zero"
|
||||
|
||||
cset "name='TERT_MI2S_RX Audio Mixer MultiMedia1' 0"
|
||||
]
|
||||
|
||||
Value {
|
||||
TQ "HiFi"
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."Speaker" {
|
||||
Comment "Speaker playback"
|
||||
|
||||
EnableSequence [
|
||||
cset "name='BRH PCM Source' DSP"
|
||||
cset "name='BLH PCM Source' DSP"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='BRH PCM Source' zero"
|
||||
cset "name='BLH PCM Source' zero"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPCM "hw:${CardId},0"
|
||||
PlaybackMixerElem "Digital PCM"
|
||||
PlaybackMasterElem "Analog PCM"
|
||||
PlaybackVolume "Digital PCM Volume"
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
machine_model=$(cat /sys/firmware/devicetree/base/model|tr '\0' '\n')
|
||||
case $machine_model in
|
||||
"Xiaomi Mi 10 (SMS)")
|
||||
panel_type=sms
|
||||
;;
|
||||
"Xiaomi Mi 10 (CSOT)")
|
||||
panel_type=csot
|
||||
;;
|
||||
*)
|
||||
echo "$machine_model is not supported, exit"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
new_rootfs_image_uuid=$(sed -e 's/^.*root=UUID=//' -e 's/ .*$//' < /proc/cmdline)
|
||||
gzip -c /boot/vmlinuz-*-sm8250 > /tmp/Image.gz
|
||||
|
||||
cat /tmp/Image.gz /usr/lib/linux-image-*-sm8250/qcom/sm8250-xiaomi-umi-${panel_type}.dtb > /tmp/Image.gz-dtb-${panel_type}
|
||||
|
||||
source /boot/armbianEnv.txt
|
||||
/usr/bin/mkbootimg \
|
||||
--kernel /tmp/Image.gz-dtb-${panel_type} \
|
||||
--ramdisk /boot/initrd.img-*-sm8250 \
|
||||
--base 0x0 \
|
||||
--second_offset 0x00f00000 \
|
||||
--cmdline "clk_ignore_unused pd_ignore_unused root=UUID=${new_rootfs_image_uuid}" \
|
||||
--kernel_offset 0x8000 \
|
||||
--ramdisk_offset 0x1000000 \
|
||||
--tags_offset 0x100 \
|
||||
--pagesize 4096 \
|
||||
-o /boot/armbian-kernel-${panel_type}.img
|
||||
rm -f /tmp/Image.gz /tmp/Image.gz-dtb-${panel_type}
|
||||
Reference in New Issue
Block a user