diff options
-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) |