You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DSM][TGL]: speaker L/R channel route in codec driver doesn't match with amixer kcontrol #2045
Describe the bug
The behavior of speaker L/R channel is wrong when testing DSM on TGL Chromebook.
For example:
Use amixer to set speaker L channel "Left DAI Sel Mux" as 0 and run speaker-test, the left channel should be able to hear "Front Left", but only Front Right can be heard during speaker-test on both channels at the same time.
looks like the route of L/R channel is not set correctly in codec driver side. Need chrome team help to check.
To Reproduce
use amixer to set L/R channel for speaker
amixer cset name='Left DAI Sel Mux' 0
amixer cset name='Right DAI Sel Mux' 1
do speaker-test on hw:0,0
speaker -Dhw:0,0 -t wav -c 2
Expected behavior
Hear Front Left and Front right separately
Activity
keyonjie commentedon Apr 29, 2020
I think the comments in the code below is somewhat confused:
we followed Left--DEV0 and debugged for long time with:
amixer cset name='Left DAI Sel Mux' Left
amixer cset name='Right DAI Sel Mux' Right
where the captured data was always incorrect.
So I think only correct the comment message should be good enough.
@RDharageswari FYI.
RDharageswari commentedon Apr 29, 2020
Sure..Thanks :)
RDharageswari commentedon May 29, 2020
Incorporated the fix in the following patch:
24e5b26
sinahuang commentedon Jun 24, 2020
Currently right speaker output left channel audio, left speaker output right channel audio with https://github.com/thesofproject/sof/tree/tgl-007-drop-stable on chrome book with codec 98373 in I2S mode.
dmesg24.log
amixer24.txt
ClarexZhou commentedon Jul 6, 2020
only one Channle has audio output after run DSM command. Frequency: 5/10
Steps:
speaker-test -Dhw:0,0 -t wav -c 2-> both 2 channels has audio output, but L output R, R output L. amixer contents is hereamixer_default.txt
aplay -Dhw:0,0 -f s16_le -c 2 -r 48000 sine_48k_16bit_10s_stereo_l5_r2.wav -d 5 & arecord -Dhw:0,0 -f s16_le -c 4 -r 48000 record.wav -d 5speaker-test -Dhw:0,0 -t wav -c 2only one channel is output. amixer is hereamixer_373change.txt
dmesg_373amixerchange.txt
sof-trace_373amixerchange.txt
ClarexZhou commentedon Jul 16, 2020
Error not seen , previous connected speaker issue. Close