mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 21:45:01 +08:00
[media] bttv: remove g/s_audio since there is only one audio input
Note that the current driver does not implement enumaudio (so apps cannot tell that audio inputs are present), it does not set V4L2_CAP_AUDIO, nor does it set audioset when calling ENUM_INPUT. And G_AUDIO doesn't set the stereo flag either. So these g/s_audio ioctls are quite pointless and misleading. Especially since some surveillance boards do not have audio at all. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
b8e2a361ce
commit
e74d7e6d34
@ -2925,23 +2925,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)
|
||||
{
|
||||
@ -3184,8 +3167,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,
|
||||
|
Loading…
Reference in New Issue
Block a user