[alsa-devel] How to use hda-verb to detect

Ozan Çağlayan ozan at pardus.org.tr
Mon Aug 17 11:23:42 CEST 2009


Hi,

I'm playing with an HP DV6(which produces sound only when model=hp-dv5,
will send a patch for it after further testing) on which HP automuting
is not working. The laptop has apparently two HP outputs which seems to
behave completely parallel.

One thing that I really don't get with hda-verb, is the last parameter.
I used hda-emu for finding out an example call:

Front Playback Volume:0
MIN/MAX: 0/64,  VAL: [39] [39]
dB min/max: -48.00/0.00,  [-18.-75dB] [-18.-75dB]
> set 1 64 64
send: NID=0x10, VERB=0x3a0(set_amp_gain_mute,O:L#0), PARM=0x7f
receive: 0x0
send: NID=0x10, VERB=0x390(set_amp_gain_mute,O:R#0), PARM=0x7f
receive: 0x0
> set 1 63 63
send: NID=0x10, VERB=0x3a0(set_amp_gain_mute,O:L#0), PARM=0x7e
receive: 0x0
send: NID=0x10, VERB=0x390(set_amp_gain_mute,O:R#0), PARM=0x7e
receive: 0x0

I can easily understand that I'm calling set_amp_gain_mute VERB for NID
0x10 with a level value 0x7f and 0x7e.

Now when I run hda-verb without parameter, it gives me a bunch of
possible values for PARM:

  VENDOR_ID, SUBSYSTEM_ID, REV_ID, NODE_COUNT, FUNCTION_TYPE
  AUDIO_FG_CAP, AUDIO_WIDGET_CAP, PCM, STREAM, PIN_CAP, AMP_IN_CAP
  CONNLIST_LEN, POWER_STATE, PROC_CAP, GPIO_CAP, AMP_OUT_CAP
  VOL_KNB_CA

I can't easily understand which one I have to choose for example to send
the verb SET_UNSOLICITED_ENABLE or SET_PIN_SENSE.

I've found the widget below in HP DV6 (OUT HP Detect grabbed my
attention and I've seen that the unsolicited events has something to do
with HP sense/automute, just playling blindly),

Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000001c: OUT HP Detect                         **
  Pin Default 0x40f100f0: [N/A] Other at Ext N/A
    Conn = 1/8, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=0c, enabled=0
  Connection: 3
     0x10 0x11 0x17*

and say that I want to send SET_UNSOLICITED_ENABLE to 0x0a, which PARM
should I choose?

I'm also attaching alsa-info output,

Thanks!
Ozan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: alsa-info-dv6
Url: http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20090817/d12d833d/attachment-0001.bat 


More information about the Alsa-devel mailing list