Skip to content

Commit

Permalink
ALSA: hda - Fix yet missing GPIO/EAPD setup in cirrus driver
Browse files Browse the repository at this point in the history
I forgot to update spec->gpio_data in the automute hook, so it will be
overridden at the init sequence, thus the machine is still silent when
no headphone jack is plugged at boot time.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Mar 18, 2013
1 parent a86b1a2 commit 039eb75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ static void cs_automute(struct hda_codec *codec)
snd_hda_gen_update_outputs(codec);

if (spec->gpio_eapd_hp) {
unsigned int gpio = spec->gen.hp_jack_present ?
spec->gpio_data = spec->gen.hp_jack_present ?
spec->gpio_eapd_hp : spec->gpio_eapd_speaker;
snd_hda_codec_write(codec, 0x01, 0,
AC_VERB_SET_GPIO_DATA, gpio);
AC_VERB_SET_GPIO_DATA, spec->gpio_data);
}
}

Expand Down

0 comments on commit 039eb75

Please sign in to comment.