diff options
Diffstat (limited to 'sound/soc/blackfin/bf5xx-ad1980.c')
-rw-r--r-- | sound/soc/blackfin/bf5xx-ad1980.c | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/sound/soc/blackfin/bf5xx-ad1980.c b/sound/soc/blackfin/bf5xx-ad1980.c index a3812408c6a5..06a84b211b52 100644 --- a/sound/soc/blackfin/bf5xx-ad1980.c +++ b/sound/soc/blackfin/bf5xx-ad1980.c | |||
@@ -47,39 +47,34 @@ | |||
47 | #include <asm/portmux.h> | 47 | #include <asm/portmux.h> |
48 | 48 | ||
49 | #include "../codecs/ad1980.h" | 49 | #include "../codecs/ad1980.h" |
50 | #include "bf5xx-sport.h" | 50 | |
51 | #include "bf5xx-ac97-pcm.h" | 51 | #include "bf5xx-ac97-pcm.h" |
52 | #include "bf5xx-ac97.h" | 52 | #include "bf5xx-ac97.h" |
53 | 53 | ||
54 | static struct snd_soc_card bf5xx_board; | 54 | static struct snd_soc_card bf5xx_board; |
55 | 55 | ||
56 | static int bf5xx_board_startup(struct snd_pcm_substream *substream) | 56 | static struct snd_soc_dai_link bf5xx_board_dai[] = { |
57 | { | 57 | { |
58 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 58 | .name = "AC97", |
59 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; | 59 | .stream_name = "AC97 HiFi", |
60 | 60 | .cpu_dai_name = "bfin-ac97.0", | |
61 | pr_debug("%s enter\n", __func__); | 61 | .codec_dai_name = "ad1980-hifi", |
62 | snd_soc_dai_set_drvdata(cpu_dai, sport_handle); | 62 | .platform_name = "bfin-ac97-pcm-audio", |
63 | return 0; | 63 | .codec_name = "ad1980", |
64 | } | 64 | }, |
65 | 65 | { | |
66 | static struct snd_soc_ops bf5xx_board_ops = { | 66 | .name = "AC97", |
67 | .startup = bf5xx_board_startup, | 67 | .stream_name = "AC97 HiFi", |
68 | }; | 68 | .cpu_dai_name = "bfin-ac97.1", |
69 | 69 | .codec_dai_name = "ad1980-hifi", | |
70 | static struct snd_soc_dai_link bf5xx_board_dai = { | 70 | .platform_name = "bfin-ac97-pcm-audio", |
71 | .name = "AC97", | 71 | .codec_name = "ad1980", |
72 | .stream_name = "AC97 HiFi", | 72 | }, |
73 | .cpu_dai_name = "bfin-ac97", | ||
74 | .codec_dai_name = "ad1980-hifi", | ||
75 | .platform_name = "bfin-ac97-pcm-audio", | ||
76 | .codec_name = "ad1980", | ||
77 | .ops = &bf5xx_board_ops, | ||
78 | }; | 73 | }; |
79 | 74 | ||
80 | static struct snd_soc_card bf5xx_board = { | 75 | static struct snd_soc_card bf5xx_board = { |
81 | .name = "bfin-ad1980", | 76 | .name = "bfin-ad1980", |
82 | .dai_link = &bf5xx_board_dai, | 77 | .dai_link = &bf5xx_board_dai[CONFIG_SND_BF5XX_SPORT_NUM], |
83 | .num_links = 1, | 78 | .num_links = 1, |
84 | }; | 79 | }; |
85 | 80 | ||