Lines Matching +full:0 +full:x0300
32 #define USB_MA901_VENDOR 0x16c0
33 #define USB_MA901_PRODUCT 0x05df
52 #define MA901_VOLUME_MIN 0
57 #define MA901_RADIO_SET_FREQ 0x03
58 #define MA901_RADIO_SET_VOLUME 0x04
59 #define MA901_RADIO_SET_MONO_STEREO 0x05
62 #define MA901_WANT_STEREO 0x50
63 #define MA901_WANT_MONO 0xd0
67 module_param(radio_nr, int, 0);
95 unsigned int freq_send = 0x300 + (freq >> 5) / 25; in ma901radio_set_freq()
98 radio->buffer[0] = 0x0a; in ma901radio_set_freq()
100 radio->buffer[2] = ((freq_send >> 8) & 0xff) + 0x80; in ma901radio_set_freq()
101 radio->buffer[3] = freq_send & 0xff; in ma901radio_set_freq()
102 radio->buffer[4] = 0x00; in ma901radio_set_freq()
103 radio->buffer[5] = 0x00; in ma901radio_set_freq()
104 radio->buffer[6] = 0x00; in ma901radio_set_freq()
105 radio->buffer[7] = 0x00; in ma901radio_set_freq()
107 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_freq()
108 9, 0x21, 0x0300, 0, in ma901radio_set_freq()
110 if (retval < 0) in ma901radio_set_freq()
114 return 0; in ma901radio_set_freq()
121 radio->buffer[0] = 0x0a; in ma901radio_set_volume()
123 radio->buffer[2] = 0xc2; in ma901radio_set_volume()
124 radio->buffer[3] = vol_to_set + 0x20; in ma901radio_set_volume()
125 radio->buffer[4] = 0x00; in ma901radio_set_volume()
126 radio->buffer[5] = 0x00; in ma901radio_set_volume()
127 radio->buffer[6] = 0x00; in ma901radio_set_volume()
128 radio->buffer[7] = 0x00; in ma901radio_set_volume()
130 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_volume()
131 9, 0x21, 0x0300, 0, in ma901radio_set_volume()
133 if (retval < 0) in ma901radio_set_volume()
144 radio->buffer[0] = 0x0a; in ma901_set_stereo()
147 radio->buffer[3] = 0x00; in ma901_set_stereo()
148 radio->buffer[4] = 0x00; in ma901_set_stereo()
149 radio->buffer[5] = 0x00; in ma901_set_stereo()
150 radio->buffer[6] = 0x00; in ma901_set_stereo()
151 radio->buffer[7] = 0x00; in ma901_set_stereo()
153 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901_set_stereo()
154 9, 0x21, 0x0300, 0, in ma901_set_stereo()
157 if (retval < 0) in ma901_set_stereo()
194 return 0; in vidioc_querycap()
203 if (v->index > 0) in vidioc_g_tuner()
206 v->signal = 0; in vidioc_g_tuner()
222 return 0; in vidioc_g_tuner()
231 if (v->index > 0) in vidioc_s_tuner()
249 if (f->tuner != 0) in vidioc_s_frequency()
262 if (f->tuner != 0) in vidioc_g_frequency()
266 return 0; in vidioc_g_frequency()
289 return 0; in usb_ma901radio_suspend()
294 return 0; in usb_ma901radio_resume()
337 int retval = 0; in usb_ma901radio_probe()
345 (strncmp(dev->product, "MA901", 5) != 0 in usb_ma901radio_probe()
346 || strncmp(dev->manufacturer, "www.masterkit.ru", 16) != 0)) in usb_ma901radio_probe()
364 if (retval < 0) { in usb_ma901radio_probe()
376 * V4L2_CID_AUDIO_MUTE, 0, 1, 1, 1); in usb_ma901radio_probe()
417 if (retval < 0) { in usb_ma901radio_probe()
422 return 0; in usb_ma901radio_probe()
439 USB_CLASS_HID, 0, 0) },