ASoC: Add snd_soc_kcontrol_codec() helper function
[deliverable/linux.git] / sound / soc / codecs / da9055.c
index 4ff06b50fbba78342b596058bfac5a9ce973d097..ad19cc56702b46fda1d98045730ae27bd3a2b633 100644 (file)
@@ -484,7 +484,7 @@ static int da9055_get_alc_data(struct snd_soc_codec *codec, u8 reg_val)
 static int da9055_put_alc_sw(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);
        u8 reg_val, adc_left, adc_right, mic_left, mic_right;
        int avg_left_data, avg_right_data, offset_l, offset_r;
 
This page took 0.03111 seconds and 5 git commands to generate.