/sound/core/seq/oss/ |
H A D | seq_oss_writeq.c | 105 union evrec *rec; local 114 rec = (union evrec *)&ev.data; 115 rec->t.code = SEQ_SYNCTIMER; 116 rec->t.time = time;
|
H A D | seq_oss_readq.c | 106 union evrec rec; local 109 memset(&rec, 0, sizeof(rec)); 110 rec.c[0] = SEQ_MIDIPUTC; 111 rec.c[2] = dev; 114 rec.c[1] = *data++; 115 result = snd_seq_oss_readq_put_event(q, &rec); 156 snd_seq_oss_readq_pick(struct seq_oss_readq *q, union evrec *rec) argument 160 memcpy(rec, &q->q[q->head], sizeof(*rec)); 206 union evrec rec; local [all...] |
H A D | seq_oss_rw.c | 36 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); 49 union evrec rec; local 57 err = snd_seq_oss_readq_pick(readq, &rec); 66 err = snd_seq_oss_readq_pick(readq, &rec); 72 ev_len = ev_length(&rec); 79 if (copy_to_user(buf, &rec, ev_len)) { 100 union evrec rec; local 106 if (copy_from_user(&rec, buf, SHORT_EVENT_SIZE)) { 110 if (rec.s.code == SEQ_FULLSIZE) { 116 fmt = (*(unsigned short *)rec 164 insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt) argument [all...] |
H A D | seq_oss_timer.c | 48 struct seq_oss_timer *rec; local 50 rec = kzalloc(sizeof(*rec), GFP_KERNEL); 51 if (rec == NULL) 54 rec->dp = dp; 55 rec->cur_tick = 0; 56 rec->realtime = 0; 57 rec->running = 0; 58 rec->oss_tempo = 60; 59 rec 71 snd_seq_oss_timer_delete(struct seq_oss_timer *rec) argument 86 snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *ev) argument [all...] |
H A D | seq_oss_event.c | 44 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) argument 413 memcpy(&ev->data, rec, LONG_EVENT_SIZE); 426 union evrec *rec; local 434 rec = (union evrec*)&ev->data; 435 if (rec->s.code == SEQ_SYNCTIMER) { 437 snd_seq_oss_writeq_wakeup(dp->writeq, rec->t.time); 443 snd_seq_oss_readq_put_event(dp->readq, rec);
|
H A D | seq_oss_synth.c | 103 struct seq_oss_synth *rec; local 107 if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) { 111 rec->seq_device = -1; 112 rec->synth_type = reg->type; 113 rec->synth_subtype = reg->subtype; 114 rec->nr_voices = reg->nvoices; 115 rec->oper = reg->oper; 116 rec->private_data = reg->private_data; 117 rec 155 struct seq_oss_synth *rec = dev->driver_data; local 194 struct seq_oss_synth *rec; local 214 struct seq_oss_synth *rec; local 309 struct seq_oss_synth *rec; local 363 struct seq_oss_synth *rec; local 404 struct seq_oss_synth *rec; local 458 struct seq_oss_synth *rec; local 483 struct seq_oss_synth *rec; local 572 struct seq_oss_synth *rec; local 608 struct seq_oss_synth *rec; local 643 struct seq_oss_synth *rec; local [all...] |
/sound/drivers/ |
H A D | pcm-indirect2.c | 41 struct snd_pcm_indirect2 *rec) 47 int seconds = (rec->lastbytetime - rec->firstbytetime) / HZ; 51 rec->mul_elapsed, rec->mul_elapsed_real, rec->irq_occured); 53 rec->min_multiple); 56 rec->firstbytetime, rec->lastbytetime, rec 40 snd_pcm_indirect2_stat(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec) argument 136 snd_pcm_indirect2_increase_min_periods(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec, int isplay, int iscopy, unsigned int bytes) argument 232 snd_pcm_indirect2_pointer(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec) argument 245 snd_pcm_indirect2_playback_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec, snd_pcm_indirect2_copy_t copy, snd_pcm_indirect2_zero_t zero) argument 374 snd_pcm_indirect2_playback_interrupt(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec, snd_pcm_indirect2_copy_t copy, snd_pcm_indirect2_zero_t zero) argument 413 snd_pcm_indirect2_capture_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec, snd_pcm_indirect2_copy_t copy, snd_pcm_indirect2_zero_t null) argument 537 snd_pcm_indirect2_capture_interrupt(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec, snd_pcm_indirect2_copy_t copy, snd_pcm_indirect2_zero_t null) argument [all...] |
H A D | ml403-ac97cr.c | 416 struct snd_pcm_indirect2 *rec) 430 rec->hw_ready = 0; 438 struct snd_pcm_indirect2 *rec, 447 src = (u16 *)(substream->runtime->dma_area + rec->sw_data); 458 rec->hw_ready = 1; 460 rec->hw_ready = 0; 468 struct snd_pcm_indirect2 *rec) 488 rec->hw_ready = 0; 496 struct snd_pcm_indirect2 *rec, size_t bytes) 504 dst = (u16 *)(substream->runtime->dma_area + rec 415 snd_ml403_ac97cr_playback_ind2_zero(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec) argument 437 snd_ml403_ac97cr_playback_ind2_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec, size_t bytes) argument 467 snd_ml403_ac97cr_capture_ind2_null(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec) argument 495 snd_ml403_ac97cr_capture_ind2_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect2 *rec, size_t bytes) argument [all...] |
/sound/pci/emu10k1/ |
H A D | emu10k1_patch.c | 38 snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, argument 48 emu = rec->hw; 214 snd_emu10k1_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, argument 219 emu = rec->hw;
|
H A D | emupcm.c | 1604 struct snd_pcm_indirect *rec, size_t bytes) 1609 unsigned short *src = (unsigned short *)(substream->runtime->dma_area + rec->sw_data); 1603 fx8010_pb_trans_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument
|
/sound/core/seq/ |
H A D | seq_dummy.c | 154 struct snd_seq_dummy_port *rec; local 156 if ((rec = kzalloc(sizeof(*rec), GFP_KERNEL)) == NULL) 159 rec->client = my_client; 160 rec->duplex = duplex; 161 rec->connect = 0; 181 pcb.private_data = rec; 184 kfree(rec); 187 rec->port = pinfo.addr.port; 188 return rec; [all...] |
/sound/isa/sb/ |
H A D | emu8000_patch.c | 147 snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, argument 158 emu = rec->hw; 287 snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, argument 302 snd_emu8000_sample_reset(struct snd_emux *rec) argument 304 snd_emux_terminate_all(rec);
|
H A D | emu8000_pcm.c | 182 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) argument 184 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; 185 val -= rec->loop_start[ch] - 1; 196 struct snd_emu8k_pcm *rec = (struct snd_emu8k_pcm *)data; local 199 spin_lock(&rec->timer_lock); 201 ptr = emu8k_get_curpos(rec, 0); 202 if (ptr < rec->last_ptr) 203 delta = ptr + rec->buf_size - rec->last_ptr; 205 delta = ptr - rec 231 struct snd_emu8k_pcm *rec; local 260 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 283 setup_voice(struct snd_emu8k_pcm *rec, int ch) argument 336 start_voice(struct snd_emu8k_pcm *rec, int ch) argument 372 stop_voice(struct snd_emu8k_pcm *rec, int ch) argument 390 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 451 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 488 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 517 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 549 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 575 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 599 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 617 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local 663 struct snd_emu8k_pcm *rec = subs->runtime->private_data; local [all...] |
H A D | emu8000.c | 657 struct soundfont_chorus_fx rec; local 662 if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) 664 chorus_parm[mode] = rec; 784 struct soundfont_reverb_fx rec; local 790 if (len < (long)sizeof(rec) || copy_from_user(&rec, buf, sizeof(rec))) 792 reverb_parm[mode] = rec; [all...] |
/sound/usb/6fire/ |
H A D | firmware.c | 214 struct ihex_record *rec = kmalloc(sizeof(struct ihex_record), local 217 if (!rec) 222 kfree(rec); 227 ret = usb6fire_fw_ihex_init(fw, rec); 229 kfree(rec); 239 kfree(rec); 246 while (usb6fire_fw_ihex_next_record(rec)) { /* write firmware */ 247 ret = usb6fire_fw_ezusb_write(device, 0xa0, rec->address, 248 rec->data, rec [all...] |
/sound/mips/ |
H A D | hal2.c | 598 struct snd_pcm_indirect *rec, size_t bytes) 601 unsigned char *buf = hal2->dac.buffer + rec->hw_data; 603 memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); 691 struct snd_pcm_indirect *rec, size_t bytes) 694 unsigned char *buf = hal2->adc.buffer + rec->hw_data; 697 memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes); 597 hal2_playback_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument 690 hal2_capture_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument
|
/sound/ppc/ |
H A D | pmac.c | 62 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) argument 66 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, 67 &rec->dma_base, GFP_KERNEL); 68 if (rec->space == NULL) 70 rec->size = size; 71 memset(rec->space, 0, rsize); 72 rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); 73 rec->addr = rec 78 snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) argument 96 snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) argument 160 snd_pmac_wait_ack(struct pmac_stream *rec) argument 183 snd_pmac_dma_stop(struct pmac_stream *rec) argument 192 snd_pmac_dma_set_command(struct pmac_stream *rec, struct pmac_dbdma *cmd) argument 200 snd_pmac_dma_run(struct pmac_stream *rec, int status) argument 209 snd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) argument 273 snd_pmac_pcm_trigger(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs, int cmd) argument 320 snd_pmac_pcm_pointer(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) argument 411 snd_pmac_pcm_dead_xfer(struct pmac_stream *rec, volatile struct dbdma_cmd __iomem *cp) argument 461 snd_pmac_pcm_update(struct snd_pmac *chip, struct pmac_stream *rec) argument 583 snd_pmac_pcm_open(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) argument 632 snd_pmac_pcm_close(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) argument 758 struct pmac_stream *rec = &chip->playback; local [all...] |
/sound/soc/codecs/ |
H A D | wm9713.c | 247 u16 l, r, beep, tone, phone, rec, pcm, aux; local 254 rec = ac97_read(w->codec, AC97_REC_SEL); 276 ac97_write(w->codec, AC97_REC_SEL, rec & 0x7fff); 278 ac97_write(w->codec, AC97_REC_SEL, rec | 0x8000);
|
/sound/oss/ |
H A D | mpu401.c | 676 static mpu_command_rec rec; local 678 rec.cmd = cmd & 0xff; 679 rec.nr_args = ((cmd & 0xf0) == 0xE0); 680 rec.nr_returns = ((cmd & 0xf0) == 0xA0); 681 rec.data[0] = data & 0xff; 683 if ((ret = mpu401_command(dev, &rec)) < 0) 685 return (unsigned char) rec.data[0]; 726 mpu_command_rec rec; local 743 if (copy_from_user(&rec, arg, sizeof(rec))) [all...] |
/sound/pci/cs46xx/ |
H A D | cs46xx_lib.c | 692 struct snd_pcm_indirect *rec, size_t bytes) 696 memcpy(cpcm->hw_buf.area + rec->hw_data, runtime->dma_area + rec->sw_data, bytes); 708 struct snd_pcm_indirect *rec, size_t bytes) 712 memcpy(runtime->dma_area + rec->sw_data, 713 chip->capt.hw_buf.area + rec->hw_data, bytes); 691 snd_cs46xx_pb_trans_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument 707 snd_cs46xx_cp_trans_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument
|
/sound/pci/ |
H A D | intel8x0m.c | 714 struct ich_pcm_table *rec) 720 if (rec->suffix) 721 sprintf(name, "Intel ICH - %s", rec->suffix); 725 rec->playback_ops ? 1 : 0, 726 rec->capture_ops ? 1 : 0, &pcm); 730 if (rec->playback_ops) 731 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); 732 if (rec->capture_ops) 733 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); 738 if (rec 713 snd_intel8x0m_pcm1(struct intel8x0m *chip, int device, struct ich_pcm_table *rec) argument 765 struct ich_pcm_table *tbl, *rec; local [all...] |
H A D | rme32.c | 1142 struct snd_pcm_indirect *rec, size_t bytes) 1145 memcpy_toio(rme32->iobase + RME32_IO_DATA_BUFFER + rec->hw_data, 1146 substream->runtime->dma_area + rec->sw_data, bytes); 1152 struct snd_pcm_indirect *rec, *cprec; local 1154 rec = &rme32->playback_pcm; 1157 rec->hw_queue_size = RME32_BUFFER_SIZE; 1159 rec->hw_queue_size -= cprec->hw_ready; 1161 snd_pcm_indirect_playback_transfer(substream, rec, 1167 struct snd_pcm_indirect *rec, size_t bytes) 1170 memcpy_fromio(substream->runtime->dma_area + rec 1141 snd_rme32_pb_trans_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument 1166 snd_rme32_cp_trans_copy(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) argument [all...] |
H A D | intel8x0.c | 1491 struct ich_pcm_table *rec) 1497 if (rec->suffix) 1498 sprintf(name, "Intel ICH - %s", rec->suffix); 1502 rec->playback_ops ? 1 : 0, 1503 rec->capture_ops ? 1 : 0, &pcm); 1507 if (rec->playback_ops) 1508 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, rec->playback_ops); 1509 if (rec->capture_ops) 1510 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, rec->capture_ops); 1514 if (rec 1490 snd_intel8x0_pcm1(struct intel8x0 *chip, int device, struct ich_pcm_table *rec) argument 1622 struct ich_pcm_table *tbl, *rec; local [all...] |
H A D | via82xx.c | 127 #define VIA_REV_8233C 0x20 /* 2 rec, 4 pb, 1 multi-pb */ 128 #define VIA_REV_8233 0x30 /* 2 rec, 4 pb, 1 multi-pb, spdif */ 129 #define VIA_REV_8233A 0x40 /* 1 rec, 1 multi-pb, spdf */ 130 #define VIA_REV_8235 0x50 /* 2 rec, 4 pb, 1 multi-pb, spdif */ 1011 static int via_lock_rate(struct via_rate_lock *rec, int rate) argument 1015 spin_lock_irq(&rec->lock); 1016 if (rec->rate != rate) { 1017 if (rec->rate && rec->used > 1) /* already set */ 1020 rec [all...] |
/sound/pci/ali5451/ |
H A D | ali5451.c | 558 static int snd_ali_find_free_channel(struct snd_ali * codec, int rec) argument 563 snd_ali_printk("find_free_channel: for %s\n",rec ? "rec" : "pcm"); 566 if (rec) { 940 int type, int rec, int channel) 945 snd_ali_printk("alloc_voice: type=%d rec=%d\n", type, rec); 950 snd_ali_find_free_channel(codec,rec); 960 pvoice->mode = rec; 1043 static unsigned int snd_ali_convert_rate(unsigned int rate, int rec) argument 939 snd_ali_alloc_voice(struct snd_ali * codec, int type, int rec, int channel) argument 1507 snd_ali_open(struct snd_pcm_substream *substream, int rec, int channel, struct snd_pcm_hardware *phw) argument 1614 snd_ali_modem_open(struct snd_pcm_substream *substream, int rec, int channel) argument [all...] |