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
TGL: RT5682-SDW S16_LE SoC Loop Playback is Noisy #1880
Issue Description:
RT5682-SDW Playback was Noisy and on debug observed that SOC output source has L/R channel phase error to Codec (PFA: )
Further tried experiments wrt SoC Loop Playback using simultaneous arecord(muted) and aplay to observe issue happens only with S16_LE(2ch) playback file. PFA Tabulated Experiments
Validation Steps to Reproduce the Issue:
Step#1: Flash the Coreboot & OS Recipe mentioned on TGL Reference Chromebook with Daughter Card - RT5682+Max98373 - SDW
Step#2: Plug Jack Headset
Step#3: Run following script for SoC Loop playback s16-soc-output.sh.txt
Hi @plbossart ,
RT5682-SDW was observing headset playback noise and Realtek found that headphone L/R channel has phase error. On further analysis they found RT5682's SDW interface loop-back to check source from SOC to Codec has this phenomenon.
To check above scenario, tried SoC Loop Playback(below code) using simultaneous arecord(muted) and aplay to observe issue happens only with S16_LE(2ch) playback file
@naveen-manohar@plbossart I just checked with Albert from Realtek. He confirmed that the phase error was originally from the testing source. I.e. They use a wav with phase error between L and R channels to do the loopback test. So, that is not from SoC
Realtek shared additional settings in codec-driver(rt5682-sdw) with this Headset Audio Playback is Good and no-artifact is observed. 0001-Sync-with-upstream.txt
Appreciate the efforts of all to analyse the issue and share inputs. Closing it for now. Thanks
Realtek shared additional settings in codec-driver(rt5682-sdw) with this Headset Audio Playback is Good and no-artifact is observed. 0001-Sync-with-upstream.txt
Appreciate the efforts of all to analyse the issue and share inputs. Closing it for now. Thanks
Activity
plbossart commentedon Mar 10, 2020
@naveen-manohar can you please explain what the issue is?
"SOC output source has phase error to Codec" is rather unclear to me.
if you are doing a loopback inside of the codec, well of course the data will be delayed on the capture side...
keqiaozhang commentedon Mar 11, 2020
@naveen-manohar
Could you please send the PRs of machine driver and topology to github? I will try to reproduce your issue on my TGL device.
naveen-manohar commentedon Mar 11, 2020
Hi @plbossart ,
RT5682-SDW was observing headset playback noise and Realtek found that headphone L/R channel has phase error. On further analysis they found RT5682's SDW interface loop-back to check source from SOC to Codec has this phenomenon.
To check above scenario, tried SoC Loop Playback(below code) using simultaneous arecord(muted) and aplay to observe issue happens only with S16_LE(2ch) playback file
@keqiaozhang : Sure, I'm working on it, shall send it asap, ETA:ww11.4.
naveen-manohar commentedon Mar 11, 2020
Hi @keqiaozhang :
Please check following PRs based on TGL_SoF_V0.3, let me know if you observe any issues.
#1885
thesofproject/sof@d58fb7c
bardliao commentedon Mar 11, 2020
@naveen-manohar @plbossart I just checked with Albert from Realtek. He confirmed that the phase error was originally from the testing source. I.e. They use a wav with phase error between L and R channels to do the loopback test. So, that is not from SoC
naveen-manohar commentedon Mar 11, 2020
Thanks for the clarification @bardliao , Lets re-do the validation and close then close this issue.
naveen-manohar commentedon Mar 12, 2020
Realtek shared additional settings in codec-driver(rt5682-sdw) with this Headset Audio Playback is Good and no-artifact is observed.
0001-Sync-with-upstream.txt
Appreciate the efforts of all to analyse the issue and share inputs. Closing it for now. Thanks
bardliao commentedon Mar 12, 2020
I guess the key point is below :)