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][SDW]"IO error in rt711_jack_detect_handler, ret -16" occurred when plug in or unplug headphone #1602
when doing very fast jack insertion/removal, on removal the codec driver seems to issue a ton of commands which don't seem to complete before the codec suspend routine quicks in
@YvonneYang2 Could you test with PR #1605 when doing fast jack insertion/removal? @plbossart I think the jack is removed during the jack type detection. So, I added the pin sense check in the detection loop.
@plbossart
I tested it with options snd-sof-intel-hda-common sdw_clock_stop_quirks=0x8 and updated #1586 , but seems can not reproduce the issue as you mentioned. Tried to do very fast jack insertion/removal, but dmesg always shows normal. @bardliao
Could you test it on your side and help to reproduce it ? Thanks ~
when doing very fast jack insertion/removal, on removal the codec driver seems to issue a ton of commands which don't seem to complete before the codec suspend routine quicks in
Customer also reported a issue on HDA device that fast plug-unplug headphone can't be detected. @Kailang. He said codec need time to detect the change. And customer closed this bug for they consider it as a unusual operation. @shumingfan , can you help to check why codec spend so much time to read register ? Thanks!
Update the comments #1602 (comment) .
With options snd-sof-intel-hda-common sdw_clock_stop_quirks=0x8, can reproduce the issue 100% with test steps as below:
Open a terminal and run command "dmesg -w"
Plug in headphone then unplug it immediately, better unplug it in 0.5 second.
Wait that dmesg finished printing, and you could see issue occurred.
Since PR1605 has been merged into integration/soundwire-latest , retested it again, issue cannot be reproduced on integration/soundwire-latest(e375909) + #1586 with options snd-sof-intel-hda-common sdw_clock_stop_quirks=0x8.
Activity
YvonneYang2 commentedon Dec 6, 2019
Tested it with #1589 ,issue cannot be reproduced.
YvonneYang2 commentedon Dec 6, 2019
Tested it with integration/soundwire-latest(d64c4a3) + #1586, issue cannot be reproduced.
plbossart commentedon Dec 6, 2019
@YvonneYang2 @bardliao @RanderWang @shumingfan I can reproduce these warnings with the udpated PR #1586
when doing very fast jack insertion/removal, on removal the codec driver seems to issue a ton of commands which don't seem to complete before the codec suspend routine quicks in
dmesg_hs_removal.log
If I take my time between insertion and removal no issues
This is with only the option
options snd-sof-intel-hda-common sdw_clock_stop_quirks=0x8
and pm_runtime remains enabled
shumingfan commentedon Dec 9, 2019
@YvonneYang2 Could you test with PR #1605 when doing fast jack insertion/removal?
@plbossart I think the jack is removed during the jack type detection. So, I added the pin sense check in the detection loop.
YvonneYang2 commentedon Dec 9, 2019
@plbossart
I tested it with options snd-sof-intel-hda-common sdw_clock_stop_quirks=0x8 and updated #1586 , but seems can not reproduce the issue as you mentioned. Tried to do very fast jack insertion/removal, but dmesg always shows normal.
@bardliao
Could you test it on your side and help to reproduce it ? Thanks ~
Test recipe:
kernel: https://github.com/thesofproject/linux/tree/integration/soundwire-latest commit: b036eac + PR1586
FW: https://github.com/thesofproject/sof/commits/master commit: 65de27d
tplg: Same with FW branch, sof-cml-rt711-rt1308-mono-rt715.tplg
platform: CML-U Laptop with codec ALC711, RT1308, RT715 in SDW mode
RanderWang commentedon Dec 9, 2019
Customer also reported a issue on HDA device that fast plug-unplug headphone can't be detected. @Kailang. He said codec need time to detect the change. And customer closed this bug for they consider it as a unusual operation. @shumingfan , can you help to check why codec spend so much time to read register ? Thanks!
YvonneYang2 commentedon Dec 9, 2019
Update the comments #1602 (comment) .
With options snd-sof-intel-hda-common sdw_clock_stop_quirks=0x8, can reproduce the issue 100% with test steps as below:
@shumingfan
Tested it with #1605 , issue cannot be reproduced.
bardliao commentedon Dec 9, 2019
Looks like you can reproduce it already :)
YvonneYang2 commentedon Dec 10, 2019
Since PR1605 has been merged into integration/soundwire-latest , retested it again, issue cannot be reproduced on integration/soundwire-latest(e375909) + #1586 with options snd-sof-intel-hda-common sdw_clock_stop_quirks=0x8.
YvonneYang2 commentedon Dec 18, 2019
Issue cannot be reproduced with latest integration/soundwire-latest( cf2660a ) and cml-010-drop-stable (5e5f69e). Close it.