diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-07-17 16:01:07 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-22 18:15:57 -0400 |
commit | 00200107a296cad3a950049a5ad7134a0d962b8d (patch) | |
tree | 73ccc523f1a46f0f8b7deab226a1df0cf6d057ed /sound/soc/codecs/wm_adsp.c | |
parent | 093c4e5c3cc6dd320f6cfec54c5490d1567fb05c (diff) |
ASoC: Move card field form platform/codec to component
Both the snd_soc_codec and snd_soc_platform struct do have a pointer to the
parent card and both handle this pointer in mostly the same way. This patch
moves the card field to the component level which will allow further code
consolidation between platforms and CODECS.
Since there are only a handful of users of the snd_soc_codec struct's card field
(and none of the snd_soc_platform's) these are update in this patch as well,
which allows it to be removed from the snd_soc_codec struct.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.c')
-rw-r--r-- | sound/soc/codecs/wm_adsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index 060027182dcb..fb86f072fa67 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c | |||
@@ -1382,7 +1382,7 @@ int wm_adsp1_event(struct snd_soc_dapm_widget *w, | |||
1382 | int ret; | 1382 | int ret; |
1383 | int val; | 1383 | int val; |
1384 | 1384 | ||
1385 | dsp->card = codec->card; | 1385 | dsp->card = codec->component.card; |
1386 | 1386 | ||
1387 | switch (event) { | 1387 | switch (event) { |
1388 | case SND_SOC_DAPM_POST_PMU: | 1388 | case SND_SOC_DAPM_POST_PMU: |
@@ -1617,7 +1617,7 @@ int wm_adsp2_early_event(struct snd_soc_dapm_widget *w, | |||
1617 | struct wm_adsp *dsps = snd_soc_codec_get_drvdata(codec); | 1617 | struct wm_adsp *dsps = snd_soc_codec_get_drvdata(codec); |
1618 | struct wm_adsp *dsp = &dsps[w->shift]; | 1618 | struct wm_adsp *dsp = &dsps[w->shift]; |
1619 | 1619 | ||
1620 | dsp->card = codec->card; | 1620 | dsp->card = codec->component.card; |
1621 | 1621 | ||
1622 | switch (event) { | 1622 | switch (event) { |
1623 | case SND_SOC_DAPM_PRE_PMU: | 1623 | case SND_SOC_DAPM_PRE_PMU: |