ALSA: compress: remove the sample rate check
authorVinod Koul <vinod.koul@intel.com>
Sat, 4 Jan 2014 11:29:11 +0000 (16:59 +0530)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 7 Nov 2014 00:41:12 +0000 (16:41 -0800)
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 <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 2aac06f787940543fb37bfdb982eb99431bc6094)
Signed-off-by: Yuchen Song <yuchens@nvidia.com>
Change-Id: I6448d844fb31097bf33e52c23a7e38d6b089ce69

sound/core/compress_offload.c

index 99db892d7299056568e5432bdd660ea14d3143c6..fe399f8c18f4812cf436aa2eecf6911e9a93b758 100644 (file)
@@ -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;
 }