Title: [9195] trunk/sound/soc/codecs/ssm2604.c: sound:ssm2604: correct register read to fix compile error
Revision
9195
Author
lliubbo
Date
2010-10-07 23:18:58 -0400 (Thu, 07 Oct 2010)

Log Message

sound:ssm2604: correct register read to fix compile error

Commit 9173 changed ssm2604.c to read SSM2602 and thus
fail to compile.

This commit fix it.

Modified Paths

Diff

Modified: trunk/sound/soc/codecs/ssm2604.c (9194 => 9195)


--- trunk/sound/soc/codecs/ssm2604.c	2010-10-06 06:36:03 UTC (rev 9194)
+++ trunk/sound/soc/codecs/ssm2604.c	2010-10-08 03:18:58 UTC (rev 9195)
@@ -439,9 +439,9 @@
 {
 	struct snd_soc_device *socdev = platform_get_drvdata(pdev);
 	struct snd_soc_codec *codec = socdev->card->codec;
-	struct ssm2602_priv *ssm2602 = codec->private_data;
+	struct ssm2604_priv *ssm2604 = codec->private_data;
 
-	ssm2602->pwr_state = snd_soc_read(codec, SSM2602_PWR);
+	ssm2604->pwr_state = snd_soc_read(codec, SSM2604_PWR);
 	ssm2604_set_bias_level(codec, SND_SOC_BIAS_OFF);
 	return 0;
 }
@@ -450,7 +450,7 @@
 {
 	struct snd_soc_device *socdev = platform_get_drvdata(pdev);
 	struct snd_soc_codec *codec = socdev->card->codec;
-	struct ssm2602_priv *ssm2602 = codec->private_data;
+	struct ssm2604_priv *ssm2604 = codec->private_data;
 	int i;
 	u8 data[2];
 	u16 *cache = codec->reg_cache;
@@ -463,7 +463,7 @@
 	}
 	ssm2604_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 	ssm2604_set_bias_level(codec, codec->suspend_bias_level);
-	snd_soc_write(codec, SSM2602_PWR, ssm2602->pwr_state);
+	snd_soc_write(codec, SSM2604_PWR, ssm2604->pwr_state);
 	return 0;
 }
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to