bebob 69 sound/firewire/bebob/bebob.c name_device(struct snd_bebob *bebob) bebob 71 sound/firewire/bebob/bebob.c struct fw_device *fw_dev = fw_parent_device(bebob->unit); bebob 87 sound/firewire/bebob/bebob.c err = fw_csr_string(bebob->unit->directory, CSR_MODEL, bebob 93 sound/firewire/bebob/bebob.c err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, bebob 99 sound/firewire/bebob/bebob.c err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, bebob 105 sound/firewire/bebob/bebob.c err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, bebob 110 sound/firewire/bebob/bebob.c err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION, bebob 114 sound/firewire/bebob/bebob.c bebob->version = version; bebob 116 sound/firewire/bebob/bebob.c strcpy(bebob->card->driver, "BeBoB"); bebob 117 sound/firewire/bebob/bebob.c strcpy(bebob->card->shortname, model); bebob 118 sound/firewire/bebob/bebob.c strcpy(bebob->card->mixername, model); bebob 119 sound/firewire/bebob/bebob.c snprintf(bebob->card->longname, sizeof(bebob->card->longname), bebob 122 sound/firewire/bebob/bebob.c data[0], data[1], dev_name(&bebob->unit->device), bebob 131 sound/firewire/bebob/bebob.c struct snd_bebob *bebob = card->private_data; bebob 134 sound/firewire/bebob/bebob.c clear_bit(bebob->card_index, devices_used); bebob 137 sound/firewire/bebob/bebob.c snd_bebob_stream_destroy_duplex(bebob); bebob 168 sound/firewire/bebob/bebob.c struct snd_bebob *bebob = bebob 173 sound/firewire/bebob/bebob.c if (bebob->registered) bebob 186 sound/firewire/bebob/bebob.c err = snd_card_new(&bebob->unit->device, index[card_index], bebob 187 sound/firewire/bebob/bebob.c id[card_index], THIS_MODULE, 0, &bebob->card); bebob 195 sound/firewire/bebob/bebob.c bebob->card->private_free = bebob_card_free; bebob 196 sound/firewire/bebob/bebob.c bebob->card->private_data = bebob; bebob 198 sound/firewire/bebob/bebob.c err = name_device(bebob); bebob 202 sound/firewire/bebob/bebob.c if (bebob->spec == &maudio_special_spec) { bebob 203 sound/firewire/bebob/bebob.c if (bebob->entry->model_id == MODEL_MAUDIO_FW1814) bebob 204 sound/firewire/bebob/bebob.c err = snd_bebob_maudio_special_discover(bebob, true); bebob 206 sound/firewire/bebob/bebob.c err = snd_bebob_maudio_special_discover(bebob, false); bebob 208 sound/firewire/bebob/bebob.c err = snd_bebob_stream_discover(bebob); bebob 213 sound/firewire/bebob/bebob.c err = snd_bebob_stream_init_duplex(bebob); bebob 217 sound/firewire/bebob/bebob.c snd_bebob_proc_init(bebob); bebob 219 sound/firewire/bebob/bebob.c if (bebob->midi_input_ports > 0 || bebob->midi_output_ports > 0) { bebob 220 sound/firewire/bebob/bebob.c err = snd_bebob_create_midi_devices(bebob); bebob 225 sound/firewire/bebob/bebob.c err = snd_bebob_create_pcm_devices(bebob); bebob 229 sound/firewire/bebob/bebob.c err = snd_bebob_create_hwdep_device(bebob); bebob 233 sound/firewire/bebob/bebob.c err = snd_card_register(bebob->card); bebob 237 sound/firewire/bebob/bebob.c bebob->registered = true; bebob 241 sound/firewire/bebob/bebob.c snd_card_free(bebob->card); bebob 242 sound/firewire/bebob/bebob.c dev_info(&bebob->unit->device, bebob 249 sound/firewire/bebob/bebob.c struct snd_bebob *bebob; bebob 271 sound/firewire/bebob/bebob.c bebob = devm_kzalloc(&unit->device, sizeof(struct snd_bebob), bebob 273 sound/firewire/bebob/bebob.c if (!bebob) bebob 275 sound/firewire/bebob/bebob.c bebob->unit = fw_unit_get(unit); bebob 276 sound/firewire/bebob/bebob.c dev_set_drvdata(&unit->device, bebob); bebob 278 sound/firewire/bebob/bebob.c bebob->entry = entry; bebob 279 sound/firewire/bebob/bebob.c bebob->spec = spec; bebob 280 sound/firewire/bebob/bebob.c mutex_init(&bebob->mutex); bebob 281 sound/firewire/bebob/bebob.c spin_lock_init(&bebob->lock); bebob 282 sound/firewire/bebob/bebob.c init_waitqueue_head(&bebob->hwdep_wait); bebob 285 sound/firewire/bebob/bebob.c INIT_DEFERRABLE_WORK(&bebob->dwork, do_registration); bebob 290 sound/firewire/bebob/bebob.c snd_fw_schedule_registration(unit, &bebob->dwork); bebob 302 sound/firewire/bebob/bebob.c fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, bebob 328 sound/firewire/bebob/bebob.c struct snd_bebob *bebob = dev_get_drvdata(&unit->device); bebob 330 sound/firewire/bebob/bebob.c if (bebob == NULL) bebob 334 sound/firewire/bebob/bebob.c if (!bebob->registered) bebob 335 sound/firewire/bebob/bebob.c snd_fw_schedule_registration(unit, &bebob->dwork); bebob 337 sound/firewire/bebob/bebob.c fcp_bus_reset(bebob->unit); bebob 342 sound/firewire/bebob/bebob.c struct snd_bebob *bebob = dev_get_drvdata(&unit->device); bebob 344 sound/firewire/bebob/bebob.c if (bebob == NULL) bebob 352 sound/firewire/bebob/bebob.c cancel_delayed_work_sync(&bebob->dwork); bebob 354 sound/firewire/bebob/bebob.c if (bebob->registered) { bebob 356 sound/firewire/bebob/bebob.c snd_card_free(bebob->card); bebob 359 sound/firewire/bebob/bebob.c mutex_destroy(&bebob->mutex); bebob 360 sound/firewire/bebob/bebob.c fw_unit_put(bebob->unit); bebob 61 sound/firewire/bebob/bebob.h int (*get)(struct snd_bebob *bebob, unsigned int *id); bebob 64 sound/firewire/bebob/bebob.h int (*get)(struct snd_bebob *bebob, unsigned int *rate); bebob 65 sound/firewire/bebob/bebob.h int (*set)(struct snd_bebob *bebob, unsigned int rate); bebob 70 sound/firewire/bebob/bebob.h int (*get)(struct snd_bebob *bebob, u32 *target, unsigned int size); bebob 214 sound/firewire/bebob/bebob.h int snd_bebob_stream_get_rate(struct snd_bebob *bebob, unsigned int *rate); bebob 215 sound/firewire/bebob/bebob.h int snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate); bebob 216 sound/firewire/bebob/bebob.h int snd_bebob_stream_get_clock_src(struct snd_bebob *bebob, bebob 218 sound/firewire/bebob/bebob.h int snd_bebob_stream_discover(struct snd_bebob *bebob); bebob 219 sound/firewire/bebob/bebob.h int snd_bebob_stream_init_duplex(struct snd_bebob *bebob); bebob 220 sound/firewire/bebob/bebob.h int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate); bebob 221 sound/firewire/bebob/bebob.h int snd_bebob_stream_start_duplex(struct snd_bebob *bebob); bebob 222 sound/firewire/bebob/bebob.h void snd_bebob_stream_stop_duplex(struct snd_bebob *bebob); bebob 223 sound/firewire/bebob/bebob.h void snd_bebob_stream_destroy_duplex(struct snd_bebob *bebob); bebob 225 sound/firewire/bebob/bebob.h void snd_bebob_stream_lock_changed(struct snd_bebob *bebob); bebob 226 sound/firewire/bebob/bebob.h int snd_bebob_stream_lock_try(struct snd_bebob *bebob); bebob 227 sound/firewire/bebob/bebob.h void snd_bebob_stream_lock_release(struct snd_bebob *bebob); bebob 229 sound/firewire/bebob/bebob.h void snd_bebob_proc_init(struct snd_bebob *bebob); bebob 231 sound/firewire/bebob/bebob.h int snd_bebob_create_midi_devices(struct snd_bebob *bebob); bebob 233 sound/firewire/bebob/bebob.h int snd_bebob_create_pcm_devices(struct snd_bebob *bebob); bebob 235 sound/firewire/bebob/bebob.h int snd_bebob_create_hwdep_device(struct snd_bebob *bebob); bebob 250 sound/firewire/bebob/bebob.h int snd_bebob_maudio_special_discover(struct snd_bebob *bebob, bool is1814); bebob 61 sound/firewire/bebob/bebob_focusrite.c saffire_read_block(struct snd_bebob *bebob, u64 offset, bebob 68 sound/firewire/bebob/bebob_focusrite.c err = snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, bebob 81 sound/firewire/bebob/bebob_focusrite.c saffire_read_quad(struct snd_bebob *bebob, u64 offset, u32 *value) bebob 86 sound/firewire/bebob/bebob_focusrite.c err = snd_fw_transaction(bebob->unit, TCODE_READ_QUADLET_REQUEST, bebob 98 sound/firewire/bebob/bebob_focusrite.c saffire_write_quad(struct snd_bebob *bebob, u64 offset, u32 value) bebob 102 sound/firewire/bebob/bebob_focusrite.c return snd_fw_transaction(bebob->unit, TCODE_WRITE_QUADLET_REQUEST, bebob 142 sound/firewire/bebob/bebob_focusrite.c saffirepro_both_clk_freq_get(struct snd_bebob *bebob, unsigned int *rate) bebob 147 sound/firewire/bebob/bebob_focusrite.c err = saffire_read_quad(bebob, SAFFIREPRO_RATE_NOREBOOT, &id); bebob 158 sound/firewire/bebob/bebob_focusrite.c saffirepro_both_clk_freq_set(struct snd_bebob *bebob, unsigned int rate) bebob 169 sound/firewire/bebob/bebob_focusrite.c return saffire_write_quad(bebob, SAFFIREPRO_RATE_NOREBOOT, id); bebob 177 sound/firewire/bebob/bebob_focusrite.c saffirepro_both_clk_src_get(struct snd_bebob *bebob, unsigned int *id) bebob 183 sound/firewire/bebob/bebob_focusrite.c err = saffire_read_quad(bebob, SAFFIREPRO_OFFSET_CLOCK_SOURCE, &value); bebob 188 sound/firewire/bebob/bebob_focusrite.c if (bebob->spec->clock->types == saffirepro_10_clk_src_types) bebob 211 sound/firewire/bebob/bebob_focusrite.c saffire_both_clk_src_get(struct snd_bebob *bebob, unsigned int *id) bebob 216 sound/firewire/bebob/bebob_focusrite.c err = saffire_read_quad(bebob, SAFFIRE_OFFSET_CLOCK_SOURCE, &value); bebob 232 sound/firewire/bebob/bebob_focusrite.c saffire_meter_get(struct snd_bebob *bebob, u32 *buf, unsigned int size) bebob 234 sound/firewire/bebob/bebob_focusrite.c const struct snd_bebob_meter_spec *spec = bebob->spec->meter; bebob 248 sound/firewire/bebob/bebob_focusrite.c err = saffire_read_block(bebob, offset, buf, size); bebob 22 sound/firewire/bebob/bebob_hwdep.c struct snd_bebob *bebob = hwdep->private_data; bebob 26 sound/firewire/bebob/bebob_hwdep.c spin_lock_irq(&bebob->lock); bebob 28 sound/firewire/bebob/bebob_hwdep.c while (!bebob->dev_lock_changed) { bebob 29 sound/firewire/bebob/bebob_hwdep.c prepare_to_wait(&bebob->hwdep_wait, &wait, TASK_INTERRUPTIBLE); bebob 30 sound/firewire/bebob/bebob_hwdep.c spin_unlock_irq(&bebob->lock); bebob 32 sound/firewire/bebob/bebob_hwdep.c finish_wait(&bebob->hwdep_wait, &wait); bebob 35 sound/firewire/bebob/bebob_hwdep.c spin_lock_irq(&bebob->lock); bebob 39 sound/firewire/bebob/bebob_hwdep.c if (bebob->dev_lock_changed) { bebob 41 sound/firewire/bebob/bebob_hwdep.c event.lock_status.status = (bebob->dev_lock_count > 0); bebob 42 sound/firewire/bebob/bebob_hwdep.c bebob->dev_lock_changed = false; bebob 47 sound/firewire/bebob/bebob_hwdep.c spin_unlock_irq(&bebob->lock); bebob 58 sound/firewire/bebob/bebob_hwdep.c struct snd_bebob *bebob = hwdep->private_data; bebob 61 sound/firewire/bebob/bebob_hwdep.c poll_wait(file, &bebob->hwdep_wait, wait); bebob 63 sound/firewire/bebob/bebob_hwdep.c spin_lock_irq(&bebob->lock); bebob 64 sound/firewire/bebob/bebob_hwdep.c if (bebob->dev_lock_changed) bebob 68 sound/firewire/bebob/bebob_hwdep.c spin_unlock_irq(&bebob->lock); bebob 74 sound/firewire/bebob/bebob_hwdep.c hwdep_get_info(struct snd_bebob *bebob, void __user *arg) bebob 76 sound/firewire/bebob/bebob_hwdep.c struct fw_device *dev = fw_parent_device(bebob->unit); bebob 94 sound/firewire/bebob/bebob_hwdep.c hwdep_lock(struct snd_bebob *bebob) bebob 98 sound/firewire/bebob/bebob_hwdep.c spin_lock_irq(&bebob->lock); bebob 100 sound/firewire/bebob/bebob_hwdep.c if (bebob->dev_lock_count == 0) { bebob 101 sound/firewire/bebob/bebob_hwdep.c bebob->dev_lock_count = -1; bebob 107 sound/firewire/bebob/bebob_hwdep.c spin_unlock_irq(&bebob->lock); bebob 113 sound/firewire/bebob/bebob_hwdep.c hwdep_unlock(struct snd_bebob *bebob) bebob 117 sound/firewire/bebob/bebob_hwdep.c spin_lock_irq(&bebob->lock); bebob 119 sound/firewire/bebob/bebob_hwdep.c if (bebob->dev_lock_count == -1) { bebob 120 sound/firewire/bebob/bebob_hwdep.c bebob->dev_lock_count = 0; bebob 126 sound/firewire/bebob/bebob_hwdep.c spin_unlock_irq(&bebob->lock); bebob 134 sound/firewire/bebob/bebob_hwdep.c struct snd_bebob *bebob = hwdep->private_data; bebob 136 sound/firewire/bebob/bebob_hwdep.c spin_lock_irq(&bebob->lock); bebob 137 sound/firewire/bebob/bebob_hwdep.c if (bebob->dev_lock_count == -1) bebob 138 sound/firewire/bebob/bebob_hwdep.c bebob->dev_lock_count = 0; bebob 139 sound/firewire/bebob/bebob_hwdep.c spin_unlock_irq(&bebob->lock); bebob 148 sound/firewire/bebob/bebob_hwdep.c struct snd_bebob *bebob = hwdep->private_data; bebob 152 sound/firewire/bebob/bebob_hwdep.c return hwdep_get_info(bebob, (void __user *)arg); bebob 154 sound/firewire/bebob/bebob_hwdep.c return hwdep_lock(bebob); bebob 156 sound/firewire/bebob/bebob_hwdep.c return hwdep_unlock(bebob); bebob 174 sound/firewire/bebob/bebob_hwdep.c int snd_bebob_create_hwdep_device(struct snd_bebob *bebob) bebob 186 sound/firewire/bebob/bebob_hwdep.c err = snd_hwdep_new(bebob->card, "BeBoB", 0, &hwdep); bebob 192 sound/firewire/bebob/bebob_hwdep.c hwdep->private_data = bebob; bebob 138 sound/firewire/bebob/bebob_maudio.c get_meter(struct snd_bebob *bebob, void *buf, unsigned int size) bebob 140 sound/firewire/bebob/bebob_maudio.c return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, bebob 146 sound/firewire/bebob/bebob_maudio.c check_clk_sync(struct snd_bebob *bebob, unsigned int size, bool *sync) bebob 155 sound/firewire/bebob/bebob_maudio.c err = get_meter(bebob, buf, size); bebob 171 sound/firewire/bebob/bebob_maudio.c avc_maudio_set_special_clk(struct snd_bebob *bebob, unsigned int clk_src, bebob 175 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 179 sound/firewire/bebob/bebob_maudio.c if (amdtp_stream_running(&bebob->rx_stream) || bebob 180 sound/firewire/bebob/bebob_maudio.c amdtp_stream_running(&bebob->tx_stream)) bebob 200 sound/firewire/bebob/bebob_maudio.c err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, bebob 219 sound/firewire/bebob/bebob_maudio.c snd_ctl_notify(bebob->card, SNDRV_CTL_EVENT_MASK_VALUE, bebob 228 sound/firewire/bebob/bebob_maudio.c special_stream_formation_set(struct snd_bebob *bebob) bebob 238 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 246 sound/firewire/bebob/bebob_maudio.c bebob->tx_stream_formations[i + 1].pcm = bebob 248 sound/firewire/bebob/bebob_maudio.c bebob->tx_stream_formations[i + 1].midi = 1; bebob 250 sound/firewire/bebob/bebob_maudio.c bebob->rx_stream_formations[i + 1].pcm = bebob 252 sound/firewire/bebob/bebob_maudio.c bebob->rx_stream_formations[i + 1].midi = 1; bebob 256 sound/firewire/bebob/bebob_maudio.c static int add_special_controls(struct snd_bebob *bebob); bebob 258 sound/firewire/bebob/bebob_maudio.c snd_bebob_maudio_special_discover(struct snd_bebob *bebob, bool is1814) bebob 263 sound/firewire/bebob/bebob_maudio.c params = devm_kzalloc(&bebob->card->card_dev, bebob 268 sound/firewire/bebob/bebob_maudio.c mutex_lock(&bebob->mutex); bebob 270 sound/firewire/bebob/bebob_maudio.c bebob->maudio_special_quirk = (void *)params; bebob 274 sound/firewire/bebob/bebob_maudio.c bebob->rx_stream.context = ERR_PTR(-1); bebob 275 sound/firewire/bebob/bebob_maudio.c bebob->tx_stream.context = ERR_PTR(-1); bebob 276 sound/firewire/bebob/bebob_maudio.c err = avc_maudio_set_special_clk(bebob, 0x03, 0x00, 0x00, 0x00); bebob 278 sound/firewire/bebob/bebob_maudio.c dev_err(&bebob->unit->device, bebob 283 sound/firewire/bebob/bebob_maudio.c err = add_special_controls(bebob); bebob 287 sound/firewire/bebob/bebob_maudio.c special_stream_formation_set(bebob); bebob 290 sound/firewire/bebob/bebob_maudio.c bebob->midi_input_ports = 1; bebob 291 sound/firewire/bebob/bebob_maudio.c bebob->midi_output_ports = 1; bebob 293 sound/firewire/bebob/bebob_maudio.c bebob->midi_input_ports = 2; bebob 294 sound/firewire/bebob/bebob_maudio.c bebob->midi_output_ports = 2; bebob 297 sound/firewire/bebob/bebob_maudio.c mutex_unlock(&bebob->mutex); bebob 302 sound/firewire/bebob/bebob_maudio.c static int special_get_rate(struct snd_bebob *bebob, unsigned int *rate) bebob 308 sound/firewire/bebob/bebob_maudio.c err = avc_general_get_sig_fmt(bebob->unit, rate, bebob 314 sound/firewire/bebob/bebob_maudio.c static int special_set_rate(struct snd_bebob *bebob, unsigned int rate) bebob 316 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 319 sound/firewire/bebob/bebob_maudio.c err = avc_general_set_sig_fmt(bebob->unit, rate, bebob 330 sound/firewire/bebob/bebob_maudio.c err = avc_general_set_sig_fmt(bebob->unit, rate, bebob 336 sound/firewire/bebob/bebob_maudio.c snd_ctl_notify(bebob->card, SNDRV_CTL_EVENT_MASK_VALUE, bebob 349 sound/firewire/bebob/bebob_maudio.c static int special_clk_get(struct snd_bebob *bebob, unsigned int *id) bebob 351 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 370 sound/firewire/bebob/bebob_maudio.c struct snd_bebob *bebob = snd_kcontrol_chip(kctl); bebob 371 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 378 sound/firewire/bebob/bebob_maudio.c struct snd_bebob *bebob = snd_kcontrol_chip(kctl); bebob 379 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 386 sound/firewire/bebob/bebob_maudio.c mutex_lock(&bebob->mutex); bebob 388 sound/firewire/bebob/bebob_maudio.c err = avc_maudio_set_special_clk(bebob, id, bebob 392 sound/firewire/bebob/bebob_maudio.c mutex_unlock(&bebob->mutex); bebob 422 sound/firewire/bebob/bebob_maudio.c struct snd_bebob *bebob = snd_kcontrol_chip(kctl); bebob 426 sound/firewire/bebob/bebob_maudio.c err = check_clk_sync(bebob, METER_SIZE_SPECIAL, &synced); bebob 454 sound/firewire/bebob/bebob_maudio.c struct snd_bebob *bebob = snd_kcontrol_chip(kctl); bebob 455 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 459 sound/firewire/bebob/bebob_maudio.c mutex_lock(&bebob->mutex); bebob 461 sound/firewire/bebob/bebob_maudio.c err = avc_audio_get_selector(bebob->unit, 0x00, 0x04, bebob 464 sound/firewire/bebob/bebob_maudio.c dev_err(&bebob->unit->device, bebob 478 sound/firewire/bebob/bebob_maudio.c mutex_unlock(&bebob->mutex); bebob 484 sound/firewire/bebob/bebob_maudio.c struct snd_bebob *bebob = snd_kcontrol_chip(kctl); bebob 485 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 497 sound/firewire/bebob/bebob_maudio.c mutex_lock(&bebob->mutex); bebob 499 sound/firewire/bebob/bebob_maudio.c err = avc_maudio_set_special_clk(bebob, bebob 514 sound/firewire/bebob/bebob_maudio.c err = avc_audio_set_selector(bebob->unit, 0x00, 0x04, dig_in_iface); bebob 516 sound/firewire/bebob/bebob_maudio.c dev_err(&bebob->unit->device, bebob 520 sound/firewire/bebob/bebob_maudio.c special_stream_formation_set(bebob); bebob 521 sound/firewire/bebob/bebob_maudio.c mutex_unlock(&bebob->mutex); bebob 547 sound/firewire/bebob/bebob_maudio.c struct snd_bebob *bebob = snd_kcontrol_chip(kctl); bebob 548 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 549 sound/firewire/bebob/bebob_maudio.c mutex_lock(&bebob->mutex); bebob 551 sound/firewire/bebob/bebob_maudio.c mutex_unlock(&bebob->mutex); bebob 557 sound/firewire/bebob/bebob_maudio.c struct snd_bebob *bebob = snd_kcontrol_chip(kctl); bebob 558 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 566 sound/firewire/bebob/bebob_maudio.c mutex_lock(&bebob->mutex); bebob 568 sound/firewire/bebob/bebob_maudio.c err = avc_maudio_set_special_clk(bebob, bebob 573 sound/firewire/bebob/bebob_maudio.c special_stream_formation_set(bebob); bebob 577 sound/firewire/bebob/bebob_maudio.c mutex_unlock(&bebob->mutex); bebob 589 sound/firewire/bebob/bebob_maudio.c static int add_special_controls(struct snd_bebob *bebob) bebob 592 sound/firewire/bebob/bebob_maudio.c struct special_params *params = bebob->maudio_special_quirk; bebob 595 sound/firewire/bebob/bebob_maudio.c kctl = snd_ctl_new1(&special_clk_ctl, bebob); bebob 596 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); bebob 600 sound/firewire/bebob/bebob_maudio.c kctl = snd_ctl_new1(&special_sync_ctl, bebob); bebob 601 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); bebob 606 sound/firewire/bebob/bebob_maudio.c kctl = snd_ctl_new1(&special_dig_in_iface_ctl, bebob); bebob 607 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); bebob 611 sound/firewire/bebob/bebob_maudio.c kctl = snd_ctl_new1(&special_dig_out_iface_ctl, bebob); bebob 612 sound/firewire/bebob/bebob_maudio.c err = snd_ctl_add(bebob->card, kctl); bebob 629 sound/firewire/bebob/bebob_maudio.c special_meter_get(struct snd_bebob *bebob, u32 *target, unsigned int size) bebob 644 sound/firewire/bebob/bebob_maudio.c err = get_meter(bebob, (void *)buf, METER_SIZE_SPECIAL - 4); bebob 688 sound/firewire/bebob/bebob_maudio.c normal_meter_get(struct snd_bebob *bebob, u32 *buf, unsigned int size) bebob 690 sound/firewire/bebob/bebob_maudio.c const struct snd_bebob_meter_spec *spec = bebob->spec->meter; bebob 698 sound/firewire/bebob/bebob_maudio.c err = get_meter(bebob, (void *)buf, size); bebob 12 sound/firewire/bebob/bebob_midi.c struct snd_bebob *bebob = substream->rmidi->private_data; bebob 15 sound/firewire/bebob/bebob_midi.c err = snd_bebob_stream_lock_try(bebob); bebob 19 sound/firewire/bebob/bebob_midi.c mutex_lock(&bebob->mutex); bebob 20 sound/firewire/bebob/bebob_midi.c err = snd_bebob_stream_reserve_duplex(bebob, 0); bebob 22 sound/firewire/bebob/bebob_midi.c ++bebob->substreams_counter; bebob 23 sound/firewire/bebob/bebob_midi.c err = snd_bebob_stream_start_duplex(bebob); bebob 25 sound/firewire/bebob/bebob_midi.c --bebob->substreams_counter; bebob 27 sound/firewire/bebob/bebob_midi.c mutex_unlock(&bebob->mutex); bebob 29 sound/firewire/bebob/bebob_midi.c snd_bebob_stream_lock_release(bebob); bebob 36 sound/firewire/bebob/bebob_midi.c struct snd_bebob *bebob = substream->rmidi->private_data; bebob 38 sound/firewire/bebob/bebob_midi.c mutex_lock(&bebob->mutex); bebob 39 sound/firewire/bebob/bebob_midi.c bebob->substreams_counter--; bebob 40 sound/firewire/bebob/bebob_midi.c snd_bebob_stream_stop_duplex(bebob); bebob 41 sound/firewire/bebob/bebob_midi.c mutex_unlock(&bebob->mutex); bebob 43 sound/firewire/bebob/bebob_midi.c snd_bebob_stream_lock_release(bebob); bebob 49 sound/firewire/bebob/bebob_midi.c struct snd_bebob *bebob = substrm->rmidi->private_data; bebob 52 sound/firewire/bebob/bebob_midi.c spin_lock_irqsave(&bebob->lock, flags); bebob 55 sound/firewire/bebob/bebob_midi.c amdtp_am824_midi_trigger(&bebob->tx_stream, bebob 58 sound/firewire/bebob/bebob_midi.c amdtp_am824_midi_trigger(&bebob->tx_stream, bebob 61 sound/firewire/bebob/bebob_midi.c spin_unlock_irqrestore(&bebob->lock, flags); bebob 66 sound/firewire/bebob/bebob_midi.c struct snd_bebob *bebob = substrm->rmidi->private_data; bebob 69 sound/firewire/bebob/bebob_midi.c spin_lock_irqsave(&bebob->lock, flags); bebob 72 sound/firewire/bebob/bebob_midi.c amdtp_am824_midi_trigger(&bebob->rx_stream, bebob 75 sound/firewire/bebob/bebob_midi.c amdtp_am824_midi_trigger(&bebob->rx_stream, bebob 78 sound/firewire/bebob/bebob_midi.c spin_unlock_irqrestore(&bebob->lock, flags); bebob 81 sound/firewire/bebob/bebob_midi.c static void set_midi_substream_names(struct snd_bebob *bebob, bebob 89 sound/firewire/bebob/bebob_midi.c bebob->card->shortname, subs->number + 1); bebob 93 sound/firewire/bebob/bebob_midi.c int snd_bebob_create_midi_devices(struct snd_bebob *bebob) bebob 110 sound/firewire/bebob/bebob_midi.c err = snd_rawmidi_new(bebob->card, bebob->card->driver, 0, bebob 111 sound/firewire/bebob/bebob_midi.c bebob->midi_output_ports, bebob->midi_input_ports, bebob 117 sound/firewire/bebob/bebob_midi.c "%s MIDI", bebob->card->shortname); bebob 118 sound/firewire/bebob/bebob_midi.c rmidi->private_data = bebob; bebob 120 sound/firewire/bebob/bebob_midi.c if (bebob->midi_input_ports > 0) { bebob 128 sound/firewire/bebob/bebob_midi.c set_midi_substream_names(bebob, str); bebob 131 sound/firewire/bebob/bebob_midi.c if (bebob->midi_output_ports > 0) { bebob 139 sound/firewire/bebob/bebob_midi.c set_midi_substream_names(bebob, str); bebob 142 sound/firewire/bebob/bebob_midi.c if ((bebob->midi_output_ports > 0) && (bebob->midi_input_ports > 0)) bebob 95 sound/firewire/bebob/bebob_pcm.c pcm_init_hw_params(struct snd_bebob *bebob, bebob 105 sound/firewire/bebob/bebob_pcm.c s = &bebob->tx_stream; bebob 106 sound/firewire/bebob/bebob_pcm.c formations = bebob->tx_stream_formations; bebob 109 sound/firewire/bebob/bebob_pcm.c s = &bebob->rx_stream; bebob 110 sound/firewire/bebob/bebob_pcm.c formations = bebob->rx_stream_formations; bebob 135 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 136 sound/firewire/bebob/bebob_pcm.c const struct snd_bebob_rate_spec *spec = bebob->spec->rate; bebob 141 sound/firewire/bebob/bebob_pcm.c err = snd_bebob_stream_lock_try(bebob); bebob 145 sound/firewire/bebob/bebob_pcm.c err = pcm_init_hw_params(bebob, substream); bebob 149 sound/firewire/bebob/bebob_pcm.c err = snd_bebob_stream_get_clock_src(bebob, &src); bebob 158 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_running(&bebob->tx_stream) || bebob 159 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_running(&bebob->rx_stream)) { bebob 160 sound/firewire/bebob/bebob_pcm.c err = spec->get(bebob, &sampling_rate); bebob 162 sound/firewire/bebob/bebob_pcm.c dev_err(&bebob->unit->device, bebob 175 sound/firewire/bebob/bebob_pcm.c snd_bebob_stream_lock_release(bebob); bebob 182 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 183 sound/firewire/bebob/bebob_pcm.c snd_bebob_stream_lock_release(bebob); bebob 190 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 201 sound/firewire/bebob/bebob_pcm.c mutex_lock(&bebob->mutex); bebob 202 sound/firewire/bebob/bebob_pcm.c err = snd_bebob_stream_reserve_duplex(bebob, rate); bebob 204 sound/firewire/bebob/bebob_pcm.c ++bebob->substreams_counter; bebob 205 sound/firewire/bebob/bebob_pcm.c mutex_unlock(&bebob->mutex); bebob 213 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 215 sound/firewire/bebob/bebob_pcm.c mutex_lock(&bebob->mutex); bebob 218 sound/firewire/bebob/bebob_pcm.c bebob->substreams_counter--; bebob 220 sound/firewire/bebob/bebob_pcm.c snd_bebob_stream_stop_duplex(bebob); bebob 222 sound/firewire/bebob/bebob_pcm.c mutex_unlock(&bebob->mutex); bebob 230 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 233 sound/firewire/bebob/bebob_pcm.c err = snd_bebob_stream_start_duplex(bebob); bebob 235 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_prepare(&bebob->tx_stream); bebob 242 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 245 sound/firewire/bebob/bebob_pcm.c err = snd_bebob_stream_start_duplex(bebob); bebob 247 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_prepare(&bebob->rx_stream); bebob 255 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 259 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_trigger(&bebob->tx_stream, substream); bebob 262 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_trigger(&bebob->tx_stream, NULL); bebob 273 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 277 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_trigger(&bebob->rx_stream, substream); bebob 280 sound/firewire/bebob/bebob_pcm.c amdtp_stream_pcm_trigger(&bebob->rx_stream, NULL); bebob 292 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = sbstrm->private_data; bebob 293 sound/firewire/bebob/bebob_pcm.c return amdtp_stream_pcm_pointer(&bebob->tx_stream); bebob 298 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = sbstrm->private_data; bebob 299 sound/firewire/bebob/bebob_pcm.c return amdtp_stream_pcm_pointer(&bebob->rx_stream); bebob 304 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 306 sound/firewire/bebob/bebob_pcm.c return amdtp_stream_pcm_ack(&bebob->tx_stream); bebob 311 sound/firewire/bebob/bebob_pcm.c struct snd_bebob *bebob = substream->private_data; bebob 313 sound/firewire/bebob/bebob_pcm.c return amdtp_stream_pcm_ack(&bebob->rx_stream); bebob 316 sound/firewire/bebob/bebob_pcm.c int snd_bebob_create_pcm_devices(struct snd_bebob *bebob) bebob 345 sound/firewire/bebob/bebob_pcm.c err = snd_pcm_new(bebob->card, bebob->card->driver, 0, 1, 1, &pcm); bebob 349 sound/firewire/bebob/bebob_pcm.c pcm->private_data = bebob; bebob 351 sound/firewire/bebob/bebob_pcm.c "%s PCM", bebob->card->shortname); bebob 38 sound/firewire/bebob/bebob_proc.c struct snd_bebob *bebob = entry->private_data; bebob 45 sound/firewire/bebob/bebob_proc.c if (snd_bebob_read_block(bebob->unit, 0, bebob 74 sound/firewire/bebob/bebob_proc.c struct snd_bebob *bebob = entry->private_data; bebob 75 sound/firewire/bebob/bebob_proc.c const struct snd_bebob_meter_spec *spec = bebob->spec->meter; bebob 88 sound/firewire/bebob/bebob_proc.c if (spec->get(bebob, buf, size) < 0) bebob 107 sound/firewire/bebob/bebob_proc.c struct snd_bebob *bebob = entry->private_data; bebob 113 sound/firewire/bebob/bebob_proc.c formation = bebob->tx_stream_formations; bebob 122 sound/firewire/bebob/bebob_proc.c formation = bebob->rx_stream_formations; bebob 139 sound/firewire/bebob/bebob_proc.c struct snd_bebob *bebob = entry->private_data; bebob 140 sound/firewire/bebob/bebob_proc.c const struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate; bebob 141 sound/firewire/bebob/bebob_proc.c const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock; bebob 145 sound/firewire/bebob/bebob_proc.c if (rate_spec->get(bebob, &rate) >= 0) bebob 148 sound/firewire/bebob/bebob_proc.c if (snd_bebob_stream_get_clock_src(bebob, &src) >= 0) { bebob 154 sound/firewire/bebob/bebob_proc.c clk_labels[src], bebob->sync_input_plug); bebob 159 sound/firewire/bebob/bebob_proc.c add_node(struct snd_bebob *bebob, struct snd_info_entry *root, const char *name, bebob 164 sound/firewire/bebob/bebob_proc.c entry = snd_info_create_card_entry(bebob->card, name, root); bebob 166 sound/firewire/bebob/bebob_proc.c snd_info_set_text_ops(entry, bebob, op); bebob 169 sound/firewire/bebob/bebob_proc.c void snd_bebob_proc_init(struct snd_bebob *bebob) bebob 177 sound/firewire/bebob/bebob_proc.c root = snd_info_create_card_entry(bebob->card, "firewire", bebob 178 sound/firewire/bebob/bebob_proc.c bebob->card->proc_root); bebob 183 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "clock", proc_read_clock); bebob 184 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "firmware", proc_read_hw_info); bebob 185 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "formation", proc_read_formation); bebob 187 sound/firewire/bebob/bebob_proc.c if (bebob->spec->meter != NULL) bebob 188 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "meter", proc_read_meters); bebob 64 sound/firewire/bebob/bebob_stream.c snd_bebob_stream_get_rate(struct snd_bebob *bebob, unsigned int *curr_rate) bebob 71 sound/firewire/bebob/bebob_stream.c err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, bebob 79 sound/firewire/bebob/bebob_stream.c err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, bebob 90 sound/firewire/bebob/bebob_stream.c err = avc_general_set_sig_fmt(bebob->unit, rx_rate, bebob 97 sound/firewire/bebob/bebob_stream.c snd_bebob_stream_set_rate(struct snd_bebob *bebob, unsigned int rate) bebob 101 sound/firewire/bebob/bebob_stream.c err = avc_general_set_sig_fmt(bebob->unit, rate, bebob 106 sound/firewire/bebob/bebob_stream.c err = avc_general_set_sig_fmt(bebob->unit, rate, bebob 120 sound/firewire/bebob/bebob_stream.c int snd_bebob_stream_get_clock_src(struct snd_bebob *bebob, bebob 123 sound/firewire/bebob/bebob_stream.c const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock; bebob 131 sound/firewire/bebob/bebob_stream.c err = clk_spec->get(bebob, &id); bebob 133 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 139 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 154 sound/firewire/bebob/bebob_stream.c if (bebob->sync_input_plug < 0) { bebob 164 sound/firewire/bebob/bebob_stream.c bebob->sync_input_plug); bebob 165 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); bebob 167 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 169 sound/firewire/bebob/bebob_stream.c bebob->sync_input_plug, err); bebob 222 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, bebob 255 sound/firewire/bebob/bebob_stream.c static int map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s) bebob 272 sound/firewire/bebob/bebob_stream.c if (s == &bebob->tx_stream) bebob 278 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_ch_pos(bebob->unit, addr, buf, 256); bebob 280 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 299 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_section_type(bebob->unit, addr, bebob 302 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 378 sound/firewire/bebob/bebob_stream.c check_connection_used_by_others(struct snd_bebob *bebob, struct amdtp_stream *s) bebob 384 sound/firewire/bebob/bebob_stream.c if (s == &bebob->tx_stream) bebob 385 sound/firewire/bebob/bebob_stream.c conn = &bebob->out_conn; bebob 387 sound/firewire/bebob/bebob_stream.c conn = &bebob->in_conn; bebob 391 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 401 sound/firewire/bebob/bebob_stream.c static int make_both_connections(struct snd_bebob *bebob) bebob 405 sound/firewire/bebob/bebob_stream.c err = cmp_connection_establish(&bebob->out_conn); bebob 409 sound/firewire/bebob/bebob_stream.c err = cmp_connection_establish(&bebob->in_conn); bebob 411 sound/firewire/bebob/bebob_stream.c cmp_connection_break(&bebob->out_conn); bebob 418 sound/firewire/bebob/bebob_stream.c static void break_both_connections(struct snd_bebob *bebob) bebob 420 sound/firewire/bebob/bebob_stream.c cmp_connection_break(&bebob->in_conn); bebob 421 sound/firewire/bebob/bebob_stream.c cmp_connection_break(&bebob->out_conn); bebob 426 sound/firewire/bebob/bebob_stream.c if (bebob->version < 2) bebob 431 sound/firewire/bebob/bebob_stream.c start_stream(struct snd_bebob *bebob, struct amdtp_stream *stream) bebob 436 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->rx_stream) bebob 437 sound/firewire/bebob/bebob_stream.c conn = &bebob->in_conn; bebob 439 sound/firewire/bebob/bebob_stream.c conn = &bebob->out_conn; bebob 442 sound/firewire/bebob/bebob_stream.c if (bebob->maudio_special_quirk == NULL) { bebob 443 sound/firewire/bebob/bebob_stream.c err = map_data_channels(bebob, stream); bebob 449 sound/firewire/bebob/bebob_stream.c err = amdtp_domain_add_stream(&bebob->domain, stream, bebob 455 sound/firewire/bebob/bebob_stream.c static int init_stream(struct snd_bebob *bebob, struct amdtp_stream *stream) bebob 462 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) { bebob 464 sound/firewire/bebob/bebob_stream.c conn = &bebob->out_conn; bebob 468 sound/firewire/bebob/bebob_stream.c conn = &bebob->in_conn; bebob 472 sound/firewire/bebob/bebob_stream.c err = cmp_connection_init(conn, bebob->unit, dir_conn, 0); bebob 476 sound/firewire/bebob/bebob_stream.c err = amdtp_am824_init(stream, bebob->unit, dir_stream, CIP_BLOCKING); bebob 482 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) { bebob 487 sound/firewire/bebob/bebob_stream.c if (bebob->version > 2) bebob 488 sound/firewire/bebob/bebob_stream.c bebob->tx_stream.flags |= CIP_EMPTY_HAS_WRONG_DBC | bebob 494 sound/firewire/bebob/bebob_stream.c if (bebob->maudio_special_quirk) bebob 495 sound/firewire/bebob/bebob_stream.c bebob->tx_stream.flags |= CIP_EMPTY_HAS_WRONG_DBC; bebob 501 sound/firewire/bebob/bebob_stream.c static void destroy_stream(struct snd_bebob *bebob, struct amdtp_stream *stream) bebob 505 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) bebob 506 sound/firewire/bebob/bebob_stream.c cmp_connection_destroy(&bebob->out_conn); bebob 508 sound/firewire/bebob/bebob_stream.c cmp_connection_destroy(&bebob->in_conn); bebob 511 sound/firewire/bebob/bebob_stream.c int snd_bebob_stream_init_duplex(struct snd_bebob *bebob) bebob 515 sound/firewire/bebob/bebob_stream.c err = init_stream(bebob, &bebob->tx_stream); bebob 519 sound/firewire/bebob/bebob_stream.c err = init_stream(bebob, &bebob->rx_stream); bebob 521 sound/firewire/bebob/bebob_stream.c destroy_stream(bebob, &bebob->tx_stream); bebob 525 sound/firewire/bebob/bebob_stream.c err = amdtp_domain_init(&bebob->domain); bebob 527 sound/firewire/bebob/bebob_stream.c destroy_stream(bebob, &bebob->tx_stream); bebob 528 sound/firewire/bebob/bebob_stream.c destroy_stream(bebob, &bebob->rx_stream); bebob 534 sound/firewire/bebob/bebob_stream.c static int keep_resources(struct snd_bebob *bebob, struct amdtp_stream *stream, bebob 541 sound/firewire/bebob/bebob_stream.c if (stream == &bebob->tx_stream) { bebob 542 sound/firewire/bebob/bebob_stream.c formation = bebob->tx_stream_formations + index; bebob 543 sound/firewire/bebob/bebob_stream.c conn = &bebob->out_conn; bebob 545 sound/firewire/bebob/bebob_stream.c formation = bebob->rx_stream_formations + index; bebob 546 sound/firewire/bebob/bebob_stream.c conn = &bebob->in_conn; bebob 557 sound/firewire/bebob/bebob_stream.c int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate) bebob 564 sound/firewire/bebob/bebob_stream.c err = check_connection_used_by_others(bebob, &bebob->rx_stream); bebob 568 sound/firewire/bebob/bebob_stream.c err = bebob->spec->rate->get(bebob, &curr_rate); bebob 574 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); bebob 575 sound/firewire/bebob/bebob_stream.c break_both_connections(bebob); bebob 577 sound/firewire/bebob/bebob_stream.c cmp_connection_release(&bebob->out_conn); bebob 578 sound/firewire/bebob/bebob_stream.c cmp_connection_release(&bebob->in_conn); bebob 581 sound/firewire/bebob/bebob_stream.c if (bebob->substreams_counter == 0 || curr_rate != rate) { bebob 589 sound/firewire/bebob/bebob_stream.c err = bebob->spec->rate->set(bebob, rate); bebob 591 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 601 sound/firewire/bebob/bebob_stream.c err = keep_resources(bebob, &bebob->tx_stream, rate, index); bebob 605 sound/firewire/bebob/bebob_stream.c err = keep_resources(bebob, &bebob->rx_stream, rate, index); bebob 607 sound/firewire/bebob/bebob_stream.c cmp_connection_release(&bebob->out_conn); bebob 615 sound/firewire/bebob/bebob_stream.c int snd_bebob_stream_start_duplex(struct snd_bebob *bebob) bebob 620 sound/firewire/bebob/bebob_stream.c if (bebob->substreams_counter == 0) bebob 624 sound/firewire/bebob/bebob_stream.c if (amdtp_streaming_error(&bebob->rx_stream) || bebob 625 sound/firewire/bebob/bebob_stream.c amdtp_streaming_error(&bebob->tx_stream)) { bebob 626 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); bebob 627 sound/firewire/bebob/bebob_stream.c break_both_connections(bebob); bebob 630 sound/firewire/bebob/bebob_stream.c if (!amdtp_stream_running(&bebob->rx_stream)) { bebob 633 sound/firewire/bebob/bebob_stream.c if (bebob->maudio_special_quirk) { bebob 634 sound/firewire/bebob/bebob_stream.c err = bebob->spec->rate->get(bebob, &curr_rate); bebob 639 sound/firewire/bebob/bebob_stream.c err = make_both_connections(bebob); bebob 643 sound/firewire/bebob/bebob_stream.c err = start_stream(bebob, &bebob->rx_stream); bebob 647 sound/firewire/bebob/bebob_stream.c err = start_stream(bebob, &bebob->tx_stream); bebob 651 sound/firewire/bebob/bebob_stream.c err = amdtp_domain_start(&bebob->domain); bebob 658 sound/firewire/bebob/bebob_stream.c if (bebob->maudio_special_quirk) { bebob 659 sound/firewire/bebob/bebob_stream.c err = bebob->spec->rate->set(bebob, curr_rate); bebob 661 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 668 sound/firewire/bebob/bebob_stream.c if (!amdtp_stream_wait_callback(&bebob->rx_stream, bebob 670 sound/firewire/bebob/bebob_stream.c !amdtp_stream_wait_callback(&bebob->tx_stream, bebob 679 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); bebob 680 sound/firewire/bebob/bebob_stream.c break_both_connections(bebob); bebob 684 sound/firewire/bebob/bebob_stream.c void snd_bebob_stream_stop_duplex(struct snd_bebob *bebob) bebob 686 sound/firewire/bebob/bebob_stream.c if (bebob->substreams_counter == 0) { bebob 687 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); bebob 688 sound/firewire/bebob/bebob_stream.c break_both_connections(bebob); bebob 690 sound/firewire/bebob/bebob_stream.c cmp_connection_release(&bebob->out_conn); bebob 691 sound/firewire/bebob/bebob_stream.c cmp_connection_release(&bebob->in_conn); bebob 699 sound/firewire/bebob/bebob_stream.c void snd_bebob_stream_destroy_duplex(struct snd_bebob *bebob) bebob 701 sound/firewire/bebob/bebob_stream.c amdtp_domain_destroy(&bebob->domain); bebob 703 sound/firewire/bebob/bebob_stream.c destroy_stream(bebob, &bebob->tx_stream); bebob 704 sound/firewire/bebob/bebob_stream.c destroy_stream(bebob, &bebob->rx_stream); bebob 783 sound/firewire/bebob/bebob_stream.c fill_stream_formations(struct snd_bebob *bebob, enum avc_bridgeco_plug_dir dir, bebob 797 sound/firewire/bebob/bebob_stream.c formations = bebob->rx_stream_formations; bebob 799 sound/firewire/bebob/bebob_stream.c formations = bebob->tx_stream_formations; bebob 805 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_strm_fmt(bebob->unit, addr, buf, bebob 812 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 831 sound/firewire/bebob/bebob_stream.c seek_msu_sync_input_plug(struct snd_bebob *bebob) bebob 839 sound/firewire/bebob/bebob_stream.c err = avc_general_get_plug_info(bebob->unit, 0x0c, 0x00, 0x00, plugs); bebob 841 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 848 sound/firewire/bebob/bebob_stream.c bebob->sync_input_plug = -1; bebob 851 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); bebob 853 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 860 sound/firewire/bebob/bebob_stream.c bebob->sync_input_plug = i; bebob 868 sound/firewire/bebob/bebob_stream.c int snd_bebob_stream_discover(struct snd_bebob *bebob) bebob 870 sound/firewire/bebob/bebob_stream.c const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock; bebob 877 sound/firewire/bebob/bebob_stream.c err = avc_general_get_plug_info(bebob->unit, 0x1f, 0x07, 0x00, plugs); bebob 879 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 896 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); bebob 898 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 905 sound/firewire/bebob/bebob_stream.c err = fill_stream_formations(bebob, AVC_BRIDGECO_PLUG_DIR_IN, 0); bebob 911 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); bebob 913 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 920 sound/firewire/bebob/bebob_stream.c err = fill_stream_formations(bebob, AVC_BRIDGECO_PLUG_DIR_OUT, 0); bebob 925 sound/firewire/bebob/bebob_stream.c bebob->midi_input_ports = 0; bebob 929 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); bebob 931 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 936 sound/firewire/bebob/bebob_stream.c bebob->midi_input_ports++; bebob 941 sound/firewire/bebob/bebob_stream.c bebob->midi_output_ports = 0; bebob 945 sound/firewire/bebob/bebob_stream.c err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); bebob 947 sound/firewire/bebob/bebob_stream.c dev_err(&bebob->unit->device, bebob 952 sound/firewire/bebob/bebob_stream.c bebob->midi_output_ports++; bebob 958 sound/firewire/bebob/bebob_stream.c err = seek_msu_sync_input_plug(bebob); bebob 963 sound/firewire/bebob/bebob_stream.c void snd_bebob_stream_lock_changed(struct snd_bebob *bebob) bebob 965 sound/firewire/bebob/bebob_stream.c bebob->dev_lock_changed = true; bebob 966 sound/firewire/bebob/bebob_stream.c wake_up(&bebob->hwdep_wait); bebob 969 sound/firewire/bebob/bebob_stream.c int snd_bebob_stream_lock_try(struct snd_bebob *bebob) bebob 973 sound/firewire/bebob/bebob_stream.c spin_lock_irq(&bebob->lock); bebob 976 sound/firewire/bebob/bebob_stream.c if (bebob->dev_lock_count < 0) { bebob 982 sound/firewire/bebob/bebob_stream.c if (bebob->dev_lock_count++ == 0) bebob 983 sound/firewire/bebob/bebob_stream.c snd_bebob_stream_lock_changed(bebob); bebob 986 sound/firewire/bebob/bebob_stream.c spin_unlock_irq(&bebob->lock); bebob 990 sound/firewire/bebob/bebob_stream.c void snd_bebob_stream_lock_release(struct snd_bebob *bebob) bebob 992 sound/firewire/bebob/bebob_stream.c spin_lock_irq(&bebob->lock); bebob 994 sound/firewire/bebob/bebob_stream.c if (WARN_ON(bebob->dev_lock_count <= 0)) bebob 996 sound/firewire/bebob/bebob_stream.c if (--bebob->dev_lock_count == 0) bebob 997 sound/firewire/bebob/bebob_stream.c snd_bebob_stream_lock_changed(bebob); bebob 999 sound/firewire/bebob/bebob_stream.c spin_unlock_irq(&bebob->lock); bebob 16 sound/firewire/bebob/bebob_terratec.c phase88_rack_clk_src_get(struct snd_bebob *bebob, unsigned int *id) bebob 21 sound/firewire/bebob/bebob_terratec.c err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext); bebob 24 sound/firewire/bebob/bebob_terratec.c err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word); bebob 38 sound/firewire/bebob/bebob_yamaha_terratec.c clk_src_get(struct snd_bebob *bebob, unsigned int *id) bebob 42 sound/firewire/bebob/bebob_yamaha_terratec.c err = avc_audio_get_selector(bebob->unit, 0, 4, id);