Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ALSA] cmipci: remove invalid channels constraint

Remove the constraint that sets the channel limit for the first playback
device to that of the second one; the first device supports only stereo.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

authored by

Clemens Ladisch and committed by
Jaroslav Kysela
f19a82a1 c480f79b

-1
-1
sound/pci/cmipci.c
··· 1514 1514 if ((err = open_device_check(cm, CM_OPEN_PLAYBACK, substream)) < 0) 1515 1515 return err; 1516 1516 runtime->hw = snd_cmipci_playback; 1517 - runtime->hw.channels_max = cm->max_channels; 1518 1517 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 0x10000); 1519 1518 cm->dig_pcm_status = cm->dig_status; 1520 1519 return 0;