Skip to content

Commit

Permalink
ASoC: lowland: 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>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed May 4, 2015
1 parent 29ea3ac commit 239ad6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/samsung/lowland.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static int lowland_wm9081_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;

snd_soc_dapm_nc_pin(&codec->dapm, "LINEOUT");
snd_soc_dapm_nc_pin(&rtd->card->dapm, "LINEOUT");

/* At any time the WM9081 is active it will have this clock */
return snd_soc_codec_set_sysclk(codec, WM9081_SYSCLK_MCLK, 0,
Expand Down

0 comments on commit 239ad6a

Please sign in to comment.