mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
ASoC: smartq: Use card DAPM context to access widgets
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>
This commit is contained in:
parent
76387a52e2
commit
d01d7d3dba
1 changed files with 1 additions and 2 deletions
|
@ -137,8 +137,7 @@ static const struct snd_soc_dapm_route audio_map[] = {
|
||||||
|
|
||||||
static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
|
static int smartq_wm8987_init(struct snd_soc_pcm_runtime *rtd)
|
||||||
{
|
{
|
||||||
struct snd_soc_codec *codec = rtd->codec;
|
struct snd_soc_dapm_context *dapm = &rtd->card->dapm;
|
||||||
struct snd_soc_dapm_context *dapm = &codec->dapm;
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
/* set endpoints to not connected */
|
/* set endpoints to not connected */
|
||||||
|
|
Loading…
Reference in a new issue