diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:54:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:54:43 -0400 |
commit | 985c0cd3f75b5a546ceab002e36b4263f2f7d2c3 (patch) | |
tree | 7097c68df6679aabab79ede8daa6c0299d98d63e /sound | |
parent | 81d91acf8c093565f65383ae0349b9255fbb2d0d (diff) | |
parent | d6648da122870ff42bc720da25483bdb8bc868f8 (diff) |
Merge branch 'for-2.6.30' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6
* 'for-2.6.30' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6:
ASoC: TWL4030: Compillation error fix
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/twl4030.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index bfda7a88e825..921b205de28a 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
@@ -1220,11 +1220,12 @@ static int twl4030_set_bias_level(struct snd_soc_codec *codec, | |||
1220 | return 0; | 1220 | return 0; |
1221 | } | 1221 | } |
1222 | 1222 | ||
1223 | static int twl4030_startup(struct snd_pcm_substream *substream) | 1223 | static int twl4030_startup(struct snd_pcm_substream *substream, |
1224 | struct snd_soc_dai *dai) | ||
1224 | { | 1225 | { |
1225 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 1226 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
1226 | struct snd_soc_device *socdev = rtd->socdev; | 1227 | struct snd_soc_device *socdev = rtd->socdev; |
1227 | struct snd_soc_codec *codec = socdev->codec; | 1228 | struct snd_soc_codec *codec = socdev->card->codec; |
1228 | struct twl4030_priv *twl4030 = codec->private_data; | 1229 | struct twl4030_priv *twl4030 = codec->private_data; |
1229 | 1230 | ||
1230 | /* If we already have a playback or capture going then constrain | 1231 | /* If we already have a playback or capture going then constrain |
@@ -1251,11 +1252,12 @@ static int twl4030_startup(struct snd_pcm_substream *substream) | |||
1251 | return 0; | 1252 | return 0; |
1252 | } | 1253 | } |
1253 | 1254 | ||
1254 | static void twl4030_shutdown(struct snd_pcm_substream *substream) | 1255 | static void twl4030_shutdown(struct snd_pcm_substream *substream, |
1256 | struct snd_soc_dai *dai) | ||
1255 | { | 1257 | { |
1256 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 1258 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
1257 | struct snd_soc_device *socdev = rtd->socdev; | 1259 | struct snd_soc_device *socdev = rtd->socdev; |
1258 | struct snd_soc_codec *codec = socdev->codec; | 1260 | struct snd_soc_codec *codec = socdev->card->codec; |
1259 | struct twl4030_priv *twl4030 = codec->private_data; | 1261 | struct twl4030_priv *twl4030 = codec->private_data; |
1260 | 1262 | ||
1261 | if (twl4030->master_substream == substream) | 1263 | if (twl4030->master_substream == substream) |