2023-12-23 23:44:46

by Marc MERLIN

[permalink] [raw]
Subject: sof-audio-pci-intel-tgl/soundwire 6.6.8 kernel outputs no sound on speakers but works on headphones

Howdy,

First, apologies if I'm not sending this to the right place, I could not
find an approrpriate soundwire/sof mailing list, please redirect me as
needed (I had to find an old soundwire message for reference)

laptop; Dell XPS 17 9730

merlin:~# lspci | grep -i audio
0000:00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01)

stock mainline 6.6.8 shows the device, but no sound comes out, as if it
were muted, but I do not see anyting muted in alsamixer. If I plug in
headphones, sound works, if I unplug them, no sound on speakers. Nothing
is shown as muted alsamixer and the sound levels look ok.
I ran the test as root from console so that pulseaudio/pipewire doesn't
get in the way.

Under xorg pavucontrol detects when I plug in headphones, and says
speaker unvailable, when I switch to headphones output it works, when I
unplug the headphones, speaker unavailable goes back to speaker.

So I kill X and pulseaudio, play audio on the console directly to alsa
instead of pulse and same thing, it plays but no sound on the speakers,
but sound on headphones when I plug them in

Alsamixer is using
default:0 sof-soundwire

Any idea what could be muting the speakers if alsamixer shows them
unmuted?

It is a kernel bug or userspace bug?

merlin:~# cat /proc/asound/*
cat: /proc/asound/card0: Is a directory
0 [sofsoundwire ]: sof-soundwire - sof-soundwire
Intel Soundwire SOF
1: : sequencer
2: [ 0- 0]: digital audio playback
3: [ 0- 1]: digital audio capture
4: [ 0- 2]: digital audio playback
5: [ 0- 4]: digital audio capture
6: [ 0- 5]: digital audio playback
7: [ 0- 6]: digital audio playback
8: [ 0- 7]: digital audio playback
9: [ 0- 2]: hardware dependent
10: [ 0] : control
33: : timer
00-02: HDA Codec 2
0 snd_soc_sof_sdw
cat: /proc/asound/oss: Is a directory
00-00: Jack Out (*) : : playback 1
00-01: Jack In (*) : : capture 1
00-02: Speaker (*) : : playback 1
00-04: Microphone (*) : : capture 1
00-05: HDMI 1 (*) : : playback 1
00-06: HDMI 2 (*) : : playback 1
00-07: HDMI 3 (*) : : playback 1
cat: /proc/asound/seq: Is a directory
cat: /proc/asound/sofsoundwire: Is a directory
G0: system timer : 4000.000us (10000000 ticks)
G3: HR timer : 0.001us (1000000000 ticks)
Client sequencer queue 1 : stopped
P0-0-0: PCM playback 0-0-0 : 21333.333us (1 ticks) SLAVE
P0-1-1: PCM capture 0-1-1 : SLAVE
P0-2-0: PCM playback 0-2-0 : SLAVE
P0-4-1: PCM capture 0-4-1 : SLAVE
P0-5-0: PCM playback 0-5-0 : SLAVE
P0-6-0: PCM playback 0-6-0 : SLAVE
P0-7-0: PCM playback 0-7-0 : SLAVE
Advanced Linux Sound Architecture Driver Version k6.6.8-amd64-volpre-sysrq-20231218.

merlin:~# dmesg | grep -E '(snd|sof|soundcore)'
[ 0.090196] software IO TLB: area num 32.
[ 1.567086] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 1.567087] software IO TLB: mapped [mem 0x0000000053683000-0x0000000057683000] (64MB)
[ 15.941644] snd_hda_intel 0000:00:1f.3: vgaarb: pci_notify
[ 15.941656] snd_hda_intel 0000:00:1f.3: runtime IRQ mapping not provided by arch
[ 15.941662] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 15.942126] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 15.942151] snd_hda_intel 0000:00:1f.3: vgaarb: pci_notify
[ 16.089302] sof-audio-pci-intel-tgl 0000:00:1f.3: vgaarb: pci_notify
[ 16.089311] sof-audio-pci-intel-tgl 0000:00:1f.3: runtime IRQ mapping not provided by arch
[ 16.089317] sof-audio-pci-intel-tgl 0000:00:1f.3: power state changed by ACPI to D0
[ 16.089320] sof-audio-pci-intel-tgl 0000:00:1f.3: ACPI _REG connect evaluation failed (5)
[ 16.089417] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 16.089503] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 16.089542] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 16.089937] sof-audio-pci-intel-tgl 0000:00:1f.3: vgaarb: pci_notify
[ 16.090083] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 16.090473] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 16.102000] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[ 16.102152] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling bus mastering
[ 16.120035] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[ 16.125472] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 16.125499] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 16.125522] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[ 16.218672] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 16.218704] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 16.235176] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[ 16.235457] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
[ 16.285146] sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
[ 16.304414] input: sof-soundwire Headset Jack as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input12
[ 16.307681] input: sof-soundwire HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input13
[ 16.314904] input: sof-soundwire HDMI/DP,pcm=6 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input14
[ 16.321892] input: sof-soundwire HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input15


merlin:~# lsmod | grep -E "(^snd|sof|soundwire)"
snd_seq_dummy 12288 0
snd_hrtimer 12288 1
snd_ctl_led 24576 0
snd_soc_sof_sdw 86016 3
snd_soc_intel_hda_dsp_common 16384 1 snd_soc_sof_sdw
snd_soc_intel_sof_maxim_common 20480 1 snd_soc_sof_sdw
snd_sof_probes 24576 0
snd_soc_rt711_sdca 53248 1
snd_soc_rt715_sdca 45056 1
snd_hda_codec_hdmi 90112 1
snd_soc_rt1316_sdw 28672 2
snd_soc_dmic 12288 0
snd_sof_pci_intel_tgl 12288 2
snd_sof_intel_hda_common 208896 1 snd_sof_pci_intel_tgl
snd_sof_intel_hda 24576 1 snd_sof_intel_hda_common
snd_sof_pci 24576 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp 12288 1 snd_sof_intel_hda_common
snd_sof 352256 4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
snd_sof_utils 16384 1 snd_sof
snd_soc_hdac_hda 24576 1 snd_sof_intel_hda_common
snd_soc_acpi_intel_match 98304 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_hda_intel 57344 0
snd_intel_dspcfg 36864 3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_intel_sdw_acpi 16384 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec 217088 5 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep 20480 1 snd_hda_codec
soundwire_intel 69632 5 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink 40960 2 soundwire_intel,snd_sof_intel_hda_common
soundwire_cadence 40960 1 soundwire_intel
snd_hda_ext_core 40960 4 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_hda_core 147456 8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
soundwire_generic_allocation 12288 1 soundwire_intel
snd_soc_core 421888 11 snd_soc_sof_sdw,snd_soc_rt715_sdca,snd_soc_rt1316_sdw,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_rt711_sdca,snd_soc_intel_sof_maxim_common,snd_sof_probes,snd_soc_dmic
snd_compress 28672 2 snd_soc_core,snd_sof_probes
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_pcm 192512 16 snd_soc_rt715_sdca,snd_hda_codec_hdmi,snd_soc_rt1316_sdw,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_rt711_sdca,snd_soc_core,snd_sof_utils,snd_soc_intel_sof_maxim_common,snd_hda_core,snd_pcm_dmaengine
snd_seq_midi 20480 0
snd_seq_midi_event 16384 1 snd_seq_midi
snd_rawmidi 53248 1 snd_seq_midi
snd_seq 106496 9 snd_seq_midi,snd_seq_midi_event,snd_seq_dummy
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer 49152 3 snd_seq,snd_hrtimer,snd_pcm
snd 155648 21 snd_ctl_led,snd_soc_sof_sdw,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi

Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.

Home page: http://marc.merlins.org/


2023-12-27 19:02:52

by Marc MERLIN

[permalink] [raw]
Subject: Re: sof-audio-pci-intel-tgl/soundwire 6.6.8 kernel outputs no sound on speakers but works on headphones

I'm still stuck with no sound :-/
I did more testing and 6.5.0-14-generic from ubuntu gives sound when I
boot it in ubuntu 23, but the same kernel in debian 12, seems to load
but gives a device that only gives sound via headphones. Nothing through
the speakers, and they are not muted (as checked in alsamixer)

I ran a diff between dmesg between the 2 boots, and I do see when
running the same kernel in debian12:
input: sof-soundwire Headset Jack as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input27
input: sof-soundwire HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input28
input: sof-soundwire HDMI/DP,pcm=6 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input29
input: sof-soundwire HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input30
sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -5
sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -5
sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -5
sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -5
sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1


merlin:/boot/sound# dmesg |grep intel-tgl
[ 14.629851] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 14.631966] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 14.633819] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 14.635615] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 14.637179] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 14.650766] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[ 14.668269] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[ 14.674395] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 14.675880] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 14.677283] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[ 14.771750] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 14.773456] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 14.791223] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[ 23.851544] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
[ 23.851573] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[ 23.851575] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -5
[ 23.852609] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
[ 23.852622] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[ 23.852630] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -5
[ 23.853634] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
[ 23.853645] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
[ 23.853653] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_params on 0000:00:1f.3: -5
[ 23.854644] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx error for 0x60010000 (msg/reply size: 108/20): -5
[ 23.854646] sof-audio-pci-intel-tgl 0000:00:1f.3: HW params ipc failed for stream 1
(...) many lines deleted

I realize that userspace is different and it could be a problem
with pipewire and wireplumber, but the ASoC errors above look
like a kernel issue. What do you think?


merlin:/boot/sound$ diff -u inxi_aA_*
--- inxi_aA_deb 2023-12-27 08:22:43.869118470 -0800
+++ inxi_aA_ubnt 2023-12-27 09:23:06.442760237 -0800
@@ -1,9 +1,10 @@
Audio:
- Device-1: Intel vendor: Dell driver: sof-audio-pci-intel-tgl
+ Device-1: Intel Raptor Lake-P/U/H cAVS vendor: Dell
+ driver: sof-audio-pci-intel-tgl
alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3
chip-ID: 8086:51ca class-ID: 0401
- API: ALSA v: k6.5.0-14-generic status: kernel-api with: aoss
- type: oss-emulator tools: alsamixer,amixer
- Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse
+ API: ALSA v: k6.5.0-14-generic status: kernel-api
+ tools: alsactl,alsamixer,amixer
+ Server-1: PipeWire v: 0.3.79 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
- 4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
+ tools: pw-cat,pw-cli,wpctl

merlin:/boot/sound$ diff -u wpctl_status_*
shows
Audio
├─ Devices:
│ 44. sof-soundwire [alsa]

├─ Sinks:
- │ * 53. sof-soundwire Stereo [vol: 1.00]
+ │ 45. sof-soundwire HDMI / DisplayPort 3 Output [vol: 1.00]
+ │ 46. sof-soundwire HDMI / DisplayPort 2 Output [vol: 1.00]
+ │ 47. sof-soundwire HDMI / DisplayPort 1 Output [vol: 1.00]
+ │ 48. sof-soundwire Headphones [vol: 1.00]
+ │ * 49. sof-soundwire Speaker [vol: 0.90]

├─ Sink endpoints:

├─ Sources:
+ │ 50. sof-soundwire Headset Microphone [vol: 1.00]
+ │ * 51. sof-soundwire SoundWire microphones [vol: 0.76]

Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.

Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08

2024-01-02 09:26:39

by Kai Vehmanen

[permalink] [raw]
Subject: Re: sof-audio-pci-intel-tgl/soundwire 6.6.8 kernel outputs no sound on speakers but works on headphones

Hi,

On Sat, 23 Dec 2023, Marc MERLIN wrote:

> Howdy,
>
> First, apologies if I'm not sending this to the right place, I could not
> find an approrpriate soundwire/sof mailing list, please redirect me as
> needed (I had to find an old soundwire message for reference)
>
> laptop; Dell XPS 17 9730
>
> merlin:~# lspci | grep -i audio
> 0000:00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01)
>
> stock mainline 6.6.8 shows the device, but no sound comes out, as if it
> were muted, but I do not see anyting muted in alsamixer. If I plug in

we'd need a bit more info, especially alsa-info output, to figure out
whether this is an issue with the mixer settings and/or the drivers.
Instructions how to get alsa-info output availbale at
https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html

Please file a bug at
https://github.com/thesofproject/linux/issues

There was one bug affecting 9730 variants, but I don't think your case
is the the same:
https://github.com/thesofproject/linux/issues/4380

Br, Kai

2024-01-02 10:24:04

by Marc MERLIN

[permalink] [raw]
Subject: Re: sof-audio-pci-intel-tgl/soundwire 6.6.8 kernel outputs no sound on speakers but works on headphones

On Tue, Jan 02, 2024 at 11:26:18AM +0200, Kai Vehmanen wrote:
> Hi,
>
> On Sat, 23 Dec 2023, Marc MERLIN wrote:
>
> > Howdy,
> >
> > First, apologies if I'm not sending this to the right place, I could not
> > find an approrpriate soundwire/sof mailing list, please redirect me as
> > needed (I had to find an old soundwire message for reference)
> >
> > laptop; Dell XPS 17 9730
> >
> > merlin:~# lspci | grep -i audio
> > 0000:00:1f.3 Multimedia audio controller: Intel Corporation Device 51ca (rev 01)
> >
> > stock mainline 6.6.8 shows the device, but no sound comes out, as if it
> > were muted, but I do not see anyting muted in alsamixer. If I plug in
>
> we'd need a bit more info, especially alsa-info output, to figure out
> whether this is an issue with the mixer settings and/or the drivers.
> Instructions how to get alsa-info output availbale at
> https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html

Sure thing. I tried to give a lot fo machine info in my first 2 Emails,
sorry that I missed some.
Reading that page, the good news is that sound output works with the
same 6.5.0-14.generic kernel under ubuntu 23, so at least linux can make
it work without windows needed.

looks like alsa-info mostly gathered what I had captured manually and
posted, but here it is
https://alsa-project.org/db/?f=d732a80cdb3d8e569a97c7dc73a32ddc76aea8a9

I added the modprobe.conf debugging recommended in your page, and that
seems to have killed sound:
https://alsa-project.org/db/?f=7397a0f60194cc275fe7e6c0ed38733559d91382

> Please file a bug at
> https://github.com/thesofproject/linux/issues

THanks, done: https://github.com/thesofproject/linux/issues/4758

> There was one bug affecting 9730 variants, but I don't think your case
> is the the same:
> https://github.com/thesofproject/linux/issues/4380

Indeed, I referenced them, thanks.

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.

Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08

2024-01-02 18:03:49

by Marc MERLIN

[permalink] [raw]
Subject: Re: sof-audio-pci-intel-tgl/soundwire 6.6.8 kernel outputs no sound on speakers but works on headphones => missing alsa-ucm-conf

On Tue, Jan 02, 2024 at 02:23:49AM -0800, Marc MERLIN wrote:
> > Please file a bug at
> > https://github.com/thesofproject/linux/issues
>
> THanks, done: https://github.com/thesofproject/linux/issues/4758

First, a big thanks for the quick reply and help.
For the benefit of archives and the next potential person looking for
this, my debian system was lacking
alsa-ucm-conf
which for this soundcare is not optional at all.

Long gone are the days of simple soundcards that just worked (never mind
self made DAC with resistors in the parrallel port :) ), nowadays sound
cards need a lot of things for anything to work. I had read about some
puzzling defaults of having an amp for speakers, controlled in software,
and off by default :-/ but didn't know that mine was so new/complex
that it would not show up in alsamixer where you would normally unmute
an output and be in your way. Now I've read about alsaucm and maybe
there was a magic combination that would have worked with alsamixer
but too many variables to try, hence aslaucm.

I spent probably over 10 hours on this building kernels, and comparing
debian to ubuntu, and doing a ridiculous amount of diffs between the
setups, I was unable to see anything about the output being muted, but I
Guess it wasn't being muted, the amp needing to be turned on is yet
another thing and it didn't how up where I looked.

So, a few thoughts:
1) for sure, debian package alsa-ucm-conf should be required, not
recommended. It's not big, people who can't keep track of everything
that changes all the time, have no idea that they need it, and really
need it installed by default if their hardware requires it.
I've filed a couple of bugs with them, including on the package
description that gives little clue that the package can be so essential

Description-en: ALSA Use Case Manager configuration files
This package contains ALSA Use Case Manager configuration of audio
input/output names and routing for specific audio hardware. They can be
used with the alsaucm tool.

2) I spent many hours reading the internet on all issues with sound and
muting and why sound could work on headphones and not speakers, and
nothing gave me a hint that worked, or even mentioned alsaucm.
When I have some time, I'll write a page that I'll try to get
indexed so that the next person dealing with this has a better chance
to find the answer

3) I failed to find the linux-sound list, that's on me, and my mail to
alsa-devel was bouncing for unknown reasons.

A huge huge thanks to you, Kai, for finding this Email and your help.

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.

Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08

2024-01-02 19:14:54

by Marc MERLIN

[permalink] [raw]
Subject: Re: sof-audio-pci-intel-tgl/soundwire 6.6.8 kernel outputs no sound on speakers but works on headphones => missing alsa-ucm-conf

On Tue, Jan 02, 2024 at 10:03:29AM -0800, Marc MERLIN wrote:
> First, a big thanks for the quick reply and help.
> For the benefit of archives and the next potential person looking for
> this, my debian system was lacking
> alsa-ucm-conf
> which for this soundcare is not optional at all.

For debian users, the other problem is that a lot of firmware is missing
0000:00:1f.3: Direct firmware load for intel/sof-tplg/sof-hda-generic-2ch.tplg failed with error -2
0000:00:1f.3: error: tplg request firmware intel/sof-tplg/sof-hda-generic-2ch.tplg failed err: -2
0000:00:1f.3: you may need to download the firmware from https://github.com/thesofproject/sof-bin/

merlin:~# aptitude search '?broken-reverse-recommends(?installed)' > /tmp/missing
merlin:~# grep firmware /tmp/missing
p firmware-ath9k-htc - firmware for AR7010 and AR9271 USB wireless adapters
p fwupd-amd64-signed - Tools to manage UEFI firmware updates (signed)
merlin:~# grep sof /tmp/missing
merlin:~#

This means there are no relevant packages with 'sof' or 'firmware' that
were recommended, and I had to find this:

merlin:~# apt-get install -t unstable firmware-sof-signed

That package was also missing and not suggested by any package is seems,
but it was easier to find thanks to kernel dmesg. That said I had to
look in ubuntu to see what package those files came from as the package
was installed in that test ubuntu image I used and missing from my
debian12

You know this, I'm sure just adding it to the thread for google indexing.

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.

Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08

2024-01-02 21:24:53

by Marc MERLIN

[permalink] [raw]
Subject: Re: sof-audio-pci-intel-tgl/soundwire 6.6.8 kernel outputs no sound on speakers but works on headphones => missing alsa-ucm-conf

On Tue, Jan 02, 2024 at 10:03:29AM -0800, Marc MERLIN wrote:
> 1) for sure, debian package alsa-ucm-conf should be required, not
> recommended. It's not big, people who can't keep track of everything
> that changes all the time, have no idea that they need it, and really
> need it installed by default if their hardware requires it.
> I've filed a couple of bugs with them, including on the package
> description that gives little clue that the package can be so essential

Done:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059871
alsa-ucm-conf should be a required package by libasound2-data, it's essential on some sound hardware

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059872
alsa-ucm-conf should be a required package, it's essential on some sound hardware

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.

Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08