Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 26) sorted by relevance

12

/sound/core/seq/
Dseq_queue.c63 static int queue_list_add(struct snd_seq_queue *q) in queue_list_add() argument
71 queue_list[i] = q; in queue_list_add()
72 q->queue = i; in queue_list_add()
84 struct snd_seq_queue *q; in queue_list_remove() local
88 q = queue_list[id]; in queue_list_remove()
89 if (q) { in queue_list_remove()
90 spin_lock(&q->owner_lock); in queue_list_remove()
91 if (q->owner == client) { in queue_list_remove()
93 q->klocked = 1; in queue_list_remove()
94 spin_unlock(&q->owner_lock); in queue_list_remove()
[all …]
Dseq_queue.h95 #define queuefree(q) snd_use_lock_free(&(q)->use_lock) argument
101 void snd_seq_check_queue(struct snd_seq_queue *q, int atomic, int hop);
120 #define udiv_qrnnd(q, r, n1, n0, d) \ argument
122 : "=a" ((u32)(q)), \
128 #define u64_div(x,y,q) do {u32 __tmp; udiv_qrnnd(q, __tmp, (x)>>32, x, y);} while (0) argument
129 #define u64_mod(x,y,r) do {u32 __tmp; udiv_qrnnd(__tmp, q, (x)>>32, x, y);} while (0)
130 #define u64_divmod(x,y,q,r) udiv_qrnnd(q, r, (x)>>32, x, y) argument
133 #define u64_div(x,y,q) ((q) = (u32)((u64)(x) / (u64)(y))) argument
135 #define u64_divmod(x,y,q,r) (u64_div(x,y,q), u64_mod(x,y,r)) argument
Dseq_timer.c140 struct snd_seq_queue *q = timeri->callback_data; in snd_seq_timer_interrupt() local
143 if (q == NULL) in snd_seq_timer_interrupt()
145 tmr = q->timer; in snd_seq_timer_interrupt()
173 snd_seq_check_queue(q, 1, 0); in snd_seq_timer_interrupt()
270 int snd_seq_timer_open(struct snd_seq_queue *q) in snd_seq_timer_open() argument
277 tmr = q->timer; in snd_seq_timer_open()
282 sprintf(str, "sequencer queue %i", q->queue); in snd_seq_timer_open()
287 err = snd_timer_open(&t, str, &tmr->alsa_id, q->queue); in snd_seq_timer_open()
297 err = snd_timer_open(&t, str, &tid, q->queue); in snd_seq_timer_open()
305 t->callback_data = q; in snd_seq_timer_open()
[all …]
Dseq_clientmgr.c572 struct snd_seq_queue *q; in update_timestamp_of_queue() local
574 q = queueptr(queue); in update_timestamp_of_queue()
575 if (! q) in update_timestamp_of_queue()
580 event->time.time = snd_seq_timer_get_cur_time(q->timer); in update_timestamp_of_queue()
583 event->time.tick = snd_seq_timer_get_cur_tick(q->timer); in update_timestamp_of_queue()
586 queuefree(q); in update_timestamp_of_queue()
1540 struct snd_seq_queue *q; in snd_seq_ioctl_create_queue() local
1549 q = queueptr(result); in snd_seq_ioctl_create_queue()
1550 if (q == NULL) in snd_seq_ioctl_create_queue()
1553 info.queue = q->queue; in snd_seq_ioctl_create_queue()
[all …]
Dseq_timer.h124 int snd_seq_timer_open(struct snd_seq_queue *q);
125 int snd_seq_timer_close(struct snd_seq_queue *q);
126 int snd_seq_timer_midi_open(struct snd_seq_queue *q);
127 int snd_seq_timer_midi_close(struct snd_seq_queue *q);
/sound/core/seq/oss/
Dseq_oss_readq.c48 struct seq_oss_readq *q; in snd_seq_oss_readq_new() local
50 if ((q = kzalloc(sizeof(*q), GFP_KERNEL)) == NULL) { in snd_seq_oss_readq_new()
55 if ((q->q = kcalloc(maxlen, sizeof(union evrec), GFP_KERNEL)) == NULL) { in snd_seq_oss_readq_new()
57 kfree(q); in snd_seq_oss_readq_new()
61 q->maxlen = maxlen; in snd_seq_oss_readq_new()
62 q->qlen = 0; in snd_seq_oss_readq_new()
63 q->head = q->tail = 0; in snd_seq_oss_readq_new()
64 init_waitqueue_head(&q->midi_sleep); in snd_seq_oss_readq_new()
65 spin_lock_init(&q->lock); in snd_seq_oss_readq_new()
66 q->pre_event_timeout = SNDRV_SEQ_OSS_MAX_TIMEOUT; in snd_seq_oss_readq_new()
[all …]
Dseq_oss_writeq.c39 struct seq_oss_writeq *q; in snd_seq_oss_writeq_new() local
42 if ((q = kzalloc(sizeof(*q), GFP_KERNEL)) == NULL) in snd_seq_oss_writeq_new()
44 q->dp = dp; in snd_seq_oss_writeq_new()
45 q->maxlen = maxlen; in snd_seq_oss_writeq_new()
46 spin_lock_init(&q->sync_lock); in snd_seq_oss_writeq_new()
47 q->sync_event_put = 0; in snd_seq_oss_writeq_new()
48 q->sync_time = 0; in snd_seq_oss_writeq_new()
49 init_waitqueue_head(&q->sync_sleep); in snd_seq_oss_writeq_new()
58 return q; in snd_seq_oss_writeq_new()
65 snd_seq_oss_writeq_delete(struct seq_oss_writeq *q) in snd_seq_oss_writeq_delete() argument
[all …]
Dseq_oss_event.c34 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
39 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
54 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
56 switch (q->s.code) { in snd_seq_oss_process_event()
58 return extended_event(dp, q, ev); in snd_seq_oss_process_event()
61 return chn_voice_event(dp, q, ev); in snd_seq_oss_process_event()
64 return chn_common_event(dp, q, ev); in snd_seq_oss_process_event()
67 return timing_event(dp, q, ev); in snd_seq_oss_process_event()
70 return local_event(dp, q, ev); in snd_seq_oss_process_event()
73 return snd_seq_oss_synth_sysex(dp, q->x.dev, q->x.buf, ev); in snd_seq_oss_process_event()
[all …]
Dseq_oss_readq.h32 union evrec *q; member
43 void snd_seq_oss_readq_delete(struct seq_oss_readq *q);
47 int snd_seq_oss_readq_sysex(struct seq_oss_readq *q, int dev,
51 int snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec);
52 void snd_seq_oss_readq_wait(struct seq_oss_readq *q);
53 void snd_seq_oss_readq_free(struct seq_oss_readq *q);
55 #define snd_seq_oss_readq_lock(q, flags) spin_lock_irqsave(&(q)->lock, flags) argument
56 #define snd_seq_oss_readq_unlock(q, flags) spin_unlock_irqrestore(&(q)->lock, flags) argument
Dseq_oss_writeq.h42 void snd_seq_oss_writeq_delete(struct seq_oss_writeq *q);
43 void snd_seq_oss_writeq_clear(struct seq_oss_writeq *q);
44 int snd_seq_oss_writeq_sync(struct seq_oss_writeq *q);
45 void snd_seq_oss_writeq_wakeup(struct seq_oss_writeq *q, abstime_t time);
46 int snd_seq_oss_writeq_get_free_size(struct seq_oss_writeq *q);
47 void snd_seq_oss_writeq_set_output(struct seq_oss_writeq *q, int size);
Dseq_oss_event.h107 int snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
108 int snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *q);
Dseq_oss_device.h139 void snd_seq_oss_readq_info_read(struct seq_oss_readq *q, struct snd_info_buffer *buf);
/sound/core/
Dmisc.c121 const struct snd_pci_quirk *q; in snd_pci_quirk_lookup_id() local
123 for (q = list; q->subvendor; q++) { in snd_pci_quirk_lookup_id()
124 if (q->subvendor != vendor) in snd_pci_quirk_lookup_id()
126 if (!q->subdevice || in snd_pci_quirk_lookup_id()
127 (device & q->subdevice_mask) == q->subdevice) in snd_pci_quirk_lookup_id()
128 return q; in snd_pci_quirk_lookup_id()
Dpcm_lib.c624 unsigned int q; in div_up() local
627 q = div32(a, b, &r); in div_up()
629 ++q; in div_up()
630 return q; in div_up()
886 unsigned int q = i->min; in snd_interval_ratnum() local
888 if (q == 0) in snd_interval_ratnum()
889 q = 1; in snd_interval_ratnum()
890 den = div_up(num, q); in snd_interval_ratnum()
901 diff = num - q * den; in snd_interval_ratnum()
925 unsigned int q = i->max; in snd_interval_ratnum() local
[all …]
/sound/oss/
Dsequencer.c360 static int extended_event(unsigned char *q) in extended_event() argument
362 int dev = q[2]; in extended_event()
370 switch (q[1]) in extended_event()
373 synth_devs[dev]->kill_note(dev, q[3], q[4], q[5]); in extended_event()
377 if (q[4] > 127 && q[4] != 255) in extended_event()
380 if (q[5] == 0) in extended_event()
382 synth_devs[dev]->kill_note(dev, q[3], q[4], q[5]); in extended_event()
385 synth_devs[dev]->start_note(dev, q[3], q[4], q[5]); in extended_event()
389 synth_devs[dev]->set_instr(dev, q[3], q[4]); in extended_event()
393 synth_devs[dev]->aftertouch(dev, q[3], q[4]); in extended_event()
[all …]
Dmidibuf.c58 #define DATA_AVAIL(q) (q->len) argument
59 #define SPACE_AVAIL(q) (MAX_QUEUE_SIZE - q->len) argument
61 #define QUEUE_BYTE(q, data) \ argument
62 if (SPACE_AVAIL(q)) \
66 q->queue[q->tail] = (data); \
67 q->len++; q->tail = (q->tail+1) % MAX_QUEUE_SIZE; \
71 #define REMOVE_BYTE(q, data) \ argument
72 if (DATA_AVAIL(q)) \
76 data = q->queue[q->head]; \
77 q->len--; q->head = (q->head+1) % MAX_QUEUE_SIZE; \
Dsleep.h11 oss_broken_sleep_on(wait_queue_head_t *q, long timeout) in oss_broken_sleep_on() argument
14 prepare_to_wait(q, &wait, TASK_INTERRUPTIBLE); in oss_broken_sleep_on()
16 finish_wait(q, &wait); in oss_broken_sleep_on()
/sound/pci/emu10k1/
Dmemory.c173 struct snd_emu10k1_memblk *q; in unmap_memblk() local
177 q = get_emu10k1_memblk(p, mapped_link); in unmap_memblk()
178 start_page = q->mapped_page + q->pages; in unmap_memblk()
182 q = get_emu10k1_memblk(p, mapped_link); in unmap_memblk()
183 end_page = q->mapped_page; in unmap_memblk()
431 struct snd_emu10k1_memblk *q; in get_single_page_range() local
435 q = get_emu10k1_memblk(p, mem.list); in get_single_page_range()
436 if (q->last_page == first_page) in get_single_page_range()
441 q = get_emu10k1_memblk(p, mem.list); in get_single_page_range()
442 if (q->first_page == last_page) in get_single_page_range()
/sound/pci/hda/
Dhda_auto_parser.c889 const struct snd_pci_quirk *q; in snd_hda_pick_fixup() local
916 q = snd_pci_quirk_lookup(codec->bus->pci, quirk); in snd_hda_pick_fixup()
917 if (q) { in snd_hda_pick_fixup()
918 id = q->value; in snd_hda_pick_fixup()
920 name = q->name; in snd_hda_pick_fixup()
925 for (q = quirk; q->subvendor || q->subdevice; q++) { in snd_hda_pick_fixup()
927 q->subdevice | (q->subvendor << 16); in snd_hda_pick_fixup()
928 unsigned int mask = 0xffff0000 | q->subdevice_mask; in snd_hda_pick_fixup()
930 id = q->value; in snd_hda_pick_fixup()
932 name = q->name; in snd_hda_pick_fixup()
Dhda_intel.c1229 const struct snd_pci_quirk *q; in check_position_fix() local
1240 q = snd_pci_quirk_lookup(chip->pci, position_fix_list); in check_position_fix()
1241 if (q) { in check_position_fix()
1244 q->value, q->subvendor, q->subdevice); in check_position_fix()
1245 return q->value; in check_position_fix()
1310 const struct snd_pci_quirk *q; in check_probe_mask() local
1314 q = snd_pci_quirk_lookup(chip->pci, probe_mask_list); in check_probe_mask()
1315 if (q) { in check_probe_mask()
1318 q->value, q->subvendor, q->subdevice); in check_probe_mask()
1319 chip->codec_probe_mask = q->value; in check_probe_mask()
[all …]
Dpatch_realtek.c908 const struct alc_codec_rename_pci_table *q; in alc_codec_rename_from_preset() local
919 for (q = rename_pci_tbl; q->codec_vendor_id; q++) { in alc_codec_rename_from_preset()
920 if (q->codec_vendor_id != codec->vendor_id) in alc_codec_rename_from_preset()
922 if (q->pci_subvendor != codec->bus->pci->subsystem_vendor) in alc_codec_rename_from_preset()
924 if (!q->pci_subdevice || in alc_codec_rename_from_preset()
925 q->pci_subdevice == codec->bus->pci->subsystem_device) in alc_codec_rename_from_preset()
926 return alc_codec_rename(codec, q->name); in alc_codec_rename_from_preset()
956 const struct snd_pci_quirk *q; in has_cdefine_beep() local
957 q = snd_pci_quirk_lookup(codec->bus->pci, beep_white_list); in has_cdefine_beep()
958 if (q) in has_cdefine_beep()
[all …]
Dhda_codec.c1784 struct hda_cvt_setup *q);
1819 struct hda_cvt_setup *q) in really_cleanup_stream() argument
1821 hda_nid_t nid = q->nid; in really_cleanup_stream()
1822 if (q->stream_tag || q->channel_id) in really_cleanup_stream()
1824 if (q->format_id) in really_cleanup_stream()
1827 memset(q, 0, sizeof(*q)); in really_cleanup_stream()
1828 q->nid = nid; in really_cleanup_stream()
/sound/sh/
Daica.c237 int q, err, period_offset; in aica_dma_transfer() local
246 for (q = 0; q < channels; q++) { in aica_dma_transfer()
250 (AICA_BUFFER_SIZE * q) / in aica_dma_transfer()
254 AICA_CHANNEL0_OFFSET + q * CHANNEL_OFFSET + in aica_dma_transfer()
/sound/pci/
Datiixp.c566 const struct snd_pci_quirk *q; in ac97_probing_bugs() local
568 q = snd_pci_quirk_lookup(pci, atiixp_quirks); in ac97_probing_bugs()
569 if (q) { in ac97_probing_bugs()
571 snd_pci_quirk_name(q), q->value); in ac97_probing_bugs()
572 return q->value; in ac97_probing_bugs()
/sound/pci/nm256/
Dnm256.c1668 const struct snd_pci_quirk *q; in snd_nm256_probe() local
1670 q = snd_pci_quirk_lookup(pci, nm256_quirks); in snd_nm256_probe()
1671 if (q) { in snd_nm256_probe()
1673 snd_pci_quirk_name(q)); in snd_nm256_probe()
1674 switch (q->value) { in snd_nm256_probe()

12