[alsa-devel] Bug report - patch_realtek.c - Laptop HP COMPAQ B1900 Series

joey.jiaojg joey.jiaojg at gmail.com
Wed Feb 15 10:45:37 CET 2012


I have tried to enable each one of them separately, and the speaker 
doesn't work.
I have to use these 3 write_cache to make switch and auto-detect work 
smoothly.

On 2012年02月15日 17:40, Takashi Iwai wrote:
> At Wed, 15 Feb 2012 17:31:44 +0800,
> joey.jiaojg wrote:
>> Here is the diff file.
> Thanks.
>
>> +/* toggle speaker-output according to the hp-jack state */
>> +static void alc260_b1900_automute(struct hda_codec *codec)
>> +{
>> +        unsigned int present;
>> +
>> +	present = snd_hda_jack_detect(codec, 0x0f);
>> +	if (present) {
>> +		snd_hda_codec_write_cache(codec, 0x01, 0,
>> +					  AC_VERB_SET_GPIO_MASK, 0);
>> +		snd_hda_codec_write_cache(codec, 0x01, 0,
>> +					  AC_VERB_SET_GPIO_DIRECTION,
>> +					  0);
> What actually this GPIO bit does on your device?
> To mute/unmute the speaker?
>
> If so, doesn't the speaker toggle work with just changing the
> pin-control of the corresponding pin?
>
>
> Takashi



More information about the Alsa-devel mailing list