| /linux/sound/usb/ |
| H A D | pcm.c | 32 static snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs, in snd_usb_pcm_delay() argument 40 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_pcm_delay() 41 queued = bytes_to_frames(runtime, subs->inflight_bytes); in snd_usb_pcm_delay() 44 } else if (!subs->running) { in snd_usb_pcm_delay() 48 current_frame_number = usb_get_current_frame_number(subs->dev); in snd_usb_pcm_delay() 54 frame_diff = (current_frame_number - subs->last_frame_number) & 0xff; in snd_usb_pcm_delay() 60 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_pcm_delay() 75 struct snd_usb_substream *subs = runtime->private_data; in snd_usb_pcm_pointer() local 78 if (atomic_read(&subs->stream->chip->shutdown)) in snd_usb_pcm_pointer() 80 scoped_guard(spinlock, &subs->lock) { in snd_usb_pcm_pointer() [all …]
|
| H A 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->str_pd); in free_substream() 51 snd_media_stream_delete(subs); in free_substream() 84 struct snd_usb_substream *subs = &as->substream[stream]; in snd_usb_init_substream() local 86 INIT_LIST_HEAD(&subs->fmt_list); in snd_usb_init_substream() 87 spin_lock_init(&subs->lock); in snd_usb_init_substream() 89 subs->stream = as; in snd_usb_init_substream() 90 subs in snd_usb_init_substream() 123 struct snd_usb_substream *subs = info->private_data; usb_chmap_ctl_info() local 133 have_dup_chmap(struct snd_usb_substream * subs,struct audioformat * fp) have_dup_chmap() argument 150 struct snd_usb_substream *subs = info->private_data; usb_chmap_ctl_tlv() local 193 struct snd_usb_substream *subs = info->private_data; usb_chmap_ctl_get() local 210 add_chmap(struct snd_pcm * pcm,int stream,struct snd_usb_substream * subs) add_chmap() argument 503 struct snd_usb_substream *subs; __snd_usb_add_audio_stream() local [all...] |
| H 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
|
| H A D | pcm.h | 13 void snd_usb_preallocate_buffer(struct snd_usb_substream *subs); 21 struct snd_usb_substream *subs); 23 snd_usb_find_substream_format(struct snd_usb_substream *subs, 26 int snd_usb_hw_params(struct snd_usb_substream *subs, 28 int snd_usb_hw_free(struct snd_usb_substream *subs);
|
| H 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() 150 void snd_media_stop_pipeline(struct snd_usb_substream *subs) in snd_media_stop_pipeline() argument [all …]
|
| H A D | implicit.c | 405 static int match_endpoint_audioformats(struct snd_usb_substream *subs, in match_endpoint_audioformats() argument 442 struct snd_usb_substream *subs; in find_matching_substream() local 445 subs = &as->substream[stream]; in find_matching_substream() 446 if (as->fmt_type == fmt_type && subs->ep_num == ep_num) in find_matching_substream() 447 return subs; in find_matching_substream() 463 struct snd_usb_substream *subs; in snd_usb_find_implicit_fb_sync_format() local 472 subs = find_matching_substream(chip, stream, target->sync_ep, in snd_usb_find_implicit_fb_sync_format() 474 if (!subs) in snd_usb_find_implicit_fb_sync_format() 478 list_for_each_entry(fp, &subs->fmt_list, list) { in snd_usb_find_implicit_fb_sync_format() 479 score = match_endpoint_audioformats(subs, fp, in snd_usb_find_implicit_fb_sync_format() [all …]
|
| H A D | quirks.c | 1731 static void set_format_emu_quirk(struct snd_usb_substream *subs, in set_format_emu_quirk() argument 1740 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in set_format_emu_quirk() 1741 if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].cur_audiofmt) in set_format_emu_quirk() 1765 snd_emuusb_set_samplerate(subs->stream->chip, emu_samplerate_id); in set_format_emu_quirk() 1766 subs->pkt_offset_adj = (emu_samplerate_id >= EMU_QUIRK_SR_176400HZ) ? 4 : 0; in set_format_emu_quirk() 1769 static int pioneer_djm_set_format_quirk(struct snd_usb_substream *subs, in pioneer_djm_set_format_quirk() argument 1772 unsigned int cur_rate = subs->data_endpoint->cur_rate; in pioneer_djm_set_format_quirk() 1778 usb_set_interface(subs->dev, 0, 1); in pioneer_djm_set_format_quirk() 1780 snd_usb_ctl_msg(subs->stream->chip->dev, in pioneer_djm_set_format_quirk() 1781 usb_sndctrlpipe(subs in pioneer_djm_set_format_quirk() 1786 mbox3_set_format_quirk(struct snd_usb_substream * subs,const struct audioformat * fmt) mbox3_set_format_quirk() argument 1832 rme_digiface_set_format_quirk(struct snd_usb_substream * subs) rme_digiface_set_format_quirk() argument 1858 snd_usb_set_format_quirk(struct snd_usb_substream * subs,const struct audioformat * fmt) snd_usb_set_format_quirk() argument [all...] |
| /linux/sound/usb/usx2y/ |
| H A D | usbusx2yaudio.c | 31 static int usx2y_urb_capt_retire(struct snd_usx2y_substream *subs) in usx2y_urb_capt_retire() argument 33 struct urb *urb = subs->completed_urb; in usx2y_urb_capt_retire() 34 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usx2y_urb_capt_retire() 36 int i, len, lens = 0, hwptr_done = subs->hwptr_done; in usx2y_urb_capt_retire() 38 struct usx2ydev *usx2y = subs->usx2y; in usx2y_urb_capt_retire() 71 subs->hwptr_done = hwptr_done; in usx2y_urb_capt_retire() 72 subs->transfer_done += lens; in usx2y_urb_capt_retire() 74 if (subs->transfer_done >= runtime->period_size) { in usx2y_urb_capt_retire() 75 subs->transfer_done -= runtime->period_size; in usx2y_urb_capt_retire() 76 snd_pcm_period_elapsed(subs->pcm_substream); in usx2y_urb_capt_retire() [all …]
|
| /linux/sound/usb/qcom/ |
| H A D | qc_audio_offload.c | 180 struct snd_usb_substream *subs = NULL; in usb_qmi_get_pcm_num() local 185 subs = &as->substream[direction]; in usb_qmi_get_pcm_num() 186 if (subs->ep_num) in usb_qmi_get_pcm_num() 216 struct snd_usb_substream *subs = NULL; in find_substream() local 232 subs = &as->substream[direction]; in find_substream() 238 return subs; in find_substream() 263 static int get_data_interval_from_si(struct snd_usb_substream *subs, in get_data_interval_from_si() argument 270 if (subs->dev->speed >= USB_SPEED_HIGH) in get_data_interval_from_si() 749 * @subs: usb substream 755 static void disable_audio_stream(struct snd_usb_substream *subs) in disable_audio_stream() argument 766 struct snd_usb_substream *subs; qmi_stop_session() local 950 enable_audio_stream(struct snd_usb_substream * subs,snd_pcm_format_t pcm_format,unsigned int channels,unsigned int cur_rate,int datainterval) enable_audio_stream() argument 1035 uaudio_transfer_buffer_setup(struct snd_usb_substream * subs,void ** xfer_buf_cpu,u32 xfer_buf_len,struct mem_info_v01 * mem_info) uaudio_transfer_buffer_setup() argument 1116 uaudio_endpoint_setup(struct snd_usb_substream * subs,struct snd_usb_endpoint * endpoint,int card_num,struct mem_info_v01 * mem_info,struct usb_endpoint_descriptor_v01 * ep_desc) uaudio_endpoint_setup() argument 1192 uaudio_event_ring_setup(struct snd_usb_substream * subs,int card_num,struct mem_info_v01 * mem_info) uaudio_event_ring_setup() argument 1262 uaudio_populate_uac_desc(struct snd_usb_substream * subs,struct qmi_uaudio_stream_resp_msg_v01 * resp) uaudio_populate_uac_desc() argument 1369 prepare_qmi_response(struct snd_usb_substream * subs,struct qmi_uaudio_stream_req_msg_v01 * req_msg,struct qmi_uaudio_stream_resp_msg_v01 * resp,int info_idx) prepare_qmi_response() argument 1549 struct snd_usb_substream *subs; handle_uaudio_stream_req() local 1739 struct snd_usb_substream *subs; qc_usb_audio_offload_fill_avail_pcms() local [all...] |
| /linux/sound/core/seq/ |
| H A D | seq_ports.c | 201 struct snd_seq_subscribers *subs, 225 struct snd_seq_subscribers *subs; in clear_subscriber_list() 227 subs = get_subscriber(p, is_src); in clear_subscriber_list() 231 get_client_port(&subs->info.dest, &c) : in clear_subscriber_list() 232 get_client_port(&subs->info.sender, &c); in clear_subscriber_list() 233 delete_and_unsubscribe_port(client, port, subs, is_src, false); in clear_subscriber_list() 240 if (atomic_dec_and_test(&subs->ref_count)) in port_delete() 241 kfree(subs); in port_delete() 246 delete_and_unsubscribe_port(c, aport, subs, !is_src, true); in port_delete() 247 kfree(subs); in port_delete() 213 struct snd_seq_subscribers *subs; clear_subscriber_list() local 486 check_and_subscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_subscribers * subs,bool is_src,bool exclusive,bool ack) check_and_subscribe_port() argument 531 __delete_and_unsubscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_subscribers * subs,bool is_src,bool ack) __delete_and_unsubscribe_port() argument 553 delete_and_unsubscribe_port(struct snd_seq_client * client,struct snd_seq_client_port * port,struct snd_seq_subscribers * subs,bool is_src,bool ack) delete_and_unsubscribe_port() argument 571 struct snd_seq_subscribers *subs; snd_seq_port_connect() local 616 struct snd_seq_subscribers *subs; snd_seq_port_disconnect() local 647 snd_seq_port_get_subscription(struct snd_seq_port_subs_info * src_grp,struct snd_seq_addr * dest_addr,struct snd_seq_port_subscribe * subs) snd_seq_port_get_subscription() argument [all...] |
| H A D | seq_clientmgr.c | 702 struct snd_seq_subscribers *subs; in __deliver_to_subscribers() 726 list_for_each_entry(subs, &grp->list_head, src_list) { 728 if (atomic_read(&subs->ref_count) != 2) in deliver_to_subscribers() 730 event->dest = subs->info.dest; in deliver_to_subscribers() 731 if (subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIMESTAMP) in deliver_to_subscribers() 733 update_timestamp_of_queue(event, subs->info.queue, in deliver_to_subscribers() 734 subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIME_REAL); in deliver_to_subscribers() 1427 struct snd_seq_port_subscribe *subs) in snd_seq_client_notify_subscription() 1429 if (client->number != subs->sender.client && in snd_seq_client_notify_subscription() 1430 client->number != subs in snd_seq_client_notify_subscription() 675 struct snd_seq_subscribers *subs; __deliver_to_subscribers() local 1396 check_subscription_permission(struct snd_seq_client * client,struct snd_seq_client_port * sport,struct snd_seq_client_port * dport,struct snd_seq_port_subscribe * subs) check_subscription_permission() argument 1448 struct snd_seq_port_subscribe *subs = arg; snd_seq_ioctl_subscribe_port() local 1487 struct snd_seq_port_subscribe *subs = arg; snd_seq_ioctl_unsubscribe_port() local 1892 struct snd_seq_port_subscribe *subs = arg; snd_seq_ioctl_get_subscription() local 1911 struct snd_seq_query_subs *subs = arg; snd_seq_ioctl_query_subs() local [all...] |
| /linux/sound/isa/sb/ |
| H A D | emu8000_pcm.c | 218 static int emu8k_pcm_open(struct snd_pcm_substream *subs) in emu8k_pcm_open() argument 220 struct snd_emu8000 *emu = snd_pcm_substream_chip(subs); in emu8k_pcm_open() 222 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open() 229 rec->substream = subs; in emu8k_pcm_open() 246 static int emu8k_pcm_close(struct snd_pcm_substream *subs) in emu8k_pcm_close() argument 248 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_close() 250 subs->runtime->private_data = NULL; in emu8k_pcm_close() 371 static int emu8k_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in emu8k_pcm_trigger() argument 373 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_trigger() 435 static int emu8k_pcm_copy(struct snd_pcm_substream *subs, in emu8k_pcm_copy() argument [all …]
|
| /linux/sound/pci/mixart/ |
| H A D | mixart.c | 416 static int snd_mixart_trigger(struct snd_pcm_substream *subs, int cmd) in snd_mixart_trigger() argument 418 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger() 423 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger() 440 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger() 447 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger() 452 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger() 477 static int snd_mixart_prepare(struct snd_pcm_substream *subs) in snd_mixart_prepare() argument 479 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_prepare() 480 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_prepare() 491 chip->mgr->sample_rate = subs in snd_mixart_prepare() 590 snd_mixart_hw_params(struct snd_pcm_substream * subs,struct snd_pcm_hw_params * hw) snd_mixart_hw_params() argument 646 snd_mixart_hw_free(struct snd_pcm_substream * subs) snd_mixart_hw_free() argument 701 snd_mixart_playback_open(struct snd_pcm_substream * subs) snd_mixart_playback_open() argument 773 snd_mixart_capture_open(struct snd_pcm_substream * subs) snd_mixart_capture_open() argument 848 snd_mixart_close(struct snd_pcm_substream * subs) snd_mixart_close() argument 880 snd_mixart_stream_pointer(struct snd_pcm_substream * subs) snd_mixart_stream_pointer() argument [all...] |
| /linux/arch/arm/lib/ |
| H A D | delay-loop.S | 48 subs r0, r0, #1 51 subs r0, r0, #1 53 subs r0, r0, #1 55 subs r0, r0, #1 57 subs r0, r0, #1 59 subs r0, r0, #1 61 subs r0, r0, #1 63 subs r0, r0, #1
|
| H A D | memmove.S | 31 subs ip, r0, r1 43 subs r2, r2, #4 51 1: subs r2, r2, #(28) 59 CALGN( subs r2, r2, ip ) @ C is set here 64 2: PLD( subs r2, r2, #96 ) 72 subs r2, r2, #32 121 subs r2, r2, ip 136 subs r2, r2, #28 147 PLD( subs r2, r2, #96 ) 156 subs r2, r2, #32 [all …]
|
| H 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
|
| H A D | copy_template.S | 77 subs r2, r2, #4 85 1: subs r2, r2, #(28) 94 CALGN( subs r2, r2, r3 ) @ C gets set 98 2: PLD( subs r2, r2, #96 ) 106 subs r2, r2, #32 170 subs r2, r2, ip 185 subs r2, r2, #28 197 PLD( subs r2, r2, #96 ) 206 subs r2, r2, #32 235 subs ip, ip, #4
|
| H A 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
|
| /linux/sound/core/seq/oss/ |
| H A D | seq_oss_midi.c | 308 struct snd_seq_port_subscribe subs; in snd_seq_oss_midi_open() local 335 memset(&subs, 0, sizeof(subs)); in snd_seq_oss_midi_open() 338 subs.sender = dp->addr; in snd_seq_oss_midi_open() 339 subs.dest.client = mdev->client; in snd_seq_oss_midi_open() 340 subs.dest.port = mdev->port; in snd_seq_oss_midi_open() 341 if (snd_seq_kernel_client_ctl(dp->cseq, SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, &subs) >= 0) in snd_seq_oss_midi_open() 345 subs.sender.client = mdev->client; in snd_seq_oss_midi_open() 346 subs.sender.port = mdev->port; in snd_seq_oss_midi_open() 347 subs in snd_seq_oss_midi_open() 367 struct snd_seq_port_subscribe subs; snd_seq_oss_midi_close() local [all...] |
| /linux/sound/drivers/vx/ |
| H A D | vx_pcm.c | 514 static int vx_pcm_playback_open(struct snd_pcm_substream *subs) in vx_pcm_playback_open() argument 516 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_open() 517 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_open() 525 audio = subs->pcm->device * 2; in vx_pcm_playback_open() 540 pipe->substream = subs; in vx_pcm_playback_open() 557 static int vx_pcm_playback_close(struct snd_pcm_substream *subs) in vx_pcm_playback_close() argument 559 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_close() 562 if (! subs->runtime->private_data) in vx_pcm_playback_close() 565 pipe = subs->runtime->private_data; in vx_pcm_playback_close() 677 struct snd_pcm_substream *subs, in vx_pcm_playback_transfer() argument [all …]
|
| /linux/sound/ppc/ |
| H A 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() 291 struct snd_pcm_substream *subs) in snd_pmac_pcm_pointer() argument 306 return bytes_to_frames(subs->runtime, count); in snd_pmac_pcm_pointer() 313 static int snd_pmac_playback_prepare(struct snd_pcm_substream *subs) in snd_pmac_playback_prepare() argument 315 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_prepare() [all …]
|
| /linux/sound/pci/pcxhr/ |
| H A D | pcxhr.c | 629 struct snd_pcm_substream *subs = stream->substream; in pcxhr_update_r_buffer() 630 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_update_r_buffer() 632 is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE); in pcxhr_update_r_buffer() 633 stream_num = is_capture ? 0 : subs->number; in pcxhr_update_r_buffer() 636 "%s(pcm%c%d) : addr(%p) bytes(%zx) subs(%d)\n", __func__, in pcxhr_update_r_buffer() 638 chip->chip_idx, (void *)(long)subs->runtime->dma_addr, in pcxhr_update_r_buffer() 639 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer() 646 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer() 648 rmh.cmd[1] = subs in pcxhr_update_r_buffer() 626 struct snd_pcm_substream *subs = stream->substream; pcxhr_update_r_buffer() local 817 pcxhr_trigger(struct snd_pcm_substream * subs,int cmd) pcxhr_trigger() argument 893 pcxhr_prepare(struct snd_pcm_substream * subs) pcxhr_prepare() argument 927 pcxhr_hw_params(struct snd_pcm_substream * subs,struct snd_pcm_hw_params * hw) pcxhr_hw_params() argument 975 pcxhr_open(struct snd_pcm_substream * subs) pcxhr_open() argument 1056 pcxhr_close(struct snd_pcm_substream * subs) pcxhr_close() argument 1080 pcxhr_stream_pointer(struct snd_pcm_substream * subs) pcxhr_stream_pointer() argument [all...] |
| /linux/arch/arm/mach-rpc/ |
| H 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/ |
| H 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/mm/ |
| H A D | proc-arm940.S | 120 subs r3, r3, #1 << 26 122 subs r1, r1, #1 << 4 175 subs r3, r3, #1 << 26 177 subs r1, r1, #1 << 4 198 subs r3, r3, #1 << 26 200 subs r1, r1, #1 << 4 221 subs r3, r3, #1 << 26 223 subs r1, r1, #1 << 4 249 subs r3, r3, #1 << 26 251 subs r1, r1, #1 << 4
|