At Wed, 2 Feb 2011 23:38:19 +0000, Robin Neatherway wrote:
hp_automute work only when it get the correct position of HP and speaker [Pin complex]
Can you post the output of alsa-info.sh using model=auto after a cold boot to find out whether BIOS setup pin default of node 0x0f and 0x10 to HP and Speakers ?
if not, you will need to find any alc269 model which create "Headphone Playback Volume" at node 0x8 and "Speaker Playback volume" at node 0x09
OK, this produced some interesting behaviour, new alsa info at: http://www.alsa-project.org/db/?f=bdb19d75e4147d3ee294f2150db8b723e3ad3527
Headphone volume appears at node 0x8 and speakers at 0x9, however there is no sound over the speakers now, possibly related to this dmesg output: [ 25.417568] ALSA hda_codec.c:4633: autoconfig: line_outs=2 (0x10/0x15/0x0/0x0/0x0) [ 25.417575] ALSA hda_codec.c:4637: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 25.417581] ALSA hda_codec.c:4641: hp_outs=1 (0x14/0x0/0x0/0x0/0x0)
Or set up the pins dynamically via sysfs and reconfigure. If you find out a working setup, it can be initialized automatically via patch option of snd-hda-intel module.
More details are found in HD-Audio.txt.
I've had a read through HD-Audio.txt and a quick look at the HD audio spec from Intel. It isn't clear to me how the pin configs relate to the way things are set up. The /sys/class/sound/hwC0D0/init_pin_configs file looks like this:
0x0f 0x411111f0 0x10 0xb7031110 0x11 0x411111f0 0x12 0x02a11820 0x13 0xb7831121 0x14 0x0221101f 0x15 0x21011010 0x16 0x411111f0 0x17 0xb7931122 0x18 0x2145111e 0x19 0x411111f0
Does each of the hex values on the left refer to a node?
Yes.
If so, where are those before 0xf and after 0x19?
Others are no pin widgets. See HD-audio specification for more details.
Takashi