[alsa-devel] Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device

Ben Firshman ben at firshman.co.uk
Sun Mar 9 01:10:32 CET 2008


This is on 1.0.16. Forgive me if I appear clueless, I have only been  
working on this for the past few hours.

In an attempt to get HDMI audio working on the AppleTV, I have added  
this line to the presets in patch_atihdmi.c:

{ .id = 0x10951390, .name = "SI1390 HDMI", .patch = patch_atihdmi },

The device is detected fine:

ben at mythfrontend:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC882 Analog [ALC882 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC882 Digital [ALC882 Digital]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: ATI HDMI [ATI HDMI]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
ben at mythfrontend:~$

and I can send audio to the device, but it doesn't work. I presume  
this because this is doing nothing:

static struct hda_verb atihdmi_basic_init[] = {
	/* enable digital output on pin widget */
	{ 0x03, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
	{} /* terminator */
};

ben at mythfrontend:~$ cat /proc/asound/card0/codec#1
Codec: Generic 1095 SI1390 HDMI
Address: 1
Vendor Id: 0x10951390
Subsystem Id: 0xffffffff
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
     rates [0x0]:
     bits [0x0]:
     formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6211: Stereo Digital
   Converter: stream=0, channel=0
   Digital:
   Digital category: 0x0
   PCM:
     rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
     bits [0x1e]: 16 20 24 32
     formats [0x5]: PCM AC3
Node 0x03 [Pin Complex] wcaps 0x40738d: Stereo Digital Amp-Out
   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
   Amp-Out vals:  [0x80 0x80]
   Pincap 0x0894: OUT Detect R/L
   Pin Default 0x98460010: [Fixed] SPDIF Out at Int HDMI
     Conn = Digital, Color = Unknown
     DefAssociation = 0x1, Sequence = 0x0
   Pin-ctls: 0x00:
   Unsolicited: tag=00, enabled=0
   Connection: 1
      0x02

"Pin-ctls: 0x00:" should be reading "Pin-ctls: 0x40: OUT" should it  
not? What is wrong?

Thanks

Ben



More information about the Alsa-devel mailing list