Bug 6368

Summary: no sound with snd_hda_intel mageia2
Product: Mageia Reporter: Ciprian Stoica <ciprian>
Component: RPM PackagesAssignee: Colin Guthrie <mageia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: mageia
Version: 2   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: pacmd ls output.

Description Ciprian Stoica 2012-06-07 09:51:37 CEST
Hi guys,

I get no sound in Mageia 2.
This happens with a fresh install, livecd or upgrade from Mageia 1.

I haven´t found anything in other bugs that could fix my problem.
I don´t have a dummy sound card detected and I applied the fix with .rpmnew files in /etc/pam.d

Everything seems to be in order, my sound card is detected just like in Mageia 1, I can start audio files, but I can´t hear anything from the speakers. I played around in alsamixer, moving the sliders up and down and still no change, the sound is not muted or anything, but I can´t get sound from any application (web browser, system sounds, rhytmbox, totem).
In pavucontrol the slider shows the volume just like it plays the music, and my applications are being detected as sound applications.

This is the output to some usual commands.

# cat /proc/asound/cards
 0 [VT82xx         ]: HDA-Intel - HDA VIA VT82xx
                      HDA VIA VT82xx at 0xfeafc000 irq 66

# ls -l /dev/snd/*
crw-rw----+ 1 root audio 116,  6 Jun  7 10:36 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  5 Jun  7 10:36 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116,  4 Jun  7 10:40 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116,  3 Jun  7 10:38 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116,  2 Jun  7 10:37 /dev/snd/pcmC0D1p
crw-rw----  1 root audio 116,  1 Jun  7 10:36 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Jun  7 10:36 /dev/snd/timer

# getfacl /dev/snd/*
getfacl: Removing leading '/' from absolute path names
# file: dev/snd/by-path
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

# file: dev/snd/controlC0
# owner: root
# group: audio
user::rw-
user:ciprian:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/hwC0D0
# owner: root
# group: audio
user::rw-
user:ciprian:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC0D0c
# owner: root
# group: audio
user::rw-
user:ciprian:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC0D0p
# owner: root
# group: audio
user::rw-
user:ciprian:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC0D1p
# owner: root
# group: audio
user::rw-
user:ciprian:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/seq
# owner: root
# group: audio
user::rw-
group::rw-
other::---

# file: dev/snd/timer
# owner: root
# group: audio
user::rw-
user:ciprian:rw-
group::rw-
mask::rw-
other::---

Many thanks,
Comment 1 Sander Lepik 2012-06-07 10:01:54 CEST
Colin, seems to be something for you :)

CC: (none) => sander.lepik
Assignee: bugsquad => mageia

Comment 2 Colin Guthrie 2012-06-07 10:23:56 CEST
Yup underlying permissions seem to be OK. Can you download and run: http://www.alsa-project.org/alsa-info.sh and attach the file generated here?

(Initial ramdom guess, it's an AC'97 device with an amplifier which we seem to not handle properly at the moment - will have to push a fix for that).
Comment 3 Ciprian Stoica 2012-06-07 11:11:11 CEST
Hi Colin,

You can find the info from alsa-info.sh here:
http://www.alsa-project.org/db/?f=f042f4235ab537eded0b63d5733d9e359818f7ae

Sound works well in Mageia 1, if this is of any help.
Comment 4 Colin Guthrie 2012-06-07 11:30:10 CEST
Interesting. It seems alsa-info.sh script does not show the ACL status... will have to fix that upstream as it can lead to misinterpretations.

Can you also attach the "pacmd ls" output? Cheers.
Comment 5 Ciprian Stoica 2012-06-07 11:40:08 CEST
Sure,

I pasted the output of 

$ pacmd ls

here

http://pastebin.com/xHQb2usG

Cheers
Comment 6 Colin Guthrie 2012-06-07 11:58:45 CEST
Created attachment 2436 [details]
pacmd ls output.

The alsa links are OK as they are permanent, but the pastebin link expires in 30 days, so it's best to attach such files as a future reference to others who may have the same problem.
Comment 7 Colin Guthrie 2012-06-07 12:06:07 CEST
OK, so this is likely due to changes introduced to support automatic Heaphone handling, but it could also be something else:

Two things to try (separately):

1. amixer -c0 set 'IEC958 Default PCM' off

and if that doesn't work:

2. amixer -c0 set 'Headphones' 0% mute


Do either of those restore sound?
Comment 8 Ciprian Stoica 2012-06-07 12:22:18 CEST
The first did nothing to restore sound, I got the following output:

$ amixer -c0 set 'IEC958 Default PCM' off
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

and the second one returns an error:

$ amixer -c0 set 'Headphones' 0% mute
amixer: Unable to find simple control 'Headphones',0

Thanks for making the attachment, I will keep that in mind.
Comment 9 Colin Guthrie 2012-06-07 12:34:45 CEST
(In reply to comment #8)
> and the second one returns an error:
> 
> $ amixer -c0 set 'Headphones' 0% mute
> amixer: Unable to find simple control 'Headphones',0


Oops, sorry, it's a typo:

amixer -c0 set 'Headphone' 0% mute

(note the singular form).
Comment 10 Ciprian Stoica 2012-06-07 13:04:13 CEST
Hi Colin,

It seems that I managed to get sound to work.
It was not the command that did it, but you mentioned that the cause me be the automatic headphone handling so I thought I should take a look in the back of the pc at the sound jacks. 
It seems I was getting sound out from Mageia 1 through the microphone jack. I just had to change to the correct line out jack, and sound is hearing great.

Sorry about this, is something very stupid. 

Many thanks for everything

Cheerse
Ciprian Stoica 2012-06-07 13:04:51 CEST

Status: NEW => RESOLVED
Resolution: (none) => FIXED