Date: Sun, 17 Jan 2021 01:04:08 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252761] multichannel USB audio device reports only 2 channels via SNDCTL_AUDIOINFO Message-ID: <bug-252761-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252761 Bug ID: 252761 Summary: multichannel USB audio device reports only 2 channels via SNDCTL_AUDIOINFO Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org After attaching an 18-in / 18-out device: ugen0.7: <BEHRINGER X18/XR18> at usbus0 uaudio0 on uhub0 uaudio0: <X18/XR18> on usbus0 uaudio0: Play[0]: 48000 Hz, 18 ch, 32-bit S-LE PCM format, 2x8ms buffer. uaudio0: Record[0]: 48000 Hz, 18 ch, 32-bit S-LE PCM format, 2x8ms buffer. uaudio0: MIDI sequencer. pcm2: <USB audio> on uaudio0 uaudio0: No HID volume keys found. SNDCTL_AUDIOINFO reports min_channels =3D 2, max_channels =3D 2 pcm/dsp.c::dsp_oss_audioinfo() only reports 1 or 2 for min/max it appears: for (i =3D 0; caps->fmtlist[i]; i++) { fmts |=3D caps->fmtlist[i]; if (AFMT_CHANNEL(caps->fmtlist[i]) > 1) { minch =3D (minch =3D=3D 0) ? 2 : mi= nch; maxch =3D 2; } else { minch =3D 1; maxch =3D (maxch =3D=3D 0) ? 1 : ma= xch; } } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252761-227>