radio-ma901.c (b530a447bb588fdf43fdf4eb909e4ee1921d47ac) radio-ma901.c (2f73c7c582a685b3198b974cd6d964d0338f8ab5)
1/*
2 * Driver for the MasterKit MA901 USB FM radio. This device plugs
3 * into the USB port and an analog audio input or headphones, so this thing
4 * only deals with initialization, frequency setting, volume.
5 *
6 * Copyright (c) 2012 Alexey Klimov <klimov.linux@gmail.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 225 unchanged lines hidden (view full) ---

234 /* v->rxsubchans = is_stereo ? V4L2_TUNER_SUB_STEREO : V4L2_TUNER_SUB_MONO; */
235 v->audmode = radio->stereo ?
236 V4L2_TUNER_MODE_STEREO : V4L2_TUNER_MODE_MONO;
237 return 0;
238}
239
240/* vidioc_s_tuner - set tuner attributes */
241static int vidioc_s_tuner(struct file *file, void *priv,
1/*
2 * Driver for the MasterKit MA901 USB FM radio. This device plugs
3 * into the USB port and an analog audio input or headphones, so this thing
4 * only deals with initialization, frequency setting, volume.
5 *
6 * Copyright (c) 2012 Alexey Klimov <klimov.linux@gmail.com>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 225 unchanged lines hidden (view full) ---

234 /* v->rxsubchans = is_stereo ? V4L2_TUNER_SUB_STEREO : V4L2_TUNER_SUB_MONO; */
235 v->audmode = radio->stereo ?
236 V4L2_TUNER_MODE_STEREO : V4L2_TUNER_MODE_MONO;
237 return 0;
238}
239
240/* vidioc_s_tuner - set tuner attributes */
241static int vidioc_s_tuner(struct file *file, void *priv,
242 struct v4l2_tuner *v)
242 const struct v4l2_tuner *v)
243{
244 struct ma901radio_device *radio = video_drvdata(file);
245
246 if (v->index > 0)
247 return -EINVAL;
248
249 /* mono/stereo selector */
250 switch (v->audmode) {

--- 210 unchanged lines hidden ---
243{
244 struct ma901radio_device *radio = video_drvdata(file);
245
246 if (v->index > 0)
247 return -EINVAL;
248
249 /* mono/stereo selector */
250 switch (v->audmode) {

--- 210 unchanged lines hidden ---