diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-03-01 15:48:13 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-03 11:01:48 +0900 |
commit | e14de47ac95fb25818294325cd77d520c90c6ced (patch) | |
tree | 91f7fda91ed629c4d0a5ff2b9d1e24115a89373b /sound/soc/pxa/corgi.c | |
parent | 9b87a5b0d4aad02e9dff299b63cd85930eb233d8 (diff) | |
download | linux-e14de47ac95fb25818294325cd77d520c90c6ced.tar.bz2 |
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>
Diffstat (limited to 'sound/soc/pxa/corgi.c')
-rw-r--r-- | sound/soc/pxa/corgi.c | 3 |
1 files changed, 1 insertions, 2 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) static int corgi_startup(struct snd_pcm_substream *substream) { struct snd_soc_pcm_runtime *rtd = substream->private_data; - struct snd_soc_codec *codec = rtd->codec; /* check the jack status at stream startup */ - corgi_ext_control(&codec->dapm); + corgi_ext_control(&rtd->card->dapm); return 0; } |