diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-24 13:01:05 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-24 13:01:31 -0500 |
commit | 3ba9e10a6d3b6abf5f5952572cff8f8d5a35ae54 (patch) | |
tree | 855569d0aeee6fc06a35928f3b6e351918c9bea6 /sound/soc/pxa | |
parent | b0bd53a7399f65e2d1b37cd44c5003e55b886c1e (diff) |
ASoC: Remove DAI type information
DAI type information is only ever used within ASoC in order to special
case AC97 and for diagnostic purposes. Since modern CPUs and codecs
support multi function DAIs which can be configured for several modes
it is more trouble than it's worth to maintain anything other than a
flag identifying AC97 DAIs so remove the type field and replace it with
an ac97_control flag.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/pxa-ssp.c | 4 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 6 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-i2s.c | 1 |
3 files changed, 3 insertions, 8 deletions
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index d0dd6245a20a..402fc5ba65e7 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -788,7 +788,6 @@ struct snd_soc_dai pxa_ssp_dai[] = { | |||
788 | { | 788 | { |
789 | .name = "pxa2xx-ssp1", | 789 | .name = "pxa2xx-ssp1", |
790 | .id = 0, | 790 | .id = 0, |
791 | .type = SND_SOC_DAI_PCM, | ||
792 | .probe = pxa_ssp_probe, | 791 | .probe = pxa_ssp_probe, |
793 | .remove = pxa_ssp_remove, | 792 | .remove = pxa_ssp_remove, |
794 | .suspend = pxa_ssp_suspend, | 793 | .suspend = pxa_ssp_suspend, |
@@ -820,7 +819,6 @@ struct snd_soc_dai pxa_ssp_dai[] = { | |||
820 | }, | 819 | }, |
821 | { .name = "pxa2xx-ssp2", | 820 | { .name = "pxa2xx-ssp2", |
822 | .id = 1, | 821 | .id = 1, |
823 | .type = SND_SOC_DAI_PCM, | ||
824 | .probe = pxa_ssp_probe, | 822 | .probe = pxa_ssp_probe, |
825 | .remove = pxa_ssp_remove, | 823 | .remove = pxa_ssp_remove, |
826 | .suspend = pxa_ssp_suspend, | 824 | .suspend = pxa_ssp_suspend, |
@@ -853,7 +851,6 @@ struct snd_soc_dai pxa_ssp_dai[] = { | |||
853 | { | 851 | { |
854 | .name = "pxa2xx-ssp3", | 852 | .name = "pxa2xx-ssp3", |
855 | .id = 2, | 853 | .id = 2, |
856 | .type = SND_SOC_DAI_PCM, | ||
857 | .probe = pxa_ssp_probe, | 854 | .probe = pxa_ssp_probe, |
858 | .remove = pxa_ssp_remove, | 855 | .remove = pxa_ssp_remove, |
859 | .suspend = pxa_ssp_suspend, | 856 | .suspend = pxa_ssp_suspend, |
@@ -886,7 +883,6 @@ struct snd_soc_dai pxa_ssp_dai[] = { | |||
886 | { | 883 | { |
887 | .name = "pxa2xx-ssp4", | 884 | .name = "pxa2xx-ssp4", |
888 | .id = 3, | 885 | .id = 3, |
889 | .type = SND_SOC_DAI_PCM, | ||
890 | .probe = pxa_ssp_probe, | 886 | .probe = pxa_ssp_probe, |
891 | .remove = pxa_ssp_remove, | 887 | .remove = pxa_ssp_remove, |
892 | .suspend = pxa_ssp_suspend, | 888 | .suspend = pxa_ssp_suspend, |
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index 86667d2f1b75..bffbe288634c 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c | |||
@@ -173,7 +173,7 @@ struct snd_soc_dai pxa_ac97_dai[] = { | |||
173 | { | 173 | { |
174 | .name = "pxa2xx-ac97", | 174 | .name = "pxa2xx-ac97", |
175 | .id = 0, | 175 | .id = 0, |
176 | .type = SND_SOC_DAI_AC97, | 176 | .ac97_control = 1, |
177 | .probe = pxa2xx_ac97_probe, | 177 | .probe = pxa2xx_ac97_probe, |
178 | .remove = pxa2xx_ac97_remove, | 178 | .remove = pxa2xx_ac97_remove, |
179 | .suspend = pxa2xx_ac97_suspend, | 179 | .suspend = pxa2xx_ac97_suspend, |
@@ -196,7 +196,7 @@ struct snd_soc_dai pxa_ac97_dai[] = { | |||
196 | { | 196 | { |
197 | .name = "pxa2xx-ac97-aux", | 197 | .name = "pxa2xx-ac97-aux", |
198 | .id = 1, | 198 | .id = 1, |
199 | .type = SND_SOC_DAI_AC97, | 199 | .ac97_control = 1, |
200 | .playback = { | 200 | .playback = { |
201 | .stream_name = "AC97 Aux Playback", | 201 | .stream_name = "AC97 Aux Playback", |
202 | .channels_min = 1, | 202 | .channels_min = 1, |
@@ -215,7 +215,7 @@ struct snd_soc_dai pxa_ac97_dai[] = { | |||
215 | { | 215 | { |
216 | .name = "pxa2xx-ac97-mic", | 216 | .name = "pxa2xx-ac97-mic", |
217 | .id = 2, | 217 | .id = 2, |
218 | .type = SND_SOC_DAI_AC97, | 218 | .ac97_control = 1, |
219 | .capture = { | 219 | .capture = { |
220 | .stream_name = "AC97 Mic Capture", | 220 | .stream_name = "AC97 Mic Capture", |
221 | .channels_min = 1, | 221 | .channels_min = 1, |
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index 9a3e55b48129..f9a9e2ebafa1 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c | |||
@@ -340,7 +340,6 @@ static int pxa2xx_i2s_resume(struct platform_device *pdev, | |||
340 | struct snd_soc_dai pxa_i2s_dai = { | 340 | struct snd_soc_dai pxa_i2s_dai = { |
341 | .name = "pxa2xx-i2s", | 341 | .name = "pxa2xx-i2s", |
342 | .id = 0, | 342 | .id = 0, |
343 | .type = SND_SOC_DAI_I2S, | ||
344 | .suspend = pxa2xx_i2s_suspend, | 343 | .suspend = pxa2xx_i2s_suspend, |
345 | .resume = pxa2xx_i2s_resume, | 344 | .resume = pxa2xx_i2s_resume, |
346 | .playback = { | 345 | .playback = { |