From ee50f513a21d8aed2b1786d7eea3a2a669e621eb Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 31 Jul 2012 10:40:05 +0200 Subject: [PATCH] --- yaml --- r: 321009 b: refs/heads/master c: 1f43f6c1bc8d740e75b4177eb29110858bb5fea2 h: refs/heads/master i: 321007: f7753ad435bd47d94ae0044211dd4255a5d8f2ee v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_sigmatel.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c286c7f2a417..b74db4f306bd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c9dbc4802b413e2d0b08fc483cbf5db7f8e2f360 +refs/heads/master: 1f43f6c1bc8d740e75b4177eb29110858bb5fea2 diff --git a/trunk/sound/pci/hda/patch_sigmatel.c b/trunk/sound/pci/hda/patch_sigmatel.c index a760c30f1caa..94040ccf8e8f 100644 --- a/trunk/sound/pci/hda/patch_sigmatel.c +++ b/trunk/sound/pci/hda/patch_sigmatel.c @@ -4420,7 +4420,12 @@ static int stac92xx_init(struct hda_codec *codec) snd_hda_jack_report_sync(codec); /* sync mute LED */ - snd_hda_sync_vmaster_hook(&spec->vmaster_mute); + if (spec->gpio_led) { + if (spec->vmaster_mute.hook) + snd_hda_sync_vmaster_hook(&spec->vmaster_mute); + else /* the very first init call doesn't have vmaster yet */ + stac92xx_update_led_status(codec, false); + } /* sync the power-map */ if (spec->num_pwrs)