/sound/core/seq/ |
D | seq_queue.c | 50 static int queue_list_add(struct snd_seq_queue *q) in queue_list_add() argument 58 queue_list[i] = q; in queue_list_add() 59 q->queue = i; in queue_list_add() 71 struct snd_seq_queue *q; in queue_list_remove() local 75 q = queue_list[id]; in queue_list_remove() 76 if (q) { in queue_list_remove() 77 spin_lock(&q->owner_lock); in queue_list_remove() 78 if (q->owner == client) { in queue_list_remove() 80 q->klocked = 1; in queue_list_remove() 81 spin_unlock(&q->owner_lock); in queue_list_remove() [all …]
|
D | seq_timer.c | 125 struct snd_seq_queue *q = timeri->callback_data; in snd_seq_timer_interrupt() local 128 if (q == NULL) in snd_seq_timer_interrupt() 130 tmr = q->timer; in snd_seq_timer_interrupt() 158 snd_seq_check_queue(q, 1, 0); in snd_seq_timer_interrupt() 258 int snd_seq_timer_open(struct snd_seq_queue *q) in snd_seq_timer_open() argument 265 tmr = q->timer; in snd_seq_timer_open() 270 sprintf(str, "sequencer queue %i", q->queue); in snd_seq_timer_open() 279 t->callback_data = q; in snd_seq_timer_open() 281 err = snd_timer_open(t, &tmr->alsa_id, q->queue); in snd_seq_timer_open() 291 err = snd_timer_open(t, &tid, q->queue); in snd_seq_timer_open() [all …]
|
D | seq_clientmgr.c | 575 struct snd_seq_queue *q; in update_timestamp_of_queue() local 577 q = queueptr(queue); in update_timestamp_of_queue() 578 if (! q) in update_timestamp_of_queue() 583 event->time.time = snd_seq_timer_get_cur_time(q->timer, true); in update_timestamp_of_queue() 586 event->time.tick = snd_seq_timer_get_cur_tick(q->timer); in update_timestamp_of_queue() 589 queuefree(q); in update_timestamp_of_queue() 1556 struct snd_seq_queue *q; in snd_seq_ioctl_create_queue() local 1558 q = snd_seq_queue_alloc(client->number, info->locked, info->flags); in snd_seq_ioctl_create_queue() 1559 if (IS_ERR(q)) in snd_seq_ioctl_create_queue() 1560 return PTR_ERR(q); in snd_seq_ioctl_create_queue() [all …]
|
D | seq_timer.h | 109 int snd_seq_timer_open(struct snd_seq_queue *q); 110 int snd_seq_timer_close(struct snd_seq_queue *q); 111 int snd_seq_timer_midi_open(struct snd_seq_queue *q); 112 int snd_seq_timer_midi_close(struct snd_seq_queue *q);
|
D | seq_queue.h | 75 #define queuefree(q) snd_use_lock_free(&(q)->use_lock) argument 81 void snd_seq_check_queue(struct snd_seq_queue *q, int atomic, int hop);
|
/sound/core/seq/oss/ |
D | seq_oss_readq.c | 35 struct seq_oss_readq *q; in snd_seq_oss_readq_new() local 37 q = kzalloc(sizeof(*q), GFP_KERNEL); in snd_seq_oss_readq_new() 38 if (!q) in snd_seq_oss_readq_new() 41 q->q = kcalloc(maxlen, sizeof(union evrec), GFP_KERNEL); in snd_seq_oss_readq_new() 42 if (!q->q) { in snd_seq_oss_readq_new() 43 kfree(q); in snd_seq_oss_readq_new() 47 q->maxlen = maxlen; in snd_seq_oss_readq_new() 48 q->qlen = 0; in snd_seq_oss_readq_new() 49 q->head = q->tail = 0; in snd_seq_oss_readq_new() 50 init_waitqueue_head(&q->midi_sleep); in snd_seq_oss_readq_new() [all …]
|
D | seq_oss_writeq.c | 27 struct seq_oss_writeq *q; in snd_seq_oss_writeq_new() local 30 q = kzalloc(sizeof(*q), GFP_KERNEL); in snd_seq_oss_writeq_new() 31 if (!q) in snd_seq_oss_writeq_new() 33 q->dp = dp; in snd_seq_oss_writeq_new() 34 q->maxlen = maxlen; in snd_seq_oss_writeq_new() 35 spin_lock_init(&q->sync_lock); in snd_seq_oss_writeq_new() 36 q->sync_event_put = 0; in snd_seq_oss_writeq_new() 37 q->sync_time = 0; in snd_seq_oss_writeq_new() 38 init_waitqueue_head(&q->sync_sleep); in snd_seq_oss_writeq_new() 47 return q; in snd_seq_oss_writeq_new() [all …]
|
D | seq_oss_event.c | 22 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev); 27 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev); 42 snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) in snd_seq_oss_process_event() argument 44 switch (q->s.code) { in snd_seq_oss_process_event() 46 return extended_event(dp, q, ev); in snd_seq_oss_process_event() 49 return chn_voice_event(dp, q, ev); in snd_seq_oss_process_event() 52 return chn_common_event(dp, q, ev); in snd_seq_oss_process_event() 55 return timing_event(dp, q, ev); in snd_seq_oss_process_event() 58 return local_event(dp, q, ev); in snd_seq_oss_process_event() 61 return snd_seq_oss_synth_sysex(dp, q->x.dev, q->x.buf, ev); in snd_seq_oss_process_event() [all …]
|
D | seq_oss_readq.h | 19 union evrec *q; member 30 void snd_seq_oss_readq_delete(struct seq_oss_readq *q); 34 int snd_seq_oss_readq_sysex(struct seq_oss_readq *q, int dev, 38 int snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec); 39 void snd_seq_oss_readq_wait(struct seq_oss_readq *q); 40 void snd_seq_oss_readq_free(struct seq_oss_readq *q); 42 #define snd_seq_oss_readq_lock(q, flags) spin_lock_irqsave(&(q)->lock, flags) argument 43 #define snd_seq_oss_readq_unlock(q, flags) spin_unlock_irqrestore(&(q)->lock, flags) argument
|
D | seq_oss_writeq.h | 29 void snd_seq_oss_writeq_delete(struct seq_oss_writeq *q); 30 void snd_seq_oss_writeq_clear(struct seq_oss_writeq *q); 31 int snd_seq_oss_writeq_sync(struct seq_oss_writeq *q); 32 void snd_seq_oss_writeq_wakeup(struct seq_oss_writeq *q, abstime_t time); 33 int snd_seq_oss_writeq_get_free_size(struct seq_oss_writeq *q); 34 void snd_seq_oss_writeq_set_output(struct seq_oss_writeq *q, int size);
|
D | seq_oss_event.h | 94 int snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev); 95 int snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *q);
|
D | seq_oss_device.h | 127 void snd_seq_oss_readq_info_read(struct seq_oss_readq *q, struct snd_info_buffer *buf);
|
/sound/core/ |
D | misc.c | 114 const struct snd_pci_quirk *q; in snd_pci_quirk_lookup_id() local 116 for (q = list; q->subvendor || q->subdevice; q++) { in snd_pci_quirk_lookup_id() 117 if (q->subvendor != vendor) in snd_pci_quirk_lookup_id() 119 if (!q->subdevice || in snd_pci_quirk_lookup_id() 120 (device & q->subdevice_mask) == q->subdevice) in snd_pci_quirk_lookup_id() 121 return q; in snd_pci_quirk_lookup_id()
|
D | pcm_lib.c | 535 unsigned int q; in div_up() local 538 q = div32(a, b, &r); in div_up() 540 ++q; in div_up() 541 return q; in div_up() 802 unsigned int q = i->min; in snd_interval_ratnum() local 804 if (q == 0) in snd_interval_ratnum() 805 q = 1; in snd_interval_ratnum() 806 den = div_up(num, q); in snd_interval_ratnum() 817 diff = num - q * den; in snd_interval_ratnum() 841 unsigned int q = i->max; in snd_interval_ratnum() local [all …]
|
/sound/pci/emu10k1/ |
D | memory.c | 169 struct snd_emu10k1_memblk *q; in unmap_memblk() local 174 q = get_emu10k1_memblk(p, mapped_link); in unmap_memblk() 175 start_page = q->mapped_page + q->pages; in unmap_memblk() 181 q = get_emu10k1_memblk(p, mapped_link); in unmap_memblk() 182 end_page = q->mapped_page; in unmap_memblk() 459 struct snd_emu10k1_memblk *q; in get_single_page_range() local 464 q = get_emu10k1_memblk(p, mem.list); in get_single_page_range() 465 if (q->last_page == first_page) in get_single_page_range() 471 q = get_emu10k1_memblk(p, mem.list); in get_single_page_range() 472 if (q->first_page == last_page) in get_single_page_range()
|
/sound/pci/hda/ |
D | hda_intel.c | 1531 const struct snd_pci_quirk *q; in check_position_fix() local 1544 q = snd_pci_quirk_lookup(chip->pci, position_fix_list); in check_position_fix() 1545 if (q) { in check_position_fix() 1548 q->value, q->subvendor, q->subdevice); in check_position_fix() 1549 return q->value; in check_position_fix() 1628 const struct snd_pci_quirk *q; in check_probe_mask() local 1632 q = snd_pci_quirk_lookup(chip->pci, probe_mask_list); in check_probe_mask() 1633 if (q) { in check_probe_mask() 1636 q->value, q->subvendor, q->subdevice); in check_probe_mask() 1637 chip->codec_probe_mask = q->value; in check_probe_mask() [all …]
|
D | hda_auto_parser.c | 981 const struct snd_pci_quirk *q; in snd_hda_pick_fixup() local 1019 q = snd_pci_quirk_lookup_id(vendor, device, quirk); in snd_hda_pick_fixup() 1020 if (q) { in snd_hda_pick_fixup() 1027 q = snd_pci_quirk_lookup(codec->bus->pci, quirk); in snd_hda_pick_fixup() 1028 if (q) { in snd_hda_pick_fixup() 1034 q = snd_pci_quirk_lookup_id(codec->core.subsystem_id >> 16, in snd_hda_pick_fixup() 1037 if (q) { in snd_hda_pick_fixup() 1045 id = q->value; in snd_hda_pick_fixup() 1047 name = q->name; in snd_hda_pick_fixup() 1051 type, q->subvendor, q->subdevice); in snd_hda_pick_fixup()
|
D | hda_codec.c | 1177 struct hda_cvt_setup *q); 1212 struct hda_cvt_setup *q) in really_cleanup_stream() argument 1214 hda_nid_t nid = q->nid; in really_cleanup_stream() 1215 if (q->stream_tag || q->channel_id) in really_cleanup_stream() 1217 if (q->format_id) in really_cleanup_stream() 1220 memset(q, 0, sizeof(*q)); in really_cleanup_stream() 1221 q->nid = nid; in really_cleanup_stream()
|
D | patch_realtek.c | 1077 const struct alc_codec_rename_pci_table *q; in alc_codec_rename_from_preset() local 1088 for (q = rename_pci_tbl; q->codec_vendor_id; q++) { in alc_codec_rename_from_preset() 1089 if (q->codec_vendor_id != codec->core.vendor_id) in alc_codec_rename_from_preset() 1091 if (q->pci_subvendor != codec->bus->pci->subsystem_vendor) in alc_codec_rename_from_preset() 1093 if (!q->pci_subdevice || in alc_codec_rename_from_preset() 1094 q->pci_subdevice == codec->bus->pci->subsystem_device) in alc_codec_rename_from_preset() 1095 return alc_codec_rename(codec, q->name); in alc_codec_rename_from_preset() 1150 const struct snd_pci_quirk *q; in has_cdefine_beep() local 1151 q = snd_pci_quirk_lookup(codec->bus->pci, beep_allow_list); in has_cdefine_beep() 1152 if (q) in has_cdefine_beep() [all …]
|
/sound/sh/ |
D | aica.c | 217 int q, err, period_offset; in aica_dma_transfer() local 226 for (q = 0; q < channels; q++) { in aica_dma_transfer() 230 (AICA_BUFFER_SIZE * q) / in aica_dma_transfer() 234 AICA_CHANNEL0_OFFSET + q * CHANNEL_OFFSET + in aica_dma_transfer()
|
/sound/soc/codecs/ |
D | tas2552.c | 187 unsigned int d, q, t; in tas2552_setup_pll() local 199 q = d / (t + 1); in tas2552_setup_pll() 200 d = q + ((9999 - pll_clkin % 10000) * (d / t - q)) / 10000; in tas2552_setup_pll()
|
D | rt5645.c | 34 #define QUIRK_INV_JD1_1(q) ((q) & 1) argument 35 #define QUIRK_LEVEL_IRQ(q) (((q) >> 1) & 1) argument 36 #define QUIRK_IN2_DIFF(q) (((q) >> 2) & 1) argument 37 #define QUIRK_INV_HP_POL(q) (((q) >> 3) & 1) argument 38 #define QUIRK_JD_MODE(q) (((q) >> 4) & 7) argument 39 #define QUIRK_DMIC1_DATA_PIN(q) (((q) >> 8) & 3) argument 40 #define QUIRK_DMIC2_DATA_PIN(q) (((q) >> 12) & 3) argument
|
/sound/pci/ |
D | atiixp.c | 551 const struct snd_pci_quirk *q; in ac97_probing_bugs() local 553 q = snd_pci_quirk_lookup(pci, atiixp_quirks); in ac97_probing_bugs() 554 if (q) { in ac97_probing_bugs() 556 snd_pci_quirk_name(q), q->value); in ac97_probing_bugs() 557 return q->value; in ac97_probing_bugs()
|
/sound/pci/nm256/ |
D | nm256.c | 1601 const struct snd_pci_quirk *q; in snd_nm256_probe() local 1603 q = snd_pci_quirk_lookup(pci, nm256_quirks); in snd_nm256_probe() 1604 if (q) { in snd_nm256_probe() 1606 snd_pci_quirk_name(q)); in snd_nm256_probe() 1607 switch (q->value) { in snd_nm256_probe()
|
/sound/pci/ac97/ |
D | ac97_codec.c | 2943 const struct quirk_table *q; in apply_quirk_str() local 2946 q = &applicable_quirks[i]; in apply_quirk_str() 2947 if (q->name && ! strcmp(typestr, q->name)) in apply_quirk_str()
|