瀏覽代碼

ASoC: speyside: Use snd_soc_codec_get_dapm()

The dapm field of the snd_soc_codec struct is eventually going to be
removed. Replace direct access to it with snd_soc_codec_get_dapm(), which
will return the DAPM context for the CODEC.

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>
Lars-Peter Clausen 10 年之前
父節點
當前提交
1a3e2f1d6f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/soc/samsung/speyside.c

+ 1 - 1
sound/soc/samsung/speyside.c

@@ -123,7 +123,7 @@ static void speyside_set_polarity(struct snd_soc_codec *codec,
 	gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity);
 	gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity);
 
 
 	/* Re-run DAPM to make sure we're using the correct mic bias */
 	/* Re-run DAPM to make sure we're using the correct mic bias */
-	snd_soc_dapm_sync(&codec->dapm);
+	snd_soc_dapm_sync(snd_soc_codec_get_dapm(codec));
 }
 }
 
 
 static int speyside_wm0010_init(struct snd_soc_pcm_runtime *rtd)
 static int speyside_wm0010_init(struct snd_soc_pcm_runtime *rtd)