diff options
-rw-r--r-- | include/sound/soc-dapm.h | 1 | ||||
-rw-r--r-- | sound/soc/soc-core.c | 1 | ||||
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index aac04ff84eea..d60c61b4b341 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -593,7 +593,6 @@ struct snd_soc_dapm_context { | |||
593 | 593 | ||
594 | struct device *dev; /* from parent - for debug */ | 594 | struct device *dev; /* from parent - for debug */ |
595 | struct snd_soc_component *component; /* parent component */ | 595 | struct snd_soc_component *component; /* parent component */ |
596 | struct snd_soc_codec *codec; /* parent codec */ | ||
597 | struct snd_soc_card *card; /* parent card */ | 596 | struct snd_soc_card *card; /* parent card */ |
598 | 597 | ||
599 | /* used during DAPM updates */ | 598 | /* used during DAPM updates */ |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 052f59c1917f..8d45eec141a9 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -4351,7 +4351,6 @@ int snd_soc_register_codec(struct device *dev, | |||
4351 | if (codec_drv->read) | 4351 | if (codec_drv->read) |
4352 | codec->component.read = snd_soc_codec_drv_read; | 4352 | codec->component.read = snd_soc_codec_drv_read; |
4353 | codec->component.ignore_pmdown_time = codec_drv->ignore_pmdown_time; | 4353 | codec->component.ignore_pmdown_time = codec_drv->ignore_pmdown_time; |
4354 | codec->dapm.codec = codec; | ||
4355 | codec->dapm.idle_bias_off = codec_drv->idle_bias_off; | 4354 | codec->dapm.idle_bias_off = codec_drv->idle_bias_off; |
4356 | if (codec_drv->seq_notifier) | 4355 | if (codec_drv->seq_notifier) |
4357 | codec->dapm.seq_notifier = codec_drv->seq_notifier; | 4356 | codec->dapm.seq_notifier = codec_drv->seq_notifier; |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 8348352dc2c6..1f1e9657481a 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -3107,7 +3107,7 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, | |||
3107 | } | 3107 | } |
3108 | 3108 | ||
3109 | w->dapm = dapm; | 3109 | w->dapm = dapm; |
3110 | w->codec = dapm->codec; | 3110 | w->codec = dapm->component->codec; |
3111 | INIT_LIST_HEAD(&w->sources); | 3111 | INIT_LIST_HEAD(&w->sources); |
3112 | INIT_LIST_HEAD(&w->sinks); | 3112 | INIT_LIST_HEAD(&w->sinks); |
3113 | INIT_LIST_HEAD(&w->list); | 3113 | INIT_LIST_HEAD(&w->list); |