[alsa-devel] snd-hda-intel support for SPDIF-in wiht vt1708 card?

Darryl House forumjunk at comcast.net
Fri Dec 21 20:09:33 CET 2007


The patch fixed all compilation errors for me, thank you. I did have to apply it manually, but that was rather simple.

I can confirm that SPDIF input doesn't work for the card, but I haven't applied the patch that you suggested to John Stile for that, yet. I'll do that a bit later today if you still recommend it

Is this patch still recommended?

> 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;
>  }

Thanks again!

-- Darryl


 -------------- Original message ----------------------
From: Takashi Iwai <tiwai at suse.de>
[...]
> Thanks.  Does the patch below fix the probelm?
> Run hgcompile after applying it.
> 
> 
> Takashi
> 
> diff -r 414b1156a8b3 configure.in
> --- a/configure.in	Tue Dec 18 16:09:20 2007 +0100
> +++ b/configure.in	Fri Dec 21 12:10:53 2007 +0100
> @@ -1230,7 +1230,7 @@ esac
>  
>  dnl set ia32 (X86)
>  case "$processor" in
> -  i?86*|k?|crusoe|mcyrixiii|mwinchip|viac3_2|mcore2|geodegx*)
> +  i?86*|k?|crusoe|mcyrixiii|mwinchip|viac3_2|mcore2|geodegx*|x86_32)
>      if $KCC -mpreferred-stack-boundary=2 -S -o /dev/null -xc /dev/null 
> >/dev/null 2>&1; then
>        c_opts="-mpreferred-stack-boundary=2 $c_opts"
>        CONFIG_X86=y
> _______________________________________________
> 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