Skip to content

Commit

Permalink
ASoC: smartq: Use card DAPM context to access widgets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed May 4, 2015
1 parent 76387a5 commit d01d7d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/soc/samsung/smartq_wm8987.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ static const struct snd_soc_dapm_route audio_map[] = {

static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;
struct snd_soc_dapm_context *dapm = &codec->dapm;
struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
int err = 0;

/* set endpoints to not connected */
Expand Down

0 comments on commit d01d7d3

Please sign in to comment.