Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92572
b: refs/heads/master
c: d69b2e4
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Apr 24, 2008
1 parent dc6b75a commit 81b0586
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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: 7bf9746d936740f9797c810ad75411a6cdeb9f2f
refs/heads/master: d69b2e41a5f6d934d01cc62f314697a60356b466
17 changes: 14 additions & 3 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3117,12 +3117,18 @@ static int bttv_s_crop(struct file *file, void *f, struct v4l2_crop *crop)

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, struct v4l2_audio *a)
{
if (unlikely(a->index))
return -EINVAL;

return 0;
}

Expand Down Expand Up @@ -3510,18 +3516,17 @@ static int radio_enum_input(struct file *file, void *priv,
return -EINVAL;

strcpy(i->name, "Radio");
i->type = V4L2_INPUT_TYPE_TUNER;
i->type = V4L2_INPUT_TYPE_TUNER;

return 0;
}

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

memset(a, 0, sizeof(*a));
strcpy(a->name, "Radio");

return 0;
Expand All @@ -3543,11 +3548,17 @@ static int radio_s_tuner(struct file *file, void *priv,
static int radio_s_audio(struct file *file, void *priv,
struct v4l2_audio *a)
{
if (unlikely(a->index))
return -EINVAL;

return 0;
}

static int radio_s_input(struct file *filp, void *priv, unsigned int i)
{
if (unlikely(i))
return -EINVAL;

return 0;
}

Expand Down

0 comments on commit 81b0586

Please sign in to comment.