aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320aic3x.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/tlv320aic3x.c')
-rw-r--r--sound/soc/codecs/tlv320aic3x.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 36ab0198ca3f..ba64b0c617e6 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -727,7 +727,7 @@ static int aic3x_hw_params(struct snd_pcm_substream *substream,
727{ 727{
728 struct snd_soc_pcm_runtime *rtd = substream->private_data; 728 struct snd_soc_pcm_runtime *rtd = substream->private_data;
729 struct snd_soc_device *socdev = rtd->socdev; 729 struct snd_soc_device *socdev = rtd->socdev;
730 struct snd_soc_codec *codec = socdev->codec; 730 struct snd_soc_codec *codec = socdev->card->codec;
731 struct aic3x_priv *aic3x = codec->private_data; 731 struct aic3x_priv *aic3x = codec->private_data;
732 int codec_clk = 0, bypass_pll = 0, fsref, last_clk = 0; 732 int codec_clk = 0, bypass_pll = 0, fsref, last_clk = 0;
733 u8 data, r, p, pll_q, pll_p = 1, pll_r = 1, pll_j = 1; 733 u8 data, r, p, pll_q, pll_p = 1, pll_r = 1, pll_j = 1;
@@ -1079,7 +1079,7 @@ EXPORT_SYMBOL_GPL(aic3x_dai);
1079static int aic3x_suspend(struct platform_device *pdev, pm_message_t state) 1079static int aic3x_suspend(struct platform_device *pdev, pm_message_t state)
1080{ 1080{
1081 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1081 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1082 struct snd_soc_codec *codec = socdev->codec; 1082 struct snd_soc_codec *codec = socdev->card->codec;
1083 1083
1084 aic3x_set_bias_level(codec, SND_SOC_BIAS_OFF); 1084 aic3x_set_bias_level(codec, SND_SOC_BIAS_OFF);
1085 1085
@@ -1089,7 +1089,7 @@ static int aic3x_suspend(struct platform_device *pdev, pm_message_t state)
1089static int aic3x_resume(struct platform_device *pdev) 1089static int aic3x_resume(struct platform_device *pdev)
1090{ 1090{
1091 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1091 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1092 struct snd_soc_codec *codec = socdev->codec; 1092 struct snd_soc_codec *codec = socdev->card->codec;
1093 int i; 1093 int i;
1094 u8 data[2]; 1094 u8 data[2];
1095 u8 *cache = codec->reg_cache; 1095 u8 *cache = codec->reg_cache;
@@ -1112,7 +1112,7 @@ static int aic3x_resume(struct platform_device *pdev)
1112 */ 1112 */
1113static int aic3x_init(struct snd_soc_device *socdev) 1113static int aic3x_init(struct snd_soc_device *socdev)
1114{ 1114{
1115 struct snd_soc_codec *codec = socdev->codec; 1115 struct snd_soc_codec *codec = socdev->card->codec;
1116 struct aic3x_setup_data *setup = socdev->codec_data; 1116 struct aic3x_setup_data *setup = socdev->codec_data;
1117 int reg, ret = 0; 1117 int reg, ret = 0;
1118 1118
@@ -1243,7 +1243,7 @@ static int aic3x_i2c_probe(struct i2c_client *i2c,
1243 const struct i2c_device_id *id) 1243 const struct i2c_device_id *id)
1244{ 1244{
1245 struct snd_soc_device *socdev = aic3x_socdev; 1245 struct snd_soc_device *socdev = aic3x_socdev;
1246 struct snd_soc_codec *codec = socdev->codec; 1246 struct snd_soc_codec *codec = socdev->card->codec;
1247 int ret; 1247 int ret;
1248 1248
1249 i2c_set_clientdata(i2c, codec); 1249 i2c_set_clientdata(i2c, codec);
@@ -1348,7 +1348,7 @@ static int aic3x_probe(struct platform_device *pdev)
1348 } 1348 }
1349 1349
1350 codec->private_data = aic3x; 1350 codec->private_data = aic3x;
1351 socdev->codec = codec; 1351 socdev->card->codec = codec;
1352 mutex_init(&codec->mutex); 1352 mutex_init(&codec->mutex);
1353 INIT_LIST_HEAD(&codec->dapm_widgets); 1353 INIT_LIST_HEAD(&codec->dapm_widgets);
1354 INIT_LIST_HEAD(&codec->dapm_paths); 1354 INIT_LIST_HEAD(&codec->dapm_paths);
@@ -1374,7 +1374,7 @@ static int aic3x_probe(struct platform_device *pdev)
1374static int aic3x_remove(struct platform_device *pdev) 1374static int aic3x_remove(struct platform_device *pdev)
1375{ 1375{
1376 struct snd_soc_device *socdev = platform_get_drvdata(pdev); 1376 struct snd_soc_device *socdev = platform_get_drvdata(pdev);
1377 struct snd_soc_codec *codec = socdev->codec; 1377 struct snd_soc_codec *codec = socdev->card->codec;
1378 1378
1379 /* power down chip */ 1379 /* power down chip */
1380 if (codec->control_data) 1380 if (codec->control_data)