Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound gone after upgrade [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Tue Jan 15, 2019 8:34 pm    Post subject: Sound gone after upgrade [SOLVED] Reply with quote

For the first time in years, I'm having sound problems after emerge @world.

I have confirmed:
  • The speakers are plugged in, powered and actually work.
  • Confirmed the kernel modules which have worked for years are still present:
    Code:
    # find /lib/modules/`uname -r` | grep snd
    /lib/modules/4.19.14-gentoo/kernel/sound/core/oss/snd-mixer-oss.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/oss/snd-pcm-oss.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/seq/oss/snd-seq-oss.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/seq/snd-seq-dummy.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/seq/snd-seq-midi-event.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/seq/snd-seq.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/snd-hrtimer.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/snd-pcm.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/snd-seq-device.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/snd-timer.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/core/snd.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/hda/snd-hda-core.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/pci/ac97/snd-ac97-codec.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/pci/hda/snd-hda-codec-generic.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/pci/hda/snd-hda-codec-hdmi.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/pci/hda/snd-hda-codec-realtek.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/pci/hda/snd-hda-codec.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/pci/hda/snd-hda-intel.ko
    /lib/modules/4.19.14-gentoo/kernel/sound/pci/snd-intel8x0.ko

    # lsmod | sort | grep 'snd'
    snd                    77824  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm
    snd_hda_codec         114688  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
    snd_hda_codec_generic    77824  1 snd_hda_codec_realtek
    snd_hda_codec_hdmi     53248  1
    snd_hda_codec_realtek    90112  1
    snd_hda_core           65536  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
    snd_hda_intel          32768  0
    snd_pcm                98304  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
    snd_timer              32768  1 snd_pcm
    soundcore              16384  1 snd

  • That alsa correctly recognizes that my sound devices exist:
    Code:
    # aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: Generic [HD-Audio Generic], device 1: ALC892 Digital [ALC892 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0

  • That the hardware is still recognized:
    Code:
    # lspci -v | grep -A7 -i "audio"
    00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller
            Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller
            Flags: bus master, fast devsel, latency 0, IRQ 51
            Memory at feb64000 (64-bit, non-prefetchable) [size=16K]
            Capabilities: [48] Vendor Specific Information: Len=08 <?>
            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 <?>
    --
    00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
            Subsystem: Gigabyte Technology Co., Ltd FCH Azalia Controller
            Flags: bus master, slow devsel, latency 32, IRQ 16
            Memory at feb60000 (64-bit, non-prefetchable) [size=16K]
            Capabilities: [50] Power Management version 2
            Kernel driver in use: snd_hda_intel
            Kernel modules: snd_hda_intel

  • That my PCMs are recognized:
    Code:
    # aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    pulse
        PulseAudio Sound Server
    hdmi:CARD=HDMI,DEV=0
        HDA ATI HDMI, HDMI 0
        HDMI Audio Output
    hdmi:CARD=HDMI,DEV=1
        HDA ATI HDMI, HDMI 1
        HDMI Audio Output
    hdmi:CARD=HDMI,DEV=2
        HDA ATI HDMI, HDMI 2
        HDMI Audio Output
    hdmi:CARD=HDMI,DEV=3
        HDA ATI HDMI, HDMI 3
        HDMI Audio Output
    usbstream:CARD=HDMI
        HDA ATI HDMI
        USB Stream Output
    default:CARD=Generic
        HD-Audio Generic, ALC892 Analog
        Default Audio Device
    sysdefault:CARD=Generic
        HD-Audio Generic, ALC892 Analog
        Default Audio Device
    front:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Analog
        Front speakers
    surround21:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Analog
        2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Analog
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Analog
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Analog
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Analog
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Analog
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=Generic,DEV=0
        HD-Audio Generic, ALC892 Digital
        IEC958 (S/PDIF) Digital Audio Output
    usbstream:CARD=Generic
        HD-Audio Generic
        USB Stream Output

In trying to figure out what's up with all that, I've (re)ead the Pulse Audio and ALSA wiki articles.

On the off chance something might help, I've:
  • Rebooted using the prior working kernel - from gentoo-sources-4.19.14 (new) to gentoo-sources-4.18.20 (prior)
  • Downgraded media-lib/alsa-lib, media-sound/alsa-utils and media-plugins/alsa-plugins from the newly run @world 1.1.8 to their 1.1.7 equivalents.
  • Run 'etc-update' afterwards since I got a notice from the downgrade to do so. It updated /etc/modprobe.d/alsaconf
  • And attempted to run 'alsaconf' as suggested in several places as well as by my ancient and feeble memories.

This is what I know so far:
  • During boot, 'pulseaudio' no longer appears to be automatically starting. I'm assuming this may be because it's not finding anything to start.
  • That the utility 'alsaconf' no longer appears to be included with 'alsa-utils' despite the information here.
  • That /etc/modprobe.d/alsa.conf now appears borked. I'm not certain since it's been so long since I've had any reason to look at sound issues, but I'm pretty sure there should be a reference to HDMI sound in there some place. I know such references were moved when running 'etc-update'. I was functioning on autopilot and allowed the update to go through before I made the connection I might not want that.
  • Running 'aplay -l' as a user gets me:
    Code:
    $ aplay -l
    aplay: device_list:272: no soundcards found

  • Naturally, None of the available desktop configuration utilities can do anything either since they don't see any PCMs to work with either.
  • Finally, this is the /etc/modprobe.d/alsa.conf file I was left with after running 'etc-update'.
    Code:
    # Alsa kernel modules' configuration file.

    # ALSA portion
    alias char-major-116 snd
    # OSS/Free portion
    alias char-major-14 soundcore

    ##
    ## IMPORTANT:
    ## You need to customise this section for your specific sound card(s)
    ## and then run `update-modules' command.
    ## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
    ##
    ##  ALSA portion
    ## alias snd-card-0 snd-interwave
    ## alias snd-card-1 snd-ens1371
    ##  OSS/Free portion
    ## alias sound-slot-0 snd-card-0
    ## alias sound-slot-1 snd-card-1
    ##

    # OSS/Free portion - 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
    ##  OSS/Free portion - card #2
    ## alias sound-service-1-0 snd-mixer-oss
    ## alias sound-service-1-3 snd-pcm-oss
    ## alias sound-service-1-12 snd-pcm-oss

    alias /dev/mixer snd-mixer-oss
    alias /dev/dsp snd-pcm-oss
    alias /dev/midi snd-seq-oss

    # Set this to the correct number of cards.
    options snd cards_limit=1

I'm at a bit of a loss here without the alsaconf utility as I don't trust my memory on how to properly configure /etc/modprobe.d/alsa.conf.
I'm open to suggestions on how to fix this! It's tough to watch all my recent anime without sound even though I don't understand Japanese.
_________________
People whom think M$ is mediocre, don't know the half of it.


Last edited by dufeu on Wed Jan 16, 2019 1:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 910
Location: Alaska

PostPosted: Tue Jan 15, 2019 11:38 pm    Post subject: Reply with quote

I've just experienced something similar - though aplay -L shows my soundcards. In dmesg, I do see a list of the HDMI cards but it does say Alsa can't find any cards.. but aplay and alsamixer show them.

I'm using kmix - if I go into the system systems GUI under Audio/video and hit the test on any of my listed cards, I get no sound. However, if I open up Audacity and choose my PCH soundcard, I get sound just fine.
Back to top
View user's profile Send private message
giorgos
n00b
n00b


Joined: 06 Jul 2010
Posts: 8

PostPosted: Wed Jan 16, 2019 8:58 am    Post subject: Reply with quote

I had a similar issue about two weeks ago and I had to downgrade udev to the previous version to make pulseaudio detect the sound card.
With the latest udev, pulseaudio did not detect any sound card and it reverted to "dummy output" for me.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Wed Jan 16, 2019 1:21 pm    Post subject: Reply with quote

giorgos wrote:
I had a similar issue about two weeks ago and I had to downgrade udev to the previous version to make pulseaudio detect the sound card.
With the latest udev, pulseaudio did not detect any sound card and it reverted to "dummy output" for me.

Nice tip! And it works!

Turns out there's also a reported gentoo bug 674816 and the issue is apparently reported upstream. It never occurred to me to check 'udev', Just the 'usual suspects'.

Thank again!
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
giorgos
n00b
n00b


Joined: 06 Jul 2010
Posts: 8

PostPosted: Wed Jan 16, 2019 1:29 pm    Post subject: Reply with quote

dufeu wrote:
giorgos wrote:
I had a similar issue about two weeks ago and I had to downgrade udev to the previous version to make pulseaudio detect the sound card.
With the latest udev, pulseaudio did not detect any sound card and it reverted to "dummy output" for me.

Nice tip! And it works!

Turns out there's also a reported gentoo bug 674816 and the issue is apparently reported upstream. It never occurred to me to check 'udev', Just the 'usual suspects'.

Thank again!

Glad it helped you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum