Lines Matching refs:pod
166 static char *pod_alloc_sysex_buffer(struct usb_line6_pod *pod, int code, in pod_alloc_sysex_buffer() argument
169 return line6_alloc_sysex_buffer(&pod->line6, POD_SYSEX_CODE, code, in pod_alloc_sysex_buffer()
178 struct usb_line6_pod *pod = line6_to_pod(line6); in line6_pod_process_message() local
179 const unsigned char *buf = pod->line6.buffer_message; in line6_pod_process_message()
182 pod->firmware_version = buf[13] * 100 + buf[14] * 10 + buf[15]; in line6_pod_process_message()
183 pod->device_id = ((int)buf[8] << 16) | ((int)buf[9] << 8) | in line6_pod_process_message()
185 if (pod->startup_progress == POD_STARTUP_VERSIONREQ) { in line6_pod_process_message()
186 pod->startup_progress = POD_STARTUP_SETUP; in line6_pod_process_message()
203 pod->monitor_level = value; in line6_pod_process_message()
210 static int pod_set_system_param_int(struct usb_line6_pod *pod, int value, in pod_set_system_param_int() argument
216 sysex = pod_alloc_sysex_buffer(pod, POD_SYSEX_SYSTEM, size); in pod_set_system_param_int()
224 line6_send_sysex_message(&pod->line6, sysex, size); in pod_set_system_param_int()
236 struct usb_line6_pod *pod = card->private_data; in serial_number_show() local
238 return sysfs_emit(buf, "%u\n", pod->serial_number); in serial_number_show()
248 struct usb_line6_pod *pod = card->private_data; in firmware_version_show() local
250 return sysfs_emit(buf, "%d.%02d\n", pod->firmware_version / 100, in firmware_version_show()
251 pod->firmware_version % 100); in firmware_version_show()
261 struct usb_line6_pod *pod = card->private_data; in device_id_show() local
263 return sysfs_emit(buf, "%d\n", pod->device_id); in device_id_show()
275 struct usb_line6_pod *pod = line6_to_pod(line6); in pod_startup() local
277 switch (pod->startup_progress) { in pod_startup()
284 line6_read_serial_number(&pod->line6, &pod->serial_number); in pod_startup()
289 pod->startup_progress = POD_STARTUP_DONE; in pod_startup()
329 struct usb_line6_pod *pod = line6_to_pod(line6pcm->line6); in snd_pod_control_monitor_get() local
331 ucontrol->value.integer.value[0] = pod->monitor_level; in snd_pod_control_monitor_get()
340 struct usb_line6_pod *pod = line6_to_pod(line6pcm->line6); in snd_pod_control_monitor_put() local
342 if (ucontrol->value.integer.value[0] == pod->monitor_level) in snd_pod_control_monitor_put()
345 pod->monitor_level = ucontrol->value.integer.value[0]; in snd_pod_control_monitor_put()
346 pod_set_system_param_int(pod, ucontrol->value.integer.value[0], in snd_pod_control_monitor_put()
369 struct usb_line6_pod *pod = line6_to_pod(line6); in pod_init() local
396 if (pod->line6.properties->capabilities & LINE6_CAP_CONTROL) { in pod_init()
397 pod->monitor_level = POD_SYSTEM_INVALID; in pod_init()