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:
matk 2005-04-17 16:26:08 +00:00
parent 21db4509f1
commit 9d042448ba

View File

@ -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);