Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AMD B350 no sound
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 201
Location: Bavaria

PostPosted: Mon Sep 17, 2018 6:37 pm    Post subject: AMD B350 no sound Reply with quote

I have got two fresh installs on 2 different AMD boards, both with no sound.
First one is an Asrock ABM350-HDV, where I spent a lot of time to try to get sound working, without success. I thought maybe audio HW was broken (gentoo-only machine, no windows was tested).
Second is an ASUS Prime B350M-A, with the same effect. But I tried to boot windows on this board and audio worked, so HW and speakers should be ok.
Monitor (w/o speakers) is connected via DVI, and speakers are connected to mainboard analog audio output jacks (no HDMI).
There is a nvidia graphics card with HDMI present in both systems, so I expected 2 sound cards to appear which seems to be the case.
Code:

$ aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: NVidia [HDA NVidia], Gerät 3: Generic Digital [Generic Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: Generic [HD-Audio Generic], Gerät 0: Generic Analog [Generic Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: Generic [HD-Audio Generic], Gerät 1: Generic Digital [Generic Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

I can also see the different output devices:
Code:

$ aplay -L     
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, Generic Digital
    HDMI Audio Output
default:CARD=Generic
    HD-Audio Generic, Generic Analog
    Default Audio Device
sysdefault:CARD=Generic
    HD-Audio Generic, Generic Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Analog
    Front speakers
surround21:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
    HD-Audio Generic, Generic Digital
    IEC958 (S/PDIF) Digital Audio Output

However speaker-test does not work (I tried different output stream and channel combinations, but always with the same result):
Code:

$ speaker-test

speaker-test 1.1.2

Wiedergabe-Gerät ist default
Stream-Parameter sind 48000 Hz, S16_LE, 1 Kanäle
Verwende 16 Oktaven rosa Rauschen
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/pcm/pcm_dmix.c:1041:(snd_pcm_dmix_open) unable to open slave
Fehler beim Öffnen des Gerätes: -2, Datei oder Verzeichnis nicht gefunden

Codec is realtzec ALC887, kernel driver is loaded.
Code:
$ cat /proc/asound/card1/codec#0
Codec: Realtek Generic
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0887
Subsystem Id: 0x104386c7
Revision Id: 0x100302
No Modem Function Group found
Default PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
[...]


Any idea what is wrong?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Mon Sep 17, 2018 7:03 pm    Post subject: Reply with quote

tomtom69,

You have two sound cards.

Card 0 is the default.
Code:
Karte 0: NVidia [HDA NVidia], Gerät 3: Generic Digital [Generic Digital]
Thats the HDMI sound on the video card.
To send sound to card 1, you need to tell ALSA to do that.

You can swap sound cards at module load time by passing the index=1,0 module parameter.
If snd_hda_intel is built in, add snd_hda_intel.index=1,0 to the kernel command line in grub.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 201
Location: Bavaria

PostPosted: Mon Sep 17, 2018 7:21 pm    Post subject: Reply with quote

NeddySeagoon,

It works with the kernel parameter! :-)
I saw (wrong) card#0 is default, but the options for output streams just looked like the analog ones, so they misleaded me as well as the hints for ~/.asoundrc in https://wiki.gentoo.org/wiki/ALSA which also didn't work.
Oh man ... this one took me about 6 hours (=shameful for a gentoo user for >12 years now).
Thank you very much. The great support here is one of the biggest advantages of gentoo.

tom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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