diff options
author | Liam Girdwood <lg@opensource.wolfsonmicro.com> | 2008-07-07 11:07:52 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-10 03:32:39 -0400 |
commit | e550e17ffeb8cf8db27724eaf2ad05f77388afb9 (patch) | |
tree | 0c73c0d1e42ce77b049f8d4c39ce1937f5256eca /sound/soc/codecs/ak4535.c | |
parent | 9cb132d743cf39b3bbe4288e9035217e7237a0bb (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/ak4535.c')
-rw-r--r-- | sound/soc/codecs/ak4535.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c index 469266e881d8..b26003c4f3e8 100644 --- a/sound/soc/codecs/ak4535.c +++ b/sound/soc/codecs/ak4535.c | |||
@@ -329,7 +329,7 @@ static int ak4535_add_widgets(struct snd_soc_codec *codec) | |||
329 | return 0; | 329 | return 0; |
330 | } | 330 | } |
331 | 331 | ||
332 | static int ak4535_set_dai_sysclk(struct snd_soc_codec_dai *codec_dai, | 332 | static int ak4535_set_dai_sysclk(struct snd_soc_dai *codec_dai, |
333 | int clk_id, unsigned int freq, int dir) | 333 | int clk_id, unsigned int freq, int dir) |
334 | { | 334 | { |
335 | struct snd_soc_codec *codec = codec_dai->codec; | 335 | struct snd_soc_codec *codec = codec_dai->codec; |
@@ -369,7 +369,7 @@ static int ak4535_hw_params(struct snd_pcm_substream *substream, | |||
369 | return 0; | 369 | return 0; |
370 | } | 370 | } |
371 | 371 | ||
372 | static int ak4535_set_dai_fmt(struct snd_soc_codec_dai *codec_dai, | 372 | static int ak4535_set_dai_fmt(struct snd_soc_dai *codec_dai, |
373 | unsigned int fmt) | 373 | unsigned int fmt) |
374 | { | 374 | { |
375 | struct snd_soc_codec *codec = codec_dai->codec; | 375 | struct snd_soc_codec *codec = codec_dai->codec; |
@@ -394,7 +394,7 @@ static int ak4535_set_dai_fmt(struct snd_soc_codec_dai *codec_dai, | |||
394 | return 0; | 394 | return 0; |
395 | } | 395 | } |
396 | 396 | ||
397 | static int ak4535_mute(struct snd_soc_codec_dai *dai, int mute) | 397 | static int ak4535_mute(struct snd_soc_dai *dai, int mute) |
398 | { | 398 | { |
399 | struct snd_soc_codec *codec = dai->codec; | 399 | struct snd_soc_codec *codec = dai->codec; |
400 | u16 mute_reg = ak4535_read_reg_cache(codec, AK4535_DAC) & 0xffdf; | 400 | u16 mute_reg = ak4535_read_reg_cache(codec, AK4535_DAC) & 0xffdf; |
@@ -436,7 +436,7 @@ static int ak4535_set_bias_level(struct snd_soc_codec *codec, | |||
436 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\ | 436 | SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\ |
437 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) | 437 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) |
438 | 438 | ||
439 | struct snd_soc_codec_dai ak4535_dai = { | 439 | struct snd_soc_dai ak4535_dai = { |
440 | .name = "AK4535", | 440 | .name = "AK4535", |
441 | .playback = { | 441 | .playback = { |
442 | .stream_name = "Playback", | 442 | .stream_name = "Playback", |