|
@@ -136,7 +136,7 @@ static inline unsigned int hsw_ipc_to_mixer(u32 value)
|
|
|
static int hsw_stream_volume_put(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol);
|
|
|
struct soc_mixer_control *mc =
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
|
|
struct hsw_priv_data *pdata =
|
|
@@ -174,7 +174,7 @@ static int hsw_stream_volume_put(struct snd_kcontrol *kcontrol,
|
|
|
static int hsw_stream_volume_get(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol);
|
|
|
struct soc_mixer_control *mc =
|
|
|
(struct soc_mixer_control *)kcontrol->private_value;
|
|
|
struct hsw_priv_data *pdata =
|
|
@@ -206,7 +206,7 @@ static int hsw_stream_volume_get(struct snd_kcontrol *kcontrol,
|
|
|
static int hsw_volume_put(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol);
|
|
|
struct hsw_priv_data *pdata = snd_soc_platform_get_drvdata(platform);
|
|
|
struct sst_hsw *hsw = pdata->hsw;
|
|
|
u32 volume;
|
|
@@ -231,7 +231,7 @@ static int hsw_volume_put(struct snd_kcontrol *kcontrol,
|
|
|
static int hsw_volume_get(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_platform *platform = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol);
|
|
|
struct hsw_priv_data *pdata = snd_soc_platform_get_drvdata(platform);
|
|
|
struct sst_hsw *hsw = pdata->hsw;
|
|
|
unsigned int volume = 0;
|