summaryrefslogtreecommitdiff
path: root/sound/soc/ti/omap-twl4030.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/ti/omap-twl4030.c')
-rw-r--r--sound/soc/ti/omap-twl4030.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/ti/omap-twl4030.c b/sound/soc/ti/omap-twl4030.c
index 4b408cec7a90..1da05a6cdc9f 100644
--- a/sound/soc/ti/omap-twl4030.c
+++ b/sound/soc/ti/omap-twl4030.c
@@ -38,7 +38,7 @@ struct omap_twl4030 {
static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
+ struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
unsigned int fmt;
switch (params_channels(params)) {