[alsa-devel] Hda-intel: AC_VERB_SET_PIN_WIDGET_CONTROL appears to do nothing for HDMI device
Takashi Iwai
tiwai at suse.de
Wed Mar 12 19:20:30 CET 2008
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 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: 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 at 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 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
> >
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel at alsa-project.org
> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
More information about the Alsa-devel
mailing list