Skip to contentSkip to conversation

explicit commandline control of speakers vs headphone output

DISCUSSION Eric Holstege 3 participants 4 messages Aug 27, 2010 – Aug 28, 2010

lore
Share & tools
lore
#0 lore raw

Thanks, Clemens;

How were you able to determine that from the "amixer scontents" output.

Although I can't disable *automatic* speaker mute on headphone insertion, can I explicitly unmute them again (e.g. with amixer sset or cset)?

If not....
"cat /proc/asound/card*/codec*" says it is the Realtek ALC888. Does this mean I have to somehow patch the kernel sound module file .../linux-source-2.6.*/sound/pci/hda/patch_realtek.c
to fix this somehow?

Regards
-Eric

Quoted 14 lines · Clemens Ladisch
Quoted 2 lines · Eric Holstege

Simple mixer control ...

It looks as if your codec cannot be configured to disable the automatic headphone switching.

Regards,
Clemens

#1 lore raw

2010-08-27 20:46, Eric Holstege skrev:

Quoted 8 lines

Thanks, Clemens;

How were you able to determine that from the "amixer scontents" output.

Although I can't disable *automatic* speaker mute on headphone insertion, can I explicitly unmute them again (e.g. with amixer sset or cset)?

Quoted 5 lines

If not....
"cat /proc/asound/card*/codec*" says it is the Realtek ALC888. Does this mean I have to somehow patch the kernel sound module file .../linux-source-2.6.*/sound/pci/hda/patch_realtek.c
to fix this somehow?

So in the long run, I think it would be better to leave all auto-muting to userspace. Then stuff like pulseaudio could to advanced decision of how to handle input events. But that's the long way.

There are certainly ways to disable auto-muting for Realtek ALC888, look along the lines of "speaker_automute" and "unsol_event". It is also possible that you could tweak your user_pin_config to trick your HP out into a Line Out. That way it won't automute, and you don't have to recompile your kernel.

As a side note: The VIA HDA driver, I believe, have an option for turning automute off. But it also sets "mute" on a misnamed control at the same time, tricking PA into believing that you want to mute all output. So PA is "helpful" and mutes everything else as well. :-/

Signature · 2 lines
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
#2 lore raw

2010/8/28 David Henningsson <[email protected]>

Quoted 25 lines

2010-08-27 20:46, Eric Holstege skrev:

Quoted 8 lines

Thanks, Clemens;

How were you able to determine that from the "amixer scontents" output.

Although I can't disable *automatic* speaker mute on headphone insertion, can I explicitly unmute them again (e.g. with amixer sset or cset)?

Quoted 5 lines

If not....
"cat /proc/asound/card*/codec*" says it is the Realtek ALC888. Does this mean I have to somehow patch the kernel sound module file .../linux-source-2.6.*/sound/pci/hda/patch_realtek.c
to fix this somehow?

So in the long run, I think it would be better to leave all auto-muting to userspace. Then stuff like pulseaudio could to advanced decision of how to handle input events. But that's the long way.

There are certainly ways to disable auto-muting for Realtek ALC888, look along the lines of "speaker_automute" and "unsol_event". It is also possible that you could tweak your user_pin_config to trick your HP out into a Line Out. That way it won't automute, and you don't have to recompile your kernel.

Quoted 6 lines

As a side note: The VIA HDA driver, I believe, have an option for turning automute off. But it also sets "mute" on a misnamed control at the same time, tricking PA into believing that you want to mute all output. So PA is "helpful" and mutes everything else as well. :-/

Some of the VIA codec allow independent headphone and the extra DAC and ADC (i.e. subdevice 1) can only be connected to headphone and mic .at front panel

the current implementation of the driver is buggy , since the sudevice 0 support multi channels but sudevice 1 only support 2 channels

#3 lore raw
In reply to Eric Holstege

2010/8/28 Eric Holstege <[email protected]>

Quoted 8 lines

Thanks, Clemens;

How were you able to determine that from the "amixer scontents" output.

Although I can't disable *automatic* speaker mute on headphone insertion, can I explicitly unmute them again (e.g. with amixer sset or cset)?

Quoted 6 lines

If not....
"cat /proc/asound/card*/codec*" says it is the Realtek ALC888. Does this mean I have to somehow patch the kernel sound module file .../linux-source-2.6.*/sound/pci/hda/patch_realtek.c
to fix this somehow?

Post output of alsa-info.sh after a cold boot to allow BIOS setup the pins

ALC888 has 5 DAC and 2 ADC , if you want to implement a new model which allow internal mic and internal speaker , mic jack and headphone jack to be used independently by two applications , you will need to disable the automute function