ALSA: compress: remove the sample rate check
authorVinod Koul <vinod.koul@intel.com>
Sat, 4 Jan 2014 11:29:11 +0000 (16:59 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sun, 5 Jan 2014 10:58:08 +0000 (11:58 +0100)
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>
sound/core/compress_offload.c

index 9d518ac73eea064a6b4d918d3dba072cb50102f5..7a20897d33dbc1147b381ca6884f87dc88eb7ff1 100644 (file)
@@ -501,9 +501,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;
 }