/sound/isa/sb/ |
D | emu8000_pcm.c | 171 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) in emu8k_get_curpos() argument 173 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; in emu8k_get_curpos() 174 val -= rec->loop_start[ch] - 1; in emu8k_get_curpos() 185 struct snd_emu8k_pcm *rec = from_timer(rec, t, timer); in emu8k_pcm_timer_func() local 188 spin_lock(&rec->timer_lock); in emu8k_pcm_timer_func() 190 ptr = emu8k_get_curpos(rec, 0); in emu8k_pcm_timer_func() 191 if (ptr < rec->last_ptr) in emu8k_pcm_timer_func() 192 delta = ptr + rec->buf_size - rec->last_ptr; in emu8k_pcm_timer_func() 194 delta = ptr - rec->last_ptr; in emu8k_pcm_timer_func() 195 rec->period_pos += delta; in emu8k_pcm_timer_func() [all …]
|
D | emu8000_local.h | 19 int snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, 22 int snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, 24 void snd_emu8000_sample_reset(struct snd_emux *rec);
|
D | emu8000_patch.c | 136 snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu8000_sample_new() argument 147 emu = rec->hw; in snd_emu8000_sample_new() 274 snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu8000_sample_free() argument 289 snd_emu8000_sample_reset(struct snd_emux *rec) in snd_emu8000_sample_reset() argument 291 snd_emux_terminate_all(rec); in snd_emu8000_sample_reset()
|
D | emu8000.c | 653 struct soundfont_chorus_fx rec; in snd_emu8000_load_chorus_fx() local 658 if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) in snd_emu8000_load_chorus_fx() 660 chorus_parm[mode] = rec; in snd_emu8000_load_chorus_fx() 780 struct soundfont_reverb_fx rec; in snd_emu8000_load_reverb_fx() local 786 if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) in snd_emu8000_load_reverb_fx() 788 reverb_parm[mode] = rec; in snd_emu8000_load_reverb_fx()
|
/sound/core/seq/oss/ |
D | seq_oss_synth.c | 93 struct seq_oss_synth *rec; in snd_seq_oss_synth_probe() local 97 rec = kzalloc(sizeof(*rec), GFP_KERNEL); in snd_seq_oss_synth_probe() 98 if (!rec) in snd_seq_oss_synth_probe() 100 rec->seq_device = -1; in snd_seq_oss_synth_probe() 101 rec->synth_type = reg->type; in snd_seq_oss_synth_probe() 102 rec->synth_subtype = reg->subtype; in snd_seq_oss_synth_probe() 103 rec->nr_voices = reg->nvoices; in snd_seq_oss_synth_probe() 104 rec->oper = reg->oper; in snd_seq_oss_synth_probe() 105 rec->private_data = reg->private_data; in snd_seq_oss_synth_probe() 106 rec->opened = 0; in snd_seq_oss_synth_probe() [all …]
|
D | seq_oss_timer.c | 35 struct seq_oss_timer *rec; in snd_seq_oss_timer_new() local 37 rec = kzalloc(sizeof(*rec), GFP_KERNEL); in snd_seq_oss_timer_new() 38 if (rec == NULL) in snd_seq_oss_timer_new() 41 rec->dp = dp; in snd_seq_oss_timer_new() 42 rec->cur_tick = 0; in snd_seq_oss_timer_new() 43 rec->realtime = 0; in snd_seq_oss_timer_new() 44 rec->running = 0; in snd_seq_oss_timer_new() 45 rec->oss_tempo = 60; in snd_seq_oss_timer_new() 46 rec->oss_timebase = 100; in snd_seq_oss_timer_new() 47 calc_alsa_tempo(rec); in snd_seq_oss_timer_new() [all …]
|
D | seq_oss_readq.c | 91 union evrec rec; in snd_seq_oss_readq_puts() local 94 memset(&rec, 0, sizeof(rec)); in snd_seq_oss_readq_puts() 95 rec.c[0] = SEQ_MIDIPUTC; in snd_seq_oss_readq_puts() 96 rec.c[2] = dev; in snd_seq_oss_readq_puts() 99 rec.c[1] = *data++; in snd_seq_oss_readq_puts() 100 result = snd_seq_oss_readq_put_event(q, &rec); in snd_seq_oss_readq_puts() 169 snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec) in snd_seq_oss_readq_pick() argument 173 memcpy(rec, &q->q[q->head], sizeof(*rec)); in snd_seq_oss_readq_pick() 219 union evrec rec; in snd_seq_oss_readq_put_timestamp() local 220 memset(&rec, 0, sizeof(rec)); in snd_seq_oss_readq_put_timestamp() [all …]
|
D | seq_oss_rw.c | 23 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); 36 union evrec rec; in snd_seq_oss_read() local 44 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read() 53 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read() 59 ev_len = ev_length(&rec); in snd_seq_oss_read() 66 if (copy_to_user(buf, &rec, ev_len)) { in snd_seq_oss_read() 87 union evrec rec; in snd_seq_oss_write() local 93 if (copy_from_user(&rec, buf, SHORT_EVENT_SIZE)) { in snd_seq_oss_write() 97 if (rec.s.code == SEQ_FULLSIZE) { in snd_seq_oss_write() 103 fmt = (*(unsigned short *)rec.c) & 0xffff; in snd_seq_oss_write() [all …]
|
D | seq_oss_writeq.c | 94 union evrec *rec; in snd_seq_oss_writeq_sync() local 103 rec = (union evrec *)&ev.data; in snd_seq_oss_writeq_sync() 104 rec->t.code = SEQ_SYNCTIMER; in snd_seq_oss_writeq_sync() 105 rec->t.time = time; in snd_seq_oss_writeq_sync()
|
D | seq_oss_event.c | 32 static int set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev); 408 set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev) in set_echo_event() argument 413 memcpy(&ev->data, rec, LONG_EVENT_SIZE); in set_echo_event() 426 union evrec *rec; in snd_seq_oss_event_input() local 434 rec = (union evrec*)&ev->data; in snd_seq_oss_event_input() 435 if (rec->s.code == SEQ_SYNCTIMER) { in snd_seq_oss_event_input() 437 snd_seq_oss_writeq_wakeup(dp->writeq, rec->t.time); in snd_seq_oss_event_input() 443 snd_seq_oss_readq_put_event(dp->readq, rec); in snd_seq_oss_event_input()
|
D | seq_oss_readq.h | 38 int snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec);
|
D | seq_oss_event.h | 95 int snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *q);
|
D | seq_oss_init.c | 48 #define call_ctl(type,rec) snd_seq_kernel_client_ctl(system_client, type, rec) argument
|
/sound/ppc/ |
D | pmac.c | 50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument 54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc() 55 &rec->dma_base, GFP_KERNEL); in snd_pmac_dbdma_alloc() 56 if (rec->space == NULL) in snd_pmac_dbdma_alloc() 58 rec->size = size; in snd_pmac_dbdma_alloc() 59 memset(rec->space, 0, rsize); in snd_pmac_dbdma_alloc() 60 rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); in snd_pmac_dbdma_alloc() 61 rec->addr = rec->dma_base + (unsigned long)((char *)rec->cmds - (char *)rec->space); in snd_pmac_dbdma_alloc() 66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument 68 if (rec->space) { in snd_pmac_dbdma_free() [all …]
|
/sound/core/seq/ |
D | seq_dummy.c | 110 struct snd_seq_dummy_port *rec; in create_port() local 112 rec = kzalloc(sizeof(*rec), GFP_KERNEL); in create_port() 113 if (!rec) in create_port() 116 rec->client = my_client; in create_port() 117 rec->duplex = duplex; in create_port() 118 rec->connect = 0; in create_port() 137 pcb.private_data = rec; in create_port() 140 kfree(rec); in create_port() 143 rec->port = pinfo.addr.port; in create_port() 144 return rec; in create_port()
|
/sound/usb/6fire/ |
D | firmware.c | 197 struct ihex_record *rec = kmalloc(sizeof(struct ihex_record), in usb6fire_fw_ezusb_upload() local 200 if (!rec) in usb6fire_fw_ezusb_upload() 205 kfree(rec); in usb6fire_fw_ezusb_upload() 210 ret = usb6fire_fw_ihex_init(fw, rec); in usb6fire_fw_ezusb_upload() 212 kfree(rec); in usb6fire_fw_ezusb_upload() 222 kfree(rec); in usb6fire_fw_ezusb_upload() 230 while (usb6fire_fw_ihex_next_record(rec)) { /* write firmware */ in usb6fire_fw_ezusb_upload() 231 ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, in usb6fire_fw_ezusb_upload() 232 rec->data, rec->len); in usb6fire_fw_ezusb_upload() 234 kfree(rec); in usb6fire_fw_ezusb_upload() [all …]
|
/sound/pci/ |
D | cmipci.c | 710 static int set_dac_channels(struct cmipci *cm, struct cmipci_pcm *rec, int channels) in set_dac_channels() argument 713 if (!cm->can_multi_ch || !rec->ch) in set_dac_channels() 715 if (rec->fmt != 0x03) /* stereo 16bit only */ in set_dac_channels() 753 static int snd_cmipci_pcm_prepare(struct cmipci *cm, struct cmipci_pcm *rec, in snd_cmipci_pcm_prepare() argument 760 rec->fmt = 0; in snd_cmipci_pcm_prepare() 761 rec->shift = 0; in snd_cmipci_pcm_prepare() 763 rec->fmt |= 0x02; in snd_cmipci_pcm_prepare() 765 rec->shift++; /* 24/32bit */ in snd_cmipci_pcm_prepare() 768 rec->fmt |= 0x01; in snd_cmipci_pcm_prepare() 769 if (rec->is_dac && set_dac_channels(cm, rec, runtime->channels) < 0) { in snd_cmipci_pcm_prepare() [all …]
|
D | intel8x0m.c | 675 const struct ich_pcm_table *rec) in snd_intel8x0m_pcm1() argument 681 if (rec->suffix) in snd_intel8x0m_pcm1() 682 sprintf(name, "Intel ICH - %s", rec->suffix); in snd_intel8x0m_pcm1() 686 rec->playback_ops ? 1 : 0, in snd_intel8x0m_pcm1() 687 rec->capture_ops ? 1 : 0, &pcm); in snd_intel8x0m_pcm1() 691 if (rec->playback_ops) in snd_intel8x0m_pcm1() 692 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); in snd_intel8x0m_pcm1() 693 if (rec->capture_ops) in snd_intel8x0m_pcm1() 694 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); in snd_intel8x0m_pcm1() 699 if (rec->suffix) in snd_intel8x0m_pcm1() [all …]
|
D | intel8x0.c | 1433 const struct ich_pcm_table *rec) in snd_intel8x0_pcm1() argument 1439 if (rec->suffix) in snd_intel8x0_pcm1() 1440 sprintf(name, "Intel ICH - %s", rec->suffix); in snd_intel8x0_pcm1() 1444 rec->playback_ops ? 1 : 0, in snd_intel8x0_pcm1() 1445 rec->capture_ops ? 1 : 0, &pcm); in snd_intel8x0_pcm1() 1449 if (rec->playback_ops) in snd_intel8x0_pcm1() 1450 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); in snd_intel8x0_pcm1() 1451 if (rec->capture_ops) in snd_intel8x0_pcm1() 1452 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); in snd_intel8x0_pcm1() 1456 if (rec->suffix) in snd_intel8x0_pcm1() [all …]
|
D | rme32.c | 1134 struct snd_pcm_indirect *rec, size_t bytes) in snd_rme32_pb_trans_copy() argument 1137 memcpy_toio(rme32->iobase + RME32_IO_DATA_BUFFER + rec->hw_data, in snd_rme32_pb_trans_copy() 1138 substream->runtime->dma_area + rec->sw_data, bytes); in snd_rme32_pb_trans_copy() 1144 struct snd_pcm_indirect *rec, *cprec; in snd_rme32_playback_fd_ack() local 1146 rec = &rme32->playback_pcm; in snd_rme32_playback_fd_ack() 1149 rec->hw_queue_size = RME32_BUFFER_SIZE; in snd_rme32_playback_fd_ack() 1151 rec->hw_queue_size -= cprec->hw_ready; in snd_rme32_playback_fd_ack() 1153 return snd_pcm_indirect_playback_transfer(substream, rec, in snd_rme32_playback_fd_ack() 1158 struct snd_pcm_indirect *rec, size_t bytes) in snd_rme32_cp_trans_copy() argument 1161 memcpy_fromio(substream->runtime->dma_area + rec->sw_data, in snd_rme32_cp_trans_copy() [all …]
|
/sound/soc/codecs/ |
D | wm0010.c | 351 const struct dfw_binrec *rec; in wm0010_firmware_load() local 366 rec = (const struct dfw_binrec *)fw->data; in wm0010_firmware_load() 367 inforec = (const struct dfw_inforec *)rec->data; in wm0010_firmware_load() 375 if (rec->command != DFW_CMD_INFO) { in wm0010_firmware_load() 400 offset += ((rec->length) + 8); in wm0010_firmware_load() 401 rec = (void *)&rec->data[rec->length]; in wm0010_firmware_load() 406 rec->command, rec->length); in wm0010_firmware_load() 407 len = rec->length + 8; in wm0010_firmware_load() 432 byte_swap_64((u64 *)&rec->command, img, len); in wm0010_firmware_load() 455 offset += ((rec->length) + 8); in wm0010_firmware_load() [all …]
|
D | zl38060.c | 164 const struct ihex_binrec *rec; in zl38_load_firmware() local 184 rec = (const struct ihex_binrec *)fw->data; in zl38_load_firmware() 185 while (rec) { in zl38_load_firmware() 186 addr = be32_to_cpu(rec->addr); in zl38_load_firmware() 187 len = be16_to_cpu(rec->len); in zl38_load_firmware() 190 err = zl38_fw_send_data(regmap, addr, rec->data, len); in zl38_load_firmware() 193 err = zl38_fw_send_xaddr(regmap, rec->data); in zl38_load_firmware() 200 rec = ihex_next_binrec(rec); in zl38_load_firmware()
|
/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 25 snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu10k1_sample_new() argument 36 emu = rec->hw; in snd_emu10k1_sample_new() 201 snd_emu10k1_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, in snd_emu10k1_sample_free() argument 206 emu = rec->hw; in snd_emu10k1_sample_free()
|
/sound/mips/ |
D | hal2.c | 574 struct snd_pcm_indirect *rec, size_t bytes) in hal2_playback_transfer() argument 577 unsigned char *buf = hal2->dac.buffer + rec->hw_data; in hal2_playback_transfer() 579 memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); in hal2_playback_transfer() 581 hal2->dac.buffer_dma + rec->hw_data, bytes, in hal2_playback_transfer() 659 struct snd_pcm_indirect *rec, size_t bytes) in hal2_capture_transfer() argument 662 unsigned char *buf = hal2->adc.buffer + rec->hw_data; in hal2_capture_transfer() 665 hal2->adc.buffer_dma + rec->hw_data, bytes, in hal2_capture_transfer() 667 memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes); in hal2_capture_transfer()
|
/sound/pci/ali5451/ |
D | ali5451.c | 533 static int snd_ali_find_free_channel(struct snd_ali * codec, int rec) in snd_ali_find_free_channel() argument 539 "find_free_channel: for %s\n", rec ? "rec" : "pcm"); in snd_ali_find_free_channel() 542 if (rec) { in snd_ali_find_free_channel() 909 int type, int rec, int channel) in snd_ali_alloc_voice() argument 914 dev_dbg(codec->card->dev, "alloc_voice: type=%d rec=%d\n", type, rec); in snd_ali_alloc_voice() 919 snd_ali_find_free_channel(codec,rec); in snd_ali_alloc_voice() 929 pvoice->mode = rec; in snd_ali_alloc_voice() 1012 static unsigned int snd_ali_convert_rate(unsigned int rate, int rec) in snd_ali_convert_rate() argument 1021 if (rec) { in snd_ali_convert_rate() 1456 static int snd_ali_open(struct snd_pcm_substream *substream, int rec, in snd_ali_open() argument [all …]
|