OSDN Git Service

ALSA: emu10k1: don't restrict capture channel count to powers of two
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Tue, 23 May 2023 20:07:08 +0000 (22:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 24 May 2023 10:13:01 +0000 (12:13 +0200)
commit848ec6cf413d151eaae11ada2953d9078f8bcda9
treed336cb9198ec58a2db6bbe131bca1c9186986529
parent872e5b2b5ee3f5b346d58dc4b89f0ca92065b61e
ALSA: emu10k1: don't restrict capture channel count to powers of two

The hardware can deal with primes up to 7 and power-of-two multiples
thereof; the limitation is reflected by the possible buffer sizes.

Note that setting the voice mask will not allow more than 16 channels
even on Sound Blaster Audigy anymore, as 32 seems a bit excessive (the
code overall appears to think so, just not in this case).

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230523200709.236059-4-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emupcm.c