aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/twl4030.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/twl4030.c')
-rw-r--r--sound/soc/codecs/twl4030.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index f530c1e6d9e8..796f34cac85d 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -981,7 +981,7 @@ static int twl4030_hw_params(struct snd_pcm_substream *substream,
981{ 981{
982 struct snd_soc_pcm_runtime *rtd = substream->private_data; 982 struct snd_soc_pcm_runtime *rtd = substream->private_data;
983 struct snd_soc_device *socdev = rtd->socdev; 983 struct snd_soc_device *socdev = rtd->socdev;
984 struct snd_soc_codec *codec = socdev->codec; 984 struct snd_soc_codec *codec = socdev->card->codec;
985 u8 mode, old_mode, format, old_format; 985 u8 mode, old_mode, format, old_format;
986 986
987 987
@@ -1166,7 +1166,7 @@ EXPORT_SYMBOL_GPL(twl4030_dai);
1166static int twl4030_suspend(struct platform_device *pdev, pm_message_t state) 1166static int twl4030_suspend(struct platform_device *pdev, pm_message_t state)
1167{ 1167{
1168 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1168 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1169 struct snd_soc_codec *codec = socdev->codec; 1169 struct snd_soc_codec *codec = socdev->card->codec;
1170 1170
1171 twl4030_set_bias_level(codec, SND_SOC_BIAS_OFF); 1171 twl4030_set_bias_level(codec, SND_SOC_BIAS_OFF);
1172 1172
@@ -1176,7 +1176,7 @@ static int twl4030_suspend(struct platform_device *pdev, pm_message_t state)
1176static int twl4030_resume(struct platform_device *pdev) 1176static int twl4030_resume(struct platform_device *pdev)
1177{ 1177{
1178 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1178 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1179 struct snd_soc_codec *codec = socdev->codec; 1179 struct snd_soc_codec *codec = socdev->card->codec;
1180 1180
1181 twl4030_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 1181 twl4030_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
1182 twl4030_set_bias_level(codec, codec->suspend_bias_level); 1182 twl4030_set_bias_level(codec, codec->suspend_bias_level);
@@ -1190,7 +1190,7 @@ static int twl4030_resume(struct platform_device *pdev)
1190 1190
1191static int twl4030_init(struct snd_soc_device *socdev) 1191static int twl4030_init(struct snd_soc_device *socdev)
1192{ 1192{
1193 struct snd_soc_codec *codec = socdev->codec; 1193 struct snd_soc_codec *codec = socdev->card->codec;
1194 int ret = 0; 1194 int ret = 0;
1195 1195
1196 printk(KERN_INFO "TWL4030 Audio Codec init \n"); 1196 printk(KERN_INFO "TWL4030 Audio Codec init \n");
@@ -1251,7 +1251,7 @@ static int twl4030_probe(struct platform_device *pdev)
1251 if (codec == NULL) 1251 if (codec == NULL)
1252 return -ENOMEM; 1252 return -ENOMEM;
1253 1253
1254 socdev->codec = codec; 1254 socdev->card->codec = codec;
1255 mutex_init(&codec->mutex); 1255 mutex_init(&codec->mutex);
1256 INIT_LIST_HEAD(&codec->dapm_widgets); 1256 INIT_LIST_HEAD(&codec->dapm_widgets);
1257 INIT_LIST_HEAD(&codec->dapm_paths); 1257 INIT_LIST_HEAD(&codec->dapm_paths);
@@ -1265,7 +1265,7 @@ static int twl4030_probe(struct platform_device *pdev)
1265static int twl4030_remove(struct platform_device *pdev) 1265static int twl4030_remove(struct platform_device *pdev)
1266{ 1266{
1267 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1267 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1268 struct snd_soc_codec *codec = socdev->codec; 1268 struct snd_soc_codec *codec = socdev->card->codec;
1269 1269
1270 printk(KERN_INFO "TWL4030 Audio Codec remove\n"); 1270 printk(KERN_INFO "TWL4030 Audio Codec remove\n");
1271 snd_soc_free_pcms(socdev); 1271 snd_soc_free_pcms(socdev);