From 083799f1d4a337e55ce9bdfaf40e4ba9ba37e0c8 Mon Sep 17 00:00:00 2001 From: Vinod Koul Date: Sat, 4 Jan 2014 16:59:11 +0530 Subject: [PATCH] ALSA: compress: remove the sample rate check commit f0e9c080 - "ALSA: compress: change the way sample rates are sent to kernel" changed the way sample rates are sent. So now we don't need to check for PCM_RATE_xxx in kernel Signed-off-by: Vinod Koul Signed-off-by: Takashi Iwai (cherry picked from commit 2aac06f787940543fb37bfdb982eb99431bc6094) Signed-off-by: Yuchen Song Change-Id: I6448d844fb31097bf33e52c23a7e38d6b089ce69 --- sound/core/compress_offload.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 99db892d7299..fe399f8c18f4 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -490,9 +490,6 @@ static int snd_compress_check_input(struct snd_compr_params *params) if (params->codec.ch_in == 0 || params->codec.ch_out == 0) return -EINVAL; - if (!(params->codec.sample_rate & SNDRV_PCM_RATE_8000_192000)) - return -EINVAL; - return 0; } -- 2.34.1