summaryrefslogtreecommitdiff
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2015-09-28 17:18:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-29 03:18:52 +0200
commit48ab5a339de2b1cd006b7783d1555e4711bf77e5 (patch)
tree02ab10473db2a6885b9f8b2bf1ac593b5f910148 /drivers/staging/most
parent35c33721387afe2adda91936f163bb31ba3f0adf (diff)
staging: most: remove audio resolution format check
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>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/aim-sound/sound.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/most/aim-sound/sound.c b/drivers/staging/most/aim-sound/sound.c
index 18c346a86bab..df14ce5718f5 100644
--- a/drivers/staging/most/aim-sound/sound.c
+++ b/drivers/staging/most/aim-sound/sound.c
@@ -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));