Skip site navigation (1)Skip section navigation (2)
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/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252761

            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 = 2, max_channels = 2


pcm/dsp.c::dsp_oss_audioinfo() only reports 1 or 2 for min/max it appears:

                        for (i = 0; caps->fmtlist[i]; i++) {
                                fmts |= caps->fmtlist[i];
                                if (AFMT_CHANNEL(caps->fmtlist[i]) > 1) {
                                        minch = (minch == 0) ? 2 : minch;
                                        maxch = 2;
                                } else {
                                        minch = 1;
                                        maxch = (maxch == 0) ? 1 : maxch;
                                }
                        }

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252761-227>