aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index e68326f2809..fcf8f2d208a 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -3518,8 +3518,12 @@ static int radio_enum_input(struct file *file, void *priv,
3518static int radio_g_audio(struct file *file, void *priv, 3518static int radio_g_audio(struct file *file, void *priv,
3519 struct v4l2_audio *a) 3519 struct v4l2_audio *a)
3520{ 3520{
3521 if (a->index != 0)
3522 return -EINVAL;
3523
3521 memset(a, 0, sizeof(*a)); 3524 memset(a, 0, sizeof(*a));
3522 strcpy(a->name, "Radio"); 3525 strcpy(a->name, "Radio");
3526
3523 return 0; 3527 return 0;
3524} 3528}
3525 3529