Lines Matching refs:snd_bulk_urb
200 chip->snd_bulk_urb = usb_alloc_urb(0, GFP_KERNEL); in usbtv_audio_start()
201 if (chip->snd_bulk_urb == NULL) in usbtv_audio_start()
206 chip->snd_bulk_urb->transfer_buffer = kzalloc( in usbtv_audio_start()
208 if (chip->snd_bulk_urb->transfer_buffer == NULL) in usbtv_audio_start()
211 usb_fill_bulk_urb(chip->snd_bulk_urb, chip->udev, pipe, in usbtv_audio_start()
212 chip->snd_bulk_urb->transfer_buffer, USBTV_AUDIO_URBSIZE, in usbtv_audio_start()
219 usb_submit_urb(chip->snd_bulk_urb, GFP_ATOMIC); in usbtv_audio_start()
224 usb_free_urb(chip->snd_bulk_urb); in usbtv_audio_start()
225 chip->snd_bulk_urb = NULL; in usbtv_audio_start()
244 if (chip->snd_bulk_urb) { in usbtv_audio_stop()
245 usb_kill_urb(chip->snd_bulk_urb); in usbtv_audio_stop()
246 kfree(chip->snd_bulk_urb->transfer_buffer); in usbtv_audio_stop()
247 usb_free_urb(chip->snd_bulk_urb); in usbtv_audio_stop()
248 chip->snd_bulk_urb = NULL; in usbtv_audio_stop()
258 if (atomic_read(&usbtv->snd_stream) && usbtv->snd_bulk_urb) in usbtv_audio_suspend()
259 usb_kill_urb(usbtv->snd_bulk_urb); in usbtv_audio_suspend()
264 if (atomic_read(&usbtv->snd_stream) && usbtv->snd_bulk_urb) in usbtv_audio_resume()
265 usb_submit_urb(usbtv->snd_bulk_urb, GFP_ATOMIC); in usbtv_audio_resume()