Skip to contentSkip to conversation

ASoC codec: fix compiling error in ad1980 driver after ASoC API changed

PATCH In review Bryan Wu 2 participants 2 messages Sep 4, 2008

Subsystems (3)
lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 ASoC codec: fix compiling error in ad1980 driver after ASoC API changed

From: Cliff Cai <[email protected]>

---
 sound/soc/codecs/ad1980.c |    2 +-
 sound/soc/codecs/ad1980.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/ad1980.c +1 -1
index bfbab3d..4e09c1f 100644
@@ -141,7 +141,7 @@ static int ac97_write(struct snd_soc_codec *codec, unsigned int reg,
 	return 0;
 }
 
-struct snd_soc_codec_dai ad1980_dai = {
+struct snd_soc_dai ad1980_dai = {
 	.name = "AC97",
 	.playback = {
 		.stream_name = "Playback",
sound/soc/codecs/ad1980.h +1 -1
index 5d4710d..db6c850 100644
@@ -17,7 +17,7 @@
 #define PR5		0x2000
 #define PR6		0x4000
 
-extern struct snd_soc_codec_dai ad1980_dai;
+extern struct snd_soc_dai ad1980_dai;
 extern struct snd_soc_codec_device soc_codec_dev_ad1980;
 
 #endif
Signature · 1 line
1.5.6
#1 lore raw

At Thu, 4 Sep 2008 16:25:54 +0800,

Quoted 5 lines · Bryan Wu

From: Cliff Cai <[email protected]>

Applied this one now as it's an obvious fix. I wait for ack by Mark or others about other patches.

Thanks.

Takashi

Quoted 38 lines
---
 sound/soc/codecs/ad1980.c |    2 +-
 sound/soc/codecs/ad1980.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/ad1980.c +1 -1
index bfbab3d..4e09c1f 100644
@@ -141,7 +141,7 @@ static int ac97_write(struct snd_soc_codec *codec, unsigned int reg,
 	return 0;
 }
 
-struct snd_soc_codec_dai ad1980_dai = {
+struct snd_soc_dai ad1980_dai = {
 	.name = "AC97",
 	.playback = {
 		.stream_name = "Playback",
sound/soc/codecs/ad1980.h +1 -1
index 5d4710d..db6c850 100644
@@ -17,7 +17,7 @@
 #define PR5		0x2000
 #define PR6		0x4000
 
-extern struct snd_soc_codec_dai ad1980_dai;
+extern struct snd_soc_dai ad1980_dai;
 extern struct snd_soc_codec_device soc_codec_dev_ad1980;
 
 #endif
Signature · 5 lines
1.5.6
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel