diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-wm8960.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/soc/fsl/imx-wm8960.c b/sound/soc/fsl/imx-wm8960.c index 51eb9fbdfcb0..0406d6716b6a 100644 --- a/sound/soc/fsl/imx-wm8960.c +++ b/sound/soc/fsl/imx-wm8960.c @@ -378,20 +378,12 @@ static int imx_hifi_hw_free(struct snd_pcm_substream *substream) return 0; } -static u32 imx_wm8960_rates[] = { - 8000, 16000, 32000, 48000, 64000, 96000 -}; +static u32 imx_wm8960_rates[] = { 8000, 16000, 32000, 48000 }; static struct snd_pcm_hw_constraint_list imx_wm8960_rate_constraints = { .count = ARRAY_SIZE(imx_wm8960_rates), .list = imx_wm8960_rates, }; -static u32 imx_wm8960_formats[] = {16, 32}; -static struct snd_pcm_hw_constraint_list imx_wm8960_format_constraints = { - .count = ARRAY_SIZE(imx_wm8960_formats), - .list = imx_wm8960_formats, -}; - static int imx_hifi_startup(struct snd_pcm_substream *substream) { struct snd_soc_pcm_runtime *rtd = substream->private_data; @@ -415,11 +407,6 @@ static int imx_hifi_startup(struct snd_pcm_substream *substream) SNDRV_PCM_HW_PARAM_RATE, &imx_wm8960_rate_constraints); if (ret) return ret; - - ret = snd_pcm_hw_constraint_list(substream->runtime, 0, - SNDRV_PCM_HW_PARAM_SAMPLE_BITS, &imx_wm8960_format_constraints); - if (ret) - return ret; } ret = clk_prepare_enable(data->codec_clk); |