/sound/ |
D | sound_core.c | 227 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) in __sound_remove_unit() argument 232 if(p->unit_minor==unit) in __sound_remove_unit() 239 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit() 309 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument 314 p = __sound_remove_unit(list, unit); in sound_remove_unit() 361 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument 364 const int chain = unit % SOUND_STEP; in register_sound_special_device() 375 if (unit >= SOUND_STEP) in register_sound_special_device() 377 max_unit = unit + 1; in register_sound_special_device() 393 if (unit >= SOUND_STEP) in register_sound_special_device() [all …]
|
/sound/firewire/bebob/ |
D | bebob.c | 69 struct fw_device *fw_dev = fw_parent_device(bebob->unit); in name_device() 84 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device() 90 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device() 96 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device() 102 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device() 113 data[0], data[1], dev_name(&bebob->unit->device), in name_device() 134 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument 138 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec() 148 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument 152 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in check_audiophile_booted() [all …]
|
D | bebob.h | 75 struct fw_unit *unit; member 116 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) in snd_bebob_read_block() argument 118 return snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, in snd_bebob_read_block() 124 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) in snd_bebob_read_quad() argument 126 return snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, in snd_bebob_read_quad() 132 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, 134 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, 167 enum avc_bridgeco_plug_unit unit, in avc_bridgeco_fill_unit_addr() argument 173 buf[3] = unit; in avc_bridgeco_fill_unit_addr() 189 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, [all …]
|
D | bebob_stream.c | 72 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate() 80 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate() 91 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate() 102 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate() 107 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate() 135 dev_err(&bebob->unit->device, in snd_bebob_stream_check_internal_clock() 141 dev_err(&bebob->unit->device, in snd_bebob_stream_check_internal_clock() 170 err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); in snd_bebob_stream_check_internal_clock() 172 dev_err(&bebob->unit->device, in snd_bebob_stream_check_internal_clock() 223 err = avc_bridgeco_get_plug_ch_pos(bebob->unit, addr, buf, 256); in map_data_channels() [all …]
|
D | bebob_command.c | 11 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, in avc_audio_set_selector() argument 31 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector() 47 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, in avc_audio_get_selector() argument 67 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_get_selector() 106 int avc_bridgeco_get_plug_type(struct fw_unit *unit, in avc_bridgeco_get_plug_type() argument 120 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_type() 141 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, in avc_bridgeco_get_plug_ch_pos() argument 150 err = fcp_avc_transaction(unit, buf, 12, buf, 256, in avc_bridgeco_get_plug_ch_pos() 171 int avc_bridgeco_get_plug_section_type(struct fw_unit *unit, in avc_bridgeco_get_plug_section_type() argument 187 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_section_type() [all …]
|
D | bebob_maudio.c | 94 int snd_bebob_maudio_load_firmware(struct fw_unit *unit) in snd_bebob_maudio_load_firmware() argument 96 struct fw_device *device = fw_parent_device(unit); in snd_bebob_maudio_load_firmware() 106 err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, in snd_bebob_maudio_load_firmware() 115 dev_err(&unit->device, in snd_bebob_maudio_load_firmware() 126 dev_err(&unit->device, in snd_bebob_maudio_load_firmware() 137 return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in get_meter() 197 err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, in avc_maudio_set_special_clk() 274 dev_err(&bebob->unit->device, in snd_bebob_maudio_special_discover() 308 err = avc_general_get_sig_fmt(bebob->unit, rate, in special_get_rate() 319 err = avc_general_set_sig_fmt(bebob->unit, rate, in special_set_rate() [all …]
|
D | bebob_terratec.c | 20 err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext); in phase88_rack_clk_src_get() 23 err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word); in phase88_rack_clk_src_get() 43 return avc_audio_get_selector(bebob->unit, 0, 4, id); in phase24_series_clk_src_get()
|
/sound/firewire/ |
D | iso-resources.c | 26 int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) in fw_iso_resources_init() argument 29 r->unit = fw_unit_get(unit); in fw_iso_resources_init() 45 fw_unit_put(r->unit); in fw_iso_resources_destroy() 109 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate() 141 dev_err(&r->unit->device, in fw_iso_resources_allocate() 144 dev_err(&r->unit->device, in fw_iso_resources_allocate() 167 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_update() 193 dev_err(&r->unit->device, in fw_iso_resources_update() 196 dev_err(&r->unit->device, in fw_iso_resources_update() 214 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_free() [all …]
|
D | fcp.c | 28 int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate, in avc_general_set_sig_fmt() argument 64 err = fcp_avc_transaction(unit, buf, 8, buf, 8, in avc_general_set_sig_fmt() 82 int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate, in avc_general_get_sig_fmt() argument 107 err = fcp_avc_transaction(unit, buf, 8, buf, 8, in avc_general_get_sig_fmt() 135 int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type, in avc_general_get_plug_info() argument 156 err = fcp_avc_transaction(unit, buf, 8, buf, 8, BIT(1) | BIT(2)); in avc_general_get_plug_info() 192 struct fw_unit *unit; member 223 int fcp_avc_transaction(struct fw_unit *unit, in fcp_avc_transaction() argument 231 t.unit = unit; in fcp_avc_transaction() 248 ret = snd_fw_transaction(t.unit, tcode, in fcp_avc_transaction() [all …]
|
D | speakers.c | 50 struct fw_unit *unit; member 213 err = avc_general_set_sig_fmt(fwspk->unit, params_rate(hw_params), in fwspk_hw_params() 216 dev_err(&fwspk->unit->device, "failed to set sample rate\n"); in fwspk_hw_params() 367 err = fcp_avc_transaction(fwspk->unit, buf, 11, buf, 11, 0x3fe); in fwspk_mute_command() 371 dev_err(&fwspk->unit->device, "short FCP response\n"); in fwspk_mute_command() 376 dev_err(&fwspk->unit->device, "mute command failed\n"); in fwspk_mute_command() 428 err = fcp_avc_transaction(fwspk->unit, buf, 12, buf, 12, 0x3fe); in fwspk_volume_command() 432 dev_err(&fwspk->unit->device, "short FCP response\n"); in fwspk_volume_command() 437 dev_err(&fwspk->unit->device, "volume command failed\n"); in fwspk_volume_command() 603 static u32 fwspk_read_firmware_version(struct fw_unit *unit) in fwspk_read_firmware_version() argument [all …]
|
D | dice.c | 37 struct fw_unit *unit; member 144 struct fw_device *device = fw_parent_device(dice->unit); in dice_owner_set() 160 err = snd_fw_transaction(dice->unit, in dice_owner_set() 169 dev_err(&dice->unit->device, in dice_owner_set() 188 struct fw_device *device = fw_parent_device(dice->unit); in dice_owner_update() 206 err = snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, in dice_owner_update() 213 dev_err(&dice->unit->device, in dice_owner_update() 231 struct fw_device *device = fw_parent_device(dice->unit); in dice_owner_clear() 242 snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, in dice_owner_clear() 258 err = snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST, in dice_enable_set() [all …]
|
D | isight.c | 51 struct fw_unit *unit; member 206 dev_err(&isight->unit->device, "queueing error: %d\n", err); in isight_packet() 233 err = snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, in isight_connect() 276 return iso_packets_buffer_init(&isight->buffer, isight->unit, in isight_open() 286 iso_packets_buffer_destroy(&isight->buffer, isight->unit); in isight_close() 309 return snd_fw_transaction(isight->unit, TCODE_READ_QUADLET_REQUEST, in reg_read() 315 return snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, in reg_write() 331 snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, in isight_stop_streaming() 610 fw_unit_put(isight->unit); in isight_card_free() 614 static u64 get_unit_base(struct fw_unit *unit) in get_unit_base() argument [all …]
|
D | fcp.h | 17 int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate, 20 int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate, 23 int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type, 27 int fcp_avc_transaction(struct fw_unit *unit, 31 void fcp_bus_reset(struct fw_unit *unit);
|
D | scs1x.c | 34 struct fw_unit *unit; member 219 dev = fw_parent_device(scs->unit); in scs_output_tasklet() 371 err = snd_fw_transaction(scs->unit, TCODE_WRITE_BLOCK_REQUEST, in scs_init_hss_address() 374 dev_err(&scs->unit->device, "HSS1394 communication failed\n"); in scs_init_hss_address() 387 static int scs_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) in scs_probe() argument 389 struct fw_device *fw_dev = fw_parent_device(unit); in scs_probe() 394 err = snd_card_new(&unit->device, -16, NULL, THIS_MODULE, in scs_probe() 401 scs->unit = unit; in scs_probe() 424 fw_csr_string(unit->directory, CSR_MODEL, in scs_probe() 429 dev_name(&unit->device), 100 << fw_dev->max_speed); in scs_probe() [all …]
|
D | packets-buffer.c | 21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, in iso_packets_buffer_init() argument 44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, in iso_packets_buffer_init() 72 struct fw_unit *unit) in iso_packets_buffer_destroy() argument 74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); in iso_packets_buffer_destroy()
|
D | lib.c | 32 int snd_fw_transaction(struct fw_unit *unit, int tcode, in snd_fw_transaction() argument 36 struct fw_device *device = fw_parent_device(unit); in snd_fw_transaction() 58 dev_err(&unit->device, in snd_fw_transaction()
|
D | cmp.c | 51 dev_err(&c->resources.unit->device, "%cPCR%u: %pV", in cmp_error() 87 c->resources.unit, TCODE_LOCK_COMPARE_SWAP, in pcr_modify() 120 struct fw_unit *unit, in cmp_connection_init() argument 129 err = snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, in cmp_connection_init() 138 err = fw_iso_resources_init(&c->resources, unit); in cmp_connection_init() 164 c->resources.unit, TCODE_READ_QUADLET_REQUEST, in cmp_connection_check_used() 280 fw_parent_device(c->resources.unit)->max_speed); in cmp_connection_establish()
|
D | amdtp.c | 66 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_stream_init() argument 69 s->unit = fw_unit_get(unit); in amdtp_stream_init() 95 fw_unit_put(s->unit); in amdtp_stream_destroy() 561 dev_err(&s->unit->device, "queueing error: %d\n", err); in queue_packet() 648 dev_info_ratelimited(&s->unit->device, in handle_in_packet() 664 dev_info_ratelimited(&s->unit->device, in handle_in_packet() 698 dev_info(&s->unit->device, in handle_in_packet() 887 err = iso_packets_buffer_init(&s->buffer, s->unit, QUEUE_LENGTH, in amdtp_stream_start() 892 s->context = fw_iso_context_create(fw_parent_device(s->unit)->card, in amdtp_stream_start() 898 dev_err(&s->unit->device, in amdtp_stream_start() [all …]
|
D | packets-buffer.h | 20 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, 24 struct fw_unit *unit);
|
D | iso-resources.h | 20 struct fw_unit *unit; member 30 struct fw_unit *unit);
|
/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 55 struct fw_unit *unit; member 63 int snd_efw_transaction_cmd(struct fw_unit *unit, in snd_efw_transaction_cmd() argument 66 return snd_fw_transaction(unit, TCODE_WRITE_BLOCK_REQUEST, in snd_efw_transaction_cmd() 71 int snd_efw_transaction_run(struct fw_unit *unit, in snd_efw_transaction_run() argument 79 t.unit = unit; in snd_efw_transaction_run() 92 ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); in snd_efw_transaction_run() 105 dev_err(&t.unit->device, "EFW transaction timed out\n"); in snd_efw_transaction_run() 179 device = fw_parent_device(efw->unit); in handle_resp_for_user() 207 device = fw_parent_device(t->unit); in handle_resp_for_kernel() 290 void snd_efw_transaction_bus_reset(struct fw_unit *unit) in snd_efw_transaction_bus_reset() argument [all …]
|
D | fireworks.c | 75 struct fw_device *fw_dev = fw_parent_device(efw->unit); in get_hardware_info() 101 dev_name(&efw->unit->device), 100 << fw_dev->max_speed); in get_hardware_info() 192 efw_probe(struct fw_unit *unit, in efw_probe() argument 211 err = snd_card_new(&unit->device, index[card_index], id[card_index], in efw_probe() 221 efw->unit = unit; in efw_probe() 277 dev_set_drvdata(&unit->device, efw); in efw_probe() 288 static void efw_update(struct fw_unit *unit) in efw_update() argument 290 struct snd_efw *efw = dev_get_drvdata(&unit->device); in efw_update() 292 snd_efw_transaction_bus_reset(efw->unit); in efw_update() 296 static void efw_remove(struct fw_unit *unit) in efw_remove() argument [all …]
|
D | fireworks.h | 62 struct fw_unit *unit; member 111 int snd_efw_transaction_cmd(struct fw_unit *unit, 113 int snd_efw_transaction_run(struct fw_unit *unit, 118 void snd_efw_transaction_bus_reset(struct fw_unit *unit);
|
D | fireworks_stream.c | 30 err = cmp_connection_init(conn, efw->unit, c_dir, 0); in init_stream() 34 err = amdtp_stream_init(stream, efw->unit, s_dir, CIP_BLOCKING); in init_stream() 147 dev_err(&efw->unit->device, in check_connection_used_by_others() 271 dev_err(&efw->unit->device, in snd_efw_stream_start_duplex() 281 dev_err(&efw->unit->device, in snd_efw_stream_start_duplex()
|
/sound/soc/sh/ |
D | Kconfig | 12 ## Audio unit modules 55 AC97 unit of the SH7760.
|