/sound/firewire/ |
D | amdtp-stream.c | 71 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_stream_init() argument 80 s->protocol = kzalloc(protocol_size, GFP_KERNEL); in amdtp_stream_init() 81 if (!s->protocol) in amdtp_stream_init() 84 s->unit = unit; in amdtp_stream_init() 85 s->direction = dir; in amdtp_stream_init() 86 s->flags = flags; in amdtp_stream_init() 87 s->context = ERR_PTR(-1); in amdtp_stream_init() 88 mutex_init(&s->mutex); in amdtp_stream_init() 89 tasklet_init(&s->period_tasklet, pcm_period_tasklet, (unsigned long)s); in amdtp_stream_init() 90 s->packet_index = 0; in amdtp_stream_init() [all …]
|
D | amdtp-am824.c | 41 void (*transfer_samples)(struct amdtp_stream *s, 60 int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate, in amdtp_am824_set_parameters() argument 65 struct amdtp_am824 *p = s->protocol; in amdtp_am824_set_parameters() 70 if (amdtp_stream_running(s)) in amdtp_am824_set_parameters() 80 if (WARN_ON(amdtp_stream_running(s)) || in amdtp_am824_set_parameters() 85 err = amdtp_stream_set_parameters(s, rate, in amdtp_am824_set_parameters() 90 s->fdf = AMDTP_FDF_AM824 | s->sfc; in amdtp_am824_set_parameters() 116 p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1; in amdtp_am824_set_parameters() 129 void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index, in amdtp_am824_set_pcm_position() argument 132 struct amdtp_am824 *p = s->protocol; in amdtp_am824_set_pcm_position() [all …]
|
D | amdtp-stream.h | 93 struct amdtp_stream *s, 142 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, 147 void amdtp_stream_destroy(struct amdtp_stream *s); 149 int amdtp_stream_set_parameters(struct amdtp_stream *s, unsigned int rate, 151 unsigned int amdtp_stream_get_max_payload(struct amdtp_stream *s); 153 int amdtp_stream_start(struct amdtp_stream *s, int channel, int speed); 154 void amdtp_stream_update(struct amdtp_stream *s); 155 void amdtp_stream_stop(struct amdtp_stream *s); 157 int amdtp_stream_add_pcm_hw_constraints(struct amdtp_stream *s, 160 void amdtp_stream_pcm_prepare(struct amdtp_stream *s); [all …]
|
D | amdtp-stream-trace.h | 17 …TP_PROTO(const struct amdtp_stream *s, u32 cycles, u32 cip_header[2], unsigned int payload_quadlet… 18 TP_ARGS(s, cycles, cip_header, payload_quadlets, index), 35 __entry->channel = s->context->channel; 36 __entry->src = fw_parent_device(s->unit)->node_id; 37 __entry->dest = fw_parent_device(s->unit)->card->node_id; 41 __entry->packet_index = s->packet_index; 61 …TP_PROTO(const struct amdtp_stream *s, u32 cycles, __be32 *cip_header, unsigned int payload_length… 62 TP_ARGS(s, cycles, cip_header, payload_length, index), 79 __entry->channel = s->context->channel; 80 __entry->src = fw_parent_device(s->unit)->card->node_id; [all …]
|
D | amdtp-am824.h | 30 int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate, 35 void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index, 38 void amdtp_am824_set_midi_position(struct amdtp_stream *s, 41 int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s, 44 void amdtp_am824_set_pcm_format(struct amdtp_stream *s, 47 void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port, 50 int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
|
/sound/oss/ |
D | swarm_cs4297a.c | 98 static void stop_dac(struct cs4297a_state *s); 99 static void stop_adc(struct cs4297a_state *s); 100 static void start_dac(struct cs4297a_state *s); 101 static void start_adc(struct cs4297a_state *s); 195 #define VALIDATE_STATE(s) \ argument 197 if (!(s) || (s)->magic != CS4297a_MAGIC) { \ 333 static int prog_dmabuf_adc(struct cs4297a_state *s) in prog_dmabuf_adc() argument 335 s->dma_adc.ready = 1; in prog_dmabuf_adc() 340 static int prog_dmabuf_dac(struct cs4297a_state *s) in prog_dmabuf_dac() argument 342 s->dma_dac.ready = 1; in prog_dmabuf_dac() [all …]
|
/sound/usb/usx2y/ |
D | usb_stream.c | 29 struct usb_stream *s = sk->s; in usb_stream_next_packet_size() local 31 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size() 36 struct usb_stream *s = sk->s; in playback_prep_freqn() local 41 if (s->idle_outsize + lb + l > s->period_size) in playback_prep_freqn() 54 s->idle_outsize += lb - s->period_size; in playback_prep_freqn() 55 snd_printdd(KERN_DEBUG "idle=%i ul=%i ps=%i\n", s->idle_outsize, in playback_prep_freqn() 56 lb, s->period_size); in playback_prep_freqn() 95 struct usb_stream *s = sk->s; in init_urbs() local 96 char *indata = (char *)s + sizeof(*s) + in init_urbs() 98 s->inpackets; in init_urbs() [all …]
|
D | us122l.c | 147 struct usb_stream *s; in usb_stream_hwdep_vm_fault() local 150 s = us122l->sk.s; in usb_stream_hwdep_vm_fault() 151 if (!s) in usb_stream_hwdep_vm_fault() 155 if (offset < PAGE_ALIGN(s->read_size)) in usb_stream_hwdep_vm_fault() 156 vaddr = (char *)s + offset; in usb_stream_hwdep_vm_fault() 158 offset -= PAGE_ALIGN(s->read_size); in usb_stream_hwdep_vm_fault() 159 if (offset >= PAGE_ALIGN(s->write_size)) in usb_stream_hwdep_vm_fault() 242 struct usb_stream *s; in usb_stream_hwdep_mmap() local 248 s = us122l->sk.s; in usb_stream_hwdep_mmap() 249 read = offset < s->read_size; in usb_stream_hwdep_mmap() [all …]
|
/sound/firewire/digi00x/ |
D | amdtp-dot.c | 52 void (*transfer_samples)(struct amdtp_stream *s, 118 int amdtp_dot_set_parameters(struct amdtp_stream *s, unsigned int rate, in amdtp_dot_set_parameters() argument 121 struct amdtp_dot *p = s->protocol; in amdtp_dot_set_parameters() 124 if (amdtp_stream_running(s)) in amdtp_dot_set_parameters() 131 err = amdtp_stream_set_parameters(s, rate, pcm_channels + 1); in amdtp_dot_set_parameters() 135 s->fdf = AMDTP_FDF_AM824 | s->sfc; in amdtp_dot_set_parameters() 145 p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1; in amdtp_dot_set_parameters() 150 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument 153 struct amdtp_dot *p = s->protocol; in write_pcm_s32() 160 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s32() [all …]
|
D | digi00x.h | 118 int amdtp_dot_init(struct amdtp_stream *s, struct fw_unit *unit, 120 int amdtp_dot_set_parameters(struct amdtp_stream *s, unsigned int rate, 122 void amdtp_dot_reset(struct amdtp_stream *s); 123 int amdtp_dot_add_pcm_hw_constraints(struct amdtp_stream *s, 125 void amdtp_dot_set_pcm_format(struct amdtp_stream *s, snd_pcm_format_t format); 126 void amdtp_dot_midi_trigger(struct amdtp_stream *s, unsigned int port,
|
/sound/firewire/tascam/ |
D | amdtp-tascam.c | 18 void (*transfer_samples)(struct amdtp_stream *s, 23 int amdtp_tscm_set_parameters(struct amdtp_stream *s, unsigned int rate) in amdtp_tscm_set_parameters() argument 25 struct amdtp_tscm *p = s->protocol; in amdtp_tscm_set_parameters() 28 if (amdtp_stream_running(s)) in amdtp_tscm_set_parameters() 34 if (s->direction == AMDTP_IN_STREAM) in amdtp_tscm_set_parameters() 37 return amdtp_stream_set_parameters(s, rate, data_channels); in amdtp_tscm_set_parameters() 40 static void write_pcm_s32(struct amdtp_stream *s, in write_pcm_s32() argument 44 struct amdtp_tscm *p = s->protocol; in write_pcm_s32() 51 frames_to_bytes(runtime, s->pcm_buffer_pointer); in write_pcm_s32() 52 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in write_pcm_s32() [all …]
|
/sound/soc/fsl/ |
D | mpc5200_dma.c | 59 static void psc_dma_bcom_enqueue_next_buffer(struct psc_dma_stream *s) in psc_dma_bcom_enqueue_next_buffer() argument 64 bd = bcom_prepare_next_buffer(s->bcom_task); in psc_dma_bcom_enqueue_next_buffer() 65 bd->status = s->period_bytes; in psc_dma_bcom_enqueue_next_buffer() 66 bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); in psc_dma_bcom_enqueue_next_buffer() 67 bcom_submit_next_buffer(s->bcom_task, NULL); in psc_dma_bcom_enqueue_next_buffer() 70 s->period_next = (s->period_next + 1) % s->runtime->periods; in psc_dma_bcom_enqueue_next_buffer() 76 struct psc_dma_stream *s = _psc_dma_stream; in psc_dma_bcom_irq() local 78 spin_lock(&s->psc_dma->lock); in psc_dma_bcom_irq() 81 while (bcom_buffer_done(s->bcom_task)) { in psc_dma_bcom_irq() 82 bcom_retrieve_buffer(s->bcom_task, NULL, NULL); in psc_dma_bcom_irq() [all …]
|
/sound/ |
D | sound_core.c | 174 static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, const struct file_o… in __sound_insert_unit() argument 209 s->unit_minor=n; in __sound_insert_unit() 210 s->unit_fops=fops; in __sound_insert_unit() 216 s->next=*list; in __sound_insert_unit() 217 *list=s; in __sound_insert_unit() 256 struct sound_unit *s = kmalloc(sizeof(*s), GFP_KERNEL); in sound_insert_unit() local 259 if (!s) in sound_insert_unit() 264 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit() 270 sprintf(s->name, "sound/%s", name); in sound_insert_unit() 272 sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); in sound_insert_unit() [all …]
|
/sound/isa/ |
D | sscape.c | 212 static void sscape_write(struct soundscape *s, enum GA_REG reg, in sscape_write() argument 217 spin_lock_irqsave(&s->lock, flags); in sscape_write() 218 sscape_write_unsafe(s->io_base, reg, val); in sscape_write() 219 spin_unlock_irqrestore(&s->lock, flags); in sscape_write() 388 static int obp_startup_ack(struct soundscape *s, unsigned timeout) in obp_startup_ack() argument 396 spin_lock_irqsave(&s->lock, flags); in obp_startup_ack() 397 x = host_read_unsafe(s->io_base); in obp_startup_ack() 398 spin_unlock_irqrestore(&s->lock, flags); in obp_startup_ack() 415 static int host_startup_ack(struct soundscape *s, unsigned timeout) in host_startup_ack() argument 423 spin_lock_irqsave(&s->lock, flags); in host_startup_ack() [all …]
|
/sound/pci/nm256/ |
D | nm256.c | 429 snd_nm256_set_format(struct nm256 *chip, struct nm256_stream *s, in snd_nm256_set_format() argument 436 s->shift = 0; in snd_nm256_set_format() 439 s->shift++; in snd_nm256_set_format() 443 s->shift++; in snd_nm256_set_format() 501 static void snd_nm256_pcm_mark(struct nm256 *chip, struct nm256_stream *s, int reg) in snd_nm256_pcm_mark() argument 503 s->cur_period++; in snd_nm256_pcm_mark() 504 s->cur_period %= s->periods; in snd_nm256_pcm_mark() 505 snd_nm256_writel(chip, reg, s->buf + s->cur_period * s->period_size); in snd_nm256_pcm_mark() 508 #define snd_nm256_playback_mark(chip, s) snd_nm256_pcm_mark(chip, s, NM_PBUFFER_WMARK) argument 509 #define snd_nm256_capture_mark(chip, s) snd_nm256_pcm_mark(chip, s, NM_RBUFFER_WMARK) argument [all …]
|
/sound/pci/ |
D | maestro3.c | 1060 static int snd_m3_pcm_start(struct snd_m3 *chip, struct m3_dma *s, in snd_m3_pcm_start() argument 1063 if (! s || ! subs) in snd_m3_pcm_start() 1071 s->inst.data + CDATA_INSTANCE_READY, 1); in snd_m3_pcm_start() 1080 s->inst.data + CDATA_INSTANCE_READY, 1); in snd_m3_pcm_start() 1087 static int snd_m3_pcm_stop(struct snd_m3 *chip, struct m3_dma *s, in snd_m3_pcm_stop() argument 1090 if (! s || ! subs) in snd_m3_pcm_stop() 1094 s->inst.data + CDATA_INSTANCE_READY, 0); in snd_m3_pcm_stop() 1115 struct m3_dma *s = subs->runtime->private_data; in snd_m3_pcm_trigger() local 1118 if (snd_BUG_ON(!s)) in snd_m3_pcm_trigger() 1125 if (s->running) in snd_m3_pcm_trigger() [all …]
|
/sound/pci/hda/ |
D | ca0132_regs.h | 363 #define X_RANGE_MAIN(a, s) \ argument 364 (((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < X_END)) 365 #define X_RANGE_AUX(a, s) \ argument 366 (((a) >= X_END) && ((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < AX_END)) 367 #define X_RANGE_EXT(a, s) \ argument 368 (((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < X_EXT)) 369 #define X_RANGE_ALL(a, s) \ argument 370 (((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < AX_END)) 372 #define Y_RANGE_MAIN(a, s) \ argument 374 ((a)+((s)-1)*YRAM_YRAM_CHAN_INCR < Y_END)) [all …]
|
D | hda_controller.c | 52 struct hdac_stream *s; in azx_assign_device() local 54 s = snd_hdac_stream_assign(azx_bus(chip), substream); in azx_assign_device() 55 if (!s) in azx_assign_device() 57 return stream_to_azx_dev(s); in azx_assign_device() 222 struct snd_pcm_substream *s; in azx_pcm_trigger() local 255 snd_pcm_group_for_each_entry(s, substream) { in azx_pcm_trigger() 256 if (s->pcm->card != substream->pcm->card) in azx_pcm_trigger() 258 azx_dev = get_azx_dev(s); in azx_pcm_trigger() 260 snd_pcm_trigger_done(s, substream); in azx_pcm_trigger() 268 snd_pcm_group_for_each_entry(s, substream) { in azx_pcm_trigger() [all …]
|
/sound/usb/ |
D | usbaudio.h | 117 #define combine_word(s) ((*(s)) | ((unsigned int)(s)[1] << 8)) argument 118 #define combine_triple(s) (combine_word(s) | ((unsigned int)(s)[2] << 16)) argument 119 #define combine_quad(s) (combine_triple(s) | ((unsigned int)(s)[3] << 24)) argument
|
/sound/soc/codecs/ |
D | cs42xx8.h | 106 #define CS42XX8_FUNCMOD_MFREQ_256(s) ((0 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 107 #define CS42XX8_FUNCMOD_MFREQ_384(s) ((1 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 108 #define CS42XX8_FUNCMOD_MFREQ_512(s) ((2 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 109 #define CS42XX8_FUNCMOD_MFREQ_768(s) ((3 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 110 #define CS42XX8_FUNCMOD_MFREQ_1024(s) ((4 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument
|
/sound/pci/asihpi/ |
D | asihpi.c | 118 struct clk_source s[MAX_CLOCKSOURCES]; member 603 struct snd_pcm_substream *s; in snd_card_asihpi_trigger() local 612 snd_pcm_group_for_each_entry(s, substream) { in snd_card_asihpi_trigger() 613 struct snd_pcm_runtime *runtime = s->runtime; in snd_card_asihpi_trigger() 616 if (snd_pcm_substream_chip(s) != card) in snd_card_asihpi_trigger() 620 if (substream->stream != s->stream) in snd_card_asihpi_trigger() 624 if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_card_asihpi_trigger() 632 snd_printddd("%d preload %d\n", s->number, preload); in snd_card_asihpi_trigger() 642 snd_printdd("%d group\n", s->number); in snd_card_asihpi_trigger() 647 snd_pcm_trigger_done(s, substream); in snd_card_asihpi_trigger() [all …]
|
/sound/pci/lola/ |
D | lola_pcm.c | 134 struct snd_pcm_substream *s; in lola_sync_wait_for_fifo() local 139 snd_pcm_group_for_each_entry(s, substream) { in lola_sync_wait_for_fifo() 141 if (s->pcm->card != substream->pcm->card) in lola_sync_wait_for_fifo() 143 str = lola_get_stream(s); in lola_sync_wait_for_fifo() 167 struct snd_pcm_substream *s; in lola_sync_pause() local 170 snd_pcm_group_for_each_entry(s, substream) { in lola_sync_pause() 172 if (s->pcm->card != substream->pcm->card) in lola_sync_pause() 174 str = lola_get_stream(s); in lola_sync_pause() 264 struct lola_stream *s = &pcm->streams[i]; in lola_cleanup_slave_streams() local 265 if (s->master != str) in lola_cleanup_slave_streams() [all …]
|
/sound/core/seq/ |
D | seq_ports.c | 466 static inline int addr_match(struct snd_seq_addr *r, struct snd_seq_addr *s) in addr_match() argument 468 return (r->client == s->client) && (r->port == s->port); in addr_match() 474 struct snd_seq_port_subscribe *s) in match_subs_info() argument 476 if (addr_match(&r->sender, &s->sender) && in match_subs_info() 477 addr_match(&r->dest, &s->dest)) { in match_subs_info() 478 if (r->flags && r->flags == s->flags) in match_subs_info() 479 return r->queue == s->queue; in match_subs_info() 493 struct snd_seq_subscribers *s; in check_and_subscribe_port() local 507 s = get_subscriber(p, is_src); in check_and_subscribe_port() 508 if (match_subs_info(&subs->info, &s->info)) in check_and_subscribe_port() [all …]
|
/sound/soc/au1x/ |
D | dma.c | 190 int *dmaids, s = substream->stream; in alchemy_pcm_open() local 198 name = (s == SNDRV_PCM_STREAM_PLAYBACK) ? "audio-tx" : "audio-rx"; in alchemy_pcm_open() 199 ctx->stream[s].dma = request_au1000_dma(dmaids[s], name, in alchemy_pcm_open() 201 &ctx->stream[s]); in alchemy_pcm_open() 202 set_dma_mode(ctx->stream[s].dma, in alchemy_pcm_open() 203 get_dma_mode(ctx->stream[s].dma) & ~DMA_NC); in alchemy_pcm_open() 205 ctx->stream[s].substream = substream; in alchemy_pcm_open() 206 ctx->stream[s].buffer = NULL; in alchemy_pcm_open()
|
/sound/hda/ |
D | hdac_stream.c | 300 struct hdac_stream *s; in snd_hdac_get_stream() local 302 list_for_each_entry(s, &bus->stream_list, list) { in snd_hdac_get_stream() 303 if (s->direction == dir && s->stream_tag == stream_tag) in snd_hdac_get_stream() 304 return s; in snd_hdac_get_stream() 524 struct hdac_stream *s; in snd_hdac_stream_timecounter_init() local 529 list_for_each_entry(s, &bus->stream_list, list) { in snd_hdac_stream_timecounter_init() 531 azx_timecounter_init(s, inited, cycle_last); in snd_hdac_stream_timecounter_init() 534 cycle_last = s->tc.cycle_last; in snd_hdac_stream_timecounter_init() 581 struct hdac_stream *s; in snd_hdac_stream_sync() local 586 list_for_each_entry(s, &bus->stream_list, list) { in snd_hdac_stream_sync() [all …]
|