* Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device
@ 2008-03-09 0:10 Ben Firshman
2008-03-09 13:05 ` Ben Firshman
0 siblings, 1 reply; 5+ messages in thread
From: Ben Firshman @ 2008-03-09 0:10 UTC (permalink / raw)
To: alsa-devel
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@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@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@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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device 2008-03-09 0:10 Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device Ben Firshman @ 2008-03-09 13:05 ` Ben Firshman 2008-03-12 18:20 ` Takashi Iwai 0 siblings, 1 reply; 5+ messages in thread From: Ben Firshman @ 2008-03-09 13:05 UTC (permalink / raw) To: alsa-devel It appears that on boot, nothing gets set, but if I reload the module it works: ben@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: Enabled Copyright GenLevel 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: [0x00 0x00] 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: 0x40: OUT Unsolicited: tag=00, enabled=0 Connection: 1 0x02 ben@mythfrontend:~$ The unmuting looks like it's working too (Amp-Out vals: [0x00 0x00]). I'm still not getting any sound though - my amp just says "Detecting...". Is the GPIO line significant? As far as I can tell from the docs, that just means there are no GPIOs. Ben On 9 Mar 2008, at 00:10, Ben Firshman wrote: > 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@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@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@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 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device 2008-03-09 13:05 ` Ben Firshman @ 2008-03-12 18:20 ` Takashi Iwai 2008-03-12 18:40 ` Ben Firshman 0 siblings, 1 reply; 5+ messages in thread From: Takashi Iwai @ 2008-03-12 18:20 UTC (permalink / raw) To: Ben Firshman; +Cc: alsa-devel At Sun, 9 Mar 2008 13:05:39 +0000, Ben Firshman wrote: > > It appears that on boot, nothing gets set, but if I reload the module > it works: > > ben@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: Enabled Copyright GenLevel > 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: [0x00 0x00] > 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: 0x40: OUT > Unsolicited: tag=00, enabled=0 > Connection: 1 > 0x02 > ben@mythfrontend:~$ > > The unmuting looks like it's working too (Amp-Out vals: [0x00 0x00]). > I'm still not getting any sound though - my amp just says > "Detecting...". > > Is the GPIO line significant? As far as I can tell from the docs, that > just means there are no GPIOs. I don't think it's GPIO. Which graphic chip is on AppleTV? if it's Nvidia, we have little chance. But, if it's an Intel on-board, it might work. Some people reported HDMI works in a certain level (not perfectly at all though). Anyway, you can try my latest tree available at git.kernel.org git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git and git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/alsa-driver-build-unstable.git The former is the kernel tree and the latter is alsa-driver build tree. Run utils/setup-alsa-kernel KERNEL_DIR on alsa-driver tree to set up the build with sound-unstable kernel git tree (see INSTALL for details). The ready-to-be-built snapshot tarball is available at http://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/ Takashi > > Ben > > On 9 Mar 2008, at 00:10, Ben Firshman wrote: > > > 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@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@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@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 > > > > _______________________________________________ > > Alsa-devel mailing list > > Alsa-devel@alsa-project.org > > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device 2008-03-12 18:20 ` Takashi Iwai @ 2008-03-12 18:40 ` Ben Firshman 2008-03-13 7:19 ` Takashi Iwai 0 siblings, 1 reply; 5+ messages in thread From: Ben Firshman @ 2008-03-12 18:40 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel On 12 Mar 2008, at 18:20, Takashi Iwai wrote: > At Sun, 9 Mar 2008 13:05:39 +0000, > Ben Firshman wrote: >> >> It appears that on boot, nothing gets set, but if I reload the module >> it works: >> >> ben@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: Enabled Copyright GenLevel >> 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: [0x00 0x00] >> 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: 0x40: OUT >> Unsolicited: tag=00, enabled=0 >> Connection: 1 >> 0x02 >> ben@mythfrontend:~$ >> >> The unmuting looks like it's working too (Amp-Out vals: [0x00 >> 0x00]). >> I'm still not getting any sound though - my amp just says >> "Detecting...". >> >> Is the GPIO line significant? As far as I can tell from the docs, >> that >> just means there are no GPIOs. > > I don't think it's GPIO. Which graphic chip is on AppleTV? > if it's Nvidia, we have little chance. But, if it's an Intel > on-board, it might work. Some people reported HDMI works in a certain > level (not perfectly at all though). > > Anyway, you can try my latest tree available at git.kernel.org > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound- > unstable-2.6.git > and > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/alsa-driver- > build-unstable.git > > The former is the kernel tree and the latter is alsa-driver build > tree. Run utils/setup-alsa-kernel KERNEL_DIR on alsa-driver tree to > set up the build with sound-unstable kernel git tree (see INSTALL for > details). > > The ready-to-be-built snapshot tarball is available at > http://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/ > Yeah, it's a Nvidia chip: http://wiki.awkwardtv.org/wiki/Parts Why do you have little chance then? Surely the Nvidia chip is independent of the HDMI chip, which is in turn independent of the sound card? Video out over HDMI works fine with the nv binary drivers you see. Ben ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device 2008-03-12 18:40 ` Ben Firshman @ 2008-03-13 7:19 ` Takashi Iwai 0 siblings, 0 replies; 5+ messages in thread From: Takashi Iwai @ 2008-03-13 7:19 UTC (permalink / raw) To: Ben Firshman; +Cc: alsa-devel At Wed, 12 Mar 2008 18:40:23 +0000, Ben Firshman wrote: > > > On 12 Mar 2008, at 18:20, Takashi Iwai wrote: > > > At Sun, 9 Mar 2008 13:05:39 +0000, > > Ben Firshman wrote: > >> > >> It appears that on boot, nothing gets set, but if I reload the module > >> it works: > >> > >> ben@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: Enabled Copyright GenLevel > >> 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: [0x00 0x00] > >> 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: 0x40: OUT > >> Unsolicited: tag=00, enabled=0 > >> Connection: 1 > >> 0x02 > >> ben@mythfrontend:~$ > >> > >> The unmuting looks like it's working too (Amp-Out vals: [0x00 > >> 0x00]). > >> I'm still not getting any sound though - my amp just says > >> "Detecting...". > >> > >> Is the GPIO line significant? As far as I can tell from the docs, > >> that > >> just means there are no GPIOs. > > > > I don't think it's GPIO. Which graphic chip is on AppleTV? > > if it's Nvidia, we have little chance. But, if it's an Intel > > on-board, it might work. Some people reported HDMI works in a certain > > level (not perfectly at all though). > > > > Anyway, you can try my latest tree available at git.kernel.org > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound- > > unstable-2.6.git > > and > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/alsa-driver- > > build-unstable.git > > > > The former is the kernel tree and the latter is alsa-driver build > > tree. Run utils/setup-alsa-kernel KERNEL_DIR on alsa-driver tree to > > set up the build with sound-unstable kernel git tree (see INSTALL for > > details). > > > > The ready-to-be-built snapshot tarball is available at > > http://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/ > > > > Yeah, it's a Nvidia chip: > > http://wiki.awkwardtv.org/wiki/Parts > > Why do you have little chance then? Surely the Nvidia chip is > independent of the HDMI chip, which is in turn independent of the > sound card? The HDMI audio output depends on the video driver in many cases actually because of its nature. But, this isn't no certain fact for all cases. It might work in your case. That's why I wrote "little" chance, not "no" chance. So, still it'd be worth to try my patchset. (The "little" chance implies that you'll likely get no answer from Apple for your inquiry about the hardware details :) Takashi ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-03-13 11:16 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-09 0:10 Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device Ben Firshman 2008-03-09 13:05 ` Ben Firshman 2008-03-12 18:20 ` Takashi Iwai 2008-03-12 18:40 ` Ben Firshman 2008-03-13 7:19 ` Takashi Iwai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox