|
@@ -309,7 +309,7 @@ static int sta350_coefficient_info(struct snd_kcontrol *kcontrol,
|
|
|
static int sta350_coefficient_get(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
|
|
|
struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec);
|
|
|
int numcoef = kcontrol->private_value >> 16;
|
|
|
int index = kcontrol->private_value & 0xffff;
|
|
@@ -351,7 +351,7 @@ exit_unlock:
|
|
|
static int sta350_coefficient_put(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
|
|
|
struct sta350_priv *sta350 = snd_soc_codec_get_drvdata(codec);
|
|
|
int numcoef = kcontrol->private_value >> 16;
|
|
|
int index = kcontrol->private_value & 0xffff;
|