Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202116
b: refs/heads/master
c: a4f96eb
h: refs/heads/master
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 1d5ad39 commit 89d5d1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2ba6f27cd2c66ad1119e0354a828a1be715c2f1
refs/heads/master: a4f96eb2b1d3e0013da7b82b3d3ccd361c3b46b9
31 changes: 0 additions & 31 deletions trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,34 +1396,6 @@ static int vidioc_g_ctrl(struct file *file, void *priv,
return ret;
}

/*fixme: have an audio flag in gspca_dev?*/
static int vidioc_s_audio(struct file *file, void *priv,
struct v4l2_audio *audio)
{
if (audio->index != 0)
return -EINVAL;
return 0;
}

static int vidioc_g_audio(struct file *file, void *priv,
struct v4l2_audio *audio)
{
strcpy(audio->name, "Microphone");
return 0;
}

static int vidioc_enumaudio(struct file *file, void *priv,
struct v4l2_audio *audio)
{
if (audio->index != 0)
return -EINVAL;

strcpy(audio->name, "Microphone");
audio->capability = 0;
audio->mode = 0;
return 0;
}

static int vidioc_querymenu(struct file *file, void *priv,
struct v4l2_querymenu *qmenu)
{
Expand Down Expand Up @@ -2112,9 +2084,6 @@ static const struct v4l2_ioctl_ops dev_ioctl_ops = {
.vidioc_queryctrl = vidioc_queryctrl,
.vidioc_g_ctrl = vidioc_g_ctrl,
.vidioc_s_ctrl = vidioc_s_ctrl,
.vidioc_g_audio = vidioc_g_audio,
.vidioc_s_audio = vidioc_s_audio,
.vidioc_enumaudio = vidioc_enumaudio,
.vidioc_querymenu = vidioc_querymenu,
.vidioc_enum_input = vidioc_enum_input,
.vidioc_g_input = vidioc_g_input,
Expand Down

0 comments on commit 89d5d1d

Please sign in to comment.