diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-18 17:11:38 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-21 09:12:10 -0500 |
commit | dee89c4d94433520e4e3977ae203d4cfbfe385fb (patch) | |
tree | bdbe4c54cd9789b02a6d0bf5f75a47b8721e073e /sound/soc/s3c24xx/s3c24xx-i2s.c | |
parent | a47cbe7263236691ee0bbc392f7fd4ec0da1159f (diff) |
ASoC: Merge snd_soc_ops into snd_soc_dai_ops
Liam Girdwood's ASoC v2 work avoids having two different ops structures
for DAIs by merging the members of struct snd_soc_ops into struct
snd_soc_dai_ops, allowing per DAI configuration for everything.
Backport this change.
This paves the way for future work allowing any combination of DAIs to
be connected rather than having fixed purpose CODEC and CPU DAIs and
only allowing CODEC<->CPU interconnections.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s3c24xx/s3c24xx-i2s.c')
-rw-r--r-- | sound/soc/s3c24xx/s3c24xx-i2s.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/s3c24xx/s3c24xx-i2s.c b/sound/soc/s3c24xx/s3c24xx-i2s.c index c18977bceaf2..1bac9dd3dbd4 100644 --- a/sound/soc/s3c24xx/s3c24xx-i2s.c +++ b/sound/soc/s3c24xx/s3c24xx-i2s.c | |||
@@ -243,7 +243,8 @@ static int s3c24xx_i2s_set_fmt(struct snd_soc_dai *cpu_dai, | |||
243 | } | 243 | } |
244 | 244 | ||
245 | static int s3c24xx_i2s_hw_params(struct snd_pcm_substream *substream, | 245 | static int s3c24xx_i2s_hw_params(struct snd_pcm_substream *substream, |
246 | struct snd_pcm_hw_params *params) | 246 | struct snd_pcm_hw_params *params, |
247 | struct snd_soc_dai *dai) | ||
247 | { | 248 | { |
248 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 249 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
249 | u32 iismod; | 250 | u32 iismod; |
@@ -279,7 +280,8 @@ static int s3c24xx_i2s_hw_params(struct snd_pcm_substream *substream, | |||
279 | return 0; | 280 | return 0; |
280 | } | 281 | } |
281 | 282 | ||
282 | static int s3c24xx_i2s_trigger(struct snd_pcm_substream *substream, int cmd) | 283 | static int s3c24xx_i2s_trigger(struct snd_pcm_substream *substream, int cmd, |
284 | struct snd_soc_dai *dai) | ||
283 | { | 285 | { |
284 | int ret = 0; | 286 | int ret = 0; |
285 | 287 | ||
@@ -475,8 +477,7 @@ struct snd_soc_dai s3c24xx_i2s_dai = { | |||
475 | .formats = SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE,}, | 477 | .formats = SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE,}, |
476 | .ops = { | 478 | .ops = { |
477 | .trigger = s3c24xx_i2s_trigger, | 479 | .trigger = s3c24xx_i2s_trigger, |
478 | .hw_params = s3c24xx_i2s_hw_params,}, | 480 | .hw_params = s3c24xx_i2s_hw_params, |
479 | .dai_ops = { | ||
480 | .set_fmt = s3c24xx_i2s_set_fmt, | 481 | .set_fmt = s3c24xx_i2s_set_fmt, |
481 | .set_clkdiv = s3c24xx_i2s_set_clkdiv, | 482 | .set_clkdiv = s3c24xx_i2s_set_clkdiv, |
482 | .set_sysclk = s3c24xx_i2s_set_sysclk, | 483 | .set_sysclk = s3c24xx_i2s_set_sysclk, |