mirror of https://github.com/ericonr/sndio.git
don't forget to set master_found when it's found
This commit is contained in:
parent
2edaaf9b22
commit
aaa1898b8c
|
@ -92,10 +92,11 @@ mixer_ondesc(void *unused, struct siomix_desc *desc, int val)
|
|||
{
|
||||
if (desc == NULL)
|
||||
return;
|
||||
if (!master_found)
|
||||
if (master_found)
|
||||
return;
|
||||
if (strcmp(desc->chan0.str, "master0") == 0 &&
|
||||
strcmp(desc->grp, "softvol") == 0) {
|
||||
master_found = 1;
|
||||
master_addr = desc->addr;
|
||||
master_val = val;
|
||||
if (verbose)
|
||||
|
|
Loading…
Reference in New Issue