diff options
author | uqs <uqs@FreeBSD.org> | 2013-07-25 09:29:48 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2013-07-25 09:29:48 +0000 |
commit | c3d555792ec4298c52f6a1ba947fe6ccac398df1 (patch) | |
tree | 83621dbf40217d78e10a2d030c7417362eabe988 /sys/dev/sound | |
parent | 30a7f0fc1e00e09c801e63a49229aa46f3e215a0 (diff) | |
download | FreeBSD-src-c3d555792ec4298c52f6a1ba947fe6ccac398df1.zip FreeBSD-src-c3d555792ec4298c52f6a1ba947fe6ccac398df1.tar.gz |
snd_ds1(4): Fix order of arguments for stereo/16bit mode
This function is called 4 times in this file, with swapped parameter
ordering. Fix the function definition instead of all the call sites.
16bit/stereo or 8bit/mono playback is unaffected and was probably
working fine before, this should fix 16bit/mono and 8bit/stereo
playback.
Found by: Coverity Scan, CID 1006688
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pci/ds1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/ds1.c b/sys/dev/sound/pci/ds1.c index d510717..16626b5 100644 --- a/sys/dev/sound/pci/ds1.c +++ b/sys/dev/sound/pci/ds1.c @@ -365,7 +365,7 @@ ds_allocpslot(struct sc_info *sc) } static int -ds_initpbank(volatile struct pbank *pb, int ch, int b16, int stereo, u_int32_t rate, bus_addr_t base, u_int32_t len) +ds_initpbank(volatile struct pbank *pb, int ch, int stereo, int b16, u_int32_t rate, bus_addr_t base, u_int32_t len) { u_int32_t lv[] = {1, 1, 0, 0, 0}; u_int32_t rv[] = {1, 0, 1, 0, 0}; |