mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
fix paste-o in mixer code - actually set right channel volume instead of
doing the left channel twice.
This commit is contained in:
parent
b7d3143b0d
commit
e258e032ac
1 changed files with 2 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ sb16mix_set(snd_mixer *m, unsigned dev, unsigned left, unsigned right)
|
|||
|
||||
sb_setmixer(sb, e->reg, left << e->ofs);
|
||||
if (e->stereo)
|
||||
sb_setmixer(sb, e->reg, right << e->ofs);
|
||||
sb_setmixer(sb, e->reg + 1, right << e->ofs);
|
||||
else
|
||||
right = left;
|
||||
|
||||
|
|
@ -672,6 +672,7 @@ sb16chan_trigger(void *data, int go)
|
|||
ch->run = 1;
|
||||
else
|
||||
ch->run = 0;
|
||||
|
||||
sb_setup(sb);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue