From: "Frank Schäfer" <fschaefer.oss@googlemail.com>
To: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [REVIEWv2 PATCH 04/19] bttv: remove g/s_audio since there is only one audio input.
Date: Sun, 10 Feb 2013 21:22:41 +0100 [thread overview]
Message-ID: <51180191.4070100@googlemail.com> (raw)
In-Reply-To: <0681941b222b6cc9c0bb288f81019d4f90c9d683.1360500224.git.hans.verkuil@cisco.com>
Hmm... G/S_AUDIO is also used to query/set the capabilities and the mode
of an input, which IMHO makes sense even if the input is the only one
the device has ?
Don't you think that it's also somehow inconsistent, because for the
video inputs (G/S_INPUT) the spec says:
"This ioctl will fail only when there are no video inputs, returning
EINVAL." ?
Regards,
Frank
Am 10.02.2013 13:49, schrieb Hans Verkuil:
> From: Hans Verkuil <hans.verkuil@cisco.com>
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
> drivers/media/pci/bt8xx/bttv-driver.c | 19 -------------------
> 1 file changed, 19 deletions(-)
>
> diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c
> index 6e61dbd..a02c031 100644
> --- a/drivers/media/pci/bt8xx/bttv-driver.c
> +++ b/drivers/media/pci/bt8xx/bttv-driver.c
> @@ -3138,23 +3138,6 @@ static int bttv_s_crop(struct file *file, void *f, const struct v4l2_crop *crop)
> return 0;
> }
>
> -static int bttv_g_audio(struct file *file, void *priv, struct v4l2_audio *a)
> -{
> - if (unlikely(a->index))
> - return -EINVAL;
> -
> - strcpy(a->name, "audio");
> - return 0;
> -}
> -
> -static int bttv_s_audio(struct file *file, void *priv, const struct v4l2_audio *a)
> -{
> - if (unlikely(a->index))
> - return -EINVAL;
> -
> - return 0;
> -}
> -
> static ssize_t bttv_read(struct file *file, char __user *data,
> size_t count, loff_t *ppos)
> {
> @@ -3390,8 +3373,6 @@ static const struct v4l2_ioctl_ops bttv_ioctl_ops = {
> .vidioc_g_fmt_vbi_cap = bttv_g_fmt_vbi_cap,
> .vidioc_try_fmt_vbi_cap = bttv_try_fmt_vbi_cap,
> .vidioc_s_fmt_vbi_cap = bttv_s_fmt_vbi_cap,
> - .vidioc_g_audio = bttv_g_audio,
> - .vidioc_s_audio = bttv_s_audio,
> .vidioc_cropcap = bttv_cropcap,
> .vidioc_reqbufs = bttv_reqbufs,
> .vidioc_querybuf = bttv_querybuf,
next prev parent reply other threads:[~2013-02-10 20:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-10 12:49 [REVIEWv2 PATCH 00/19] bttv v4l2-compliance fixes Hans Verkuil
2013-02-10 12:49 ` [REVIEWv2 PATCH 01/19] bttv: fix querycap and radio v4l2-compliance issues Hans Verkuil
2013-02-10 12:49 ` [REVIEWv2 PATCH 02/19] bttv: add VIDIOC_DBG_G_CHIP_IDENT Hans Verkuil
2013-02-10 12:49 ` [REVIEWv2 PATCH 03/19] bttv: fix ENUM_INPUT and S_INPUT Hans Verkuil
2013-02-10 12:49 ` [REVIEWv2 PATCH 04/19] bttv: remove g/s_audio since there is only one audio input Hans Verkuil
2013-02-10 20:22 ` Frank Schäfer [this message]
2013-02-11 14:22 ` Hans Verkuil
2013-02-11 16:53 ` Frank Schäfer
2013-02-10 12:50 ` [REVIEWv2 PATCH 05/19] bttv: disable g/s_tuner and g/s_freq when no tuner present, fix return codes Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 06/19] bttv: set initial tv/radio frequencies Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 07/19] bttv: G_PARM: set readbuffers Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 08/19] bttv: fill in colorspace Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 09/19] bttv: fill in fb->flags for VIDIOC_G_FBUF Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 10/19] bttv: fix field handling inside TRY_FMT Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 11/19] tda7432: convert to the control framework Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 12/19] bttv: " Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 13/19] bttv: add support for control events Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 14/19] bttv: fix priority handling Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 15/19] bttv: use centralized std and implement g_std Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 16/19] bttv: there may be multiple tvaudio/tda7432 devices Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 17/19] bttv: fix g_tuner capabilities override Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 18/19] bttv: fix try_fmt_vid_overlay and setup initial overlay size Hans Verkuil
2013-02-10 12:50 ` [REVIEWv2 PATCH 19/19] bttv: do not switch to the radio tuner unless it is accessed Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51180191.4070100@googlemail.com \
--to=fschaefer.oss@googlemail.com \
--cc=hans.verkuil@cisco.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.