Skip to contentSkip to conversation

ASoC: TWL4030: Fix for compilation error

PATCH Applied Peter Ujfalusi 2 participants 3 messages Apr 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ASoC: TWL4030: Fix for compilation error

Hello,

I'm really sorry for the trouble that this caused.

The patch provides fix for the compillation error, which is introduced by the "ASoC: TWL4030: Add constrains for second stream" patch of mine...

---
Peter Ujfalusi (1):
ASoC: TWL4030: Compillation error fix

 sound/soc/codecs/twl4030.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
#1 lore raw

PATCH 1/1 ASoC: TWL4030: Compillation error fix

Fix for compillation error introduced by the constrain patch.

---
 sound/soc/codecs/twl4030.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
sound/soc/codecs/twl4030.c +6 -4
index bfda7a8..921b205 100644
@@ -1220,11 +1220,12 @@ static int twl4030_set_bias_level(struct snd_soc_codec *codec,
 	return 0;
 }
 
-static int twl4030_startup(struct snd_pcm_substream *substream)
+static int twl4030_startup(struct snd_pcm_substream *substream,
+			   struct snd_soc_dai *dai)
 {
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
 	struct snd_soc_device *socdev = rtd->socdev;
-	struct snd_soc_codec *codec = socdev->codec;
+	struct snd_soc_codec *codec = socdev->card->codec;
 	struct twl4030_priv *twl4030 = codec->private_data;
 
 	/* If we already have a playback or capture going then constrain
@@ -1251,11 +1252,12 @@ static int twl4030_startup(struct snd_pcm_substream *substream)
 	return 0;
 }
 
-static void twl4030_shutdown(struct snd_pcm_substream *substream)
+static void twl4030_shutdown(struct snd_pcm_substream *substream,
+			     struct snd_soc_dai *dai)
 {
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
 	struct snd_soc_device *socdev = rtd->socdev;
-	struct snd_soc_codec *codec = socdev->codec;
+	struct snd_soc_codec *codec = socdev->card->codec;
 	struct twl4030_priv *twl4030 = codec->private_data;
 
 	if (twl4030->master_substream == substream)
Signature · 1 line
1.6.2.2