aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8990.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/wm8990.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/wm8990.c')
-rw-r--r--sound/soc/codecs/wm8990.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c
index a1371b73ba7d..3ecce5168e94 100644
--- a/sound/soc/codecs/wm8990.c
+++ b/sound/soc/codecs/wm8990.c
@@ -1029,7 +1029,7 @@ static void pll_factors(struct _pll_div *pll_div, unsigned int target,
1029 pll_div->k = K; 1029 pll_div->k = K;
1030} 1030}
1031 1031
1032static int wm8990_set_dai_pll(struct snd_soc_codec_dai *codec_dai, 1032static int wm8990_set_dai_pll(struct snd_soc_dai *codec_dai,
1033 int pll_id, unsigned int freq_in, unsigned int freq_out) 1033 int pll_id, unsigned int freq_in, unsigned int freq_out)
1034{ 1034{
1035 u16 reg; 1035 u16 reg;
@@ -1065,7 +1065,7 @@ static int wm8990_set_dai_pll(struct snd_soc_codec_dai *codec_dai,
1065/* 1065/*
1066 * Clock after PLL and dividers 1066 * Clock after PLL and dividers
1067 */ 1067 */
1068static int wm8990_set_dai_sysclk(struct snd_soc_codec_dai *codec_dai, 1068static int wm8990_set_dai_sysclk(struct snd_soc_dai *codec_dai,
1069 int clk_id, unsigned int freq, int dir) 1069 int clk_id, unsigned int freq, int dir)
1070{ 1070{
1071 struct snd_soc_codec *codec = codec_dai->codec; 1071 struct snd_soc_codec *codec = codec_dai->codec;
@@ -1078,7 +1078,7 @@ static int wm8990_set_dai_sysclk(struct snd_soc_codec_dai *codec_dai,
1078/* 1078/*
1079 * Set's ADC and Voice DAC format. 1079 * Set's ADC and Voice DAC format.
1080 */ 1080 */
1081static int wm8990_set_dai_fmt(struct snd_soc_codec_dai *codec_dai, 1081static int wm8990_set_dai_fmt(struct snd_soc_dai *codec_dai,
1082 unsigned int fmt) 1082 unsigned int fmt)
1083{ 1083{
1084 struct snd_soc_codec *codec = codec_dai->codec; 1084 struct snd_soc_codec *codec = codec_dai->codec;
@@ -1131,7 +1131,7 @@ static int wm8990_set_dai_fmt(struct snd_soc_codec_dai *codec_dai,
1131 return 0; 1131 return 0;
1132} 1132}
1133 1133
1134static int wm8990_set_dai_clkdiv(struct snd_soc_codec_dai *codec_dai, 1134static int wm8990_set_dai_clkdiv(struct snd_soc_dai *codec_dai,
1135 int div_id, int div) 1135 int div_id, int div)
1136{ 1136{
1137 struct snd_soc_codec *codec = codec_dai->codec; 1137 struct snd_soc_codec *codec = codec_dai->codec;
@@ -1196,7 +1196,7 @@ static int wm8990_hw_params(struct snd_pcm_substream *substream,
1196 return 0; 1196 return 0;
1197} 1197}
1198 1198
1199static int wm8990_mute(struct snd_soc_codec_dai *dai, int mute) 1199static int wm8990_mute(struct snd_soc_dai *dai, int mute)
1200{ 1200{
1201 struct snd_soc_codec *codec = dai->codec; 1201 struct snd_soc_codec *codec = dai->codec;
1202 u16 val; 1202 u16 val;
@@ -1329,7 +1329,7 @@ static int wm8990_set_bias_level(struct snd_soc_codec *codec,
1329 * 1. ADC/DAC on Primary Interface 1329 * 1. ADC/DAC on Primary Interface
1330 * 2. ADC on Primary Interface/DAC on secondary 1330 * 2. ADC on Primary Interface/DAC on secondary
1331 */ 1331 */
1332struct snd_soc_codec_dai wm8990_dai = { 1332struct snd_soc_dai wm8990_dai = {
1333/* ADC/DAC on primary */ 1333/* ADC/DAC on primary */
1334 .name = "WM8990 ADC/DAC Primary", 1334 .name = "WM8990 ADC/DAC Primary",
1335 .id = 1, 1335 .id = 1,