diff options
Diffstat (limited to 'sound/soc/codecs/wl1273.c')
-rw-r--r-- | sound/soc/codecs/wl1273.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index 3d868dc40092..7b24d6d192e1 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c | |||
@@ -293,8 +293,7 @@ static const struct snd_kcontrol_new wl1273_controls[] = { | |||
293 | static int wl1273_startup(struct snd_pcm_substream *substream, | 293 | static int wl1273_startup(struct snd_pcm_substream *substream, |
294 | struct snd_soc_dai *dai) | 294 | struct snd_soc_dai *dai) |
295 | { | 295 | { |
296 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 296 | struct snd_soc_codec *codec = dai->codec; |
297 | struct snd_soc_codec *codec = rtd->codec; | ||
298 | struct wl1273_priv *wl1273 = snd_soc_codec_get_drvdata(codec); | 297 | struct wl1273_priv *wl1273 = snd_soc_codec_get_drvdata(codec); |
299 | 298 | ||
300 | switch (wl1273->mode) { | 299 | switch (wl1273->mode) { |
@@ -329,8 +328,7 @@ static int wl1273_hw_params(struct snd_pcm_substream *substream, | |||
329 | struct snd_pcm_hw_params *params, | 328 | struct snd_pcm_hw_params *params, |
330 | struct snd_soc_dai *dai) | 329 | struct snd_soc_dai *dai) |
331 | { | 330 | { |
332 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 331 | struct wl1273_priv *wl1273 = snd_soc_codec_get_drvdata(dai->codec); |
333 | struct wl1273_priv *wl1273 = snd_soc_codec_get_drvdata(rtd->codec); | ||
334 | struct wl1273_core *core = wl1273->core; | 332 | struct wl1273_core *core = wl1273->core; |
335 | unsigned int rate, width, r; | 333 | unsigned int rate, width, r; |
336 | 334 | ||