diff options
author | cg <cg@FreeBSD.org> | 2000-11-06 02:47:43 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-11-06 02:47:43 +0000 |
commit | 29f311506104c5e95a751af932fc80956cb59757 (patch) | |
tree | 2346e9f5683f942548257a3e9e5ffd635ce18c39 /sys/dev/sound/isa/sb16.c | |
parent | 152326a12730e952882888452ef0ea8b3c94ed4f (diff) | |
download | FreeBSD-src-29f311506104c5e95a751af932fc80956cb59757.zip FreeBSD-src-29f311506104c5e95a751af932fc80956cb59757.tar.gz |
fix paste-o in mixer code - actually set right channel volume instead of
doing the left channel twice.
Diffstat (limited to 'sys/dev/sound/isa/sb16.c')
-rw-r--r-- | sys/dev/sound/isa/sb16.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/isa/sb16.c b/sys/dev/sound/isa/sb16.c index b78de63..7711277 100644 --- a/sys/dev/sound/isa/sb16.c +++ b/sys/dev/sound/isa/sb16.c @@ -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; |