Fix a bug where we call pcm_getbuffersize twice.
Pointed out by: Kazuhito HONDA <kazuhito at ph dot noda dot tus dot ac dot jp>
This commit is contained in:
parent
21db4509f1
commit
9d042448ba
@ -329,7 +329,6 @@ ua_attach(device_t dev)
|
||||
ua->bufsz = pcm_getbuffersize(dev, 4096, UAUDIO_DEFAULT_BUFSZ, 65536);
|
||||
if (bootverbose)
|
||||
device_printf(dev, "using a default buffer size of %jd\n", (intmax_t)ua->bufsz);
|
||||
ua->bufsz = pcm_getbuffersize(dev, 4096, UAUDIO_DEFAULT_BUFSZ, 65536);
|
||||
|
||||
if (mixer_init(dev, &ua_mixer_class, ua)) {
|
||||
return(ENXIO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user