mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
f5866522ce
commit
9c8a649226
1 changed files with 1 additions and 1 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in a new issue