/linux/sound/usb/ |
A D | pcm.c | 157 true, subs); in find_substream_format() 445 snd_usb_set_format_quirk(subs, subs->cur_audiofmt); in configure_endpoints() 1203 if (subs->hwptr_done >= subs->buffer_bytes) in retire_capture_urb() 1204 subs->hwptr_done -= subs->buffer_bytes; in retire_capture_urb() 1239 if (subs->hwptr_done >= subs->buffer_bytes) in urb_ctx_queue_advance() 1240 subs->hwptr_done -= subs->buffer_bytes; in urb_ctx_queue_advance() 1322 if (subs->hwptr_done + bytes > subs->buffer_bytes) { in copy_to_urb() 1324 unsigned int bytes1 = subs->buffer_bytes - subs->hwptr_done; in copy_to_urb() 1531 if (!subs->lowlatency_playback || !subs->running) in snd_usb_pcm_playback_ack() 1558 subs); in snd_usb_substream_playback_trigger() [all …]
|
A D | stream.c | 46 if (!subs->num_formats) in free_substream() 50 kfree(subs->str_pd); in free_substream() 89 subs->stream = as; in snd_usb_init_substream() 90 subs->direction = stream; in snd_usb_init_substream() 94 subs->speed = snd_usb_get_speed(subs->dev); in snd_usb_init_substream() 95 subs->pkt_offset_adj = 0; in snd_usb_init_substream() 102 subs->num_formats++; in snd_usb_init_substream() 109 subs->str_pd = pd; in snd_usb_init_substream() 197 if (subs->cur_audiofmt) in usb_chmap_ctl_get() 493 subs->num_formats++; in __snd_usb_add_audio_stream() [all …]
|
A 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
|
A 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() 129 if (subs->speed != USB_SPEED_FULL) in proc_dump_substream_formats() 172 static void proc_dump_ep_status(struct snd_usb_substream *subs, in proc_dump_ep_status() argument 181 subs->speed == USB_SPEED_FULL in proc_dump_ep_status() 193 struct snd_usb_substream *subs, in proc_dump_substream_status() argument 197 if (subs->running) { in proc_dump_substream_status() 199 if (subs->cur_audiofmt) { in proc_dump_substream_status() 200 snd_iprintf(buffer, " Interface = %d\n", subs->cur_audiofmt->iface); in proc_dump_substream_status() 201 snd_iprintf(buffer, " Altset = %d\n", subs->cur_audiofmt->altsetting); in proc_dump_substream_status() [all …]
|
A 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 …]
|
/linux/sound/usb/usx2y/ |
A D | usbusx2yaudio.c | 265 subs = usx2y->subs[s]; in usx2y_clients_stop() 266 if (subs) { in usx2y_clients_stop() 272 subs = usx2y->subs[s]; in usx2y_clients_stop() 273 if (subs) { in usx2y_clients_stop() 340 subs = usx2y->subs[s]; in usx2y_urbs_set_complete() 377 subs, subs->endpoint, subs->urb[0], subs->urb[1]); in usx2y_subs_prepare() 405 subs != subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]); in usx2y_urbs_release() 418 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_urbs_allocate() 487 struct snd_usx2y_substream *subs = usx2y->subs[i]; in usx2y_urbs_start() local 786 subs = dev->subs[i]; in snd_usx2y_pcm_hw_params() [all …]
|
A D | usx2yhwdeppcm.c | 149 if (subs) { in usx2y_usbpcm_urb_capt_iso_advance() 318 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_usbpcm_urbs_allocate() 370 cap_subs2 = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE + 2]; in snd_usx2y_usbpcm_hw_free() 372 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_usbpcm_hw_free() 424 struct snd_usx2y_substream *subs = usx2y->subs[stream + p]; in usx2y_usbpcm_urbs_start() local 425 if (subs) { in usx2y_usbpcm_urbs_start() 434 struct snd_usx2y_substream *subs = usx2y->subs[p]; in usx2y_usbpcm_urbs_start() local 436 if (subs && atomic_read(&subs->state) >= STATE_PREPARED) in usx2y_usbpcm_urbs_start() 446 if (!subs) in usx2y_usbpcm_urbs_start() 632 subs = dev->subs[i]; in usx2y_pcms_busy_check() [all …]
|
/linux/sound/core/seq/ |
A D | seq_ports.c | 232 kfree(subs); in clear_subscriber_list() 238 kfree(subs); in clear_subscriber_list() 508 atomic_inc(&subs->ref_count); in check_and_subscribe_port() 528 list = is_src ? &subs->src_list : &subs->dest_list; in __delete_and_unsubscribe_port() 565 subs = kzalloc(sizeof(*subs), GFP_KERNEL); in snd_seq_port_connect() 566 if (!subs) in snd_seq_port_connect() 569 subs->info = *info; in snd_seq_port_connect() 593 kfree(subs); in snd_seq_port_connect() 617 subs, false, in snd_seq_port_disconnect() 629 kfree(subs); in snd_seq_port_disconnect() [all …]
|
A D | seq_clientmgr.c | 668 struct snd_seq_subscribers *subs; in deliver_to_subscribers() local 690 event->dest = subs->info.dest; in deliver_to_subscribers() 1949 subs); in snd_seq_ioctl_get_subscription() 1965 struct snd_seq_query_subs *subs = arg; in snd_seq_ioctl_query_subs() local 1980 switch (subs->type) { in snd_seq_ioctl_query_subs() 1993 subs->num_subs = group->count; in snd_seq_ioctl_query_subs() 1997 if (i++ == subs->index) { in snd_seq_ioctl_query_subs() 2002 subs->addr = s->info.dest; in snd_seq_ioctl_query_subs() 2005 subs->addr = s->info.sender; in snd_seq_ioctl_query_subs() 2007 subs->flags = s->info.flags; in snd_seq_ioctl_query_subs() [all …]
|
/linux/sound/isa/sb/ |
A D | emu8000_pcm.c | 220 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open() 227 rec->substream = subs; in emu8k_pcm_open() 248 subs->runtime->private_data = NULL; in emu8k_pcm_close() 526 pos = bytes_to_frames(subs->runtime, pos); in emu8k_pcm_copy() 527 count = bytes_to_frames(subs->runtime, count); in emu8k_pcm_copy() 539 pos = bytes_to_frames(subs->runtime, pos); in emu8k_pcm_copy_kernel() 540 count = bytes_to_frames(subs->runtime, count); in emu8k_pcm_copy_kernel() 551 pos = bytes_to_frames(subs->runtime, pos); in emu8k_pcm_silence() 552 count = bytes_to_frames(subs->runtime, count); in emu8k_pcm_silence() 613 rec->buf_size = subs->runtime->buffer_size; in emu8k_pcm_prepare() [all …]
|
/linux/sound/pci/mixart/ |
A D | mixart.c | 626 if (subs->runtime->buffer_changed) { in snd_mixart_hw_params() 642 subs->number); in snd_mixart_hw_params() 709 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open() 727 chip->chip_idx, pcm_number, subs->number); in snd_mixart_playback_open() 761 stream->substream = subs; in snd_mixart_playback_open() 788 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open() 842 stream->substream = subs; in snd_mixart_capture_open() 931 struct snd_pcm_substream *subs; in preallocate_buffers() 936 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) in preallocate_buffers() 938 subs->dma_device.id = subs->pcm->device << 16 | in preallocate_buffers() [all …]
|
/linux/sound/firewire/tascam/ |
A 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()
|
/linux/sound/pcmcia/pdaudiocf/ |
A 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() 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() 216 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_capture_close() [all …]
|
/linux/arch/arm/lib/ |
A 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
|
A 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 …]
|
A 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
|
/linux/sound/drivers/vx/ |
A D | vx_pcm.c | 523 audio = subs->pcm->device * 2; in vx_pcm_playback_open() 538 pipe->substream = subs; in vx_pcm_playback_open() 560 if (! subs->runtime->private_data) in vx_pcm_playback_close() 563 pipe = subs->runtime->private_data; in vx_pcm_playback_close() 697 struct snd_pcm_substream *subs, in vx_pcm_playback_update() argument 709 snd_pcm_period_elapsed(subs); in vx_pcm_playback_update() 898 audio = subs->pcm->device * 2; in vx_pcm_capture_open() 904 pipe->substream = subs; in vx_pcm_capture_open() 951 if (! subs->runtime->private_data) in vx_pcm_capture_close() 953 pipe = subs->runtime->private_data; in vx_pcm_capture_close() [all …]
|
/linux/sound/ppc/ |
A D | pmac.c | 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 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() 554 struct snd_pcm_substream *subs) in snd_pmac_pcm_open() argument 586 rec->substream = subs; in snd_pmac_pcm_open() 603 struct snd_pcm_substream *subs) in snd_pmac_pcm_close() argument 624 subs->runtime->hw = snd_pmac_playback; in snd_pmac_playback_open() [all …]
|
/linux/sound/core/seq/oss/ |
A D | seq_oss_midi.c | 353 memset(&subs, 0, sizeof(subs)); in snd_seq_oss_midi_open() 356 subs.sender = dp->addr; in snd_seq_oss_midi_open() 357 subs.dest.client = mdev->client; in snd_seq_oss_midi_open() 358 subs.dest.port = mdev->port; in snd_seq_oss_midi_open() 364 subs.sender.port = mdev->port; in snd_seq_oss_midi_open() 365 subs.dest = dp->addr; in snd_seq_oss_midi_open() 399 memset(&subs, 0, sizeof(subs)); in snd_seq_oss_midi_close() 401 subs.sender = dp->addr; in snd_seq_oss_midi_close() 403 subs.dest.port = mdev->port; in snd_seq_oss_midi_close() 408 subs.sender.port = mdev->port; in snd_seq_oss_midi_close() [all …]
|
/linux/sound/pci/pcxhr/ |
A D | pcxhr.c | 636 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer() 832 if (snd_pcm_stream_linked(subs)) { in pcxhr_trigger() 839 snd_pcm_trigger_done(s, subs); in pcxhr_trigger() 843 stream = subs->runtime->private_data; in pcxhr_trigger() 860 snd_pcm_group_for_each_entry(s, subs) { in pcxhr_trigger() 865 snd_pcm_trigger_done(s, subs); in pcxhr_trigger() 907 subs->runtime->period_size, subs->runtime->periods, in pcxhr_prepare() 908 subs->runtime->buffer_size); in pcxhr_prepare() 1052 stream->substream = subs; in pcxhr_open() 1062 snd_pcm_set_sync(subs); in pcxhr_open() [all …]
|
/linux/sound/firewire/digi00x/ |
A 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()
|
/linux/sound/pci/ |
A D | maestro3.c | 1043 if (! s || ! subs) in snd_m3_pcm_start() 1047 switch (subs->stream) { in snd_m3_pcm_start() 1068 struct snd_pcm_substream *subs) in snd_m3_pcm_stop() argument 1070 if (! s || ! subs) in snd_m3_pcm_stop() 1076 switch (subs->stream) { in snd_m3_pcm_stop() 1419 snd_m3_pcm_setup1(chip, s, subs); in snd_m3_pcm_prepare() 1510 snd_pcm_period_elapsed(subs); in snd_m3_update_ptr() 1725 subs->runtime->private_data = s; in snd_m3_substream_open() 1726 s->substream = subs; in snd_m3_substream_open() 1782 snd_m3_substream_close(chip, subs); in snd_m3_playback_close() [all …]
|
/linux/arch/arm/mach-rpc/ |
A D | floppydma.S | 13 subs r9, r9, #1 17 subs pc, lr, #4 22 subs r9, r9, #1 28 subs pc, lr, #4
|
/linux/sound/core/ |
A D | pcm_local.h | 71 #define for_each_pcm_substream(pcm, str, subs) \ argument 73 for ((subs) = (pcm)->streams[str].substream; (subs); \ 74 (subs) = (subs)->next)
|
/linux/arch/arm/mach-s3c/ |
A 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
|