Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Sound available intermittently from back panel speaker port

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

[Solved] Sound available intermittently from back panel speaker port

#1 Post by Shamak »

EDIT: The problem appears to be solved by the 6.1 kernel.

EDIT: After 6 months the symptoms have changed a bit. The Gnome sound test usually works but sometimes doesn't. When I watch videos (YouTube and Vimeo) in either Firefox or Chromium the sound doesn't start but if I pause it for 30 to 45 seconds then play again the sound will usually come on. As before the front headphone jack doesn't seem to have any issues.

Hello everybody. I'd appreciate any help you could give. :)

If I go to Settings > Sound > Test and test the speakers sometimes they work and sometimes they don't. Same with playing streaming video. (I've been using the video podcasts on twit.tv to test.) However I did play a video for 45 minutes and the sound never cut out. When testing using the Gnome test the sound stops working within minutes but will also come back. I can't discern any pattern that would make it disappear like suspending or rebooting. Sometimes it works sometimes it doesn't. It seems completely random.

The sound works in Windows (I tried for 30 mintues) and in Ubuntu 22.04 (I installed Ubuntu for a day to test it).

This seems to happen only on the 3.5 mm stereo jack on the back panel. Sound seems to consistently work on the 3.5 mm headphone jack on the front panel. Those are the only sound ports on the computer.

I have a new Dell Inspiron 3910 running Bullseye on the Gnome desktop with kernel 5.18.0 from Bullseye Backports and /lib/firmware git cloned using

Code: Select all

git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
using the method by Head_on_a_Stick in this post.

viewtopic.php?p=755418#p755418

(EDIT: See post #3 below.)

Some missing firmware:

Code: Select all

$ sudo dmesg |grep firmware
[sudo] password for donald: 
[    1.505557] i915 0000:00:02.0: firmware: direct-loading firmware i915/adls_dmc_ver2_01.bin
[    1.505982] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adls_dmc_ver2_01.bin (v2.1)
[    2.174394] i915 0000:00:02.0: firmware: direct-loading firmware i915/tgl_guc_69.0.3.bin
[    2.174551] i915 0000:00:02.0: firmware: direct-loading firmware i915/tgl_huc_7.9.3.bin
[    2.259539] i915 0000:00:02.0: [drm] GuC firmware i915/tgl_guc_69.0.3.bin version 69.0
[    2.259540] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_huc_7.9.3.bin version 7.9
[    4.888610] platform regulatory.0: firmware: failed to load regulatory.db (-2)
[    4.888625] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[    4.888638] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.965501] iwlwifi 0000:00:14.3: firmware: failed to load iwlwifi-so-a0-hr-b0-72.ucode (-2)
[    4.965517] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-hr-b0-72.ucode failed with error -2
[    4.969177] iwlwifi 0000:00:14.3: firmware: direct-loading firmware iwlwifi-so-a0-hr-b0-71.ucode
[    4.969759] iwlwifi 0000:00:14.3: firmware: failed to load iwl-debug-yoyo.bin (-2)
[    4.969773] iwlwifi 0000:00:14.3: loaded firmware version 71.058653f6.0 so-a0-hr-b0-71.ucode op_mode iwlmvm
[    5.240046] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    5.241514] bluetooth hci0: firmware: direct-loading firmware intel/ibt-1040-4150.sfi
[    5.241517] Bluetooth: hci0: Found device firmware: intel/ibt-1040-4150.sfi
[    5.412901] r8169 0000:01:00.0: firmware: direct-loading firmware rtl_nic/rtl8168h-2.fw
[    6.601543] Bluetooth: hci0: Waiting for firmware download to complete
[    6.620209] bluetooth hci0: firmware: direct-loading firmware intel/ibt-1040-4150.ddc
Sound card is Cirrus Logic CS8409/CS42L42.

Code: Select all

$ cat /proc/asound/card*/codec* | grep Codec
Codec: Cirrus Logic CS8409/CS42L42
Codec: Intel Alderlake HDMI


Here is some information.

When the sound was out I tried to play sound as root.

EDIT: The following example may be misleading as I just had the same terminal output with "aplay /usr/share/sounds/alsa/Noise.wav" as root but the Gnome speaker test worked. A number of times alternating back and forth.

Code: Select all

# aplay /usr/share/sounds/alsa/Noise.wav
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
aplay: main:830: audio open error: Device or resource busy
This was run when the sound wasn't working:

Code: Select all

# lsof /dev/snd/*
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 1544 donald  mem    CHR  116,3           451 /dev/snd/pcmC0D0c
pulseaudi 1544 donald  mem    CHR  116,2           450 /dev/snd/pcmC0D0p
pulseaudi 1544 donald   16u   CHR 116,18      0t0  479 /dev/snd/controlC0
pulseaudi 1544 donald   22u   CHR 116,18      0t0  479 /dev/snd/controlC0
pulseaudi 1544 donald   23u   CHR 116,18      0t0  479 /dev/snd/controlC0
pulseaudi 1544 donald   28u   CHR 116,18      0t0  479 /dev/snd/controlC0
pulseaudi 1544 donald   38u   CHR  116,2      0t0  450 /dev/snd/pcmC0D0p
pulseaudi 1544 donald   41u   CHR  116,3      0t0  451 /dev/snd/pcmC0D0c

Code: Select all

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CS8409/CS42L42 Analog [CS8409/CS42L42 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 13: HDMI 7 [HDMI 7]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 14: HDMI 8 [HDMI 8]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 15: HDMI 9 [HDMI 9]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 16: HDMI 10 [HDMI 10]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 17: HDMI 11 [HDMI 11]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code: Select all

$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_VOLUME_CTRL LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 65536 / 100%,   front-right: 65536 / 100%
	        balance 0.00
	base volume: 65536 / 100%
	volume steps: 64
	muted: no
	current latency: 2.06 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 2
	linked by: 2
	configured latency: 2.51 ms; range is 0.50 .. 2000.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "CS8409/CS42L42 Analog"
		alsa.id = "CS8409/CS42L42 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x6003230000 irq 176"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "7ad0"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "384000"
		device.buffering.fragment_size = "192000"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)
			properties:
				
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-lineout>

Code: Select all

$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65536 [100%] [on]
  Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 41350 [63%] [on]
  Front Right: Capture 41350 [63%] [on]
  

Code: Select all

$ lspci | grep -i audio
0000:00:1f.3 Audio device: Intel Corporation Device 7ad0 (rev 11)

Code: Select all

$ lsmod | grep '^snd' | column -t
snd_hda_codec_hdmi        77824   1   
snd_sof_pci_intel_tgl     16384   0   
snd_sof_intel_hda_common  114688  1   snd_sof_pci_intel_tgl
snd_sof_intel_hda         20480   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        16384   1   snd_sof_intel_hda_common
snd_sof                   192512  2   snd_sof_pci,snd_sof_intel_hda_common
snd_sof_utils             20480   1   snd_sof
snd_soc_hdac_hda          24576   1   snd_sof_intel_hda_common
snd_hda_ext_core          36864   3   snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_soc_acpi_intel_match  65536   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_codec_cs8409      36864   1   
snd_hda_codec_generic     98304   1   snd_hda_codec_cs8409
snd_soc_core              331776  4   soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_compress              28672   1   snd_soc_core
snd_hda_intel             57344   5   
snd_intel_dspcfg          32768   2   snd_hda_intel,snd_sof_intel_hda_common
snd_intel_sdw_acpi        20480   2   snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec             176128  5   snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_codec_cs8409,snd_hda_intel,snd_soc_hdac_hda
snd_hda_core              110592  9   snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_codec_cs8409,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep                 16384   1   snd_hda_codec
snd_pcm                   147456  11  snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core
snd_timer                 45056   1   snd_pcm
snd                       114688  19  snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm

Code: Select all

$ lspci -knn
0000:00:00.0 Host bridge [0600]: Intel Corporation Device [8086:4650] (rev 05)
	Subsystem: Dell Device [1028:0ad3]
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4692] (rev 0c)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: i915
	Kernel modules: i915
0000:00:04.0 Signal processing controller [1180]: Intel Corporation Device [8086:461d] (rev 05)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: proc_thermal_pci
	Kernel modules: processor_thermal_device_pci
0000:00:0e.0 RAID bus controller [0104]: Intel Corporation Volume Management Device NVMe RAID Controller [8086:467f]
	Subsystem: Dell Volume Management Device NVMe RAID Controller [1028:0ad3]
	Kernel driver in use: vmd
	Kernel modules: vmd, ahci
0000:00:14.0 USB controller [0c03]: Intel Corporation Device [8086:7ae0] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
0000:00:14.2 RAM memory [0500]: Intel Corporation Device [8086:7aa7] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
0000:00:14.3 Network controller [0280]: Intel Corporation Device [8086:7af0] (rev 11)
	Subsystem: Intel Corporation Device [8086:4070]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
0000:00:16.0 Communication controller [0780]: Intel Corporation Device [8086:7ae8] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
0000:00:17.0 System peripheral [0880]: Intel Corporation Device [8086:09ab]
	Subsystem: Dell Device [1028:0ad3]
0000:00:1a.0 System peripheral [0880]: Intel Corporation Device [8086:09ab]
	Subsystem: Dell Device [1028:0ad3]
0000:00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:7aba] (rev 11)
	Kernel driver in use: pcieport
0000:00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:7a86] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
0000:00:1f.3 Audio device [0403]: Intel Corporation Device [8086:7ad0] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
0000:00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:7aa3] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:7aa4] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
0000:01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
	Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:0ad3]
	Kernel driver in use: r8169
	Kernel modules: r8169
10000:e0:17.0 SATA controller [0106]: Intel Corporation Device [8086:7ae2] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: ahci
	Kernel modules: ahci
10000:e0:1a.0 PCI bridge [0604]: Intel Corporation Device [8086:7ac8] (rev 11)
	Kernel driver in use: pcieport
10000:e1:00.0 Non-Volatile memory controller [0108]: Micron Technology Inc Device [1344:5404] (rev 03)
	Subsystem: Micron Technology Inc Device [1344:1100]
	Kernel driver in use: nvme
	Kernel modules: nvme

Code: Select all

sudo dmesg | grep audio
[sudo] password for donald: 
[    4.970610] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.099579] snd_hda_codec_cs8409 hdaudioC0D0: autoconfig for CS8409: line_outs=1 (0x25/0x0/0x0/0x0/0x0) type:line
[    5.099584] snd_hda_codec_cs8409 hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.099586] snd_hda_codec_cs8409 hdaudioC0D0:    hp_outs=1 (0x24/0x0/0x0/0x0/0x0)
[    5.099587] snd_hda_codec_cs8409 hdaudioC0D0:    mono: mono_out=0x0
[    5.099588] snd_hda_codec_cs8409 hdaudioC0D0:    inputs:
[    5.099590] snd_hda_codec_cs8409 hdaudioC0D0:      Mic=0x34
I am listed in the audio group.

Code: Select all

$ groups
donald cdrom floppy sudo audio dip video plugdev netdev bluetooth lpadmin scanner
In alsamixer I disabled auto-mute.

In alsamixer > F6(select sound card) I changed the S/pdif settings from 00 to MM (mute).

Unplugged and reconnected the cable.

Speakers on, unmuted in Gnome and alsamixer.

Sound card is default in alsamixer.

Pavucontrol > Configuration set to Analog Stereo Duplex but I also tried Analog Stereo output.

Reinstalled pulseaudio package.

Ran

Code: Select all

$ rm -r ~/.config/pulse
$ systemctl --user restart pulseaudio.service
(/tmp/pulse-* did not exist.)

I tried various ways of making my sound card the default card but I think from aplay -l above it already is the default card. I didn't realize this until later. I can put in what I did if someone wants.
Last edited by Shamak on 2023-02-21 22:18, edited 8 times in total.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#2 Post by Shamak »

Forgot something I tried.
In /etc/modprobe.d/alsa.conf added

Code: Select all

options snd-intel-dspcfg dsp_driver=1
Also tried installing the Bullseye package firmware-sof-signed and adding

Code: Select all

options snd-intel-dspcfg dsp_driver=3
to /etc/modprobe.d/alsa.conf to try the sof driver.

Also tried extracting the contents of the Bookworm package firmware-sof-signed using dpkg-deb -x and adding them to /lib/firmware.

EDIT: But the sound didn't work at all with the sof driver if I recall correctly.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#3 Post by Shamak »

I doubt this makes a difference but in the middle of troubleshooting as I said I installed Ubuntu to see if something was physically wrong with the back panel port. Before that I had just git cloned linux-firmware from kernel.org and simply added missing firmware to /lib/firmware. After I had concluded that nothing was wrong with the port I installed Debian again this time using the procedure mentioned above except that I saved the original /lib/firmware to /lib/firmware.save just in case.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#4 Post by Shamak »

So in this quote they talk about trying a different model if you experience silent output.
Speaker and Headphone Output

One of the most frequent (and obvious) bugs with HD-audio is the silent output from either or both of a built-in speaker and a headphone jack. In general, you should try a headphone output at first. A speaker output often requires more additional controls like the external amplifier bits. Thus a headphone output has a slightly better chance.

Before making a bug report, double-check whether the mixer is set up correctly. The recent version of snd-hda-intel driver provides mostly “Master” volume control as well as “Front” volume (where Front indicates the front-channels). In addition, there can be individual “Headphone” and “Speaker” controls.

Ditto for the speaker output. There can be “External Amplifier” switch on some codecs. Turn on this if present.

Another related problem is the automatic mute of speaker output by headphone plugging. This feature is implemented in most cases, but not on every preset model or codec-support code.

In anyway, try a different model option if you have such a problem. Some other models may match better and give you more matching functionality. If none of the available models works, send a bug report. See the bug report section for details.
https://www.kernel.org/doc/html/latest/ ... notes.html

This is apparently controlled by adding to /etc/modprobe.d/sound.conf

Code: Select all

options snd-hda-intel model=<model>
and rebooting. They have a list of models at

https://docs.kernel.org/sound/hd-audio/models.html

but the list seem to be outdated. They do not have my sound card, Cirrus Logic CS8409/CS42L42, listed and the Cirrus Logic models they do have are for Macs.

That left Googling models and gleaning references from the internet. I've tried dell-headset-multi, cs8409, cirrus, auto, generic, dell, dell-inspiron, dell-inspiron-3910, dell-m6, alderlake, dolphin.

There are also these things called fixups which as far as I can tell are kind of like updates to the card and are also models. Some of the names in the previous sentence came from Googling fixups.

Incidentally,there is no "External Amplifier" setting in alsamixer and the volumes are all set at 100 with the exception of Headphones.
Last edited by Shamak on 2022-07-02 13:38, edited 5 times in total.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#5 Post by Shamak »

Also found a related excerpt from the Arch wiki.

https://wiki.archlinux.org/title/Advanc ... model_type

It recommends creating a /etc/modprobe.d/sound.conf with the following contents

Code: Select all

# ALSA portion
       alias char-major-116 snd
       alias snd-card-0 snd-cs8409
       # module options should go here
       options snd-hda-intel model=<model>
       
       # OSS/Free portion
       alias char-major-14 soundcore
       alias sound-slot-0 snd-card-0
       
       # card #1
       alias sound-service-0-0 snd-mixer-oss
       alias sound-service-0-1 snd-seq-oss
       alias sound-service-0-3 snd-pcm-oss
       alias sound-service-0-8 snd-seq-oss
       alias sound-service-0-12 snd-pcm-oss
I tried it with and without the options line. Also with various models as before.

The contents are from

https://bugtrack.alsa-project.org/main/ ... atrix:Main

where you click on the model # of your sound card. As before my card was not on the list but here's what seems to be the closest one.

https://bugtrack.alsa-project.org/wiki/ ... ule-cs46xx

in the section "Setting up modprobe and kmod support".

Forgot to mention that somewhere in this process I tried blacklisting the module snd_sof_pci_intel_tgl with

Code: Select all

blacklist snd_sof_pci_intel_tgl
in /etc/modprobe.d/sound.conf.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#6 Post by Shamak »

Tried adding to /etc/modprobe.d/sound.conf

Code: Select all

options snd slots=snd_hda_intel
options snd_hda_intel index=0
and

Code: Select all

options snd slots=snd_hda_intel
options snd_hda_intel index=1
and

Code: Select all

options snd-hda-intel power_save=1
From /etc/pulse/default/pa tried commenting out the line

Code: Select all

load-module module-switch-on-port-available
and separately commenting out

Code: Select all

load-module module-suspend-on-idle
Checked the settings of alsamixer when the sound was out to see if possibly the headphone jack volume had been turned up but it wasn't.

In /etc/asound.conf tried

Code: Select all

pcm.!default {
    type hw
    card CS8409/CS42L42
}

ctl.!default {
    type hw
    card CS8409/CS42L42
}

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#7 Post by Shamak »

I'm guessing this is just some kind of glitch. I connected my soundbar to my computer via Bluetooth and it seems to work fine. I also connected my TV via hdmi using the TV speakers and it seems to work fine. It worked fine on Ubuntu with the 3.5 mm output jack as I previously posted. I did try a different set of speakers on the 3.5 mm audio out jack and had the same problem.

I looked at an example page of the Arch wiki for PulseAudio

https://wiki.archlinux.org/title/PulseAudio/Examples

I tried the following instructions for PulseAudio as a minimal dumb pipe to Alsa

https://wiki.archlinux.org/title/PulseA ... pe_to_ALSA

but didn't even get a sound lol.

Tried entering the following line into /etc/pulse/default.pa

Code: Select all

set-default-sink alsa_output.pci-0000_00_1f.3.analog-stereo
where

Code: Select all

$ pacmd list-sinks | grep -e 'name:' -e 'index:'
  * index: 0
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	
It was the default sink already but I thought making it explicit might help.

I didn't see anything else on that page that seemed relevant.

Maybe this will be fixed in a future kernel update.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Sound available intermittently from back panel speaker port

#8 Post by Aki »

Hello,
Does the issue occur with the standard kernel (5.10) for Debian Bullseye ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#9 Post by Shamak »

Aki wrote: 2022-07-04 19:23 Hello,
Does the issue occur with the standard kernel (5.10) for Debian Bullseye ?
I don't get sound at all on 5.10. Neither with speakers on the line out 3.5 mm jack, nor from the headphone jack, nor with hdmi connected to my TV using the TV speakers.

There is this Phoronix article which seems to say that that my sound card got support in the 5.15 kernel.

Cirrus Logic "Dolphin" Audio Support Coming For Linux 5.15
https://www.phoronix.com/scan.php?page= ... inux-Audio

Code: Select all

$ cat /proc/asound/card*/codec* | grep Codec
Codec: Cirrus Logic CS8409/CS42L42
Codec: Intel Alderlake HDMI

Code: Select all

$ inxi -Fxxz
System:
  Kernel: 5.18.0-0.bpo.1-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
  Desktop: GNOME 3.38.6 tk: GTK 3.24.24 wm: gnome-shell dm: GDM3 
  Distro: Debian GNU/Linux 11 (bullseye) 
Machine:
  Type: Desktop System: Dell product: Inspiron 3910 v: N/A serial: <filter> 
  Chassis: type: 3 serial: <filter> 
  Mobo: Dell model: 0YJHYD v: A00 serial: <filter> UEFI: Dell v: 1.1.59 
  date: 05/13/2022 
CPU:
  Info: 6-Core model: 12th Gen Intel Core i5-12400 bits: 64 type: MT MCP 
  arch: N/A rev: 5 L2 cache: 18 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 59904 
  Speed: 799 MHz min/max: 800/5600 MHz Core speeds (MHz): 1: 799 2: 784 
  3: 926 4: 946 5: 1199 6: 1245 7: 791 8: 1027 9: 800 10: 1070 11: 878 
  12: 1281 
Graphics:
  Device-1: Intel vendor: Dell driver: i915 v: kernel bus ID: 0000:00:02.0 
  chip ID: 8086:4692 
  Display: wayland server: X.Org 1.20.11 compositor: gnome-shell driver: 
  loaded: vesa unloaded: fbdev,modesetting resolution: 1920x1080~60Hz 
  s-dpi: 96 
  OpenGL: renderer: Mesa Intel Graphics (ADL-S GT1) v: 4.6 Mesa 20.3.5 
  direct render: Yes 
Audio:
  Device-1: Intel vendor: Dell driver: snd_hda_intel v: kernel 
  bus ID: 0000:00:1f.3 chip ID: 8086:7ad0 
  Sound Server: ALSA v: k5.18.0-0.bpo.1-amd64 
Network:
  Device-1: Intel driver: iwlwifi v: kernel port: 4000 bus ID: 0000:00:14.3 
  chip ID: 8086:7af0 
  IF: wlp0s20f3 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Dell driver: r8169 v: kernel port: 3000 bus ID: 0000:01:00.0 
  chip ID: 10ec:8168 
  IF: enp1s0 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus ID: 1-14:4 
  chip ID: 8087:0026 
  Report: ID: hci0 state: up running pscan bt-v: 3.0 lmp-v: 5.2 sub-v: 31ab 
  address: <filter> 
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller 
  driver: vmd v: 0.6 bus ID: 0000:00:0e.0 chip ID: 8086.467f 
Drives:
  Local Storage: total: 1.38 TiB used: 149.2 GiB (10.6%) 
  ID-1: /dev/nvme0n1 vendor: Micron model: 2210S NVMe 512GB size: 476.94 GiB 
  speed: 31.6 Gb/s lanes: 4 serial: <filter> 
  ID-2: /dev/sda type: USB vendor: Seagate model: Expansion size: 931.51 GiB 
  serial: <filter> 
Partition:
  ID-1: / size: 36.37 GiB used: 6.73 GiB (18.5%) fs: ext4 
  dev: /dev/nvme0n1p7 
  ID-2: /boot/efi size: 196 MiB used: 119.5 MiB (61.0%) fs: vfat 
  dev: /dev/nvme0n1p1 
  ID-3: /home size: 262.53 GiB used: 73.11 GiB (27.8%) fs: ext4 
  dev: /dev/nvme0n1p9 
Swap:
  ID-1: swap-1 type: partition size: 7.45 GiB used: 0 KiB (0.0%) 
  priority: -2 dev: /dev/nvme0n1p8 
Sensors:
  System Temperatures: cpu: 36.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 290 Uptime: 11m Memory: 7.47 GiB used: 2.36 GiB (31.6%) 
  Init: systemd v: 247 runlevel: 5 Compilers: gcc: N/A Packages: apt: 1756 
  Shell: Bash v: 5.1.4 running in: gnome-terminal inxi: 3.3.01
  

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#10 Post by Shamak »

I tried entering into /etc/modprobe.d/sound.conf

Code: Select all

options snd-hda-intel model=8086:7ad0
where 8086:7ad0 are supposed to be the sub-vendor and sub-device ID's.

EDIT: Just realized there is another set of numbers. Subsystem: Dell Device [1028:0ad3] Not sure which are the correct ones. Will try them in next post.

Code: Select all

$ lspci -knn
0000:00:00.0 Host bridge [0600]: Intel Corporation Device [8086:4650] (rev 05)
	Subsystem: Dell Device [1028:0ad3]
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4692] (rev 0c)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: i915
	Kernel modules: i915
0000:00:04.0 Signal processing controller [1180]: Intel Corporation Device [8086:461d] (rev 05)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: proc_thermal_pci
	Kernel modules: processor_thermal_device_pci
0000:00:0e.0 RAID bus controller [0104]: Intel Corporation Volume Management Device NVMe RAID Controller [8086:467f]
	Subsystem: Dell Volume Management Device NVMe RAID Controller [1028:0ad3]
	Kernel driver in use: vmd
	Kernel modules: vmd, ahci
0000:00:14.0 USB controller [0c03]: Intel Corporation Device [8086:7ae0] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
0000:00:14.2 RAM memory [0500]: Intel Corporation Device [8086:7aa7] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
0000:00:14.3 Network controller [0280]: Intel Corporation Device [8086:7af0] (rev 11)
	Subsystem: Intel Corporation Device [8086:4070]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
0000:00:16.0 Communication controller [0780]: Intel Corporation Device [8086:7ae8] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
0000:00:17.0 System peripheral [0880]: Intel Corporation Device [8086:09ab]
	Subsystem: Dell Device [1028:0ad3]
0000:00:1a.0 System peripheral [0880]: Intel Corporation Device [8086:09ab]
	Subsystem: Dell Device [1028:0ad3]
0000:00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:7aba] (rev 11)
	Kernel driver in use: pcieport
0000:00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:7a86] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
0000:00:1f.3 Audio device [0403]: Intel Corporation Device [8086:7ad0] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
0000:00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:7aa3] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:7aa4] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
0000:01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
	Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:0ad3]
	Kernel driver in use: r8169
	Kernel modules: r8169
10000:e0:17.0 SATA controller [0106]: Intel Corporation Device [8086:7ae2] (rev 11)
	Subsystem: Dell Device [1028:0ad3]
	Kernel driver in use: ahci
	Kernel modules: ahci
10000:e0:1a.0 PCI bridge [0604]: Intel Corporation Device [8086:7ac8] (rev 11)
	Kernel driver in use: pcieport
10000:e1:00.0 Non-Volatile memory controller [0108]: Micron Technology Inc Device [1344:5404] (rev 03)
	Subsystem: Micron Technology Inc Device [1344:1100]
	Kernel driver in use: nvme
	Kernel modules: nvme
	
I also tried

Code: Select all

options snd-hda-intel position_fix=#
where # is the numbers 1-4, successively.

These attempts came from

https://www.kernel.org/doc/html/latest/ ... notes.html

the sections Model Option and DMA Position-problem, respectively.

I also combined the two ideas as

Code: Select all

options snd-hda-intel model=8086:7ad0 position_fix=#
where again # is the numbers 1-4.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#11 Post by Shamak »

So I tried in /etc/modprobe.d/sound.conf

Code: Select all

options snd-hda-intel model=1028:0ad3
and

Code: Select all

options snd-hda-intel model=1028:0ad3 position_fix=#
with # the numbers 1-4 and 1028:0ad3 coming from $ lspci -knn as posted above.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#12 Post by Shamak »

Here's some other stuff I've tried.

Some time ago I installed the Liquorix kernel but got the same results.

Tried adding to /etc/modprobe.d/sound.conf

Code: Select all

options snd slots=snd-hda-intel
options snd-hda-intel id=PCH index=0
In /etc/pulse/default.pa tried changing the line

Code: Select all

load-module module-udev-detect
to

Code: Select all

load-module module-udev-detect tsched=0
In /etc/pulse/daemon.conf tried uncommenting the lines

Code: Select all

allow-module-loading = yes
resample-method = speex-float-1
avoid-resampling = false
but I think those were the default values anyway. Also tried changing them to

Code: Select all

allow-module-loading = yes
resample-method = src-sinc-best-quality
avoid-resampling = true
In alsamixer tried increasing Headphone output to maximum. Also tried disabling the S/PDIF Default PCM immediately in front of Auto-Mute.

I guess in the interests of full disclosure I'll mention that I ended up reinstalling (for unrelated reasons). This time I cloned linux-firmware into /lib using

Code: Select all

$ cd /lib
$ sudo git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
and then looking at the terminal messages when installing the backports kernel and at boot to guide me to copy the contents of /lib//linux-firmware/i915, /lib//linux-firmware/intel, and /lib/linux-firmware/iwlwifi-so-a0-hr-b0-*.ucode into /lib/firmware/i915, /lib/firmware/intel, and /lib/firmware, respectively. Missing firmware messages are the same as before.

Code: Select all

$ $ sudo dmesg | grep firmware
[sudo] password for donald: 
[    1.260864] i915 0000:00:02.0: firmware: direct-loading firmware i915/adls_dmc_ver2_01.bin
[    1.261292] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adls_dmc_ver2_01.bin (v2.1)
[    1.929745] i915 0000:00:02.0: firmware: direct-loading firmware i915/tgl_guc_69.0.3.bin
[    1.929901] i915 0000:00:02.0: firmware: direct-loading firmware i915/tgl_huc_7.9.3.bin
[    2.014704] i915 0000:00:02.0: [drm] GuC firmware i915/tgl_guc_69.0.3.bin version 69.0
[    2.014708] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_huc_7.9.3.bin version 7.9
[    4.733738] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[    4.733979] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[    4.786569] iwlwifi 0000:00:14.3: firmware: failed to load iwlwifi-so-a0-hr-b0-72.ucode (-2)
[    4.786580] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[    4.786587] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-hr-b0-72.ucode failed with error -2
[    4.790046] iwlwifi 0000:00:14.3: firmware: direct-loading firmware iwlwifi-so-a0-hr-b0-71.ucode
[    4.790297] iwlwifi 0000:00:14.3: firmware: failed to load iwl-debug-yoyo.bin (-2)
[    4.790311] iwlwifi 0000:00:14.3: loaded firmware version 71.058653f6.0 so-a0-hr-b0-71.ucode op_mode iwlmvm
[    5.150219] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    5.152953] bluetooth hci0: firmware: direct-loading firmware intel/ibt-1040-4150.sfi
[    5.152958] Bluetooth: hci0: Found device firmware: intel/ibt-1040-4150.sfi
[    5.169971] r8169 0000:01:00.0: firmware: direct-loading firmware rtl_nic/rtl8168h-2.fw
[    6.509523] Bluetooth: hci0: Waiting for firmware download to complete
[    6.527446] bluetooth hci0: firmware: direct-loading firmware intel/ibt-1040-4150.ddc
The problem persists as before.
Last edited by Shamak on 2022-08-13 22:15, edited 2 times in total.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#13 Post by Shamak »

I started a thread on linuxquestions.org.

https://www.linuxquestions.org/question ... 175715630/

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Sound available intermittently from back panel speaker port

#14 Post by Aki »

Hello,

The reported issue is not easy to solve, due to its randomness and because it really mimics a hardware malfunction (the physical audio port ? the physical audio jack of the headset ?) even if you reported it works on Windows and Ubuntu.

It seems other users of the same computer (Dell-Inspiron-3501) had the same problem in the past months [0] [1].

Anyway, I've found this commit [2] [3] in the linux kernel repository: it's a kernel patch named: "ALSA: hda/cs8409: Support manual mode detection for CS42L42" with the following description:
For Jack detection on CS42L42, detection is normally done using "auto" mode, which automatically detects what type of jack is connected to the device. However, some headsets are not automatically detected, and as such and alternative detection method "manual mode" can be used to detect these headsets.
It seems that this patch is not included in kernel version 5.18.2 that you are installed from bullseye-backports.
It seems this patch landed in linux kernel with version 5.19.1:

Code: Select all

$ git tag --contains ec6a8aaafbc5b0467b7554b6e61a93d91fceb613
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1
Therefore, you could try a version => 5.19.1 of the linux kernel that includes the aforementioned patch.

The linux kernel version 5.19.1 is only currently available in Debian repository as an experimental package [4] [5]. You can install it (as a test) with the following commands:

Code: Select all

wget http://ftp.us.debian.org/debian/pool/main/l/linux-signed-amd64/linux-image-5.19.0-trunk-amd64_5.19-1~exp1_amd64.deb
sudo dpkg -i linux-signed-amd64/linux-image-5.19.0-trunk-amd64_5.19-1~exp1_amd64.deb
You have to check in the system logs, of course, that there are no new firmware blobs required with the newer kernel.

Hope that helps.

---
[0] https://www.dell.com/community/Inspiron ... -p/8051133
[1] https://www.dell.com/community/Inspiron ... -p/8022828
[2] https://git.kernel.org/pub/scm/linux/ke ... d91fceb613
[3] https://lore.kernel.org/all/20220504161 ... rus.com/T/
[4] https://wiki.debian.org/DebianExperimental
[5] https://packages.debian.org/experimenta ... runk-amd64
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#15 Post by Shamak »

Thank you so much Aki but I'm afraid it didn't work. It worked for a few times but then it didn't work. Just as usual.
Last edited by Shamak on 2022-08-14 17:26, edited 2 times in total.

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#16 Post by Shamak »

On the 5.18.2 kernel I tried adding into /etc/modprobe.d/sound.conf

Code: Select all

options snd-hda-intel model=dell-inspiron-3501
because I read somewhere that fixups for one computer (I don't know if the 3501 has a fixup) may work on another computer with the same chip set. But it didn't work. Worth a try.

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Sound available intermittently from back panel speaker port

#17 Post by Aki »

Hello
Shamak wrote: 2022-08-14 17:14 Thank you so much Aki but I'm afraid it didn't work. It worked for a few times but then it didn't work. Just as usual.
Have you tested a different set of 3.5 mm audio headset with kernel 5.19 ?

Can you describe what happens when audio does not work ? There's same noise ? The audio abruptly interrupts and then restart ? What else ?

Could you generate a log using the AlsaInfo script with kernel 5.19 when the rear audio jack works (you listen to audio in the headset) and another log when it does not work (the headset does not play while the computer is playing: what do you ear ?). It could be interesting to compare them.

It would be interesting to view the system's journal (kernel 5.19 started with the "debug" parameter) when the rear audio jack works and when it does not work.

[1] https://www.alsa-project.org/wiki/AlsaInfo
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#18 Post by Shamak »

Aki wrote: 2022-08-14 18:31 Hello
Shamak wrote: 2022-08-14 17:14 Thank you so much Aki but I'm afraid it didn't work. It worked for a few times but then it didn't work. Just as usual.
Have you tested a different set of 3.5 mm audio headset with kernel 5.19 ?
I have with a pair of earbuds different than the speakers I usually use. Same result. It started off working with the Gnome speaker test several times. But then it didn't work. There was an occasional popping sound when using the earbuds which happened sometimes when I wasn't playing or testing sound. A couple of times I got this at the beginning of pressing the gnome test button (which just says "front right" or "front left") but generally not. This popping sound doesn't happen with the speakers.
Can you describe what happens when audio does not work ? There's same noise ? The audio abruptly interrupts and then restart ? What else ?
There's no noise at all. If I play a video and there's sound then the sound doesn't stop or cut out. If I play a video and there's no sound then the sound doesn't come on as long as I'm playing the video. It stays silent. It doesn't cut in and out while paying a video.

If I'm testing with the Gnome speaker test button then there's no discernible pattern. Sometimes it works and sometimes it doesn't. I can't make it work or not work. Sometimes it works for a while and sometimes it doesn't (repeatedly pressing the button). Sometimes when repeatedly pressing the button it works for a long time and sometimes it doesn't work for a long time. In these cases I can sometimes get it to switch if I reboot or suspend and then wake from sleep but not always.

I have tried using

Code: Select all

$ aplay /usr/share/sounds/alsa/Front_Center.wav
before on the 5.18 kernel and got the same random behavior.
Could you generate a log using the AlsaInfo script with kernel 5.19 when the rear audio jack works (you listen to audio in the headset) and another log when it does not work (the headset does not play while the computer is playing: what do you ear ?). It could be interesting to compare them.
Working: http://alsa-project.org/db/?f=534c28268 ... 0825207bed

Not working: http://alsa-project.org/db/?f=8f13d49c4 ... a488c10244

When it's not working I hear nothing at all. Complete silence.
It would be interesting to view the system's journal (kernel 5.19 started with the "debug" parameter) when the rear audio jack works and when it does not work.
To be sure I did it right I edited the file /etc/default/grub and added "debug" to the line

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet debug"
Then ran

Code: Select all

$ sudo update-grub
Then rebooted.

These are 5 minutes of journal logs. Hope that's enough.

Working:

Code: Select all

$ sudo journalctl --since "2022-08-14 15:00:00" --until "2022-08-14 15:05:00"
[sudo] password for donald: 
-- Journal begins at Fri 2022-08-05 08:43:50 PDT, ends at Sun 2022-08-14 15:05:58 PDT. --
Aug 14 15:01:28 donald-Inspiron-3910 systemd[1]: systemd-logind.service: Got notification message from PID 559 (WATCHDOG=1)
Aug 14 15:01:28 donald-Inspiron-3910 systemd[1]: systemd-journald.service: Got notification message from PID 347 (WATCHDOG=1)
Aug 14 15:01:36 donald-Inspiron-3910 wpa_supplicant[561]: wlp0s20f3: Reject scan trigger since one is already pending
Aug 14 15:01:38 donald-Inspiron-3910 systemd[1]: systemd-udevd.service: Got notification message from PID 372 (WATCHDOG=1)
Aug 14 15:01:38 donald-Inspiron-3910 systemd[1]: systemd-timesyncd.service: Got notification message from PID 532 (WATCHDOG=1)
Aug 14 15:02:38 donald-Inspiron-3910 systemd[1]: systemd-journald.service: Got notification message from PID 347 (WATCHDOG=1)
Aug 14 15:03:38 donald-Inspiron-3910 systemd[1]: systemd-logind.service: Got notification message from PID 559 (WATCHDOG=1)
Aug 14 15:03:38 donald-Inspiron-3910 systemd[1]: systemd-udevd.service: Got notification message from PID 372 (WATCHDOG=1)
Aug 14 15:03:38 donald-Inspiron-3910 systemd[1]: systemd-timesyncd.service: Got notification message from PID 532 (WATCHDOG=1)
Aug 14 15:04:38 donald-Inspiron-3910 systemd[1]: systemd-journald.service: Got notification message from PID 347 (WATCHDOG=1)
Not working:

Code: Select all

$ sudo journalctl --since "2022-08-14 14:50:00" --until "2022-08-14 14:55:00"
[sudo] password for donald: 
-- Journal begins at Fri 2022-08-05 08:43:50 PDT, ends at Sun 2022-08-14 14:55:46 PDT. --
Aug 14 14:50:07 donald-Inspiron-3910 wpa_supplicant[561]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-60 noise=9999 txrate=650000
Aug 14 14:50:15 donald-Inspiron-3910 wpa_supplicant[561]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-60 noise=9999 txrate=650000
Aug 14 14:50:38 donald-Inspiron-3910 systemd[1]: systemd-journald.service: Got notification message from PID 347 (WATCHDOG=1)
Aug 14 14:50:38 donald-Inspiron-3910 systemd[1]: systemd-timesyncd.service: Got notification message from PID 532 (WATCHDOG=1)
Aug 14 14:50:38 donald-Inspiron-3910 systemd[1]: systemd-logind.service: Got notification message from PID 559 (WATCHDOG=1)
Aug 14 14:51:38 donald-Inspiron-3910 systemd[1]: systemd-udevd.service: Got notification message from PID 372 (WATCHDOG=1)
Aug 14 14:51:41 donald-Inspiron-3910 kernel: wlp0s20f3: AP has invalid WMM params (AIFSN=1 for ACI 2), will use 2
Aug 14 14:51:41 donald-Inspiron-3910 kernel: wlp0s20f3: AP has invalid WMM params (AIFSN=1 for ACI 3), will use 2
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]: Sent NTP request to 38.229.54.9:123 (0.debian.pool.ntp.org).
Aug 14 14:51:53 donald-Inspiron-3910 systemd[1]: systemd-timesyncd.service: Got notification message from PID 532 (WATCHDOG=1)
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]: NTP response:
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   leap         : 0
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   version      : 4
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   mode         : 4
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   stratum      : 2
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   precision    : 0.000002 sec (-19)
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   root distance: 0.011642 sec
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   reference    : n/a
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   origin       : 1660513913.160
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   receive      : 1660513913.285
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   transmit     : 1660513913.285
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   dest         : 1660513913.335
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   offset       : +0.037 sec
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   delay        : +0.174 sec
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   packet count : 9
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   jitter       : 0.204
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   poll interval: 1024
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   adjust (slew): +0.037 sec
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   status       : 8257 unsync
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   time now     : 1660513913.335
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   constant     : 6
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   offset       : +0.037 sec
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]:   freq offset  : -1325424 (-20 ppm)
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]: interval/delta/delay/jitter/drift 1024s/+0.037s/0.174s/0.204s/-20ppm
Aug 14 14:51:53 donald-Inspiron-3910 systemd-timesyncd[532]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/timesync1 interface=org.freedesktop.DBus.Pro>
Aug 14 14:51:59 donald-Inspiron-3910 wpa_supplicant[561]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-58 noise=9999 txrate=650000
Aug 14 14:51:59 donald-Inspiron-3910 systemd[1]: systemd-journald.service: Got notification message from PID 347 (WATCHDOG=1)
Aug 14 14:52:11 donald-Inspiron-3910 wpa_supplicant[561]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-58 noise=9999 txrate=650000
Aug 14 14:52:38 donald-Inspiron-3910 systemd[1]: systemd-logind.service: Got notification message from PID 559 (WATCHDOG=1)
Aug 14 14:53:38 donald-Inspiron-3910 systemd[1]: systemd-journald.service: Got notification message from PID 347 (WATCHDOG=1)
Aug 14 14:53:38 donald-Inspiron-3910 systemd[1]: systemd-udevd.service: Got notification message from PID 372 (WATCHDOG=1)
Aug 14 14:53:38 donald-Inspiron-3910 systemd[1]: systemd-timesyncd.service: Got notification message from PID 532 (WATCHDOG=1)
Aug 14 14:53:53 donald-Inspiron-3910 kernel: wlp0s20f3: AP has invalid WMM params (AIFSN=1 for ACI 2), will use 2
Aug 14 14:53:53 donald-Inspiron-3910 kernel: wlp0s20f3: AP has invalid WMM params (AIFSN=1 for ACI 3), will use 2
Aug 14 14:54:38 donald-Inspiron-3910 systemd[1]: systemd-logind.service: Got notification message from PID 559 (WATCHDOG=1)

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: Sound available intermittently from back panel speaker port

#19 Post by Aki »

Hello,

The system's journal doesn't show relevant information in the 5 minutes reported.

The two logs generated by alsa-info.sh script don't show noteworthy differences in the comparison between working and not working audio: I suppose the cause of the malfunction was active since the first log.

On the contrary, both logs show negative or zero levels for some audio controls: "Master" is -10, "Headphone" is -63 and "Line Out" is 0:

Code: Select all

[..]
!!-------Mixer controls for card PCH
Card hw:0 'PCH'/'HDA Intel PCH at 0x6003230000 irq 176'
  Mixer name	: 'Cirrus Logic CS8409/CS42L42'
  Components	: 'HDA:10138409,10280ad3,00100100 HDA:80862815,80860101,00100000'
  Controls      : 95
  Simple ctrls  : 18
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback -63 - 0
  Mono: Playback -10 [84%]  <==== *NOTE*
Simple mixer control 'Headphone',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback -63 - 0
  Mono:
  Front Left: Playback -63 [0%] [-99999.99dB]  <==== *NOTE*
  Front Right: Playback -63 [0%] [-99999.99dB]  <==== *NOTE*
[..]
Simple mixer control 'Line Out',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback -63 - 0
  Mono:
  Front Left: Playback 0 [100%] [0.00dB]  <==== *NOTE*
  Front Right: Playback 0 [100%] [0.00dB]  <==== *NOTE*
[..]
	control.4 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 -63  <==== *NOTE*
		value.1 -63  <==== *NOTE*
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '-63 - 0 (step 1)'
			dbmin -9999999
			dbmax 0
			dbvalue.0 -9999999
			dbvalue.1 -9999999
[..]
	control.6 {
		iface MIXER
		name 'Line Out Playback Volume'
		value.0 0  <==== *NOTE*
		value.1 0  <==== *NOTE*
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '-63 - 0 (step 1)'
			dbmin -9999999
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.7 {
		iface MIXER
		name 'Master Playback Volume'
		value -10
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '-63 - 0'
		}
	}
[..]			
To my knowledge, audio control levels should be between 0 and 255 (where zero is silenced). This is interesting because these are all the controls potentially involved in the issue you reported; as you can see, their levels are all lower then zero or zero.

I suppose that the rear audio jack interested in the malfunction is the alsa's "Line out" control (see [1]), isn't it ? Are you testing this control ? As you can see, the level of this control is zero in the alsa-info's log.

Therefore, it would be interesting to understand why those control levels are out of 0-255 range or zero. I've found this [2], but I don't know if it is pertinent to your specific.

In the end, the log shows two sound severs (both pulseaudio and pipewire) are installed and running:

Code: Select all

!!Sound Servers on this system
!!----------------------------
PipeWire:
      Installed - Yes (/usr/bin/pipewire)
      Running - Yes

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - Yes
I'm not an expert of sound servers, but I would test the system with only PulseAudio : therefore, it could be worth to uninstall PipeWire if it is not strictly required (for example, I uninstalled pipewire in my system).

I suggest to perform all the tests using the 5.19 kernel, anyway.

----
[1] https://www.dell.com/support/manuals/it ... lang=en-us
[2] https://www.freedesktop.org/wiki/Softwa ... A/Decibel/
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Shamak
Posts: 147
Joined: 2018-04-14 00:33
Has thanked: 11 times
Been thanked: 8 times

Re: Sound available intermittently from back panel speaker port

#20 Post by Shamak »

Ok thanks @Aki! (Sorry, there seems to be no "thank" button in your post.)

Yes, I am using Line Out according to Pavucontrol and Gnome sound settings. And Line Out does correspond to the rear audio jack you pointed out in your footnote.

Post Reply