diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-21 16:47:24 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:54 -0400 |
commit | 10afbef15e7bba5e1008f583852077743d28c395 (patch) | |
tree | 73dbfe2a3ccde6ef75c3403fb189274247740003 /drivers/media/video/tda9875.c | |
parent | 1df795370c1392a026c63816368108187aec2ec1 (diff) |
V4L/DVB (10698): v4l2-common: remove v4l2_ctrl_query_fill_std
The v4l2_ctrl_query_fill_std() function wasn't one the best idea I ever had.
It doesn't add anything valuable that cannot be expressed equally well with
v4l2_ctrl_query_fill and only adds overhead.
Replace it with v4l2_ctrl_query_fill() everywhere it is used and remove it
from v4l2_common.c.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tda9875.c')
-rw-r--r-- | drivers/media/video/tda9875.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/tda9875.c b/drivers/media/video/tda9875.c index 19fbd18f4882..e71b2bd46612 100644 --- a/drivers/media/video/tda9875.c +++ b/drivers/media/video/tda9875.c | |||
@@ -313,9 +313,10 @@ static int tda9875_queryctrl(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc) | |||
313 | { | 313 | { |
314 | switch (qc->id) { | 314 | switch (qc->id) { |
315 | case V4L2_CID_AUDIO_VOLUME: | 315 | case V4L2_CID_AUDIO_VOLUME: |
316 | return v4l2_ctrl_query_fill(qc, 0, 65535, 65535 / 100, 58880); | ||
316 | case V4L2_CID_AUDIO_BASS: | 317 | case V4L2_CID_AUDIO_BASS: |
317 | case V4L2_CID_AUDIO_TREBLE: | 318 | case V4L2_CID_AUDIO_TREBLE: |
318 | return v4l2_ctrl_query_fill_std(qc); | 319 | return v4l2_ctrl_query_fill(qc, 0, 65535, 65535 / 100, 32768); |
319 | } | 320 | } |
320 | return -EINVAL; | 321 | return -EINVAL; |
321 | } | 322 | } |