aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8510.c
diff options
context:
space:
mode:
authorLiam Girdwood <lg@opensource.wolfsonmicro.com>2008-07-07 11:07:52 -0400
committerJaroslav Kysela <perex@perex.cz>2008-07-10 03:32:39 -0400
commite550e17ffeb8cf8db27724eaf2ad05f77388afb9 (patch)
tree0c73c0d1e42ce77b049f8d4c39ce1937f5256eca /sound/soc/codecs/wm8510.c
parent9cb132d743cf39b3bbe4288e9035217e7237a0bb (diff)
ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
This patch merges struct snd_soc_codec_dai and struct snd_soc_cpu_dai into struct snd_soc_dai for the codec drivers. Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc/codecs/wm8510.c')
-rw-r--r--sound/soc/codecs/wm8510.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index b549f6753aba..67325fd95447 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -332,7 +332,7 @@ static void pll_factors(unsigned int target, unsigned int source)
332 pll_div.k = K; 332 pll_div.k = K;
333} 333}
334 334
335static int wm8510_set_dai_pll(struct snd_soc_codec_dai *codec_dai, 335static int wm8510_set_dai_pll(struct snd_soc_dai *codec_dai,
336 int pll_id, unsigned int freq_in, unsigned int freq_out) 336 int pll_id, unsigned int freq_in, unsigned int freq_out)
337{ 337{
338 struct snd_soc_codec *codec = codec_dai->codec; 338 struct snd_soc_codec *codec = codec_dai->codec;
@@ -368,7 +368,7 @@ static int wm8510_set_dai_pll(struct snd_soc_codec_dai *codec_dai,
368/* 368/*
369 * Configure WM8510 clock dividers. 369 * Configure WM8510 clock dividers.
370 */ 370 */
371static int wm8510_set_dai_clkdiv(struct snd_soc_codec_dai *codec_dai, 371static int wm8510_set_dai_clkdiv(struct snd_soc_dai *codec_dai,
372 int div_id, int div) 372 int div_id, int div)
373{ 373{
374 struct snd_soc_codec *codec = codec_dai->codec; 374 struct snd_soc_codec *codec = codec_dai->codec;
@@ -402,7 +402,7 @@ static int wm8510_set_dai_clkdiv(struct snd_soc_codec_dai *codec_dai,
402 return 0; 402 return 0;
403} 403}
404 404
405static int wm8510_set_dai_fmt(struct snd_soc_codec_dai *codec_dai, 405static int wm8510_set_dai_fmt(struct snd_soc_dai *codec_dai,
406 unsigned int fmt) 406 unsigned int fmt)
407{ 407{
408 struct snd_soc_codec *codec = codec_dai->codec; 408 struct snd_soc_codec *codec = codec_dai->codec;
@@ -510,7 +510,7 @@ static int wm8510_pcm_hw_params(struct snd_pcm_substream *substream,
510 return 0; 510 return 0;
511} 511}
512 512
513static int wm8510_mute(struct snd_soc_codec_dai *dai, int mute) 513static int wm8510_mute(struct snd_soc_dai *dai, int mute)
514{ 514{
515 struct snd_soc_codec *codec = dai->codec; 515 struct snd_soc_codec *codec = dai->codec;
516 u16 mute_reg = wm8510_read_reg_cache(codec, WM8510_DAC) & 0xffbf; 516 u16 mute_reg = wm8510_read_reg_cache(codec, WM8510_DAC) & 0xffbf;
@@ -554,7 +554,7 @@ static int wm8510_set_bias_level(struct snd_soc_codec *codec,
554#define WM8510_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 554#define WM8510_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
555 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) 555 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
556 556
557struct snd_soc_codec_dai wm8510_dai = { 557struct snd_soc_dai wm8510_dai = {
558 .name = "WM8510 HiFi", 558 .name = "WM8510 HiFi",
559 .playback = { 559 .playback = {
560 .stream_name = "Playback", 560 .stream_name = "Playback",