Skip to contentSkip to conversation

sc8280xp: How to get sound working?

DISCUSSION Brian Masney 2 participants 6 messages Mar 13, 2023 Arm Qualcomm mailing list

lore
Share & tools
lore
#0 lore raw

I'm trying to get the sound working on my x13s with Fedora 37. I have qrtr and pd-mapper running, and I have working battery status.

I downloaded SC8280XP-LENOVO-X13S-tplg.bin from Srini's git repo at [1]. Everything starts to probe:

[   66.572719] qcom-soundwire 3210000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.579051] qcom-soundwire 3250000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.579886] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:4 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   66.579907] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:3 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   66.580466] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.581646] qcom-soundwire 3330000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.582913] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.585710] wsa883x-codec sdw:0:0217:0202:00:2: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.598032] snd-sc8280xp sound: ASoC: Parent card not yet available, widget card binding deferred
[   66.603140] ALSA: Control name 'stream1.vol_ctrl1 MultiMedia1 Playback Volume' truncated to 'stream1.vol_ctrl1 MultiMedia1 Playback Volu'
[   66.603228] ALSA: Control name 'stream2.vol_ctrl2 MultiMedia2 Playback Volume' truncated to 'stream2.vol_ctrl2 MultiMedia2 Playback Volu'
[   66.605330] input: SC8280XP-LENOVO-X13S Headset Jack as /devices/platform/sound/sound/card0/input11

And then a bunch of these errors come through:

[   66.719630]  MultiMedia1 Playback: ASoC: no backend DAIs enabled for MultiMedia1 Playback
[   66.719641]  MultiMedia1 Playback: ASoC: error at dpcm_fe_dai_prepare on MultiMedia1 Playback: -22
x13s:~$ aplay -l output 
**** List of PLAYBACK Hardware Devices ****
card 0: SC8280XPLENOVOX [SC8280XP-LENOVO-X13S], device 4: MultiMedia1 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SC8280XPLENOVOX [SC8280XP-LENOVO-X13S], device 5: MultiMedia2 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Any suggestions?

Also if anyone happens to stumble upon this message via a search engine:
Fedora has all of it's firmware xz compressed. To get this far:
qcadsp8280.mbn, qccdsp8280.mbn, and *.jsn will need to be decompressed. pd-mapper needs to be updated to handle this. I've added this to my todo list to fix, but it may be a little while before I get to it.

[1] https://git.linaro.org/people/srinivas.kandagatla/audioreach-topology.git/tree/prebuilt/SC8280XP-LENOVO-X13S-tplg.bin

Brian

#1 lore raw

Hi Brian,

Quoted 42 lines · Brian Masney

I'm trying to get the sound working on my x13s with Fedora 37. I have qrtr and pd-mapper running, and I have working battery status.

I downloaded SC8280XP-LENOVO-X13S-tplg.bin from Srini's git repo at [1]. Everything starts to probe:

[   66.572719] qcom-soundwire 3210000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.579051] qcom-soundwire 3250000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.579886] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:4 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   66.579907] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:3 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   66.580466] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.581646] qcom-soundwire 3330000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.582913] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.585710] wsa883x-codec sdw:0:0217:0202:00:2: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.598032] snd-sc8280xp sound: ASoC: Parent card not yet available, widget card binding deferred
[   66.603140] ALSA: Control name 'stream1.vol_ctrl1 MultiMedia1 Playback Volume' truncated to 'stream1.vol_ctrl1 MultiMedia1 Playback Volu'
[   66.603228] ALSA: Control name 'stream2.vol_ctrl2 MultiMedia2 Playback Volume' truncated to 'stream2.vol_ctrl2 MultiMedia2 Playback Volu'
[   66.605330] input: SC8280XP-LENOVO-X13S Headset Jack as /devices/platform/sound/sound/card0/input11

And then a bunch of these errors come through:

[   66.719630]  MultiMedia1 Playback: ASoC: no backend DAIs enabled for MultiMedia1 Playback
[   66.719641]  MultiMedia1 Playback: ASoC: error at dpcm_fe_dai_prepare on MultiMedia1 Playback: -22
x13s:~$ aplay -l output
**** List of PLAYBACK Hardware Devices ****
card 0: SC8280XPLENOVOX [SC8280XP-LENOVO-X13S], device 4: MultiMedia1 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SC8280XPLENOVOX [SC8280XP-LENOVO-X13S], device 5: MultiMedia2 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Any suggestions?

Also if anyone happens to stumble upon this message via a search engine:
Fedora has all of it's firmware xz compressed. To get this far:
qcadsp8280.mbn, qccdsp8280.mbn, and *.jsn will need to be decompressed. pd-mapper needs to be updated to handle this. I've added this to my todo list to fix, but it may be a little while before I get to it.

Quoted 4 lines

[1] https://git.linaro.org/people/srinivas.kandagatla/audioreach-topology.git/tree/prebuilt/SC8280XP-LENOVO-X13S-tplg.bin

Brian

Do you have the latest alsa-ucm-conf bits? I know you're on Fedora, so it doesn't carry over, but here's what I have packaged up for Debian based systems - https://salsa.debian.org/steev/alsa-ucm-conf

--steev

#2 lore raw
Quoted 46 lines · Steev Klimaszewski

Hi Brian,

Quoted 42 lines · Brian Masney

I'm trying to get the sound working on my x13s with Fedora 37. I have qrtr and pd-mapper running, and I have working battery status.

I downloaded SC8280XP-LENOVO-X13S-tplg.bin from Srini's git repo at [1]. Everything starts to probe:

[   66.572719] qcom-soundwire 3210000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.579051] qcom-soundwire 3250000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.579886] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:4 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   66.579907] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:3 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   66.580466] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.581646] qcom-soundwire 3330000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   66.582913] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.585710] wsa883x-codec sdw:0:0217:0202:00:2: WSA883X Version 1_1, Variant: WSA8835_V2
[   66.598032] snd-sc8280xp sound: ASoC: Parent card not yet available, widget card binding deferred
[   66.603140] ALSA: Control name 'stream1.vol_ctrl1 MultiMedia1 Playback Volume' truncated to 'stream1.vol_ctrl1 MultiMedia1 Playback Volu'
[   66.603228] ALSA: Control name 'stream2.vol_ctrl2 MultiMedia2 Playback Volume' truncated to 'stream2.vol_ctrl2 MultiMedia2 Playback Volu'
[   66.605330] input: SC8280XP-LENOVO-X13S Headset Jack as /devices/platform/sound/sound/card0/input11

And then a bunch of these errors come through:

[   66.719630]  MultiMedia1 Playback: ASoC: no backend DAIs enabled for MultiMedia1 Playback
[   66.719641]  MultiMedia1 Playback: ASoC: error at dpcm_fe_dai_prepare on MultiMedia1 Playback: -22
x13s:~$ aplay -l output
**** List of PLAYBACK Hardware Devices ****
card 0: SC8280XPLENOVOX [SC8280XP-LENOVO-X13S], device 4: MultiMedia1 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SC8280XPLENOVOX [SC8280XP-LENOVO-X13S], device 5: MultiMedia2 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Any suggestions?

Also if anyone happens to stumble upon this message via a search engine:
Fedora has all of it's firmware xz compressed. To get this far:
qcadsp8280.mbn, qccdsp8280.mbn, and *.jsn will need to be decompressed. pd-mapper needs to be updated to handle this. I've added this to my todo list to fix, but it may be a little while before I get to it.

Quoted 9 lines
Quoted 4 lines

[1] https://git.linaro.org/people/srinivas.kandagatla/audioreach-topology.git/tree/prebuilt/SC8280XP-LENOVO-X13S-tplg.bin

Brian

Do you have the latest alsa-ucm-conf bits? I know you're on Fedora, so it doesn't carry over, but here's what I have packaged up for Debian based systems - https://salsa.debian.org/steev/alsa-ucm-conf

This is what has been (afaik) submitted upstream at
https://github.com/alsa-project/alsa-ucm-conf/pull/284

#3 lore raw
Quoted 7 lines · Steev Klimaszewski
Quoted 4 lines · Steev Klimaszewski

Do you have the latest alsa-ucm-conf bits? I know you're on Fedora, so it doesn't carry over, but here's what I have packaged up for Debian based systems - https://salsa.debian.org/steev/alsa-ucm-conf

This is what has been (afaik) submitted upstream at
https://github.com/alsa-project/alsa-ucm-conf/pull/284

OK, I installed that on my Fedora system and I still only have a dummy output, however I'm further along with my log messages.

[   13.857827] qcom-soundwire 3250000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   13.859176] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   13.865928] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   13.870063] qcom-soundwire 3210000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   13.872067] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:4 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   13.872849] wsa883x-codec sdw:0:0217:0202:00:2: WSA883X Version 1_1, Variant: WSA8835_V2
[   13.873357] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:3 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   13.880597] qcom-soundwire 3330000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   13.899249] snd-sc8280xp sound: ASoC: Parent card not yet available, widget card binding deferred
[   13.906192] ALSA: Control name 'stream1.vol_ctrl1 MultiMedia1 Playback Volume' truncated to 'stream1.vol_ctrl1 MultiMedia1 Playback Volu'
[   13.907589] ALSA: Control name 'stream2.vol_ctrl2 MultiMedia2 Playback Volume' truncated to 'stream2.vol_ctrl2 MultiMedia2 Playback Volu'
[   13.911243] input: SC8280XP-LENOVO-X13S Headset Jack as /devices/platform/sound/sound/card0/input11
[   23.851716]  MultiMedia4 Capture: ASoC: no backend DAIs enabled for MultiMedia4 Capture
[   23.851724]  MultiMedia4 Capture: ASoC: error at dpcm_fe_dai_prepare on MultiMedia4 Capture: -22

# The two lines above repeat a bunch of times

[   23.904985] qcom,apr 3000000.remoteproc:glink-edge.adsp_apps.-1.-1: GPR: Port(1000000b) is not registered

# This repeats as well

I still have dummy output. If I plug in headphones, then these messages appear:

[  556.339991] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0x1015, z_val=335402(milliOhm)
[  556.371025] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0x100b, z_val=339442(milliOhm)
[  556.402061] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0xfba, z_val=376140(milliOhm)

My dmesg shows that the only firmware that's missing is for the GPU and bluetooth.

Brian

#4 lore raw
Quoted 36 lines · Brian Masney
Quoted 7 lines · Steev Klimaszewski
Quoted 4 lines · Steev Klimaszewski

Do you have the latest alsa-ucm-conf bits? I know you're on Fedora, so it doesn't carry over, but here's what I have packaged up for Debian based systems - https://salsa.debian.org/steev/alsa-ucm-conf

This is what has been (afaik) submitted upstream at
https://github.com/alsa-project/alsa-ucm-conf/pull/284

OK, I installed that on my Fedora system and I still only have a dummy output, however I'm further along with my log messages.

[   13.857827] qcom-soundwire 3250000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   13.859176] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   13.865928] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2
[   13.870063] qcom-soundwire 3210000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   13.872067] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:4 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   13.872849] wsa883x-codec sdw:0:0217:0202:00:2: WSA883X Version 1_1, Variant: WSA8835_V2
[   13.873357] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:3 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw])
[   13.880597] qcom-soundwire 3330000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered
[   13.899249] snd-sc8280xp sound: ASoC: Parent card not yet available, widget card binding deferred
[   13.906192] ALSA: Control name 'stream1.vol_ctrl1 MultiMedia1 Playback Volume' truncated to 'stream1.vol_ctrl1 MultiMedia1 Playback Volu'
[   13.907589] ALSA: Control name 'stream2.vol_ctrl2 MultiMedia2 Playback Volume' truncated to 'stream2.vol_ctrl2 MultiMedia2 Playback Volu'
[   13.911243] input: SC8280XP-LENOVO-X13S Headset Jack as /devices/platform/sound/sound/card0/input11
[   23.851716]  MultiMedia4 Capture: ASoC: no backend DAIs enabled for MultiMedia4 Capture
[   23.851724]  MultiMedia4 Capture: ASoC: error at dpcm_fe_dai_prepare on MultiMedia4 Capture: -22

# The two lines above repeat a bunch of times

[   23.904985] qcom,apr 3000000.remoteproc:glink-edge.adsp_apps.-1.-1: GPR: Port(1000000b) is not registered

# This repeats as well

I still have dummy output. If I plug in headphones, then these messages appear:

Quoted 9 lines
[  556.339991] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0x1015, z_val=335402(milliOhm)
[  556.371025] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0x100b, z_val=339442(milliOhm)
[  556.402061] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0xfba, z_val=376140(milliOhm)

My dmesg shows that the only firmware that's missing is for the GPU and bluetooth.

Brian

That looks like you're possibly missing a few patches for audio. I grabbed mine from Johan's v6.3-rc1 branch
https://github.com/jhovold/linux/commits/wip/sc8280xp-v6.3-rc1; if you do have them do make sure you have the SC_LPASSCSR_8280XP option enabled

#5 lore raw
In reply to Brian Masney
Quoted 9 lines · Brian Masney

I still have dummy output. If I plug in headphones, then these messages appear:

[  556.339991] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0x1015, z_val=335402(milliOhm)
[  556.371025] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0x100b, z_val=339442(milliOhm)
[  556.402061] wcd938x_mbhc_get_result_params: d1=5, c1=3, x1=0xfba, z_val=376140(milliOhm)

My dmesg shows that the only firmware that's missing is for the GPU and bluetooth.

Actually, nevermind... It booted up with the wrong kernel (v6.2) instead of v6.3rc1. Sound is now working great!

Have you been able to get the external display working? I've tried through my thunderbolt dock and through a USB-C to HDMI adapter. I tried both USB-C ports and I also tried flipping the cable since I remember seeing something about that.

Brian