revert r162516. We only support 1 or 2 channels per stream
which reflects mono and stereo. Submitted by: Hans Petter Selasky
This commit is contained in:
parent
d0e67068f4
commit
c737a63263
@ -97,7 +97,7 @@ SYSCTL_INT(_hw_usb_uaudio, OID_AUTO, default_channels, CTLFLAG_RW,
|
||||
|
||||
#define MAKE_WORD(h,l) (((h) << 8) | (l))
|
||||
#define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1)
|
||||
#define UAUDIO_MAX_CHAN(x) (((x) < 2) ? (x) : 2) /* XXX fixme later */
|
||||
#define UAUDIO_MAX_CHAN(x) (x)
|
||||
|
||||
struct uaudio_mixer_node {
|
||||
int32_t minval;
|
||||
@ -940,6 +940,8 @@ uaudio_chan_fill_info_sub(struct uaudio_softc *sc, struct usb_device *udev,
|
||||
bChannels = UAUDIO_MAX_CHAN(asf1d->bNrChannels);
|
||||
bBitResolution = asf1d->bBitResolution;
|
||||
|
||||
DPRINTFN(9, "bChannels=%u\n", bChannels);
|
||||
|
||||
if (asf1d->bSamFreqType == 0) {
|
||||
DPRINTFN(16, "Sample rate: %d-%dHz\n",
|
||||
UA_SAMP_LO(asf1d), UA_SAMP_HI(asf1d));
|
||||
|
Loading…
x
Reference in New Issue
Block a user