Bug 212 - The headphone and sound boxes have sound at the same time.
Summary: The headphone and sound boxes have sound at the same time.
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-27 00:22 CET by Jiang Yike
Modified: 2012-03-07 21:05 CET (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
the output of alsa-info.sh (43.02 KB, text/plain)
2011-12-09 14:22 CET, Jiang Yike
Details
Information of "pacmd ls" (26.44 KB, text/plain)
2012-01-18 11:27 CET, Jiang Yike
Details
the output of alsa-info.sh on Mageia 2 beta 1 x86_64 (49.52 KB, text/plain)
2012-02-26 01:54 CET, Jiang Yike
Details
the output of "pacmd ls" on Mageia 2 beta 1 x86_64 (27.35 KB, text/plain)
2012-02-26 01:54 CET, Jiang Yike
Details
Output of pacmd ls (16.37 KB, text/plain)
2012-03-07 19:23 CET, Dimitrios Glentadakis
Details
alsa-info.sh output (28.82 KB, text/plain)
2012-03-07 19:30 CET, Dimitrios Glentadakis
Details

Description Jiang Yike 2011-02-27 00:22:47 CET
Description of problem:

When pluging a headphone in the front panel, it has sound, but the sound boxes which connect with the back panel still have sound.


Hardware information:

Mainboard: BIOSTAR TA870+
Audio chip (integrated into the mainboard): Realtek ALC892
HD audio support of the front panel: Yes
What do the sound boxes connect with: Line Out

Reproducible: 

Steps to Reproduce:
Comment 1 Jiang Yike 2011-02-27 09:09:22 CET
The driver of audio chip: the driver integrated in Mageia
Comment 2 Jiang Yike 2011-02-27 09:25:37 CET
Now the driver from the Realtek website has been installed, but there is still the problem.
Dimitrios Glentadakis 2011-02-27 17:13:38 CET

CC: (none) => dglent

Comment 3 Manuel Hiebel 2011-10-01 02:23:08 CEST
Is that bug still valid ? ( and sorry for the bug delay :) )

Component: Installer => RPM Packages

Comment 4 Jiang Yike 2011-10-12 15:27:52 CEST
The bug is still valid.
Comment 5 Manuel Hiebel 2011-10-30 02:33:06 CET
Add colin in CC.

What do we need ? these below ?

1. cat /proc/asound/cards
2. ls -l /dev/snd/*
3. getfacl /dev/snd/*

CC: (none) => mageia

Comment 6 Colin Guthrie 2011-10-30 11:58:22 CET
The above request is likely not super useful in this case as the card is physically working which generally means points 2 and 3 are fine.

The output from the script
http://www.alsa-project.org/alsa-info.sh

would be useful, either uploading automatically via the script and posting the link or by attaching the file here.

It likely needs a kernel level tweak to mute the relevant panel, but alternatively, it's maybe just a matter of changing the "port" in PA. This port changing should happen automatically on jack insertion but this code is in flux and is not yet available. It should be present for around the kernel 3.3 time frame, but there are a lot of pieces to the puzzle.

So in addition to the above alsa-info.sh output, the output from "pacmd ls" would also be useful to check if ports are available. We can then test to see if manually setting the ports would acheive the desired result and we can then be satisfied that when automatic port switching on jack insertion comes along that everything will work as desired (obviously the latter requires PulseAudio to be used, but these days you've got to have very specific needs to disable it).

Cheers
Comment 7 Manuel Hiebel 2011-12-08 16:44:09 CET
Ping ?

Keywords: (none) => NEEDINFO

Comment 8 Jiang Yike 2011-12-09 00:03:41 CET
I am not using Cauldron at present. There is still the bug in Mageia 1.
Comment 9 Manuel Hiebel 2011-12-09 00:07:48 CET
So please attach the requested commands.

Version: Cauldron => 1

Comment 10 Jiang Yike 2011-12-09 11:07:27 CET
Here are the outputs of the requested commands.

1. cat /proc/asound/cards

 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfbff8000 irq 16
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfe8fc000 irq 19

2. ls -l /dev/snd/*

crw-rw----+ 1 root audio 116,  6 12æ  9 17:44 /dev/snd/controlC0
crw-rw----+ 1 root audio 116, 15 12æ  9 17:44 /dev/snd/controlC1
crw-rw----+ 1 root audio 116,  5 12æ  9 17:44 /dev/snd/hwC0D3
crw-rw----+ 1 root audio 116, 14 12æ  9 17:44 /dev/snd/hwC1D0
crw-rw----+ 1 root audio 116, 13 12æ  9 17:44 /dev/snd/hwC1D1
crw-rw----+ 1 root audio 116, 12 12æ  9 17:44 /dev/snd/hwC1D2
crw-rw----+ 1 root audio 116, 11 12æ  9 17:44 /dev/snd/hwC1D3
crw-rw----+ 1 root audio 116,  4 12æ  9 17:45 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116,  3 12æ  9 17:45 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116,  2 12æ  9 17:45 /dev/snd/pcmC0D1p
crw-rw----+ 1 root audio 116, 10 12æ  9 17:45 /dev/snd/pcmC1D3p
crw-rw----+ 1 root audio 116,  9 12æ  9 17:44 /dev/snd/pcmC1D7p
crw-rw----+ 1 root audio 116,  8 12æ  9 17:44 /dev/snd/pcmC1D8p
crw-rw----+ 1 root audio 116,  7 12æ  9 17:44 /dev/snd/pcmC1D9p
crw-rw----+ 1 root audio 116,  1 12æ  9 17:44 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 12æ  9 17:44 /dev/snd/timer

/dev/snd/by-path:
æ»ç¨é 0
lrwxrwxrwx 1 root root 12 12æ  9 17:44 pci-0000:00:14.2 -> ../controlC0
lrwxrwxrwx 1 root root 12 12æ  9 17:44 pci-0000:01:00.1 -> ../controlC1

3. 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:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/controlC1
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/hwC0D3
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/hwC1D0
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/hwC1D1
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/hwC1D2
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/hwC1D3
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

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

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

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

# file: dev/snd/pcmC1D3p
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC1D7p
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC1D8p
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

# file: dev/snd/pcmC1D9p
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---

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

# file: dev/snd/timer
# owner: root
# group: audio
user::rw-
user:linuxuser:rw-
group::rw-
mask::rw-
other::---
Comment 11 Colin Guthrie 2011-12-09 12:30:48 CET
Please see comment 6 which asks for different details and provide those if you can. Thanks.
Comment 12 Jiang Yike 2011-12-09 14:22:06 CET
Created attachment 1204 [details]
the output of alsa-info.sh

The attachment "alsa-info.txt" is the output of the script alsa-info.sh mentioned in comment 6.
Comment 13 Dimitrios Glentadakis 2011-12-18 20:26:59 CET
I have sometimes the sound stil in the desktop speakers even if i plug the headphone; i think is related with this bug (?)
My alsa-info.sh:
https://bugs.mageia.org/attachment.cgi?id=53
Comment 14 Colin Guthrie 2011-12-19 18:41:52 CET
Can both of you also provide "pacmd ls" output as requested in comment 6. Thanks :) 

FWIW, I suspect strongly that this is basically the same problem as bug #225
Comment 15 Dimitrios Glentadakis 2011-12-19 19:39:55 CET
i dont use pulseaudio, so the output of the command "pacmd ls" is :
No PulseAudio daemon running, or not running as session daemon.
Comment 16 Colin Guthrie 2011-12-19 21:09:25 CET
(In reply to comment #15)
> i dont use pulseaudio, so the output of the command "pacmd ls" is :
> No PulseAudio daemon running, or not running as session daemon.

Ahh, if you don't use PA then I'm afraid you'll always have to take manual action on such hardware. There is simply not the infrastructure to do this automatically without PA.
Comment 17 Dimitrios Glentadakis 2011-12-20 13:55:25 CET
I have problems with pulsaudio and with alsa. It is not better to buy a new sound card ? Is there one that you could suggest ?
Comment 18 Colin Guthrie 2011-12-20 14:11:41 CET
(In reply to comment #17)
> I have problems with pulsaudio and with alsa. It is not better to buy a new
> sound card ? Is there one that you could suggest ?

No specific suggestions, but please come on IRC and chat to me and we can maybe resolved the problems (coling on #freenode - later this evening would be ideal)
Comment 19 Marja Van Waes 2012-01-18 07:33:30 CET
(In reply to comment #14)
> Can both of you also provide "pacmd ls" output as requested in comment 6.
> Thanks :) 
> 
> FWIW, I suspect strongly that this is basically the same problem as bug #225

@ Ake

Can you try that, too, please?

CC: (none) => marja11

Comment 20 Jiang Yike 2012-01-18 11:27:16 CET
Created attachment 1382 [details]
Information of "pacmd ls"

Sorry, I ignored the command "pacmd ls" that is mentioned in comment 6. The attachment is the output information of the command.
Marja Van Waes 2012-01-18 12:03:21 CET

Attachment 1382 mime type: application/octet-stream => text/ plain

Marja Van Waes 2012-01-18 12:06:16 CET

Attachment 1382 mime type: text/ plain => text/plain

Comment 21 Marja Van Waes 2012-01-18 12:49:51 CET
(In reply to comment #20)
> Created attachment 1382 [details]
> Information of "pacmd ls"
> 
> Sorry, I ignored the command "pacmd ls" that is mentioned in comment 6. The
> attachment is the output information of the command.

No problem, better late than never :)

@ Colin

I can study the attachment for hours, and still not know anything ;)
So it is all yours again :)

Keywords: NEEDINFO => (none)

Comment 22 Colin Guthrie 2012-01-18 22:51:56 CET
OK, this is a pretty strange one. There appear to be three "Master" controls,
and no specific separate ones for Headphones etc. I suspect something is
messing up with the model of this driver but will consult with some colleagues
on it.

Status: NEW => ASSIGNED

Colin Guthrie 2012-01-18 22:52:07 CET

Assignee: bugsquad => mageia

Comment 23 Colin Guthrie 2012-01-30 12:02:58 CET
A comment from an Ubunut/Canonical colleague: "Having three masters is all terribly wrong, and hopefully it has been fixed since 2.6.38."

So I'm hoping that a newer kernel will fix this.
Comment 24 Jiang Yike 2012-02-26 01:52:41 CET
On Mageia 2 beta 1 x86_64, the headphone plugged in the front panel has no sound. According to Comment 6, I provide the output of alsa-info.sh and "pacmd ls".
Comment 25 Jiang Yike 2012-02-26 01:54:07 CET
Created attachment 1637 [details]
the output of alsa-info.sh on Mageia 2 beta 1 x86_64
Comment 26 Jiang Yike 2012-02-26 01:54:59 CET
Created attachment 1638 [details]
the output of "pacmd ls" on Mageia 2 beta 1 x86_64
Comment 27 Jiang Yike 2012-03-07 12:39:42 CET
I don't use the audio chip any more. Please close the bug report.

Status: ASSIGNED => RESOLVED
Resolution: (none) => INVALID

Comment 28 Colin Guthrie 2012-03-07 16:02:47 CET
Thanks for the feedback. Hopefully it will be/has been fixed upstream.

I think old is a better resolution than invalid tho'.

Resolution: INVALID => OLD

Comment 29 Dimitrios Glentadakis 2012-03-07 16:19:02 CET
As i have this bug, i would like to be marked as duplicate with bug 225

*** This bug has been marked as a duplicate of bug 225 ***

Resolution: OLD => DUPLICATE

Comment 30 Colin Guthrie 2012-03-07 16:58:26 CET
It's actually a very different issue to the one in bug 225 even if the effects seem similar.

Resolution: DUPLICATE => OLD

Comment 31 Dimitrios Glentadakis 2012-03-07 17:25:57 CET
as i have this issue too why this bug report is closed ? if it is not duplicate?  ( i believe strongly that is a duplicate bug but it does nt matter this))

Do i have to open a new bug report for the same behavior and same chip ?

I think that no
Comment 32 Colin Guthrie 2012-03-07 17:41:17 CET
The alsa-info output attached to bug #225 shows very different different kcontrols to the one posted here.

If you have exactly the same h/w as reported on this bug and have a similar issue (i.e. Master kcontrol listed multiple times with different indexes - see my comment 23 above)) then feel free to reopen this bug and attach a fresh alsa-info output just for reference - ideally against the latest cauldron kernel :)
Comment 33 Dimitrios Glentadakis 2012-03-07 19:23:07 CET
Created attachment 1698 [details]
Output of pacmd ls
Comment 34 Dimitrios Glentadakis 2012-03-07 19:26:01 CET
No you have right about the hardware it is not the same
I am not able to understand from the pacmd ls output hoaw many masters i have, can you check it please ?
Comment 35 Dimitrios Glentadakis 2012-03-07 19:30:18 CET
Created attachment 1699 [details]
alsa-info.sh output
Comment 36 Colin Guthrie 2012-03-07 21:05:55 CET
Yeah your problem is quite different and it's what is covered in #225. I'll leave an update comment there.

Note You need to log in before you can comment on or make changes to this bug.