diff options
Diffstat (limited to 'sound/soc/codecs/cs42l51.c')
-rw-r--r-- | sound/soc/codecs/cs42l51.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 6c0da2baa154..23acaa0263dc 100644 --- a/sound/soc/codecs/cs42l51.c +++ b/sound/soc/codecs/cs42l51.c | |||
@@ -55,7 +55,7 @@ struct cs42l51_private { | |||
55 | static int cs42l51_get_chan_mix(struct snd_kcontrol *kcontrol, | 55 | static int cs42l51_get_chan_mix(struct snd_kcontrol *kcontrol, |
56 | struct snd_ctl_elem_value *ucontrol) | 56 | struct snd_ctl_elem_value *ucontrol) |
57 | { | 57 | { |
58 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 58 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
59 | unsigned long value = snd_soc_read(codec, CS42L51_PCM_MIXER)&3; | 59 | unsigned long value = snd_soc_read(codec, CS42L51_PCM_MIXER)&3; |
60 | 60 | ||
61 | switch (value) { | 61 | switch (value) { |
@@ -83,7 +83,7 @@ static int cs42l51_get_chan_mix(struct snd_kcontrol *kcontrol, | |||
83 | static int cs42l51_set_chan_mix(struct snd_kcontrol *kcontrol, | 83 | static int cs42l51_set_chan_mix(struct snd_kcontrol *kcontrol, |
84 | struct snd_ctl_elem_value *ucontrol) | 84 | struct snd_ctl_elem_value *ucontrol) |
85 | { | 85 | { |
86 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 86 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
87 | unsigned char val; | 87 | unsigned char val; |
88 | 88 | ||
89 | switch (ucontrol->value.integer.value[0]) { | 89 | switch (ucontrol->value.integer.value[0]) { |