audiohda: fix getoutamprange()

same problem as previous commit. have to query
function group if not Wampovrcap.
This commit is contained in:
cinap_lenrek 2012-12-07 00:36:15 +01:00
parent 29aa499682
commit 62721182c4

View file

@ -511,7 +511,13 @@ static uint
getoutamprange(Widget *w)
{
uint r;
r = cmd(w->id, Getparm, Outampcap);
if((w->cap & Woutampcap) == 0)
return 0;
if((w->cap & Wampovrcap) == 0)
r = cmd(w->fg->id, Getparm, Outampcap);
else
r = cmd(w->id, Getparm, Outampcap);
return (r >> 8) & 0x7f;
}