audiohda: fix getoutamprange()
same problem as previous commit. have to query function group if not Wampovrcap.
This commit is contained in:
parent
29aa499682
commit
62721182c4
|
@ -511,7 +511,13 @@ static uint
|
||||||
getoutamprange(Widget *w)
|
getoutamprange(Widget *w)
|
||||||
{
|
{
|
||||||
uint r;
|
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;
|
return (r >> 8) & 0x7f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue