projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d715758
)
[media] cx88: use wm8775_s_ctrl instead of the s_ctrl op
author
Hans Verkuil
<
[email protected]
>
Sun, 3 Jul 2016 12:00:26 +0000
(09:00 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 12 Jul 2016 14:15:04 +0000
(11:15 -0300)
This op is deprecated and should not be used anymore.
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/pci/cx88/cx88-alsa.c
patch
|
blob
|
history
diff --git
a/drivers/media/pci/cx88/cx88-alsa.c
b/drivers/media/pci/cx88/cx88-alsa.c
index e158a1da1d41010e782fe04ab509dad28e60f6b1..f3f13eb0c16e8dac5ce9d6ab72f07392d05101b5 100644
(file)
--- 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,
{
snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol);
struct cx88_core *core = chip->core;
- struct v4l2_control client_ctl;
-
- memset(&client_ctl, 0, sizeof(client_ctl));
- client_ctl.value = 0 != value->value.integer.value[0];
- client_ctl.id = V4L2_CID_AUDIO_LOUDNESS;
- call_hw(core, WM8775_GID, core, s_ctrl, &client_ctl);
+ wm8775_s_ctrl(core, V4L2_CID_AUDIO_LOUDNESS,
+ value->value.integer.value[0] != 0);
return 0;
}