aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci/davinci-evm.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-04-11 07:11:28 -0400
committerMark Brown <broonie@kernel.org>2015-04-12 07:44:24 -0400
commitb213b44a96ed1f868f68b094dbcf8fc9622984ef (patch)
tree3c8075d3631eb36e132ca7b475b220272bb1d232 /sound/soc/davinci/davinci-evm.c
parent4cd9db08598454e4d051b818c5f1d61ac7539a47 (diff)
ASoC: davinci-evm: Use card DAPM context to access widgets
The dapm field of the snd_soc_codec struct will eventually be removed (replaced with the DAPM context from the component embedded inside the CODEC). Replace its usage with the card's DAPM context. The idea is that DAPM is hierarchical and with the card at the root it is possible to access widgets from other contexts through the card context. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/davinci/davinci-evm.c')
-rw-r--r--sound/soc/davinci/davinci-evm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c
index b6bb5947a8a8..1f314a836f2a 100644
--- a/sound/soc/davinci/davinci-evm.c
+++ b/sound/soc/davinci/davinci-evm.c
@@ -117,7 +117,6 @@ static const struct snd_soc_dapm_route audio_map[] = {
117static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd) 117static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd)
118{ 118{
119 struct snd_soc_card *card = rtd->card; 119 struct snd_soc_card *card = rtd->card;
120 struct snd_soc_codec *codec = rtd->codec;
121 struct device_node *np = card->dev->of_node; 120 struct device_node *np = card->dev->of_node;
122 int ret; 121 int ret;
123 122
@@ -136,9 +135,9 @@ static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd)
136 } 135 }
137 136
138 /* not connected */ 137 /* not connected */
139 snd_soc_dapm_nc_pin(&codec->dapm, "MONO_LOUT"); 138 snd_soc_dapm_nc_pin(&card->dapm, "MONO_LOUT");
140 snd_soc_dapm_nc_pin(&codec->dapm, "HPLCOM"); 139 snd_soc_dapm_nc_pin(&card->dapm, "HPLCOM");
141 snd_soc_dapm_nc_pin(&codec->dapm, "HPRCOM"); 140 snd_soc_dapm_nc_pin(&card->dapm, "HPRCOM");
142 141
143 return 0; 142 return 0;
144} 143}