/sound/firewire/ |
D | amdtp.c | 66 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_stream_init() argument 69 s->unit = fw_unit_get(unit); in amdtp_stream_init() 70 s->direction = dir; in amdtp_stream_init() 71 s->flags = flags; in amdtp_stream_init() 72 s->context = ERR_PTR(-1); in amdtp_stream_init() 73 mutex_init(&s->mutex); in amdtp_stream_init() 74 tasklet_init(&s->period_tasklet, pcm_period_tasklet, (unsigned long)s); in amdtp_stream_init() 75 s->packet_index = 0; in amdtp_stream_init() 77 init_waitqueue_head(&s->callback_wait); in amdtp_stream_init() 78 s->callbacked = false; in amdtp_stream_init() [all …]
|
D | amdtp.h | 103 void (*transfer_samples)(struct amdtp_stream *s, 145 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, 148 void amdtp_stream_destroy(struct amdtp_stream *s); 150 void amdtp_stream_set_parameters(struct amdtp_stream *s, 154 unsigned int amdtp_stream_get_max_payload(struct amdtp_stream *s); 156 int amdtp_stream_start(struct amdtp_stream *s, int channel, int speed); 157 void amdtp_stream_update(struct amdtp_stream *s); 158 void amdtp_stream_stop(struct amdtp_stream *s); 160 int amdtp_stream_add_pcm_hw_constraints(struct amdtp_stream *s, 162 void amdtp_stream_set_pcm_format(struct amdtp_stream *s, [all …]
|
/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 …]
|
D | usbusx2yaudio.c | 263 int s, u; in usX2Y_clients_stop() local 265 for (s = 0; s < 4; s++) { in usX2Y_clients_stop() 266 struct snd_usX2Y_substream *subs = usX2Y->subs[s]; in usX2Y_clients_stop() 268 snd_printdd("%i %p state=%i\n", s, subs, atomic_read(&subs->state)); in usX2Y_clients_stop() 272 for (s = 0; s < 4; s++) { in usX2Y_clients_stop() 273 struct snd_usX2Y_substream *subs = usX2Y->subs[s]; in usX2Y_clients_stop() 341 int s, u; in usX2Y_urbs_set_complete() local 342 for (s = 0; s < 4; s++) { in usX2Y_urbs_set_complete() 343 struct snd_usX2Y_substream *subs = usX2Y->subs[s]; in usX2Y_urbs_set_complete()
|
/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 …]
|
D | mpc5200_psc_ac97.c | 146 struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma); in psc_ac97_hw_analog_params() local 158 s->ac97_slot_bits = (params_channels(params) == 1) ? 0x100 : 0x300; in psc_ac97_hw_analog_params() 160 s->ac97_slot_bits <<= 16; in psc_ac97_hw_analog_params() 184 struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma); in psc_ac97_trigger() local 192 psc_dma->slots |= s->ac97_slot_bits; in psc_ac97_trigger() 201 psc_dma->slots &= ~(s->ac97_slot_bits); in psc_ac97_trigger()
|
/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 | 211 static void sscape_write(struct soundscape *s, enum GA_REG reg, in sscape_write() argument 216 spin_lock_irqsave(&s->lock, flags); in sscape_write() 217 sscape_write_unsafe(s->io_base, reg, val); in sscape_write() 218 spin_unlock_irqrestore(&s->lock, flags); in sscape_write() 387 static int obp_startup_ack(struct soundscape *s, unsigned timeout) in obp_startup_ack() argument 395 spin_lock_irqsave(&s->lock, flags); in obp_startup_ack() 396 x = host_read_unsafe(s->io_base); in obp_startup_ack() 397 spin_unlock_irqrestore(&s->lock, flags); in obp_startup_ack() 414 static int host_startup_ack(struct soundscape *s, unsigned timeout) in host_startup_ack() argument 422 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 …]
|
/sound/usb/ |
D | usbaudio.h | 114 #define combine_word(s) ((*(s)) | ((unsigned int)(s)[1] << 8)) argument 115 #define combine_triple(s) (combine_word(s) | ((unsigned int)(s)[2] << 16)) argument 116 #define combine_quad(s) (combine_triple(s) | ((unsigned int)(s)[3] << 24)) argument
|
/sound/soc/codecs/ |
D | cs42xx8.h | 105 #define CS42XX8_FUNCMOD_MFREQ_256(s) ((0 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 106 #define CS42XX8_FUNCMOD_MFREQ_384(s) ((1 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 107 #define CS42XX8_FUNCMOD_MFREQ_512(s) ((2 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 108 #define CS42XX8_FUNCMOD_MFREQ_768(s) ((3 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument 109 #define CS42XX8_FUNCMOD_MFREQ_1024(s) ((4 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument
|
/sound/pci/asihpi/ |
D | asihpi.c | 119 struct clk_source s[MAX_CLOCKSOURCES]; member 562 struct snd_pcm_substream *s; in snd_card_asihpi_trigger() local 571 snd_pcm_group_for_each_entry(s, substream) { in snd_card_asihpi_trigger() 572 struct snd_pcm_runtime *runtime = s->runtime; in snd_card_asihpi_trigger() 575 if (snd_pcm_substream_chip(s) != card) in snd_card_asihpi_trigger() 579 if (substream->stream != s->stream) in snd_card_asihpi_trigger() 583 if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_card_asihpi_trigger() 591 snd_printddd("%d preload x%x\n", s->number, preload); in snd_card_asihpi_trigger() 601 snd_printdd("%d group\n", s->number); in snd_card_asihpi_trigger() 606 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 | 469 static inline int addr_match(struct snd_seq_addr *r, struct snd_seq_addr *s) in addr_match() argument 471 return (r->client == s->client) && (r->port == s->port); in addr_match() 477 struct snd_seq_port_subscribe *s) in match_subs_info() argument 479 if (addr_match(&r->sender, &s->sender) && in match_subs_info() 480 addr_match(&r->dest, &s->dest)) { in match_subs_info() 481 if (r->flags && r->flags == s->flags) in match_subs_info() 482 return r->queue == s->queue; in match_subs_info() 496 struct snd_seq_subscribers *s; in check_and_subscribe_port() local 510 s = get_subscriber(p, is_src); in check_and_subscribe_port() 511 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/pci/rme9652/ |
D | rme9652.c | 173 #define rme9652_running_double_speed(s) ((s)->control_register & RME9652_DS) argument 436 static inline void rme9652_start(struct snd_rme9652 *s) in rme9652_start() argument 438 s->control_register |= (RME9652_IE | RME9652_start_bit); in rme9652_start() 439 rme9652_write(s, RME9652_control_register, s->control_register); in rme9652_start() 442 static inline void rme9652_stop(struct snd_rme9652 *s) in rme9652_stop() argument 444 s->control_register &= ~(RME9652_start_bit | RME9652_IE); in rme9652_stop() 445 rme9652_write(s, RME9652_control_register, s->control_register); in rme9652_stop() 448 static int rme9652_set_interrupt_interval(struct snd_rme9652 *s, in rme9652_set_interrupt_interval() argument 454 spin_lock_irq(&s->lock); in rme9652_set_interrupt_interval() 456 if ((restart = s->running)) { in rme9652_set_interrupt_interval() [all …]
|
/sound/isa/wavefront/ |
D | wavefront_synth.c | 950 skip = WF_GET_CHANNEL(&header->hdr.s); in wavefront_send_sample() 952 if (skip > 0 && header->hdr.s.SampleResolution != LINEAR_16BIT) { in wavefront_send_sample() 991 WF_GET_CHANNEL (&header->hdr.s), in wavefront_send_sample() 996 WF_SET_CHANNEL(&header->hdr.s, 0); in wavefront_send_sample() 1022 shptr = munge_int32 (*((u32 *) &header->hdr.s.sampleStartOffset), in wavefront_send_sample() 1024 shptr = munge_int32 (*((u32 *) &header->hdr.s.loopStartOffset), in wavefront_send_sample() 1026 shptr = munge_int32 (*((u32 *) &header->hdr.s.loopEndOffset), in wavefront_send_sample() 1028 shptr = munge_int32 (*((u32 *) &header->hdr.s.sampleEndOffset), in wavefront_send_sample() 1036 shptr = munge_int32 (header->hdr.s.FrequencyBias, shptr, 3); in wavefront_send_sample() 1043 shptr = munge_int32 (*(&header->hdr.s.FrequencyBias+1), in wavefront_send_sample() [all …]
|
/sound/soc/intel/ |
D | sst-firmware.c | 179 memcpy(&sst_module->s, &template->s, sizeof(struct sst_module_data)); in sst_module_new() 537 if (scratch->s.size < sst_module->s.size) in sst_mem_block_alloc_scratch() 538 scratch->s.size = sst_module->s.size; in sst_mem_block_alloc_scratch() 542 scratch->s.size); in sst_mem_block_alloc_scratch() 546 scratch->s.type = SST_MEM_DRAM; in sst_mem_block_alloc_scratch() 547 scratch->s.data_type = SST_DATA_S; in sst_mem_block_alloc_scratch() 561 ret = block_alloc(scratch, &scratch->s); in sst_mem_block_alloc_scratch() 569 sst_module->s.offset = scratch->s.offset; in sst_mem_block_alloc_scratch()
|
/sound/core/seq/oss/ |
D | seq_oss_event.h | 93 struct evrec_short s; member 104 #define ev_is_long(ev) ((ev)->s.code >= 128) 105 #define ev_length(ev) ((ev)->s.code >= 128 ? LONG_EVENT_SIZE : SHORT_EVENT_SIZE)
|
/sound/aoa/core/ |
D | gpio-feature.c | 197 int s; in ftr_gpio_all_amps_restore() local 200 s = rt->implementation_private; in ftr_gpio_all_amps_restore() 201 ftr_gpio_set_headphone(rt, (s>>0)&1); in ftr_gpio_all_amps_restore() 202 ftr_gpio_set_amp(rt, (s>>1)&1); in ftr_gpio_all_amps_restore() 203 ftr_gpio_set_lineout(rt, (s>>2)&1); in ftr_gpio_all_amps_restore() 205 ftr_gpio_set_master(rt, (s>>3)&1); in ftr_gpio_all_amps_restore()
|
/sound/isa/msnd/ |
D | msnd_pinnacle_mixer.c | 170 #define update_potm(d, s, ar) \ argument 174 dev->SMA + SMA_##s##Left); \ 177 dev->SMA + SMA_##s##Right); \ 182 #define update_pot(d, s, ar) \ argument 185 dev->SMA + SMA_##s##Left); \ 187 dev->SMA + SMA_##s##Right); \
|