The mixer setting are as the following, so i modify the 01-tegra-rt565x.conf as the attachment. But after flashing the whole root file system, the mixer setting is not ok after power on.00-tegra.conf (6.0 KB) 01-tegra-rt565x.conf (3.8 KB)
My ways is : Before flash, modify the file(rootfs/usr/share/alsa/init/postinit/01-tegra-rt565x.conf) as comment, then flash.
When the flash is complete, after power on, The content of 01-tegra-rt565x.conf is modified, but the mixer setting is not ok, the playback is no sound.
If there is no rt565x codec present, then settings in the 01-tegra-rt565x.conf will not be applied. If you look at the top of that file you will see …
CTL{name}="x TDM Data Mux",PROGRAM!="__ctl_search",GOTO="Tegra RT565x Next"
The above detects the presence of the codec by seeing if the mixer control ‘x TDM Data Mux’ exists, if it does not then it skips to the next section and check if ‘y TDM Data Mux’ exists, and if not then nothing is done. Please check if these mixer controls are present.
Tks, after i modify the script, the playback is ok.
I have another question:
I have added “CARDINFO{driver}==“jetsonxaviernxa”, GOTO=“Tegra RT565x Init”” to 01-tegra-rt565x.conf . Then i use the command to play music, it is ok.
aplay music.wav. At the playing timing, if i use the command “arecord -D hw:jetsonxaviernxa,0 -c 2 -r 48000 -f S16_LE -d 15 out.wav” , the out.wav is ok , but if i use “arecord -c 2 -r 48000 -f S16_LE -d 15 out.wav”, the out.wav is failed. why?
If you don’t specify ‘-D hw:jetsonxaviernxa,0’ then arecord will use the default device that is specified in /etc/asound.conf. Typically /etc/asound.conf will be a soft-link to either /etc/asound.conf.tegrasndt194ref or /etc/asound.conf.tegrahdaxaviernx. If it is a soft-link to /etc/asound.conf.tegrasndt194ref, then arecord should default to ‘hw:jetsonxaviernxa,0’. You can also use ‘-v’ for arecord to see which device it is recording from.
When i run the command “arecord -v -D plughw:jetsonxaviernxa,0 -r 48000 -c 2 -d 10 cap.wav”, the message is as following. The cap.wav is noise. There is no any sound in it.