diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-04-12 13:31:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-13 13:34:36 -0400 |
commit | 13319699113a78e90625ece124666d3ee53033f6 (patch) | |
tree | 5c212021339c03fc711348aa8e13b5a79244f828 /sound/soc/jz4740 | |
parent | d06e48db1670b29b3f62f1dfe4a36af237d5aa0d (diff) |
ASoC: JZ4740: Convert qi_lb60 codec to table based DAPM setup
Use the newly introduced dapm_widgets, dpam_routes and fields of the
snd_soc_card struct to setup DAPM.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/jz4740')
-rw-r--r-- | sound/soc/jz4740/qi_lb60.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sound/soc/jz4740/qi_lb60.c b/sound/soc/jz4740/qi_lb60.c index 49723e3e7e3..875abc94a00 100644 --- a/sound/soc/jz4740/qi_lb60.c +++ b/sound/soc/jz4740/qi_lb60.c | |||
@@ -70,12 +70,6 @@ static int qi_lb60_codec_init(struct snd_soc_pcm_runtime *rtd) | |||
70 | return ret; | 70 | return ret; |
71 | } | 71 | } |
72 | 72 | ||
73 | snd_soc_dapm_new_controls(dapm, qi_lb60_widgets, | ||
74 | ARRAY_SIZE(qi_lb60_widgets)); | ||
75 | snd_soc_dapm_add_routes(dapm, qi_lb60_routes, | ||
76 | ARRAY_SIZE(qi_lb60_routes)); | ||
77 | snd_soc_dapm_sync(dapm); | ||
78 | |||
79 | return 0; | 73 | return 0; |
80 | } | 74 | } |
81 | 75 | ||
@@ -93,6 +87,11 @@ static struct snd_soc_card qi_lb60 = { | |||
93 | .name = "QI LB60", | 87 | .name = "QI LB60", |
94 | .dai_link = &qi_lb60_dai, | 88 | .dai_link = &qi_lb60_dai, |
95 | .num_links = 1, | 89 | .num_links = 1, |
90 | |||
91 | .dapm_widgets = qi_lb60_widgets, | ||
92 | .num_dapm_widgets = ARRAY_SIZE(qi_lb60_widgets), | ||
93 | .dapm_routes = qi_lb60_routes, | ||
94 | .num_dapm_routes = ARRAY_SIZE(qi_lb60_routes), | ||
96 | }; | 95 | }; |
97 | 96 | ||
98 | static struct platform_device *qi_lb60_snd_device; | 97 | static struct platform_device *qi_lb60_snd_device; |