/kernel/linux/linux-5.10/sound/usb/ |
D | pcm.c | 32 snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs, in snd_usb_pcm_delay() argument 39 if (!subs->last_delay) in snd_usb_pcm_delay() 42 current_frame_number = usb_get_current_frame_number(subs->dev); in snd_usb_pcm_delay() 48 frame_diff = (current_frame_number - subs->last_frame_number) & 0xff; in snd_usb_pcm_delay() 53 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) in snd_usb_pcm_delay() 54 est_delay = subs->last_delay - est_delay; in snd_usb_pcm_delay() 56 est_delay = subs->last_delay + est_delay; in snd_usb_pcm_delay() 68 struct snd_usb_substream *subs = substream->runtime->private_data; in snd_usb_pcm_pointer() local 71 if (atomic_read(&subs->stream->chip->shutdown)) in snd_usb_pcm_pointer() 73 spin_lock(&subs->lock); in snd_usb_pcm_pointer() [all …]
|
D | media.h | 56 int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm, 58 void snd_media_stream_delete(struct snd_usb_substream *subs); 59 int snd_media_start_pipeline(struct snd_usb_substream *subs); 60 void snd_media_stop_pipeline(struct snd_usb_substream *subs); 66 static inline int snd_media_stream_init(struct snd_usb_substream *subs, in snd_media_stream_init() argument 69 static inline void snd_media_stream_delete(struct snd_usb_substream *subs) { } in snd_media_stream_delete() argument 70 static inline int snd_media_start_pipeline(struct snd_usb_substream *subs) in snd_media_start_pipeline() argument 72 static inline void snd_media_stop_pipeline(struct snd_usb_substream *subs) { } in snd_media_stop_pipeline() argument
|
D | stream.c | 42 static void free_substream(struct snd_usb_substream *subs) in free_substream() argument 46 if (!subs->num_formats) in free_substream() 48 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) in free_substream() 50 kfree(subs->rate_list.list); in free_substream() 51 kfree(subs->str_pd); in free_substream() 52 snd_media_stream_delete(subs); in free_substream() 85 struct snd_usb_substream *subs = &as->substream[stream]; in snd_usb_init_substream() local 87 INIT_LIST_HEAD(&subs->fmt_list); in snd_usb_init_substream() 88 spin_lock_init(&subs->lock); in snd_usb_init_substream() 90 subs->stream = as; in snd_usb_init_substream() [all …]
|
D | proc.c | 92 static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct snd_info_buffer *buf… in proc_dump_substream_formats() argument 99 list_for_each_entry(fp, &subs->fmt_list, list) { in proc_dump_substream_formats() 128 if (subs->speed != USB_SPEED_FULL) in proc_dump_substream_formats() 158 static void proc_dump_ep_status(struct snd_usb_substream *subs, in proc_dump_ep_status() argument 167 subs->speed == USB_SPEED_FULL in proc_dump_ep_status() 178 static void proc_dump_substream_status(struct snd_usb_substream *subs, struct snd_info_buffer *buff… in proc_dump_substream_status() argument 180 if (subs->running) { in proc_dump_substream_status() 182 snd_iprintf(buffer, " Interface = %d\n", subs->interface); in proc_dump_substream_status() 183 snd_iprintf(buffer, " Altset = %d\n", subs->altset_idx); in proc_dump_substream_status() 184 proc_dump_ep_status(subs, subs->data_endpoint, subs->sync_endpoint, buffer); in proc_dump_substream_status()
|
D | media.c | 33 int snd_media_stream_init(struct snd_usb_substream *subs, struct snd_pcm *pcm, in snd_media_stream_init() argument 44 mdev = subs->stream->chip->media_dev; in snd_media_stream_init() 48 if (subs->media_ctl) in snd_media_stream_init() 103 subs->media_ctl = mctl; in snd_media_stream_init() 117 void snd_media_stream_delete(struct snd_usb_substream *subs) in snd_media_stream_delete() argument 119 struct media_ctl *mctl = subs->media_ctl; in snd_media_stream_delete() 131 subs->media_ctl = NULL; in snd_media_stream_delete() 135 int snd_media_start_pipeline(struct snd_usb_substream *subs) in snd_media_start_pipeline() argument 137 struct media_ctl *mctl = subs->media_ctl; in snd_media_start_pipeline() 151 void snd_media_stop_pipeline(struct snd_usb_substream *subs) in snd_media_stop_pipeline() argument [all …]
|
/kernel/linux/linux-5.10/sound/usb/usx2y/ |
D | usbusx2yaudio.c | 57 static int usx2y_urb_capt_retire(struct snd_usx2y_substream *subs) in usx2y_urb_capt_retire() argument 59 struct urb *urb = subs->completed_urb; in usx2y_urb_capt_retire() 60 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usx2y_urb_capt_retire() 62 int i, len, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_urb_capt_retire() 63 struct usx2ydev *usx2y = subs->usx2y; in usx2y_urb_capt_retire() 94 subs->hwptr_done = hwptr_done; in usx2y_urb_capt_retire() 95 subs->transfer_done += lens; in usx2y_urb_capt_retire() 97 if (subs->transfer_done >= runtime->period_size) { in usx2y_urb_capt_retire() 98 subs->transfer_done -= runtime->period_size; in usx2y_urb_capt_retire() 99 snd_pcm_period_elapsed(subs->pcm_substream); in usx2y_urb_capt_retire() [all …]
|
D | usx2yhwdeppcm.c | 50 static int usx2y_usbpcm_urb_capt_retire(struct snd_usx2y_substream *subs) in usx2y_usbpcm_urb_capt_retire() argument 52 struct urb *urb = subs->completed_urb; in usx2y_usbpcm_urb_capt_retire() 53 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usx2y_usbpcm_urb_capt_retire() 54 int i, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_usbpcm_urb_capt_retire() 55 struct usx2ydev *usx2y = subs->usx2y; in usx2y_usbpcm_urb_capt_retire() 72 subs->hwptr_done = hwptr_done; in usx2y_usbpcm_urb_capt_retire() 73 subs->transfer_done += lens; in usx2y_usbpcm_urb_capt_retire() 75 if (subs->transfer_done >= runtime->period_size) { in usx2y_usbpcm_urb_capt_retire() 76 subs->transfer_done -= runtime->period_size; in usx2y_usbpcm_urb_capt_retire() 77 snd_pcm_period_elapsed(subs->pcm_substream); in usx2y_usbpcm_urb_capt_retire() [all …]
|
/kernel/linux/linux-5.10/sound/core/seq/ |
D | seq_ports.c | 191 struct snd_seq_subscribers *subs, 215 struct snd_seq_subscribers *subs; in clear_subscriber_list() local 219 subs = get_subscriber(p, is_src); in clear_subscriber_list() 221 aport = get_client_port(&subs->info.dest, &c); in clear_subscriber_list() 223 aport = get_client_port(&subs->info.sender, &c); in clear_subscriber_list() 224 delete_and_unsubscribe_port(client, port, subs, is_src, false); in clear_subscriber_list() 231 if (atomic_dec_and_test(&subs->ref_count)) in clear_subscriber_list() 232 kfree(subs); in clear_subscriber_list() 237 delete_and_unsubscribe_port(c, aport, subs, !is_src, true); in clear_subscriber_list() 238 kfree(subs); in clear_subscriber_list() [all …]
|
/kernel/linux/linux-5.10/sound/isa/sb/ |
D | emu8000_pcm.c | 216 static int emu8k_pcm_open(struct snd_pcm_substream *subs) in emu8k_pcm_open() argument 218 struct snd_emu8000 *emu = snd_pcm_substream_chip(subs); in emu8k_pcm_open() 220 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open() 227 rec->substream = subs; in emu8k_pcm_open() 244 static int emu8k_pcm_close(struct snd_pcm_substream *subs) in emu8k_pcm_close() argument 246 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_close() 248 subs->runtime->private_data = NULL; in emu8k_pcm_close() 373 static int emu8k_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in emu8k_pcm_trigger() argument 375 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_trigger() 451 static int emu8k_pcm_copy(struct snd_pcm_substream *subs, in emu8k_pcm_copy() argument [all …]
|
/kernel/linux/linux-5.10/sound/firewire/tascam/ |
D | tascam-midi.c | 87 struct snd_rawmidi_substream *subs; in snd_tscm_create_midi_devices() local 107 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices() 109 if (subs->number < tscm->spec->midi_capture_ports) { in snd_tscm_create_midi_devices() 111 snprintf(subs->name, sizeof(subs->name), in snd_tscm_create_midi_devices() 113 tscm->card->shortname, subs->number + 1); in snd_tscm_create_midi_devices() 123 list_for_each_entry(subs, &stream->substreams, list) { in snd_tscm_create_midi_devices() 124 if (subs->number < tscm->spec->midi_playback_ports) { in snd_tscm_create_midi_devices() 126 snprintf(subs->name, sizeof(subs->name), in snd_tscm_create_midi_devices() 128 tscm->card->shortname, subs->number + 1); in snd_tscm_create_midi_devices()
|
/kernel/linux/linux-5.10/arch/arm/lib/ |
D | delay-loop.S | 38 subs r0, r0, #1 41 subs r0, r0, #1 43 subs r0, r0, #1 45 subs r0, r0, #1 47 subs r0, r0, #1 49 subs r0, r0, #1 51 subs r0, r0, #1 53 subs r0, r0, #1
|
D | io-writesl.S | 16 subs r2, r2, #4 20 subs r2, r2, #4 43 subs r2, r2, #1 51 subs r2, r2, #1 59 subs r2, r2, #1
|
D | memmove.S | 31 subs ip, r0, r1 42 subs r2, r2, #4 50 1: subs r2, r2, #(28) 63 CALGN( subs r2, r2, ip ) @ C is set here 68 2: PLD( subs r2, r2, #96 ) 76 subs r2, r2, #32 129 subs r2, r2, ip 147 subs r2, r2, #28 163 PLD( subs r2, r2, #96 ) 172 subs r2, r2, #32 [all …]
|
D | io-readsl.S | 16 subs r2, r2, #4 23 subs r2, r2, #4 46 4: subs r2, r2, #1 54 5: subs r2, r2, #1 62 6: subs r2, r2, #1
|
/kernel/linux/linux-5.10/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_pcm.c | 34 static int pdacf_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in pdacf_pcm_trigger() argument 36 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_trigger() 37 struct snd_pcm_runtime *runtime = subs->runtime; in pdacf_pcm_trigger() 89 static int pdacf_pcm_prepare(struct snd_pcm_substream *subs) in pdacf_pcm_prepare() argument 91 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_prepare() 92 struct snd_pcm_runtime *runtime = subs->runtime; in pdacf_pcm_prepare() 196 static int pdacf_pcm_capture_open(struct snd_pcm_substream *subs) in pdacf_pcm_capture_open() argument 198 struct snd_pcm_runtime *runtime = subs->runtime; in pdacf_pcm_capture_open() 199 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_capture_open() 206 chip->pcm_substream = subs; in pdacf_pcm_capture_open() [all …]
|
/kernel/linux/linux-5.10/sound/pci/mixart/ |
D | mixart.c | 417 static int snd_mixart_trigger(struct snd_pcm_substream *subs, int cmd) in snd_mixart_trigger() argument 419 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger() 424 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger() 441 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger() 448 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger() 453 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger() 478 static int snd_mixart_prepare(struct snd_pcm_substream *subs) in snd_mixart_prepare() argument 480 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_prepare() 481 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_prepare() 492 chip->mgr->sample_rate = subs->runtime->rate; in snd_mixart_prepare() [all …]
|
/kernel/linux/linux-5.10/sound/drivers/vx/ |
D | vx_pcm.c | 510 static int vx_pcm_playback_open(struct snd_pcm_substream *subs) in vx_pcm_playback_open() argument 512 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_open() 513 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_open() 521 audio = subs->pcm->device * 2; in vx_pcm_playback_open() 536 pipe->substream = subs; in vx_pcm_playback_open() 553 static int vx_pcm_playback_close(struct snd_pcm_substream *subs) in vx_pcm_playback_close() argument 555 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_close() 558 if (! subs->runtime->private_data) in vx_pcm_playback_close() 561 pipe = subs->runtime->private_data; in vx_pcm_playback_close() 674 struct snd_pcm_substream *subs, in vx_pcm_playback_transfer() argument [all …]
|
/kernel/linux/linux-5.10/sound/ppc/ |
D | pmac.c | 179 …nd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) in snd_pmac_pcm_prepare() argument 183 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_prepare() 188 rec->dma_size = snd_pcm_lib_buffer_bytes(subs); in snd_pmac_pcm_prepare() 189 rec->period_size = snd_pcm_lib_period_bytes(subs); in snd_pmac_pcm_prepare() 244 struct snd_pcm_substream *subs, int cmd) in snd_pmac_pcm_trigger() argument 254 command = (subs->stream == SNDRV_PCM_STREAM_PLAYBACK ? in snd_pmac_pcm_trigger() 292 struct snd_pcm_substream *subs) in snd_pmac_pcm_pointer() argument 308 return bytes_to_frames(subs->runtime, count); in snd_pmac_pcm_pointer() 315 static int snd_pmac_playback_prepare(struct snd_pcm_substream *subs) in snd_pmac_playback_prepare() argument 317 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_prepare() [all …]
|
/kernel/linux/linux-5.10/sound/core/seq/oss/ |
D | seq_oss_midi.c | 321 struct snd_seq_port_subscribe subs; in snd_seq_oss_midi_open() local 351 memset(&subs, 0, sizeof(subs)); in snd_seq_oss_midi_open() 354 subs.sender = dp->addr; in snd_seq_oss_midi_open() 355 subs.dest.client = mdev->client; in snd_seq_oss_midi_open() 356 subs.dest.port = mdev->port; in snd_seq_oss_midi_open() 357 if (snd_seq_kernel_client_ctl(dp->cseq, SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, &subs) >= 0) in snd_seq_oss_midi_open() 361 subs.sender.client = mdev->client; in snd_seq_oss_midi_open() 362 subs.sender.port = mdev->port; in snd_seq_oss_midi_open() 363 subs.dest = dp->addr; in snd_seq_oss_midi_open() 364 subs.flags = SNDRV_SEQ_PORT_SUBS_TIMESTAMP; in snd_seq_oss_midi_open() [all …]
|
/kernel/linux/linux-5.10/sound/pci/pcxhr/ |
D | pcxhr.c | 627 struct snd_pcm_substream *subs = stream->substream; in pcxhr_update_r_buffer() local 628 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_update_r_buffer() 630 is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE); in pcxhr_update_r_buffer() 631 stream_num = is_capture ? 0 : subs->number; in pcxhr_update_r_buffer() 636 chip->chip_idx, (void *)(long)subs->runtime->dma_addr, in pcxhr_update_r_buffer() 637 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer() 644 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer() 646 rmh.cmd[1] = subs->runtime->dma_bytes * 8; in pcxhr_update_r_buffer() 648 rmh.cmd[2] = subs->runtime->dma_addr >> 24; in pcxhr_update_r_buffer() 652 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD; in pcxhr_update_r_buffer() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-rpc/ |
D | floppydma.S | 13 subs r9, r9, #1 17 subs pc, lr, #4 22 subs r9, r9, #1 28 subs pc, lr, #4
|
/kernel/linux/linux-5.10/sound/firewire/digi00x/ |
D | digi00x-midi.c | 94 struct snd_rawmidi_substream *subs; in set_substream_names() local 101 list_for_each_entry(subs, &str->substreams, list) { in set_substream_names() 103 snprintf(subs->name, sizeof(subs->name), in set_substream_names() 106 subs->number + 1); in set_substream_names() 108 snprintf(subs->name, sizeof(subs->name), in set_substream_names()
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
D | irq-s3c24xx-fiq.S | 50 subs fiq_rcount, fiq_rcount, #1 56 subs pc, lr, #4 76 subs fiq_rcount, fiq_rcount, #1 81 subs pc, lr, #4 100 subs fiq_rcount, fiq_rcount, #1 105 subs pc, lr, #4
|
/kernel/linux/linux-5.10/sound/pci/ |
D | maestro3.c | 1046 struct snd_pcm_substream *subs) in snd_m3_pcm_start() argument 1048 if (! s || ! subs) in snd_m3_pcm_start() 1052 switch (subs->stream) { in snd_m3_pcm_start() 1073 struct snd_pcm_substream *subs) in snd_m3_pcm_stop() argument 1075 if (! s || ! subs) in snd_m3_pcm_stop() 1081 switch (subs->stream) { in snd_m3_pcm_stop() 1097 snd_m3_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in snd_m3_pcm_trigger() argument 1099 struct snd_m3 *chip = snd_pcm_substream_chip(subs); in snd_m3_pcm_trigger() 1100 struct m3_dma *s = subs->runtime->private_data; in snd_m3_pcm_trigger() 1114 err = snd_m3_pcm_start(chip, s, subs); in snd_m3_pcm_trigger() [all …]
|
/kernel/linux/linux-5.10/sound/firewire/motu/ |
D | motu-midi.c | 88 struct snd_rawmidi_substream *subs; in set_midi_substream_names() local 90 list_for_each_entry(subs, &str->substreams, list) { in set_midi_substream_names() 91 snprintf(subs->name, sizeof(subs->name), in set_midi_substream_names() 92 "%s MIDI %d", motu->card->shortname, subs->number + 1); in set_midi_substream_names()
|