mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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
ad77d81512
commit
fe862a9b36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145198
@ -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…
Reference in New Issue
Block a user