Last active
August 9, 2021 08:20
-
-
Save hyphop/9937f8fd7986e42cb17127c2db8b7a35 to your computer and use it in GitHub Desktop.
i2s vim3l
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /boot/dtb | |
cp kvim3l_linux.dtb kvim3l_linux.dtb.org | |
dtc -Idtb kvim3l_linux.dtb > kvim3l_linux.dts | |
dtc -Idtb kvim3l_linux.dtb > kvim3l_linux.dts.org | |
# need to change this node aml-audio-card,dai-link@0 / codec | |
# need only output i2s | |
# grep -B19 -A4 "sound-dai = <0x71 0x71 0x73>;" kvim3l_linux.dts | |
sed "s/sound-dai = <0x71 0x71 0x73>;/sound-dai = <0x71>;/" kvim3l_linux.dts.org > kvim3l_linux.dts | |
dtc -Odtb kvim3l_linux.dts > kvim3l_linux.dtb | |
# DONE | |
diff kvim3l_linux.dts.org kvim3l_linux.dts | |
3241c3241 | |
< sound-dai = <0x71 0x71 0x73>; | |
--- | |
> sound-dai = <0x71>; | |
# reboot | |
# test 192K i2s | |
volumio@volumio:~$ aplay -c2 -fS16_LE -d1 -r192000 -Dhw:0,0 < /dev/urandom | |
Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 192000 Hz, Stereo | |
volumio@volumio:~$ aplay -c2 -fS24_LE -d1 -r192000 -Dhw:0,0 < /dev/urandom | |
Playing raw data 'stdin' : Signed 24 bit Little Endian, Rate 192000 Hz, Stereo | |
volumio@volumio:~$ aplay -c2 -fS32_LE -d1 -r192000 -Dhw:0,0 < /dev/urandom | |
Playing raw data 'stdin' : Signed 32 bit Little Endian, Rate 192000 Hz, Stereo | |
OK | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment