Lines Matching refs:line6

34 	struct usb_line6 line6;  member
46 #define line6_to_podhd(x) container_of(x, struct usb_line6_podhd, line6)
188 struct usb_device *usbdev = pod->line6.usbdev; in podhd_dev_start()
195 dev_err(pod->line6.ifcdev, "read request failed (error %d)\n", ret); in podhd_dev_start()
205 dev_err(pod->line6.ifcdev, in podhd_dev_start()
214 ret = line6_read_data(&pod->line6, 0xf000 + 0x08 * i, init_bytes, 8); in podhd_dev_start()
228 static void podhd_startup(struct usb_line6 *line6) in podhd_startup() argument
230 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_startup()
233 line6_read_serial_number(&pod->line6, &pod->serial_number); in podhd_startup()
234 if (snd_card_register(line6->card)) in podhd_startup()
235 dev_err(line6->ifcdev, "Failed to register POD HD card.\n"); in podhd_startup()
238 static void podhd_disconnect(struct usb_line6 *line6) in podhd_disconnect() argument
240 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_disconnect()
242 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO) { in podhd_disconnect()
245 intf = usb_ifnum_to_if(line6->usbdev, in podhd_disconnect()
246 pod->line6.properties->ctrl_if); in podhd_disconnect()
308 line6_send_raw_message(&podhd->line6, buf, sizeof(msg)); in podhd_set_monitor_level()
331 struct usb_line6_podhd *podhd = line6_to_podhd(line6pcm->line6); in snd_podhd_control_monitor_get()
342 struct usb_line6_podhd *podhd = line6_to_podhd(line6pcm->line6); in snd_podhd_control_monitor_put()
365 static int podhd_init(struct usb_line6 *line6, in podhd_init() argument
369 struct usb_line6_podhd *pod = line6_to_podhd(line6); in podhd_init()
372 line6->disconnect = podhd_disconnect; in podhd_init()
373 line6->startup = podhd_startup; in podhd_init()
375 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL) { in podhd_init()
377 intf = usb_ifnum_to_if(line6->usbdev, in podhd_init()
378 pod->line6.properties->ctrl_if); in podhd_init()
380 dev_err(pod->line6.ifcdev, "interface %d not found\n", in podhd_init()
381 pod->line6.properties->ctrl_if); in podhd_init()
387 dev_err(pod->line6.ifcdev, "can't claim interface %d, error %d\n", in podhd_init()
388 pod->line6.properties->ctrl_if, err); in podhd_init()
393 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO) { in podhd_init()
395 err = snd_card_add_dev_attr(line6->card, &podhd_dev_attr_group); in podhd_init()
400 if (pod->line6.properties->capabilities & LINE6_CAP_PCM) { in podhd_init()
402 err = line6_init_pcm(line6, in podhd_init()
410 if (pod->line6.properties->capabilities & LINE6_CAP_HWMON_CTL) { in podhd_init()
412 err = snd_ctl_add(line6->card, in podhd_init()
414 line6->line6pcm)); in podhd_init()
419 if (!(pod->line6.properties->capabilities & LINE6_CAP_CONTROL_INFO)) { in podhd_init()
421 return snd_card_register(line6->card); in podhd_init()
425 schedule_delayed_work(&line6->startup_work, in podhd_init()