diff options
Diffstat (limited to 'sound/soc/intel/sst-haswell-pcm.c')
-rw-r--r-- | sound/soc/intel/sst-haswell-pcm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/intel/sst-haswell-pcm.c b/sound/soc/intel/sst-haswell-pcm.c index 9d5f64a583a3..058efb17c568 100644 --- a/sound/soc/intel/sst-haswell-pcm.c +++ b/sound/soc/intel/sst-haswell-pcm.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/dma-mapping.h> | 18 | #include <linux/dma-mapping.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/module.h> | ||
21 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
22 | #include <asm/page.h> | 21 | #include <asm/page.h> |
23 | #include <asm/pgtable.h> | 22 | #include <asm/pgtable.h> |
@@ -139,7 +138,7 @@ static inline unsigned int hsw_ipc_to_mixer(u32 value) | |||
139 | static int hsw_stream_volume_put(struct snd_kcontrol *kcontrol, | 138 | static int hsw_stream_volume_put(struct snd_kcontrol *kcontrol, |
140 | struct snd_ctl_elem_value *ucontrol) | 139 | struct snd_ctl_elem_value *ucontrol) |
141 | { | 140 | { |
142 | struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol); | 141 | struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); |
143 | struct soc_mixer_control *mc = | 142 | struct soc_mixer_control *mc = |
144 | (struct soc_mixer_control *)kcontrol->private_value; | 143 | (struct soc_mixer_control *)kcontrol->private_value; |
145 | struct hsw_priv_data *pdata = | 144 | struct hsw_priv_data *pdata = |
@@ -177,7 +176,7 @@ static int hsw_stream_volume_put(struct snd_kcontrol *kcontrol, | |||
177 | static int hsw_stream_volume_get(struct snd_kcontrol *kcontrol, | 176 | static int hsw_stream_volume_get(struct snd_kcontrol *kcontrol, |
178 | struct snd_ctl_elem_value *ucontrol) | 177 | struct snd_ctl_elem_value *ucontrol) |
179 | { | 178 | { |
180 | struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol); | 179 | struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); |
181 | struct soc_mixer_control *mc = | 180 | struct soc_mixer_control *mc = |
182 | (struct soc_mixer_control *)kcontrol->private_value; | 181 | (struct soc_mixer_control *)kcontrol->private_value; |
183 | struct hsw_priv_data *pdata = | 182 | struct hsw_priv_data *pdata = |
@@ -209,7 +208,7 @@ static int hsw_stream_volume_get(struct snd_kcontrol *kcontrol, | |||
209 | static int hsw_volume_put(struct snd_kcontrol *kcontrol, | 208 | static int hsw_volume_put(struct snd_kcontrol *kcontrol, |
210 | struct snd_ctl_elem_value *ucontrol) | 209 | struct snd_ctl_elem_value *ucontrol) |
211 | { | 210 | { |
212 | struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol); | 211 | struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); |
213 | struct hsw_priv_data *pdata = snd_soc_platform_get_drvdata(platform); | 212 | struct hsw_priv_data *pdata = snd_soc_platform_get_drvdata(platform); |
214 | struct sst_hsw *hsw = pdata->hsw; | 213 | struct sst_hsw *hsw = pdata->hsw; |
215 | u32 volume; | 214 | u32 volume; |
@@ -234,7 +233,7 @@ static int hsw_volume_put(struct snd_kcontrol *kcontrol, | |||
234 | static int hsw_volume_get(struct snd_kcontrol *kcontrol, | 233 | static int hsw_volume_get(struct snd_kcontrol *kcontrol, |
235 | struct snd_ctl_elem_value *ucontrol) | 234 | struct snd_ctl_elem_value *ucontrol) |
236 | { | 235 | { |
237 | struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol); | 236 | struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); |
238 | struct hsw_priv_data *pdata = snd_soc_platform_get_drvdata(platform); | 237 | struct hsw_priv_data *pdata = snd_soc_platform_get_drvdata(platform); |
239 | struct sst_hsw *hsw = pdata->hsw; | 238 | struct sst_hsw *hsw = pdata->hsw; |
240 | unsigned int volume = 0; | 239 | unsigned int volume = 0; |