From: Christian Gromm Date: Mon, 28 Sep 2015 15:18:56 +0000 (+0200) Subject: staging: most: remove audio resolution format check X-Git-Tag: v5.15~14806^2~1745 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48ab5a339de2b1cd006b7783d1555e4711bf77e5;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/aim-sound/sound.c b/drivers/staging/most/aim-sound/sound.c index 18c346a..df14ce5 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));