mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
[ALSA] hda-codec - Make the mixer capability check more robust
In some cases, mixer elements return -EINVAL because it couldn't obtain proper amp_cap bits. The patch improves the robustness, trying the amp_cap query again in such a case. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
d417045e7d
commit
b75e53f092
1 changed files with 2 additions and 1 deletions
|
@ -707,6 +707,7 @@ static u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction)
|
||||||
direction == HDA_OUTPUT ?
|
direction == HDA_OUTPUT ?
|
||||||
AC_PAR_AMP_OUT_CAP :
|
AC_PAR_AMP_OUT_CAP :
|
||||||
AC_PAR_AMP_IN_CAP);
|
AC_PAR_AMP_IN_CAP);
|
||||||
|
if (info->amp_caps)
|
||||||
info->status |= INFO_AMP_CAPS;
|
info->status |= INFO_AMP_CAPS;
|
||||||
}
|
}
|
||||||
return info->amp_caps;
|
return info->amp_caps;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue