staging: most: remove audio resolution format check
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 28 Sep 2015 15:18:56 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:18:52 +0000 (03:18 +0200)
This patch removes the audio format cross-check, because the definitions
are not compatible.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-sound/sound.c

index 18c346a86babd4e39f0272749091f5f2e3253de5..df14ce5718f53980d8b006be66cb85b8a20f2e17 100644 (file)
@@ -336,8 +336,7 @@ static int pcm_hw_params(struct snd_pcm_substream *substream,
        struct channel *channel = substream->private_data;
 
        if ((params_channels(hw_params) > channel->pcm_hardware.channels_max) ||
-           (params_channels(hw_params) < channel->pcm_hardware.channels_min) ||
-           !(params_format(hw_params) != channel->pcm_hardware.formats))
+           (params_channels(hw_params) < channel->pcm_hardware.channels_min))
                return -EINVAL;
        return snd_pcm_lib_alloc_vmalloc_buffer(substream,
                                                params_buffer_bytes(hw_params));