diff options
Diffstat (limited to 'sound/soc/codecs/tlv320aic23.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic23.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c index 16d55f91a653..8c758b214a25 100644 --- a/sound/soc/codecs/tlv320aic23.c +++ b/sound/soc/codecs/tlv320aic23.c | |||
@@ -34,8 +34,6 @@ | |||
34 | 34 | ||
35 | #include "tlv320aic23.h" | 35 | #include "tlv320aic23.h" |
36 | 36 | ||
37 | #define AIC23_VERSION "0.1" | ||
38 | |||
39 | /* | 37 | /* |
40 | * AIC23 register cache | 38 | * AIC23 register cache |
41 | */ | 39 | */ |
@@ -325,8 +323,7 @@ static int tlv320aic23_hw_params(struct snd_pcm_substream *substream, | |||
325 | struct snd_pcm_hw_params *params, | 323 | struct snd_pcm_hw_params *params, |
326 | struct snd_soc_dai *dai) | 324 | struct snd_soc_dai *dai) |
327 | { | 325 | { |
328 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 326 | struct snd_soc_codec *codec = dai->codec; |
329 | struct snd_soc_codec *codec = rtd->codec; | ||
330 | u16 iface_reg; | 327 | u16 iface_reg; |
331 | int ret; | 328 | int ret; |
332 | struct aic23 *aic23 = snd_soc_codec_get_drvdata(codec); | 329 | struct aic23 *aic23 = snd_soc_codec_get_drvdata(codec); |
@@ -371,8 +368,7 @@ static int tlv320aic23_hw_params(struct snd_pcm_substream *substream, | |||
371 | static int tlv320aic23_pcm_prepare(struct snd_pcm_substream *substream, | 368 | static int tlv320aic23_pcm_prepare(struct snd_pcm_substream *substream, |
372 | struct snd_soc_dai *dai) | 369 | struct snd_soc_dai *dai) |
373 | { | 370 | { |
374 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 371 | struct snd_soc_codec *codec = dai->codec; |
375 | struct snd_soc_codec *codec = rtd->codec; | ||
376 | 372 | ||
377 | /* set active */ | 373 | /* set active */ |
378 | snd_soc_write(codec, TLV320AIC23_ACTIVE, 0x0001); | 374 | snd_soc_write(codec, TLV320AIC23_ACTIVE, 0x0001); |
@@ -383,8 +379,7 @@ static int tlv320aic23_pcm_prepare(struct snd_pcm_substream *substream, | |||
383 | static void tlv320aic23_shutdown(struct snd_pcm_substream *substream, | 379 | static void tlv320aic23_shutdown(struct snd_pcm_substream *substream, |
384 | struct snd_soc_dai *dai) | 380 | struct snd_soc_dai *dai) |
385 | { | 381 | { |
386 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 382 | struct snd_soc_codec *codec = dai->codec; |
387 | struct snd_soc_codec *codec = rtd->codec; | ||
388 | struct aic23 *aic23 = snd_soc_codec_get_drvdata(codec); | 383 | struct aic23 *aic23 = snd_soc_codec_get_drvdata(codec); |
389 | 384 | ||
390 | /* deactivate */ | 385 | /* deactivate */ |
@@ -548,8 +543,6 @@ static int tlv320aic23_probe(struct snd_soc_codec *codec) | |||
548 | struct aic23 *aic23 = snd_soc_codec_get_drvdata(codec); | 543 | struct aic23 *aic23 = snd_soc_codec_get_drvdata(codec); |
549 | int ret; | 544 | int ret; |
550 | 545 | ||
551 | printk(KERN_INFO "AIC23 Audio Codec %s\n", AIC23_VERSION); | ||
552 | |||
553 | ret = snd_soc_codec_set_cache_io(codec, 7, 9, aic23->control_type); | 546 | ret = snd_soc_codec_set_cache_io(codec, 7, 9, aic23->control_type); |
554 | if (ret < 0) { | 547 | if (ret < 0) { |
555 | dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); | 548 | dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); |