radio-miropcm20.c (b530a447bb588fdf43fdf4eb909e4ee1921d47ac) radio-miropcm20.c (2f73c7c582a685b3198b974cd6d964d0338f8ab5)
1/* Miro PCM20 radio driver for Linux radio support
2 * (c) 1998 Ruurd Reitsma <R.A.Reitsma@wbmt.tudelft.nl>
3 * Thanks to Norberto Pellici for the ACI device interface specification
4 * The API part is based on the radiotrack driver by M. Kirkwood
5 * This driver relies on the aci mixer provided by the snd-miro
6 * ALSA driver.
7 * Look there for further info...
8 */

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

98 v->rxsubchans = (res & 0x40) ? V4L2_TUNER_SUB_MONO :
99 V4L2_TUNER_SUB_STEREO;
100 v->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO;
101 v->audmode = dev->audmode;
102 return 0;
103}
104
105static int vidioc_s_tuner(struct file *file, void *priv,
1/* Miro PCM20 radio driver for Linux radio support
2 * (c) 1998 Ruurd Reitsma <R.A.Reitsma@wbmt.tudelft.nl>
3 * Thanks to Norberto Pellici for the ACI device interface specification
4 * The API part is based on the radiotrack driver by M. Kirkwood
5 * This driver relies on the aci mixer provided by the snd-miro
6 * ALSA driver.
7 * Look there for further info...
8 */

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

98 v->rxsubchans = (res & 0x40) ? V4L2_TUNER_SUB_MONO :
99 V4L2_TUNER_SUB_STEREO;
100 v->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO;
101 v->audmode = dev->audmode;
102 return 0;
103}
104
105static int vidioc_s_tuner(struct file *file, void *priv,
106 struct v4l2_tuner *v)
106 const struct v4l2_tuner *v)
107{
108 struct pcm20 *dev = video_drvdata(file);
109
110 if (v->index)
111 return -EINVAL;
112 if (v->audmode > V4L2_TUNER_MODE_STEREO)
107{
108 struct pcm20 *dev = video_drvdata(file);
109
110 if (v->index)
111 return -EINVAL;
112 if (v->audmode > V4L2_TUNER_MODE_STEREO)
113 v->audmode = V4L2_TUNER_MODE_STEREO;
113 dev->audmode = V4L2_TUNER_MODE_STEREO;
114 else
115 dev->audmode = v->audmode;
114 snd_aci_cmd(dev->aci, ACI_SET_TUNERMONO,
116 snd_aci_cmd(dev->aci, ACI_SET_TUNERMONO,
115 v->audmode == V4L2_TUNER_MODE_MONO, -1);
117 dev->audmode == V4L2_TUNER_MODE_MONO, -1);
116 return 0;
117}
118
119static int vidioc_g_frequency(struct file *file, void *priv,
120 struct v4l2_frequency *f)
121{
122 struct pcm20 *dev = video_drvdata(file);
123

--- 120 unchanged lines hidden ---
118 return 0;
119}
120
121static int vidioc_g_frequency(struct file *file, void *priv,
122 struct v4l2_frequency *f)
123{
124 struct pcm20 *dev = video_drvdata(file);
125

--- 120 unchanged lines hidden ---