mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-10 01:02:08 +08:00
20 lines
618 B
Bash
Executable File
20 lines
618 B
Bash
Executable File
#!/bin/bash
|
|
|
|
/usr/comma/sound/adsp-start.sh
|
|
|
|
insmod /usr/comma/sound/snd-soc-wcd9xxx.ko
|
|
insmod /usr/comma/sound/snd-soc-sdm845.ko
|
|
|
|
echo "waiting for sound card to come online"
|
|
while [ ! -d /proc/asound/sdm845tavilsndc ] || [ "$(cat /proc/asound/card0/state 2> /dev/null)" != "ONLINE" ] ; do
|
|
sleep 0.01
|
|
done
|
|
echo "sound card online"
|
|
|
|
/usr/comma/sound/tinymix set "SEC_MI2S_RX Audio Mixer MultiMedia1" 1
|
|
/usr/comma/sound/tinymix set "MultiMedia1 Mixer TERT_MI2S_TX" 1
|
|
/usr/comma/sound/tinymix set "TERT_MI2S_TX Channels" Two
|
|
|
|
# setup the amplifier registers
|
|
/usr/local/pyenv/shims/python /usr/comma/sound/amplifier.py
|