From: Takashi Iwai <tiwai@suse.de>
To: John Stile <john@stilen.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd-hda-intel support for SPDIF-in wiht vt1708 card?
Date: Tue, 18 Dec 2007 16:05:16 +0100 [thread overview]
Message-ID: <s5hy7bsvyab.wl%tiwai@suse.de> (raw)
In-Reply-To: <1197995286.9405.23.camel@genx.localdomain>
At Tue, 18 Dec 2007 08:28:06 -0800,
John Stile wrote:
>
> On Tue, 2007-12-18 at 14:04 +0100, Takashi Iwai wrote:
> > At Mon, 17 Dec 2007 10:27:27 -0800,
> > John Stile wrote:
> > >
> > > I am trying to use a Via VT1708 audio card ( uses the snd-hda-intel.ko
> > > driver) to record from SPDIF-in.
> > >
> > > An off-list reply to my posting to alsa-users list suggested that
> > > snd-hda-intel.ko might not support SPDIF-in with the VT1708 card, which
> > > brought me here.
> > >
> > > Can someone who works on the Intel HDA driver tell me if it supports
> > > SPDIF-in on the VT1708 audio card?
> >
> > It should be, but not tested well, I guess.
> >
> > The driver enables the SPDIF-in capability when BIOS sets the pin
> > information properly. Check /proc/asound/card0/codec#* file whether
> > you have any (activated) input pin node that supports SPDIF-in.
> >
> >
> > Takashi
> Thank you for your reply!
> The output of your command is below.
> spdif-out=Node 0x25
> spdif-in=Node 0x26
> Neither labeled inactive,
> but spdif-in doesn't list a "Connection" line.
Just because it's only for input (thus it has no "source").
> I have the latest bios: 1.03 (2007/08/23) (a beta bios is available).
> Do I try the beta bios?
I don't think so. Likely a driver bug.
How about the patch below (against the latest HG version)?
Takashi
diff -r 2d3893cf030c pci/hda/patch_via.c
--- a/pci/hda/patch_via.c Tue Dec 18 15:42:53 2007 +0100
+++ b/pci/hda/patch_via.c Tue Dec 18 17:48:00 2007 +0100
@@ -568,25 +568,27 @@ static int via_init(struct hda_codec *co
if (IS_VT1708_VENDORID(codec->vendor_id)) {
snd_hda_codec_write(codec, VT1708_DIGIN_PIN, 0,
AC_VERB_SET_PIN_WIDGET_CONTROL,
- 0x40);
+ PIN_OUT);
snd_hda_codec_write(codec, VT1708_DIGIN_PIN, 0,
AC_VERB_SET_EAPD_BTLENABLE, 0x02);
} else if (IS_VT1709_10CH_VENDORID(codec->vendor_id) ||
IS_VT1709_6CH_VENDORID(codec->vendor_id)) {
snd_hda_codec_write(codec, VT1709_DIGIN_PIN, 0,
AC_VERB_SET_PIN_WIDGET_CONTROL,
- 0x40);
+ PIN_OUT);
snd_hda_codec_write(codec, VT1709_DIGIN_PIN, 0,
AC_VERB_SET_EAPD_BTLENABLE, 0x02);
} else if (IS_VT1708B_8CH_VENDORID(codec->vendor_id) ||
IS_VT1708B_4CH_VENDORID(codec->vendor_id)) {
snd_hda_codec_write(codec, VT1708B_DIGIN_PIN, 0,
AC_VERB_SET_PIN_WIDGET_CONTROL,
- 0x40);
+ PIN_OUT);
snd_hda_codec_write(codec, VT1708B_DIGIN_PIN, 0,
AC_VERB_SET_EAPD_BTLENABLE, 0x02);
}
- }
+ } else /* enable SPDIF-input pin */
+ snd_hda_codec_write(codec, spec->autocfg.dig_in_pin, 0,
+ AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN);
return 0;
}
next prev parent reply other threads:[~2007-12-18 16:49 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 18:27 snd-hda-intel support for SPDIF-in wiht vt1708 card? John Stile
2007-12-18 13:04 ` Takashi Iwai
2007-12-18 16:28 ` John Stile
2007-12-18 15:05 ` Takashi Iwai [this message]
2007-12-19 4:49 ` John Stile
2007-12-19 5:22 ` snd-hda-intel support for SPDIF-inwiht " Darryl House
2007-12-19 9:30 ` snd-hda-intel support for SPDIF-in wiht " Takashi Iwai
2007-12-19 16:21 ` John Stile
-- strict thread matches above, loose matches on Subject: below --
2007-12-20 0:37 forumjunk
2007-12-20 11:09 ` Takashi Iwai
2007-12-20 20:13 ` John Stile
[not found] ` <1198174409.8838.2.camel@genx.localdomain>
2007-12-21 9:08 ` Takashi Iwai
2007-12-21 17:57 ` John Stile
2007-12-21 20:03 ` John Stile
2007-12-22 18:35 ` John Stile
2007-12-24 19:22 ` John Stile
2008-01-02 20:41 ` John Stile
2007-12-20 19:17 forumjunk
2007-12-21 19:09 Darryl House
2007-12-21 22:59 Darryl House
2008-01-02 22:31 Darryl House
2008-01-02 22:38 ` John Stile
2008-01-07 13:43 ` Takashi Iwai
2008-01-07 18:40 Darryl House
2008-01-08 7:35 ` John Stile
2008-01-08 7:42 ` Takashi Iwai
2008-01-08 8:21 ` John Stile
2008-01-08 16:38 ` John Stile
2008-01-08 16:50 ` Takashi Iwai
2008-01-08 17:57 ` John Stile
2008-01-09 7:39 ` Takashi Iwai
[not found] ` <1199873213.9681.50.camel@genx.localdomain>
2008-01-09 16:29 ` Takashi Iwai
2008-01-09 17:49 ` John Stile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hy7bsvyab.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=john@stilen.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox