dsbr100.c (b530a447bb588fdf43fdf4eb909e4ee1921d47ac) | dsbr100.c (2f73c7c582a685b3198b974cd6d964d0338f8ab5) |
---|---|
1/* A driver for the D-Link DSB-R100 USB radio and Gemtek USB Radio 21. 2 * The device plugs into both the USB and an analog audio input, so this thing 3 * only deals with initialisation and frequency setting, the 4 * audio data has to be handled by a sound driver. 5 * 6 * Major issue: I can't find out where the device reports the signal 7 * strength, and indeed the windows software appearantly just looks 8 * at the stereo indicator as well. So, scanning will only find --- 194 unchanged lines hidden (view full) --- 203 V4L2_TUNER_SUB_MONO; 204 v->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO; 205 v->audmode = V4L2_TUNER_MODE_STEREO; 206 v->signal = radio->stereo ? 0xffff : 0; /* We can't get the signal strength */ 207 return 0; 208} 209 210static int vidioc_s_tuner(struct file *file, void *priv, | 1/* A driver for the D-Link DSB-R100 USB radio and Gemtek USB Radio 21. 2 * The device plugs into both the USB and an analog audio input, so this thing 3 * only deals with initialisation and frequency setting, the 4 * audio data has to be handled by a sound driver. 5 * 6 * Major issue: I can't find out where the device reports the signal 7 * strength, and indeed the windows software appearantly just looks 8 * at the stereo indicator as well. So, scanning will only find --- 194 unchanged lines hidden (view full) --- 203 V4L2_TUNER_SUB_MONO; 204 v->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO; 205 v->audmode = V4L2_TUNER_MODE_STEREO; 206 v->signal = radio->stereo ? 0xffff : 0; /* We can't get the signal strength */ 207 return 0; 208} 209 210static int vidioc_s_tuner(struct file *file, void *priv, |
211 struct v4l2_tuner *v) | 211 const struct v4l2_tuner *v) |
212{ 213 return v->index ? -EINVAL : 0; 214} 215 216static int vidioc_s_frequency(struct file *file, void *priv, 217 const struct v4l2_frequency *f) 218{ 219 struct dsbr100_device *radio = video_drvdata(file); --- 215 unchanged lines hidden --- | 212{ 213 return v->index ? -EINVAL : 0; 214} 215 216static int vidioc_s_frequency(struct file *file, void *priv, 217 const struct v4l2_frequency *f) 218{ 219 struct dsbr100_device *radio = video_drvdata(file); --- 215 unchanged lines hidden --- |