aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8900.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-01-23 17:55:23 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-01-27 05:30:54 -0500
commit6627a653bceb3a54e55e5cdc478ec5b8d5c9cc44 (patch)
tree9a6f157ad1123e4f047689bbf3c4ef88ec1259a4 /sound/soc/codecs/wm8900.c
parent0db4d0705260dd4bddf1e5a5441c58bdf08bdc9f (diff)
ASoC: Push the codec runtime storage into the card structure
This is a further stage on the road to refactoring away the ASoC platform device. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8900.c')
-rw-r--r--sound/soc/codecs/wm8900.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c
index 1e08d4f065f2..85c0f1bc6766 100644
--- a/sound/soc/codecs/wm8900.c
+++ b/sound/soc/codecs/wm8900.c
@@ -720,7 +720,7 @@ static int wm8900_hw_params(struct snd_pcm_substream *substream,
720{ 720{
721 struct snd_soc_pcm_runtime *rtd = substream->private_data; 721 struct snd_soc_pcm_runtime *rtd = substream->private_data;
722 struct snd_soc_device *socdev = rtd->socdev; 722 struct snd_soc_device *socdev = rtd->socdev;
723 struct snd_soc_codec *codec = socdev->codec; 723 struct snd_soc_codec *codec = socdev->card->codec;
724 u16 reg; 724 u16 reg;
725 725
726 reg = wm8900_read(codec, WM8900_REG_AUDIO1) & ~0x60; 726 reg = wm8900_read(codec, WM8900_REG_AUDIO1) & ~0x60;
@@ -1210,7 +1210,7 @@ static int wm8900_set_bias_level(struct snd_soc_codec *codec,
1210static int wm8900_suspend(struct platform_device *pdev, pm_message_t state) 1210static int wm8900_suspend(struct platform_device *pdev, pm_message_t state)
1211{ 1211{
1212 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1212 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1213 struct snd_soc_codec *codec = socdev->codec; 1213 struct snd_soc_codec *codec = socdev->card->codec;
1214 struct wm8900_priv *wm8900 = codec->private_data; 1214 struct wm8900_priv *wm8900 = codec->private_data;
1215 int fll_out = wm8900->fll_out; 1215 int fll_out = wm8900->fll_out;
1216 int fll_in = wm8900->fll_in; 1216 int fll_in = wm8900->fll_in;
@@ -1234,7 +1234,7 @@ static int wm8900_suspend(struct platform_device *pdev, pm_message_t state)
1234static int wm8900_resume(struct platform_device *pdev) 1234static int wm8900_resume(struct platform_device *pdev)
1235{ 1235{
1236 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1236 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1237 struct snd_soc_codec *codec = socdev->codec; 1237 struct snd_soc_codec *codec = socdev->card->codec;
1238 struct wm8900_priv *wm8900 = codec->private_data; 1238 struct wm8900_priv *wm8900 = codec->private_data;
1239 u16 *cache; 1239 u16 *cache;
1240 int i, ret; 1240 int i, ret;
@@ -1414,7 +1414,7 @@ static int wm8900_probe(struct platform_device *pdev)
1414 } 1414 }
1415 1415
1416 codec = wm8900_codec; 1416 codec = wm8900_codec;
1417 socdev->codec = codec; 1417 socdev->card->codec = codec;
1418 1418
1419 /* Register pcms */ 1419 /* Register pcms */
1420 ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1); 1420 ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1);