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
[MTL] SoundWire: unreliable headset detection on Dell SKU 0CC7 #4872
When testing headset plug/unplug on Fedora, it's fairly common to see the headset not detected at all, but the headphone is always detected.
Typical setup:
speakers are shown (no local mics on this SKU)
insert headset, both output and input devices are shown
unplug headset
reinsert headset -> no input shown
@plbossart Can you try #4873? We didn't add quirk for SUK 0CC7, and based on my test, the JD source is JD2. @shumingfan Could you confirm the JD source?
@plbossart Can you try #4873? We didn't add quirk for SUK 0CC7, and based on my test, the JD source is JD2. @shumingfan Could you confirm the JD source?
Hmm, the product uses rt713 codec not rt711, and the codec driver support JD1 only. So, closing #4873 and wait for Realtek's confirmation. @plbossart You could try options snd_soc_sof_sdw quirk=2 if you want to test with JD2.
@bardliao if the codec driver only supports JD1, setting the quirk to JD2 will do absolutely nothing?
Hmm, the codec driver will set a register if the JD source is set to JD1. I think the register will be the default value if the JD source is set to JD2 and it happens to work.
i am not sure how to dump the registers, the command 'cat /sys/kernel/debug/regmap/sdw:0:0:025d:0713:01/registers' seem to hang for some reason. What do I need to do here?
@plbossart
I checked the Windows settings of RT713. Two more settings are added.
Would you please test again?
If the issue still happens, I will try to borrow the same machine and test it on my side.
i am not sure how to dump the registers, the command 'cat /sys/kernel/debug/regmap/sdw:0:0:025d:0713:01/registers' seem to hang for some reason. What do I need to do here?
Hmm, it will take some time about a few minutes.
Please keep the DSP on, then dump the registers.
Thanks @shumingfan, with the last patch the jack detection works reliably in my manual tests I didn't see any configuration where the mic is not detected.
Button detection doesn't seem to work though, I have a two button headphone and the volume does not adjust. It's likely a different problem though, and I am not sure if this is supposed to work on this SKU.
@plbossart
I could reproduce the same issue on SKU 0CC7, even using the patch (#4872 (comment)).
If the jack inserts into the socket slowly, the issue will happen.
The hardware engineer checks the jack socket that the JD is triggered when the jack isn't even plugged into the mic ring.
Is it possible to report this situation to Dell?
Realtek also tries to report this to Dell/ODM.
@plbossart I could reproduce the same issue on SKU 0CC7, even using the patch (#4872 (comment)). If the jack inserts into the socket slowly, the issue will happen. The hardware engineer checks the jack socket that the JD is triggered when the jack isn't even plugged into the mic ring.
Is it possible to report this situation to Dell? Realtek also tries to report this to Dell/ODM.
@shumingfan , can the "Selected Mode" approach in #4996 help here?
@marc-hb No, this is the problem with the jack socket. It is a hardware issue.
The amixer control can't help.
Realtek reported this problem to ODM already. But, we didn't get any feedback or action about this.
changed the title [-]SoundWire: unreliable headset detection on Dell SKU 0CC7[/-][+][MTL] SoundWire: unreliable headset detection on Dell SKU 0CC7[/+]on May 29, 2024
Activity
plbossart commentedon Mar 23, 2024
@bardliao @shumingfan FYI
bardliao commentedon Mar 25, 2024
@plbossart Can you try #4873? We didn't add quirk for SUK 0CC7, and based on my test, the JD source is JD2. @shumingfan Could you confirm the JD source?
bardliao commentedon Mar 25, 2024
Hmm, the product uses rt713 codec not rt711, and the codec driver support JD1 only. So, closing #4873 and wait for Realtek's confirmation. @plbossart You could try
options snd_soc_sof_sdw quirk=2if you want to test with JD2.plbossart commentedon Mar 25, 2024
@bardliao if the codec driver only supports JD1, setting the quirk to JD2 will do absolutely nothing?
@shumingfan we really need your help on this one.
bardliao commentedon Mar 25, 2024
Hmm, the codec driver will set a register if the JD source is set to JD1. I think the register will be the default value if the JD source is set to JD2 and it happens to work.
https://github.com/thesofproject/linux/blob/topic/sof-dev/sound/soc/codecs/rt712-sdca.c#L417
shumingfan commentedon Mar 26, 2024
@plbossart @bardliao
Could you try the patch below?
If the problem still happens, please dump the registers including MBQ registers.
plbossart commentedon Mar 27, 2024
@shumingfan I tried with this patch, I don't see a change. The mixers don't show the headset mic detected, so it's not a pipewire plumbing issue
i am not sure how to dump the registers, the command 'cat /sys/kernel/debug/regmap/sdw:0:0:025d:0713:01/registers' seem to hang for some reason. What do I need to do here?
shumingfan commentedon Mar 28, 2024
@plbossart
I checked the Windows settings of RT713. Two more settings are added.
Would you please test again?
If the issue still happens, I will try to borrow the same machine and test it on my side.
Hmm, it will take some time about a few minutes.
Please keep the DSP on, then dump the registers.
plbossart commentedon Mar 28, 2024
Thanks @shumingfan, with the last patch the jack detection works reliably in my manual tests I didn't see any configuration where the mic is not detected.
Button detection doesn't seem to work though, I have a two button headphone and the volume does not adjust. It's likely a different problem though, and I am not sure if this is supposed to work on this SKU.
ASoC: rt712-sdca: improve headset mic detection
shumingfan commentedon Mar 29, 2024
@plbossart Thanks for the testing.
I will get the same machine from @bardliao.
I need some time to check this and release the final patch.
shumingfan commentedon Apr 1, 2024
@plbossart

I could reproduce the same issue on SKU 0CC7, even using the patch (#4872 (comment)).
If the jack inserts into the socket slowly, the issue will happen.
The hardware engineer checks the jack socket that the JD is triggered when the jack isn't even plugged into the mic ring.
Is it possible to report this situation to Dell?
Realtek also tries to report this to Dell/ODM.
bardliao commentedon Apr 2, 2024
I will report it to Dell
marc-hb commentedon May 23, 2024
@shumingfan , can the "Selected Mode" approach in #4996 help here?
shumingfan commentedon May 24, 2024
@marc-hb No, this is the problem with the jack socket. It is a hardware issue.
The amixer control can't help.
Realtek reported this problem to ODM already. But, we didn't get any feedback or action about this.
[-]SoundWire: unreliable headset detection on Dell SKU 0CC7[/-][+][MTL] SoundWire: unreliable headset detection on Dell SKU 0CC7[/+]plbossart commentedon Aug 12, 2024
nothing we can do to fix this, closing