[PATCH 3.14 03/43] ALSA: hda/realtek - Make more stable to get pin sense for ALC283

2015-04-17 Thread Greg Kroah-Hartman
3.14-stable review patch.  If anyone has any objections, please let me know.

--

From: Kailang Yang 

commit a59d7199f62b8336570972dcc288321d0ec999fe upstream.

Pin sense will active when power pin is wake up.
Power pin will not wake up immediately during resume state.
Add some delay to wait for power pin activated.

Signed-off-by: Kailang Yang 
Signed-off-by: Takashi Iwai 
Signed-off-by: Greg Kroah-Hartman 

---
 sound/pci/hda/patch_realtek.c |2 ++
 1 file changed, 2 insertions(+)

--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -2885,6 +2885,8 @@ static void alc283_init(struct hda_codec
 
if (!hp_pin)
return;
+
+   msleep(30);
hp_pin_sense = snd_hda_jack_detect(codec, hp_pin);
 
/* Index 0x43 Direct Drive HP AMP LPM Control 1 */


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 3.14 03/43] ALSA: hda/realtek - Make more stable to get pin sense for ALC283

2015-04-17 Thread Greg Kroah-Hartman
3.14-stable review patch.  If anyone has any objections, please let me know.

--

From: Kailang Yang kail...@realtek.com

commit a59d7199f62b8336570972dcc288321d0ec999fe upstream.

Pin sense will active when power pin is wake up.
Power pin will not wake up immediately during resume state.
Add some delay to wait for power pin activated.

Signed-off-by: Kailang Yang kail...@realtek.com
Signed-off-by: Takashi Iwai ti...@suse.de
Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org

---
 sound/pci/hda/patch_realtek.c |2 ++
 1 file changed, 2 insertions(+)

--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -2885,6 +2885,8 @@ static void alc283_init(struct hda_codec
 
if (!hp_pin)
return;
+
+   msleep(30);
hp_pin_sense = snd_hda_jack_detect(codec, hp_pin);
 
/* Index 0x43 Direct Drive HP AMP LPM Control 1 */


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/