diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-07-03 08:00:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-12 10:15:04 -0400 |
commit | c2c33c34378c2b4d5f53cd7f36a5517a7362ca56 (patch) | |
tree | a6318fdae051f71cda0e10a29190e33f81693fe0 | |
parent | d715758dfea284acf9d9d76e46ebce2d6509a78d (diff) |
[media] cx88: use wm8775_s_ctrl instead of the s_ctrl op
This op is deprecated and should not be used anymore.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/pci/cx88/cx88-alsa.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/pci/cx88/cx88-alsa.c b/drivers/media/pci/cx88/cx88-alsa.c index e158a1da1d41..f3f13eb0c16e 100644 --- a/drivers/media/pci/cx88/cx88-alsa.c +++ b/drivers/media/pci/cx88/cx88-alsa.c | |||
@@ -799,13 +799,9 @@ static int snd_cx88_alc_put(struct snd_kcontrol *kcontrol, | |||
799 | { | 799 | { |
800 | snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol); | 800 | snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol); |
801 | struct cx88_core *core = chip->core; | 801 | struct cx88_core *core = chip->core; |
802 | struct v4l2_control client_ctl; | ||
803 | |||
804 | memset(&client_ctl, 0, sizeof(client_ctl)); | ||
805 | client_ctl.value = 0 != value->value.integer.value[0]; | ||
806 | client_ctl.id = V4L2_CID_AUDIO_LOUDNESS; | ||
807 | call_hw(core, WM8775_GID, core, s_ctrl, &client_ctl); | ||
808 | 802 | ||
803 | wm8775_s_ctrl(core, V4L2_CID_AUDIO_LOUDNESS, | ||
804 | value->value.integer.value[0] != 0); | ||
809 | return 0; | 805 | return 0; |
810 | } | 806 | } |
811 | 807 | ||