Takashi Iwai wrote On 17-08-2009 12:50: > At Mon, 17 Aug 2009 12:41:39 +0300, > Ozan Çağlayan wrote: > >> Takashi Iwai wrote On 17-08-2009 12:34: >> >>> For SET_UNSOLICITED_ENABLE verb, you need to a value (TAG | AC_USRSP_EN). >>> in the case of above, suppose the tag to be 0x0c, pass 0x8c. >>> >>> >>> >> Okay I've got the mechanism, thanks. >> >> How can I help for fixing HP automuting? setting UNSOLICITED_ENABLE >> didn't help at all. >> > > The first thing is to identify which pin corresponds to which > headphone. I guess each HP jack correspond to an individual pin like > Dell machines. > > Then you can give the correct pin cfg via sysfs or a setup file > via "patch" module option. > > Seen that I'm not able to find out the matching between pins and jacks (decided to read the last chapter of HDA spec), I continued to play. With hp-dv5 I have to following situation: - Both HP jacks are producing sound but no automuting, - Internal speaker can be controlled and muted using 'Speaker' mixer control, - HP jacks can be controlled and muted using 'Front' mixer control. Then I tried model=dell-m4-1 : - Both HP jacks are producing sound, automuting works, - Internal speaker can be controlled and muted using 'Front' mixer control, - HP jacks can be controlled and muted using 'Front' mixer control, - 'Speaker' control is replaced by 'Headphone' control which is useless, I took a diff of codec-files in both situations and found out the following: Analog Loopback: 0x00 Node 0x0a [Pin Complex] wcaps 0x400181: Stereo Pincap 0x0000001c: OUT HP Detect - Pin Default 0x0421101f: [Jack] HP Out at Ext Right - Conn = 1/8, Color = Black - DefAssociation = 0x1, Sequence = 0xf + Pin Default 0x40f100f0: [N/A] Other at Ext N/A + Conn = 1/8, Color = Unknown + DefAssociation = 0xf, Sequence = 0x0 Pin-ctls: 0x00: Unsolicited: tag=01, enabled=1 Connection: 3 I set 0x0a to 0x421101f in user_init_verbs and yes Speaker control disappears, a useless HP control appears, automuting works. I'm attaching the complete diff from dell-m4-1 to hp-dv5 model.
--- dell-m4-1-partly-works 2009-08-17 15:12:21.166146747 +0300 +++ hp-dv5-buggy 2009-08-17 15:13:11.778014263 +0300 @@ -24,9 +24,9 @@ Analog Loopback: 0x00 Node 0x0a [Pin Complex] wcaps 0x400181: Stereo Pincap 0x0000001c: OUT HP Detect - Pin Default 0x0421101f: [Jack] HP Out at Ext Right - Conn = 1/8, Color = Black - DefAssociation = 0x1, Sequence = 0xf + Pin Default 0x40f100f0: [N/A] Other at Ext N/A + Conn = 1/8, Color = Unknown + DefAssociation = 0xf, Sequence = 0x0 Pin-ctls: 0x00: Unsolicited: tag=01, enabled=1 Connection: 3 @@ -34,49 +34,48 @@ Node 0x0b [Pin Complex] wcaps 0x400081: Stereo Pincap 0x00001724: IN Detect Vref caps: HIZ 50 GRD 80 - Pin Default 0x04a11221: [Jack] Mic at Ext Right + Pin Default 0x02a11020: [Jack] Mic at Ext Front Conn = 1/8, Color = Black - DefAssociation = 0x2, Sequence = 0x1 + DefAssociation = 0x2, Sequence = 0x0 Pin-ctls: 0x24: IN VREF_80 - Unsolicited: tag=03, enabled=1 + Unsolicited: tag=01, enabled=1 Node 0x0c [Pin Complex] wcaps 0x400081: Stereo Pincap 0x00001724: IN Detect Vref caps: HIZ 50 GRD 80 - Pin Default 0x40f000f0: [N/A] Other at Ext N/A + Pin Default 0x40f000f1: [N/A] Other at Ext N/A Conn = Unknown, Color = Unknown - DefAssociation = 0xf, Sequence = 0x0 + DefAssociation = 0xf, Sequence = 0x1 Pin-ctls: 0x24: IN VREF_80 Unsolicited: tag=00, enabled=0 Node 0x0d [Pin Complex] wcaps 0x400181: Stereo Pincap 0x00000014: OUT Detect - Pin Default 0x90170110: [Fixed] Speaker at Int N/A + Pin Default 0x90170010: [Fixed] Speaker at Int N/A Conn = Analog, Color = Unknown DefAssociation = 0x1, Sequence = 0x0 - Misc = NO_PRESENCE - Pin-ctls: 0x00: + Pin-ctls: 0x40: OUT Unsolicited: tag=0c, enabled=1 Connection: 3 - 0x10* 0x11 0x17 + 0x10 0x11* 0x17 Node 0x0e [Pin Complex] wcaps 0x400081: Stereo Pincap 0x00001724: IN Detect Vref caps: HIZ 50 GRD 80 - Pin Default 0x23a1902e: [Jack] Mic at Sep Left - Conn = 1/8, Color = Pink - DefAssociation = 0x2, Sequence = 0xe + Pin Default 0x40f100f2: [N/A] Other at Ext N/A + Conn = 1/8, Color = Unknown + DefAssociation = 0xf, Sequence = 0x2 Pin-ctls: 0x24: IN VREF_80 Unsolicited: tag=04, enabled=1 Node 0x0f [Pin Complex] wcaps 0x400181: Stereo Pincap 0x00000014: OUT Detect - Pin Default 0x23014250: [Jack] Line Out at Sep Left + Pin Default 0x02014040: [Jack] Line Out at Ext Front Conn = 1/8, Color = Green - DefAssociation = 0x5, Sequence = 0x0 + DefAssociation = 0x4, Sequence = 0x0 Pin-ctls: 0x40: OUT Unsolicited: tag=02, enabled=1 Connection: 3 0x10* 0x11 0x17 Node 0x10 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L Amp-Out caps: N/A - Amp-Out vals: [0x6a 0x6a] + Amp-Out vals: [0xea 0xea] Converter: stream=5, channel=0 Power: setting=D0, actual=D0 Delay: 13 samples @@ -125,17 +124,18 @@ Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] Pincap 0x00000020: IN - Pin Default 0x90a000f0: [Fixed] Mic at Int N/A - Conn = Unknown, Color = Unknown - DefAssociation = 0xf, Sequence = 0x0 + Pin Default 0x90a60350: [Fixed] Mic at Int N/A + Conn = Digital, Color = Unknown + DefAssociation = 0x5, Sequence = 0x0 + Misc = NO_PRESENCE Pin-ctls: 0x20: IN Node 0x19 [Pin Complex] wcaps 0x40000b: Stereo Amp-In Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] Pincap 0x00000020: IN - Pin Default 0x40f000f0: [N/A] Other at Ext N/A + Pin Default 0x40f000f4: [N/A] Other at Ext N/A Conn = Unknown, Color = Unknown - DefAssociation = 0xf, Sequence = 0x0 + DefAssociation = 0xf, Sequence = 0x4 Pin-ctls: 0x00: Node 0x1a [Audio Selector] wcaps 0x30010d: Stereo Amp-Out Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 @@ -159,18 +159,19 @@ 0x1b* 0x17 0x18 0x19 Node 0x1e [Pin Complex] wcaps 0x400301: Stereo Digital Pincap 0x00000010: OUT - Pin Default 0x4f0000f0: [N/A] Line Out at Ext UNKNOWN - Conn = Unknown, Color = Unknown - DefAssociation = 0xf, Sequence = 0x0 + Pin Default 0x024511a0: [Jack] SPDIF Out at Ext Front + Conn = Optical, Color = Black + DefAssociation = 0xa, Sequence = 0x0 + Misc = NO_PRESENCE Pin-ctls: 0x40: OUT Connection: 1 0x24 Node 0x1f [Pin Complex] wcaps 0x400701: Stereo Digital Pincap 0x00010010: OUT EAPD EAPD 0x0: - Pin Default 0x4f0000f0: [N/A] Line Out at Ext UNKNOWN + Pin Default 0x40f000f5: [N/A] Other at Ext N/A Conn = Unknown, Color = Unknown - DefAssociation = 0xf, Sequence = 0x0 + DefAssociation = 0xf, Sequence = 0x5 Pin-ctls: 0x00: Power: setting=D0, actual=D0 Connection: 2 @@ -184,7 +185,7 @@ Connection: 1 0x25 Node 0x21 [Audio Output] wcaps 0x40211: Stereo Digital - Converter: stream=0, channel=0 + Converter: stream=5, channel=0 Digital: Digital category: 0x0 PCM: @@ -193,7 +194,7 @@ formats [0x5]: PCM AC3 Delay: 4 samples Node 0x22 [Audio Output] wcaps 0x40211: Stereo Digital - Converter: stream=0, channel=0 + Converter: stream=5, channel=0 Digital: Digital category: 0x0 PCM:
_______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel