diff options
author | Mark Brown <broonie@linaro.org> | 2013-07-16 10:47:10 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-16 10:56:20 +0100 |
commit | 9e12cbd93232c20544d16aa33c587786a6cb726d (patch) | |
tree | 63c0097e9a9c638a6dc287f94b1b18d5321aa271 | |
parent | 6ad74047f47e1c48223237a0032c5e000f01193f (diff) | |
download | kernel_goldelico_gta04-9e12cbd93232c20544d16aa33c587786a6cb726d.zip kernel_goldelico_gta04-9e12cbd93232c20544d16aa33c587786a6cb726d.tar.gz kernel_goldelico_gta04-9e12cbd93232c20544d16aa33c587786a6cb726d.tar.bz2 |
ASoC: kirkwood-i2s: Inline KIRKWOOD_I2S_RATES
The addition of extclk support makes this misleading as it's only the
rates used when there is no extclk so put it in the specific DAI it
applies to.
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/kirkwood/kirkwood-i2s.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c index becc082..e6027fd 100644 --- a/sound/soc/kirkwood/kirkwood-i2s.c +++ b/sound/soc/kirkwood/kirkwood-i2s.c @@ -26,9 +26,6 @@ #define DRV_NAME "kirkwood-i2s" -#define KIRKWOOD_I2S_RATES \ - (SNDRV_PCM_RATE_44100 | \ - SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000) #define KIRKWOOD_I2S_FORMATS \ (SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S24_LE | \ @@ -411,13 +408,15 @@ static struct snd_soc_dai_driver kirkwood_i2s_dai = { .playback = { .channels_min = 1, .channels_max = 2, - .rates = KIRKWOOD_I2S_RATES, + .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | + SNDRV_PCM_RATE_96000, .formats = KIRKWOOD_I2S_FORMATS, }, .capture = { .channels_min = 1, .channels_max = 2, - .rates = KIRKWOOD_I2S_RATES, + .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | + SNDRV_PCM_RATE_96000, .formats = KIRKWOOD_I2S_FORMATS, }, .ops = &kirkwood_i2s_dai_ops, |