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
[Bug][UCM][CML]One time pop noise output via internal speaker when plug headset during paplay #1862
Describe the bug
One time pop noise output via internal speaker when plug in headset or unplug headset during paplay
Note: This pop noise is observed from PR#24 [split profile and enable source auto switch when plug in /unplug headset]. Error not seen without PR#24. Error also seen with PR#28
To Reproduce
Step1: paplay wav/music.wav -vvv
Step2: Plug in headset
Step3: Unplug headset
Step4: Repeat step2 and step3
Reproduced rate
90%
Expected result
No pop noise should be observed.
Actual result
One time pop noise output via internal speaker when plug in headset or unplug headset during paplay
Environment
Kernel:release/sdw_cml_hotfix, commit:38d0dcd
FW: commits/cml-010-hot-fix, commit: 0ed0dba
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML-U Laptop with ALC711+ ALC1308+ ALC715 in SDW mode
ucm: https://github.com/thesofproject/alsa-ucm-conf.git+PR#24 or PR#28
@ClarexZhou Could you use the following command to mute/unmute in playback and see if there is a pop when mute/unmute? amixer cset name='Speaker Switch' 0
and amixer cset name='Speaker Switch' 1
@bardliao no this pop noise if using above cset instead of headset plug.
Here is the amixer contents with and without headset with UCM PR#24 24headset.txt 24speaker.txt
Since ucm2 issue #1999, output source won't auto switch to headphone when plug in headphone. So tested it via switching to headphone manually, issue cannot be reproduced after #1897 merged. Close the bug.
Test recipe:
Kernel: topic/sof-dev(8dc1789)
FW: master(0befebb)
Activity
ClarexZhou commentedon Mar 5, 2020
@libinyang please help to check first
ClarexZhou commentedon Mar 5, 2020
The pop noise sound like the pop noise in scenario #1376
libinyang commentedon Mar 5, 2020
This bug should not be related to UCM or pulseaudio.
It can easily be reproduced by aplay. Seems to be codec driver or fw or controller driver issue.
bardliao commentedon Mar 5, 2020
@ClarexZhou Could you use the following command to mute/unmute in playback and see if there is a pop when mute/unmute?
amixer cset name='Speaker Switch' 0and
amixer cset name='Speaker Switch' 1ClarexZhou commentedon Mar 5, 2020
@bardliao no this pop noise if using above cset instead of headset plug.
Here is the amixer contents with and without headset with UCM PR#24
24headset.txt
24speaker.txt
Here is the amixer contents with and without headset with UCM PR#28
noheadset.txt
headset.txt
ClarexZhou commentedon Mar 5, 2020
Error also can be reproduced with below steps:
Error not seen on UCM without PR#24 or without PR#28.
kv2019i commentedon Mar 10, 2020
@mengdonglin This is missing an assignee -- P1 bug with no updates in 5 days
ClarexZhou commentedon Mar 16, 2020
Error not seen with kernel sof-dev, commit: 0f90705, contains PR #1887 + PR #1897 and FW: https://github.com/thesofproject/sof/tree/cml-010-hot-fix, commit thesofproject/sof@0ed0dba + commit thesofproject/sof@f73332e
But still has slight noise on internal speaker with same kernel sof-dev, commit: 0f90705, contains PR #1887 + PR #1897 and FW: Master, commit: thesofproject/sof@afd97708
YvonneYang2 commentedon Apr 22, 2020
Since ucm2 issue #1999, output source won't auto switch to headphone when plug in headphone. So tested it via switching to headphone manually, issue cannot be reproduced after #1897 merged. Close the bug.
Test recipe:
Kernel: topic/sof-dev(8dc1789)
FW: master(0befebb)