aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/radio/radio-maxiradio.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
index 2fc866086d13..40494dc5b7ff 100644
--- a/drivers/media/radio/radio-maxiradio.c
+++ b/drivers/media/radio/radio-maxiradio.c
@@ -220,6 +220,26 @@ static int vidioc_s_tuner (struct file *file, void *priv,
220 return 0; 220 return 0;
221} 221}
222 222
223static int vidioc_g_audio (struct file *file, void *priv,
224 struct v4l2_audio *a)
225{
226 if (a->index > 1)
227 return -EINVAL;
228
229 strcpy(a->name, "Radio");
230 a->capability = V4L2_AUDCAP_STEREO;
231 return 0;
232}
233
234static int vidioc_s_audio (struct file *file, void *priv,
235 struct v4l2_audio *a)
236{
237 if (a->index != 0)
238 return -EINVAL;
239
240 return 0;
241}
242
223static int vidioc_s_frequency (struct file *file, void *priv, 243static int vidioc_s_frequency (struct file *file, void *priv,
224 struct v4l2_frequency *f) 244 struct v4l2_frequency *f)
225{ 245{
@@ -304,6 +324,8 @@ static struct video_device maxiradio_radio =
304 .vidioc_querycap = vidioc_querycap, 324 .vidioc_querycap = vidioc_querycap,
305 .vidioc_g_tuner = vidioc_g_tuner, 325 .vidioc_g_tuner = vidioc_g_tuner,
306 .vidioc_s_tuner = vidioc_s_tuner, 326 .vidioc_s_tuner = vidioc_s_tuner,
327 .vidioc_g_audio = vidioc_g_audio,
328 .vidioc_s_audio = vidioc_s_audio,
307 .vidioc_g_frequency = vidioc_g_frequency, 329 .vidioc_g_frequency = vidioc_g_frequency,
308 .vidioc_s_frequency = vidioc_s_frequency, 330 .vidioc_s_frequency = vidioc_s_frequency,
309 .vidioc_queryctrl = vidioc_queryctrl, 331 .vidioc_queryctrl = vidioc_queryctrl,