diff options
Diffstat (limited to 'pcm.c')
-rw-r--r-- | pcm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -84,6 +84,10 @@ static int pcm_open(struct snd_pcm_substream *substream) // Setup remaining hw properties chans = stream->channels; + if (chans == 0) { + D_ERRORK("Channels cannot be 0"); + return -EINVAL; + } hw->channels_min = chans; hw->channels_max = chans; |