[PATCH] snd-hda-intel: enable microphone for alc272 (realtek)

Stefan Bader stefan.bader at canonical.com
Mon Apr 20 06:49:55 UTC 2009


Andres Salomon wrote:
> Please include this in the ubuntu-hardy-lum tree (the netbook-lpia branch).
> It enables the mic (and boosts the input volume) for the ALC272 codec on
> buffalo machines.  At some point, we'll need proper ALC272 support rather
> than per-machine quirks, but for now we'll use the quirks.
> 
> LP #347811
> 
ACK
> Signed-off-by: Andres Salomon <dilinger at canonical.com>    
> Signed-off-by: Tony Espy <espy at canonical.com>
> 
> diff --git a/ubuntu/sound/alsa-kernel/pci/hda/patch_realtek.c b/ubuntu/sound/alsa-kernel/pci/hda/patch_realtek.c
> index 6ffd3b6..457d755 100644
> --- a/ubuntu/sound/alsa-kernel/pci/hda/patch_realtek.c
> +++ b/ubuntu/sound/alsa-kernel/pci/hda/patch_realtek.c
> @@ -13734,6 +13734,11 @@ static struct hda_verb alc272_dell_init_verbs[] = {
>  	{}
>  };
>  
> +static struct snd_kcontrol_new alc272_toshiba_mixer[] = {
> +	HDA_CODEC_VOLUME("Front Mic Boost", 0x19, 0, HDA_INPUT),
> +	{ } /* end */
> +};
> +
>  static struct hda_verb alc272_toshiba_init_verbs[] = {
>  	/* Front Pin: output 0 (0x0c) */
>  	{0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, /* 0x14 */
> @@ -13746,6 +13751,8 @@ static struct hda_verb alc272_toshiba_init_verbs[] = {
>  	{0x17, AC_VERB_SET_EAPD_BTLENABLE, 2}, /* 0x14 */
>  
>  	{0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, /* originally 0x12 */
> +	{0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
> +
>  	{0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
>  	{0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
>  	{0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
> @@ -14106,7 +14113,7 @@ static struct alc_config_preset alc662_presets[] = {
>  		.init_hook = alc663_m51va_inithook,
>  	},
>  	[ALC272_TOSHIBA_KAVA] = {
> -		.mixers = { alc663_m51va_mixer },
> +		.mixers = { alc663_m51va_mixer, alc272_toshiba_mixer },
>  		.init_verbs = { alc662_init_verbs, alc272_toshiba_init_verbs },
>  		.num_dacs = ARRAY_SIZE(alc662_dac_nids),
>  		.dac_nids = alc662_dac_nids,
> 


-- 

When all other means of communication fail, try words!






More information about the kernel-team mailing list