[Kernel-packages] [Bug 1920707] Re: AMD A4-5300: no sound

2021-03-23 Thread Ken Sharp
I started running a bisect but it takes hours for one step. It's not a
realistic option.

Adding snd_hda_intel to /etc/modules doesn't work, so a crappy workaround is to 
add
@reboot /sbin/modprobe snd_hda_intel
to root's crontab, until I can be bothered to come back to this, but I just 
don't have the time right now.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1920707

Title:
  AMD A4-5300: no sound

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Starting with linux-4.15.0-137-generic, there is no sound at all on a
  system with an AMD A4-5300.

  From a working kernel:

  Mar 22 05:00:29 richie kernel: [   33.029621] snd_hda_intel :00:01.1: 
Force to non-snoop mode
  [...]
  Mar 22 05:00:29 richie kernel: [   33.589291] input: HDA ATI HDMI 
HDMI/DP,pcm=3 as /devices/pci:00/:00:01.1/sound/card0/input5
  Mar 22 05:00:29 richie kernel: [   33.601773] snd_hda_codec_realtek 
hdaudioC1D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) 
type:line
  Mar 22 05:00:29 richie kernel: [   33.601776] snd_hda_codec_realtek 
hdaudioC1D0:speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
  Mar 22 05:00:29 richie kernel: [   33.601779] snd_hda_codec_realtek 
hdaudioC1D0:hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
  Mar 22 05:00:29 richie kernel: [   33.601781] snd_hda_codec_realtek 
hdaudioC1D0:mono: mono_out=0x0
  Mar 22 05:00:29 richie kernel: [   33.601782] snd_hda_codec_realtek 
hdaudioC1D0:inputs:
  Mar 22 05:00:29 richie kernel: [   33.601784] snd_hda_codec_realtek 
hdaudioC1D0:  Front Mic=0x19
  Mar 22 05:00:29 richie kernel: [   33.601786] snd_hda_codec_realtek 
hdaudioC1D0:  Rear Mic=0x18
  Mar 22 05:00:29 richie kernel: [   33.601787] snd_hda_codec_realtek 
hdaudioC1D0:  Line=0x1a
  Mar 22 05:00:29 richie kernel: [   33.614365] input: HD-Audio Generic Front 
Mic as /devices/pci:00/:00:14.2/sound/card1/input6
  Mar 22 05:00:29 richie kernel: [   33.614426] input: HD-Audio Generic Rear 
Mic as /devices/pci:00/:00:14.2/sound/card1/input7
  Mar 22 05:00:29 richie kernel: [   33.614481] input: HD-Audio Generic Line as 
/devices/pci:00/:00:14.2/sound/card1/input8
  Mar 22 05:00:29 richie kernel: [   33.614536] input: HD-Audio Generic Line 
Out as /devices/pci:00/:00:14.2/sound/card1/input9
  Mar 22 05:00:29 richie kernel: [   33.614597] input: HD-Audio Generic Front 
Headphone as /devices/pci:00/:00:14.2/sound/card1/input10

  $ lsmod | grep -F snd
  snd81920  21 
snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
  snd_hda_codec 126976  4 
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
  snd_hda_codec_generic73728  1 snd_hda_codec_realtek
  snd_hda_codec_hdmi 49152  1
  snd_hda_codec_realtek   106496  1
  snd_hda_core   81920  5 
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
  snd_hda_intel  45056  5
  snd_hwdep  20480  1 snd_hda_codec
  snd_pcm98304  4 
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
  snd_rawmidi32768  1 snd_seq_midi
  snd_seq65536  2 snd_seq_midi,snd_seq_midi_event
  snd_seq_device 16384  3 snd_seq,snd_seq_midi,snd_rawmidi
  snd_seq_midi   16384  0
  snd_seq_midi_event 16384  1 snd_seq_midi
  snd_timer  32768  2 snd_seq,snd_pcm

  On a broken kernel, dmesg contains no information about the snd_*
  modules, and lsmod shows that none have loaded.

  In both cases lspci -v gives the same details:

  00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI 
Audio Controller
   Subsystem: Micro-Star International Co., Ltd. [MSI] Trinity HDMI Audio 
Controller
   Flags: bus master, fast devsel, latency 0, IRQ 5
   Memory at feb44000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 
   Kernel modules: snd_hda_intel

  `sudo modprobe snd_hda_intel` loads all the correct modules and brings
  sound back.

  For some reason the newer kernels aren't loading snd_hda_intel (or
  something related) when it should be.

  Will update after testing mainline kernels, etc.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-4.15.0-139-generic 4.15.0-139.143
  ProcVersionSignature: Ubuntu 4.15.0-139.143-generic 4.15.18
  Uname: Linux 4.15.0-139-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.23
  Architecture: amd64
  Date: Mon Mar 22 04:42:26 2021
  HibernationDevice: RESUME=UUID=5d6634dd-fb1b-49f6-b17a-4197a3814382
 

[Kernel-packages] [Bug 1920707] Re: AMD A4-5300: no sound

2021-03-22 Thread Ken Sharp
Tested 5.12.0-051200rc4-generic and the problem still occurs.

Could this be an issue in another package? Would udev be involved?

Otherwise the next step is for me to file upstream.

** Tags added: kernel-bug-exists-upstream kernel-sound-hdmi

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1920707

Title:
  AMD A4-5300: no sound

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Starting with linux-4.15.0-137-generic, there is no sound at all on a
  system with an AMD A4-5300.

  From a working kernel:

  Mar 22 05:00:29 richie kernel: [   33.029621] snd_hda_intel :00:01.1: 
Force to non-snoop mode
  [...]
  Mar 22 05:00:29 richie kernel: [   33.589291] input: HDA ATI HDMI 
HDMI/DP,pcm=3 as /devices/pci:00/:00:01.1/sound/card0/input5
  Mar 22 05:00:29 richie kernel: [   33.601773] snd_hda_codec_realtek 
hdaudioC1D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) 
type:line
  Mar 22 05:00:29 richie kernel: [   33.601776] snd_hda_codec_realtek 
hdaudioC1D0:speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
  Mar 22 05:00:29 richie kernel: [   33.601779] snd_hda_codec_realtek 
hdaudioC1D0:hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
  Mar 22 05:00:29 richie kernel: [   33.601781] snd_hda_codec_realtek 
hdaudioC1D0:mono: mono_out=0x0
  Mar 22 05:00:29 richie kernel: [   33.601782] snd_hda_codec_realtek 
hdaudioC1D0:inputs:
  Mar 22 05:00:29 richie kernel: [   33.601784] snd_hda_codec_realtek 
hdaudioC1D0:  Front Mic=0x19
  Mar 22 05:00:29 richie kernel: [   33.601786] snd_hda_codec_realtek 
hdaudioC1D0:  Rear Mic=0x18
  Mar 22 05:00:29 richie kernel: [   33.601787] snd_hda_codec_realtek 
hdaudioC1D0:  Line=0x1a
  Mar 22 05:00:29 richie kernel: [   33.614365] input: HD-Audio Generic Front 
Mic as /devices/pci:00/:00:14.2/sound/card1/input6
  Mar 22 05:00:29 richie kernel: [   33.614426] input: HD-Audio Generic Rear 
Mic as /devices/pci:00/:00:14.2/sound/card1/input7
  Mar 22 05:00:29 richie kernel: [   33.614481] input: HD-Audio Generic Line as 
/devices/pci:00/:00:14.2/sound/card1/input8
  Mar 22 05:00:29 richie kernel: [   33.614536] input: HD-Audio Generic Line 
Out as /devices/pci:00/:00:14.2/sound/card1/input9
  Mar 22 05:00:29 richie kernel: [   33.614597] input: HD-Audio Generic Front 
Headphone as /devices/pci:00/:00:14.2/sound/card1/input10

  $ lsmod | grep -F snd
  snd81920  21 
snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
  snd_hda_codec 126976  4 
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
  snd_hda_codec_generic73728  1 snd_hda_codec_realtek
  snd_hda_codec_hdmi 49152  1
  snd_hda_codec_realtek   106496  1
  snd_hda_core   81920  5 
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
  snd_hda_intel  45056  5
  snd_hwdep  20480  1 snd_hda_codec
  snd_pcm98304  4 
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
  snd_rawmidi32768  1 snd_seq_midi
  snd_seq65536  2 snd_seq_midi,snd_seq_midi_event
  snd_seq_device 16384  3 snd_seq,snd_seq_midi,snd_rawmidi
  snd_seq_midi   16384  0
  snd_seq_midi_event 16384  1 snd_seq_midi
  snd_timer  32768  2 snd_seq,snd_pcm

  On a broken kernel, dmesg contains no information about the snd_*
  modules, and lsmod shows that none have loaded.

  In both cases lspci -v gives the same details:

  00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI 
Audio Controller
   Subsystem: Micro-Star International Co., Ltd. [MSI] Trinity HDMI Audio 
Controller
   Flags: bus master, fast devsel, latency 0, IRQ 5
   Memory at feb44000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 
   Kernel modules: snd_hda_intel

  `sudo modprobe snd_hda_intel` loads all the correct modules and brings
  sound back.

  For some reason the newer kernels aren't loading snd_hda_intel (or
  something related) when it should be.

  Will update after testing mainline kernels, etc.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-4.15.0-139-generic 4.15.0-139.143
  ProcVersionSignature: Ubuntu 4.15.0-139.143-generic 4.15.18
  Uname: Linux 4.15.0-139-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.23
  Architecture: amd64
  Date: Mon Mar 22 04:42:26 2021
  HibernationDevice: RESUME=UUID=5d6634dd-fb1b-49f6-b17a-4197a3814382
  InstallationDate: Installed on 2015-11-28 (1940 days ago)