aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-03-01 09:48:13 -0500
committerMark Brown <broonie@linaro.org>2014-03-02 21:01:48 -0500
commite14de47ac95fb25818294325cd77d520c90c6ced (patch)
tree91f7fda91ed629c4d0a5ff2b9d1e24115a89373b
parent9b87a5b0d4aad02e9dff299b63cd85930eb233d8 (diff)
ASoC: pxa: Pass correct DAPM context to {corgi,poodle,spitz}_ext_control
When calling {corgi,poodle,spitz}_ext_control() from the startup callback we pass the CODEC's DAPM context instead of the card's DAPM context. This is not a problem per se since all the DAPM functions in ext_control() fallback to widgets from other DAPM contexts, but passing the card's context is more consistent. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/pxa/corgi.c3
-rw-r--r--sound/soc/pxa/poodle.c3
-rw-r--r--sound/soc/pxa/spitz.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/sound/soc/pxa/corgi.c b/sound/soc/pxa/corgi.c
index b51f88002e62..916ff63d85d0 100644
--- a/sound/soc/pxa/corgi.c
+++ b/sound/soc/pxa/corgi.c
@@ -97,10 +97,9 @@ static void corgi_ext_control(struct snd_soc_dapm_context *dapm)
97static int corgi_startup(struct snd_pcm_substream *substream) 97static int corgi_startup(struct snd_pcm_substream *substream)
98{ 98{
99 struct snd_soc_pcm_runtime *rtd = substream->private_data; 99 struct snd_soc_pcm_runtime *rtd = substream->private_data;
100 struct snd_soc_codec *codec = rtd->codec;
101 100
102 /* check the jack status at stream startup */ 101 /* check the jack status at stream startup */
103 corgi_ext_control(&codec->dapm); 102 corgi_ext_control(&rtd->card->dapm);
104 103
105 return 0; 104 return 0;
106} 105}
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c
index 27c6c03bc5d7..c6bdc6c0eff6 100644
--- a/sound/soc/pxa/poodle.c
+++ b/sound/soc/pxa/poodle.c
@@ -74,10 +74,9 @@ static void poodle_ext_control(struct snd_soc_dapm_context *dapm)
74static int poodle_startup(struct snd_pcm_substream *substream) 74static int poodle_startup(struct snd_pcm_substream *substream)
75{ 75{
76 struct snd_soc_pcm_runtime *rtd = substream->private_data; 76 struct snd_soc_pcm_runtime *rtd = substream->private_data;
77 struct snd_soc_codec *codec = rtd->codec;
78 77
79 /* check the jack status at stream startup */ 78 /* check the jack status at stream startup */
80 poodle_ext_control(&codec->dapm); 79 poodle_ext_control(&rtd->card->dapm);
81 80
82 return 0; 81 return 0;
83} 82}
diff --git a/sound/soc/pxa/spitz.c b/sound/soc/pxa/spitz.c
index 0728c1eb780c..d1b6bf9c8583 100644
--- a/sound/soc/pxa/spitz.c
+++ b/sound/soc/pxa/spitz.c
@@ -106,10 +106,9 @@ static void spitz_ext_control(struct snd_soc_dapm_context *dapm)
106static int spitz_startup(struct snd_pcm_substream *substream) 106static int spitz_startup(struct snd_pcm_substream *substream)
107{ 107{
108 struct snd_soc_pcm_runtime *rtd = substream->private_data; 108 struct snd_soc_pcm_runtime *rtd = substream->private_data;
109 struct snd_soc_codec *codec = rtd->codec;
110 109
111 /* check the jack status at stream startup */ 110 /* check the jack status at stream startup */
112 spitz_ext_control(&codec->dapm); 111 spitz_ext_control(&rtd->card->dapm);
113 112
114 return 0; 113 return 0;
115} 114}