Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA via HDMI + Radeon 6850 is NOT working
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
noobly
n00b
n00b


Joined: 13 Feb 2018
Posts: 5

PostPosted: Tue Feb 13, 2018 8:13 pm    Post subject: ALSA via HDMI + Radeon 6850 is NOT working Reply with quote

I want to preface this by saying I'm a very new user to Gentoo, and a GNU/Linux noob in general, so this could all be caused by a glaring oversight on my part. I'll try to lay out my methods as plainly as possible, so that you might be able to easily give me an avenue to explore. I'm simply out of ideas, and any input would be absolutely stellar. This is a problem I've been battling on and off for several days now.


Outline of Problem(s):

No sound (I'm trying to get it to work via HDMI with a Radeon 6850 card)

The speaker-test does not work. "Playback error: -2,No such file or directory"

My card shows up as the default in AlsaMixer, but there are no volume bars. Just a single square with "00" in the middle of it, and a brackets that read <S/PDIF>.

Things I've tried: (this list may not be all inclusive)

I've unmuted alsamixer, confirmed my usergroup included "audio" (I've been doing most my work in root though, so that shouldn't matter too much).

edited /etc/asound.conf to make HDMI the default:

Code:
pcm.!default {
  type hw
  card 1
  device 3
}

ctl.!default {
  type hw
  card 1
}


I also edited ~/.asoundrc to look exactly the same (and tried removing 'device 3' from both, but it had no effect). I have followed https://wiki.gentoo.org/wiki/ALSA#Kernel , https://wiki.gentoo.org/wiki/Radeon , with no luck, among many other random forums posts and guides.

I have tried booting into both the systemrescuecd and the LiveDVD to check if sound worked on there, and it did not. I enabled everything in PCI modules, just in case. Similarly, I enabled everything in HD audio and went into DRM and enabled both of those two options.

Things I have not tried:

I have not delved into /etc/modprobe.d/alsa.conf much, as Gentoo's documentation is sparse for that and the helpful files are not where my alsa.conf said they would be, but I will likely be spending a portion of today going over that. I am now reading the ALSA wiki, seeing what I can gather from there.

I'm also worried that this could be a simple problem of not having the right modules loaded or built in, would I be foolish to save a copy of my kernel and just run something like localyesconfig or some other very broad kernel build option? I can always prune it later, I would just like my sound working ASAP.

Potentially Useful Information: (don't hesitate to ask for more!)

aplay output:
Code:

# aplay --list-devices | grep -i HDMI
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]


lsmod | grep -i snd output:
Code:

snd_hda_codec_realtek    57155  1
snd_hda_codec_generic    54730  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     34657  1
snd_hda_intel          21811  1
snd_hda_codec          85380  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           47952  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek


lspci -k | grep -i hdmi
Code:
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Barts HDMI Audio [Radeon HD 6790/6850/6870 / 7720 OEM]



cat /proc/modules | grep -i
Code:
snd_hda_codec_realtek 57155 1 - Live 0xffffffffa010d000
snd_hda_codec_generic 54730 1 snd_hda_codec_realtek, Live 0xffffffffa00e5000
snd_hda_codec_hdmi 34657 1 - Live 0xffffffffa00d6000
snd_hda_intel 21811 1 - Live 0xffffffffa00a6000
snd_hda_codec 85380 4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel, Live 0xffffffffa004c000
snd_hda_core 47952 5 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec, Live 0xffffffffa0000000


Last edited by noobly on Wed Feb 14, 2018 8:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Feb 13, 2018 8:29 pm    Post subject: Reply with quote

noobly,

Welcome to Gentoo.

Sound can be a challenge. It gets interesting when you have more than one sound card.
Your lsmod shows
Code:
  snd_hda_intel          21811  1
Which is good. That means that particular sound driver is a kernel module.

Lets start the the beginning.
Show us the output of
Code:
lspci
that will let us count your lspci sound cards.

Show us the output of
Code:
ls /dev/snd -l

Notice that the sound cards are only available to root and members of the audio group.
Is your normal user in the audio group?

What is the output of groups?

Run
Code:
alsamixer -c0
if all is well, you will only see mute switches ... no sliders.
If you have mute switches, unmute them. [MM] is muted [OO] is open.
HDMI is a digital output system and its hard to do volume control in the digital domain.
Try
Code:
alsamixer -c1
keep incrementing the number, thats the card number, until you run out of cards.
_________________
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
noobly
n00b
n00b


Joined: 13 Feb 2018
Posts: 5

PostPosted: Tue Feb 13, 2018 8:44 pm    Post subject: Reply with quote

Quote:
Lets start the the beginning.


Sounds good to me! First and foremost, thank you very much for your time and consideration. Your previous comments in other threads have already helped me a great deal.

Output of lspci:
Code:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1c.6 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z68 Express Chipset Family LPC Controller (rev 05)
00:1f.2 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 4 port SATA IDE Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
00:1f.5 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 2 port SATA IDE Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barts PRO [Radeon HD 6850]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Barts HDMI Audio [Radeon HD 6790/6850/6870 / 7720 OEM]
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller (rev 10)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)



Output of ls /dev/snd -l:
Code:
total 0
drwxr-xr-x 2 root root       80 Feb 13 03:50 by-path
crw-rw---- 1 root audio 116,  0 Feb 13 03:50 controlC0
crw-rw---- 1 root audio 116, 32 Feb 13 03:50 controlC1
crw-rw---- 1 root audio 116,  6 Feb 13 03:50 hwC0D2
crw-rw---- 1 root audio 116, 36 Feb 13 03:50 hwC1D0
crw-rw---- 1 root audio 116, 24 Feb 13 03:50 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Feb 13 03:50 pcmC0D0p
crw-rw---- 1 root audio 116, 17 Feb 13 03:50 pcmC0D1p
crw-rw---- 1 root audio 116, 26 Feb 13 03:50 pcmC0D2c
crw-rw---- 1 root audio 116, 51 Feb 13 03:50 pcmC1D3p
crw-rw---- 1 root audio 116, 33 Feb 13 03:50 timer


Output of groups (I've got a good feeling about this one!):
Code:
root bin daemon sys adm disk wheel floppy tape video


Prompted by how this was an unexpected output, I went into /etc/group and saw that only 'larry' (my normal user) was in the audio group, I've since added 'root' and saved, but this didn't cause 'audio' to show up after the command 'groups' was executed.

Output of alsamixer -c0:
This brings me to the HDA Intel PCH soundcard, of which there are many sliders.

Output of alsamixer -c1:
This brings me to my no sliders, but I am able to muteswitch it (though the volume stays at '00'). I did not know this wasn't supposed to have sliders. It may be worth noting that this one is in fact the default (says my nooby self, I'm 80% sure it is though, as when I click 'default' in alsamixer it brings me here).

Output of alsamixer -c2:
invalid card index: 2 (it seems I have hit the maximum as you mentioned).


Last edited by noobly on Tue Feb 13, 2018 9:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Feb 13, 2018 9:03 pm    Post subject: Reply with quote

noobly,

You do indeed have two sound cards.
Code:
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Barts HDMI Audio [Radeon HD 6790/6850/6870 / 7720 OEM]

Sound cards are enumerated in PCI bus:function order, so your analogue sound card is -c0 (with many sliders), your HDMI card is -c1

Normally card 0 is the default but you seem to have fixed that. Good. That's normally the hard bit.

groups wrote:
Output of groups (I've got a good feeling about this one!):

Code:
root bin daemon sys adm disk wheel floppy tape video   


Let me say that seems wrong on several counts.
a) There is no audio group listed, so that user cannot use the sound cards.
b) Its a very bad thing to be in the root group.
Bad things will happen when you mistype a command. Its just a case of when.
Lets look at one sound card entry.
Code:
crw-rw---- 1 root audio 116, 32 Feb 13 03:50 controlC1

The leading c means its a character device. Thats fine.
The first rw- means that the owner can read and write to it but not eXecute it.
The second rw- means that the group can read and write to it but not eXecute it.
The last --- means that everyone else has no access.
The owner is root, the group is audio.

Add yourself to the audio group and log out and back in to pick up the new group membership.
_________________
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
noobly
n00b
n00b


Joined: 13 Feb 2018
Posts: 5

PostPosted: Tue Feb 13, 2018 9:14 pm    Post subject: Reply with quote

Quote:
Let me say that seems wrong on several counts.
a) There is no audio group listed, so that user cannot use the sound cards.
b) Its a very bad thing to be in the root group.
Bad things will happen when you mistype a command. Its just a case of when.


I should have mentioned I was in root when I ran the groups command.. Sorry! Ran as 'larry', my normal user, the results are:

Code:
 wheel audio users larry


After logging back in to root, the output of the groups command is now:

Code:
 root bin daemon sys adm disk wheel floppy audio tape video


The output of ls /dev/snd -l seems relatively unchanged (no eXecute), in case it helps:
Code:
total 0
drwxr-xr-x 2 root root       80 Feb 13 03:50 by-path
crw-rw---- 1 root audio 116,  0 Feb 13 03:50 controlC0
crw-rw---- 1 root audio 116, 32 Feb 13 03:50 controlC1
crw-rw---- 1 root audio 116,  6 Feb 13 03:50 hwC0D2
crw-rw---- 1 root audio 116, 36 Feb 13 03:50 hwC1D0
crw-rw---- 1 root audio 116, 24 Feb 13 03:50 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Feb 13 03:50 pcmC0D0p
crw-rw---- 1 root audio 116, 17 Feb 13 03:50 pcmC0D1p
crw-rw---- 1 root audio 116, 26 Feb 13 03:50 pcmC0D2c
crw-rw---- 1 root audio 116, 51 Feb 13 03:50 pcmC1D3p
crw-rw---- 1 root audio 116, 33 Feb 13 03:50 timer


So my current line of reasoning, and what I believe is being implied, is that I want to turn
Code:
crw-rw---- 1 root audio 116, 32 Feb 13 03:50 controlC1

Into something more like 'crwxrwx---'?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Feb 13, 2018 9:29 pm    Post subject: Reply with quote

noobly,

I thought your groups command was for your user, not root.

Your audio device list is correct. eXecute is for programs and scripts that can be run as commands.
Your normal user is a member of the audio group, so is allowed to read and write to the sound devices.

As an aside, your normal user should be in the video group, or there will be no video acceleration for that user.
That means that some graphics programs won't run at all and others will be very slow.

What command have you been using with speaker-test ?
_________________
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
noobly
n00b
n00b


Joined: 13 Feb 2018
Posts: 5

PostPosted: Tue Feb 13, 2018 9:36 pm    Post subject: Reply with quote

Quote:
As an aside, your normal user should be in the video group, or there will be no video acceleration for that user.


Thanks, just added myself to video.

Quote:
What command have you been using with speaker-test ?


I have, perhaps naively, just been typing "speaker-test". No options or anything else, but I'm looking into this now.

Thank you for the quick replies!
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