diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-06 09:17:22 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-07 13:02:11 -0500 |
commit | c853679a51b9bb76a3e06e64a0b4c6276f391921 (patch) | |
tree | d030a9e3c705b8b6d35071dd5e945a9b06ed5e81 /sound/soc/ux500 | |
parent | dc1b36b24990b9d87c6de88819c112c4db91dbc8 (diff) |
ASoC: mop500_ab8500: Use snd_soc_runtime_set_dai_fmt()
Use snd_soc_runtime_set_dai_fmt() to configure the format for the DAI link
rather than configuring each DAI individually.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ux500')
-rw-r--r-- | sound/soc/ux500/mop500_ab8500.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/soc/ux500/mop500_ab8500.c b/sound/soc/ux500/mop500_ab8500.c index be4f1ac7cd5e..aa65370db82a 100644 --- a/sound/soc/ux500/mop500_ab8500.c +++ b/sound/soc/ux500/mop500_ab8500.c | |||
@@ -290,21 +290,9 @@ static int mop500_ab8500_hw_params(struct snd_pcm_substream *substream, | |||
290 | SND_SOC_DAIFMT_GATED; | 290 | SND_SOC_DAIFMT_GATED; |
291 | } | 291 | } |
292 | 292 | ||
293 | ret = snd_soc_dai_set_fmt(codec_dai, fmt); | 293 | ret = snd_soc_runtime_set_dai_fmt(rtd, fmt); |
294 | if (ret < 0) { | 294 | if (ret) |
295 | dev_err(dev, | ||
296 | "%s: ERROR: snd_soc_dai_set_fmt failed for codec_dai (ret = %d)!\n", | ||
297 | __func__, ret); | ||
298 | return ret; | ||
299 | } | ||
300 | |||
301 | ret = snd_soc_dai_set_fmt(cpu_dai, fmt); | ||
302 | if (ret < 0) { | ||
303 | dev_err(dev, | ||
304 | "%s: ERROR: snd_soc_dai_set_fmt failed for cpu_dai (ret = %d)!\n", | ||
305 | __func__, ret); | ||
306 | return ret; | 295 | return ret; |
307 | } | ||
308 | 296 | ||
309 | /* Setup TDM-slots */ | 297 | /* Setup TDM-slots */ |
310 | 298 | ||