mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
Merge branch 'fix/hda' into topic/hda
This commit is contained in:
commit
22e336b776
1 changed files with 6 additions and 1 deletions
|
@ -4084,7 +4084,12 @@ static int stac92xx_init(struct hda_codec *codec)
|
||||||
pinctl = snd_hda_codec_read(codec, nid, 0,
|
pinctl = snd_hda_codec_read(codec, nid, 0,
|
||||||
AC_VERB_GET_PIN_WIDGET_CONTROL, 0);
|
AC_VERB_GET_PIN_WIDGET_CONTROL, 0);
|
||||||
/* if PINCTL already set then skip */
|
/* if PINCTL already set then skip */
|
||||||
if (!(pinctl & AC_PINCTL_IN_EN)) {
|
/* Also, if both INPUT and OUTPUT are set,
|
||||||
|
* it must be a BIOS bug; need to override, too
|
||||||
|
*/
|
||||||
|
if (!(pinctl & AC_PINCTL_IN_EN) ||
|
||||||
|
(pinctl & AC_PINCTL_OUT_EN)) {
|
||||||
|
pinctl &= ~AC_PINCTL_OUT_EN;
|
||||||
pinctl |= AC_PINCTL_IN_EN;
|
pinctl |= AC_PINCTL_IN_EN;
|
||||||
stac92xx_auto_set_pinctl(codec, nid,
|
stac92xx_auto_set_pinctl(codec, nid,
|
||||||
pinctl);
|
pinctl);
|
||||||
|
|
Loading…
Reference in a new issue