tx2 and rt5651(audio codec) problem

Hello!

Looking at the rt5651, I see it has both line-out and headphone outputs. From the above it appears that you are trying to use the line-out outputs, is this correct?

So for using the line-out the following route looks fine …

sound {
         nvidia,audio-routing = "x Headphone", "x LOUTL", "x Headphone","x LOUTR";
}

However, from the trace you can see that the I2S interface is not being enabled and so what this typically means is that the route within codec is not configured completely. The ALSA lib contains some UCM (use-case manager) examples for the rt5651 [0] and so maybe something like the following could work …

amixer cset -c tegrasndt186ref name="x LOUT R Playback Switch" on
amixer cset -c tegrasndt186ref name="x LOUT L Playback Switch" on
amixer cset -c tegrasndt186ref name="x LOUT MIX DAC L1 Switch" on
amixer cset -c tegrasndt186ref name="x LOUT MIX DAC R1 Switch" on
amixer cset -c tegrasndt186ref name="x Stereo DAC MIXL DAC L1 Switch" on
amixer cset -c tegrasndt186ref name="x Stereo DAC MIXR DAC R1 Switch" on
amixer cset -c tegrasndt186ref name="x OUT Playback Volume" 31
amixer cset -c tegrasndt186ref name="x DAC1 Playback Volume" 175
amixer cset -c tegrasndt186ref name="x Headphone Jack Switch" on

Regards,
Jon

[0] git.alsa-project.org Git - alsa-lib.git/tree - src/conf/ucm/codecs/rt5651/