/sound/usb/ |
D | pcm.c | 43 snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs, in snd_usb_pcm_delay() argument 50 if (!subs->last_delay) in snd_usb_pcm_delay() 53 current_frame_number = usb_get_current_frame_number(subs->dev); in snd_usb_pcm_delay() 59 frame_diff = (current_frame_number - subs->last_frame_number) & 0xff; in snd_usb_pcm_delay() 64 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) in snd_usb_pcm_delay() 65 est_delay = subs->last_delay - est_delay; in snd_usb_pcm_delay() 67 est_delay = subs->last_delay + est_delay; in snd_usb_pcm_delay() 79 struct snd_usb_substream *subs; in snd_usb_pcm_pointer() local 82 subs = (struct snd_usb_substream *)substream->runtime->private_data; in snd_usb_pcm_pointer() 83 if (subs->stream->chip->shutdown) in snd_usb_pcm_pointer() [all …]
|
D | stream.c | 43 static void free_substream(struct snd_usb_substream *subs) in free_substream() argument 47 if (!subs->num_formats) in free_substream() 49 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) { in free_substream() 54 kfree(subs->rate_list.list); in free_substream() 86 struct snd_usb_substream *subs = &as->substream[stream]; in snd_usb_init_substream() local 88 INIT_LIST_HEAD(&subs->fmt_list); in snd_usb_init_substream() 89 spin_lock_init(&subs->lock); in snd_usb_init_substream() 91 subs->stream = as; in snd_usb_init_substream() 92 subs->direction = stream; in snd_usb_init_substream() 93 subs->dev = as->chip->dev; in snd_usb_init_substream() [all …]
|
D | proc.c | 74 static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct snd_info_buffer *buf… in proc_dump_substream_formats() argument 81 list_for_each_entry(fp, &subs->fmt_list, list) { in proc_dump_substream_formats() 110 if (subs->speed != USB_SPEED_FULL) in proc_dump_substream_formats() 118 static void proc_dump_ep_status(struct snd_usb_substream *subs, in proc_dump_ep_status() argument 127 subs->speed == USB_SPEED_FULL in proc_dump_ep_status() 138 static void proc_dump_substream_status(struct snd_usb_substream *subs, struct snd_info_buffer *buff… in proc_dump_substream_status() argument 140 if (subs->running) { in proc_dump_substream_status() 142 snd_iprintf(buffer, " Interface = %d\n", subs->interface); in proc_dump_substream_status() 143 snd_iprintf(buffer, " Altset = %d\n", subs->altset_idx); in proc_dump_substream_status() 144 proc_dump_ep_status(subs, subs->data_endpoint, subs->sync_endpoint, buffer); in proc_dump_substream_status()
|
D | card.h | 42 struct snd_usb_substream *subs; member 58 void (*prepare_data_urb) (struct snd_usb_substream *subs, 60 void (*retire_data_urb) (struct snd_usb_substream *subs,
|
D | quirks.h | 21 void snd_usb_set_format_quirk(struct snd_usb_substream *subs, 36 int snd_usb_select_mode_quirk(struct snd_usb_substream *subs,
|
D | quirks.c | 1064 static void set_format_emu_quirk(struct snd_usb_substream *subs, in set_format_emu_quirk() argument 1073 if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) { in set_format_emu_quirk() 1074 if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].interface != -1) in set_format_emu_quirk() 1098 snd_emuusb_set_samplerate(subs->stream->chip, emu_samplerate_id); in set_format_emu_quirk() 1099 subs->pkt_offset_adj = (emu_samplerate_id >= EMU_QUIRK_SR_176400HZ) ? 4 : 0; in set_format_emu_quirk() 1102 void snd_usb_set_format_quirk(struct snd_usb_substream *subs, in snd_usb_set_format_quirk() argument 1105 switch (subs->stream->chip->usb_id) { in snd_usb_set_format_quirk() 1110 set_format_emu_quirk(subs, fmt); in snd_usb_set_format_quirk() 1155 int snd_usb_select_mode_quirk(struct snd_usb_substream *subs, in snd_usb_select_mode_quirk() argument 1158 struct usb_device *dev = subs->dev; in snd_usb_select_mode_quirk() [all …]
|
D | card.c | 121 struct snd_usb_substream *subs; in snd_usb_stream_disconnect() local 125 subs = &as->substream[idx]; in snd_usb_stream_disconnect() 126 if (!subs->num_formats) in snd_usb_stream_disconnect() 128 subs->interface = -1; in snd_usb_stream_disconnect() 129 subs->data_endpoint = NULL; in snd_usb_stream_disconnect() 130 subs->sync_endpoint = NULL; in snd_usb_stream_disconnect()
|
D | pcm.h | 4 snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs,
|
/sound/usb/usx2y/ |
D | usbusx2yaudio.c | 71 static int usX2Y_urb_capt_retire(struct snd_usX2Y_substream *subs) in usX2Y_urb_capt_retire() argument 73 struct urb *urb = subs->completed_urb; in usX2Y_urb_capt_retire() 74 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usX2Y_urb_capt_retire() 76 int i, len, lens = 0, hwptr_done = subs->hwptr_done; in usX2Y_urb_capt_retire() 77 struct usX2Ydev *usX2Y = subs->usX2Y; in usX2Y_urb_capt_retire() 108 subs->hwptr_done = hwptr_done; in usX2Y_urb_capt_retire() 109 subs->transfer_done += lens; in usX2Y_urb_capt_retire() 111 if (subs->transfer_done >= runtime->period_size) { in usX2Y_urb_capt_retire() 112 subs->transfer_done -= runtime->period_size; in usX2Y_urb_capt_retire() 113 snd_pcm_period_elapsed(subs->pcm_substream); in usX2Y_urb_capt_retire() [all …]
|
D | usx2yhwdeppcm.c | 62 static int usX2Y_usbpcm_urb_capt_retire(struct snd_usX2Y_substream *subs) in usX2Y_usbpcm_urb_capt_retire() argument 64 struct urb *urb = subs->completed_urb; in usX2Y_usbpcm_urb_capt_retire() 65 struct snd_pcm_runtime *runtime = subs->pcm_substream->runtime; in usX2Y_usbpcm_urb_capt_retire() 66 int i, lens = 0, hwptr_done = subs->hwptr_done; in usX2Y_usbpcm_urb_capt_retire() 67 struct usX2Ydev *usX2Y = subs->usX2Y; in usX2Y_usbpcm_urb_capt_retire() 84 subs->hwptr_done = hwptr_done; in usX2Y_usbpcm_urb_capt_retire() 85 subs->transfer_done += lens; in usX2Y_usbpcm_urb_capt_retire() 87 if (subs->transfer_done >= runtime->period_size) { in usX2Y_usbpcm_urb_capt_retire() 88 subs->transfer_done -= runtime->period_size; in usX2Y_usbpcm_urb_capt_retire() 89 snd_pcm_period_elapsed(subs->pcm_substream); in usX2Y_usbpcm_urb_capt_retire() [all …]
|
D | usbusx2y.h | 44 struct snd_usX2Y_substream *subs[4]; member
|
/sound/core/seq/ |
D | seq_ports.c | 207 struct snd_seq_subscribers *subs, 231 struct snd_seq_subscribers *subs; in clear_subscriber_list() local 235 subs = get_subscriber(p, is_src); in clear_subscriber_list() 237 aport = get_client_port(&subs->info.dest, &c); in clear_subscriber_list() 239 aport = get_client_port(&subs->info.sender, &c); in clear_subscriber_list() 240 delete_and_unsubscribe_port(client, port, subs, is_src, false); in clear_subscriber_list() 247 if (atomic_dec_and_test(&subs->ref_count)) in clear_subscriber_list() 248 kfree(subs); in clear_subscriber_list() 253 delete_and_unsubscribe_port(c, aport, subs, !is_src, true); in clear_subscriber_list() 254 kfree(subs); in clear_subscriber_list() [all …]
|
D | seq_clientmgr.c | 663 struct snd_seq_subscribers *subs; in deliver_to_subscribers() local 681 list_for_each_entry(subs, &grp->list_head, src_list) { in deliver_to_subscribers() 683 if (atomic_read(&subs->ref_count) != 2) in deliver_to_subscribers() 685 event->dest = subs->info.dest; in deliver_to_subscribers() 686 if (subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIMESTAMP) in deliver_to_subscribers() 688 update_timestamp_of_queue(event, subs->info.queue, in deliver_to_subscribers() 689 subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIME_REAL); in deliver_to_subscribers() 1399 struct snd_seq_port_subscribe *subs) in check_subscription_permission() argument 1401 if (client->number != subs->sender.client && in check_subscription_permission() 1402 client->number != subs->dest.client) { in check_subscription_permission() [all …]
|
/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_pcm.c | 47 static int pdacf_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in pdacf_pcm_trigger() argument 49 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_trigger() 50 struct snd_pcm_runtime *runtime = subs->runtime; in pdacf_pcm_trigger() 102 static int pdacf_pcm_hw_params(struct snd_pcm_substream *subs, in pdacf_pcm_hw_params() argument 106 (subs, params_buffer_bytes(hw_params)); in pdacf_pcm_hw_params() 112 static int pdacf_pcm_hw_free(struct snd_pcm_substream *subs) in pdacf_pcm_hw_free() argument 114 return snd_pcm_lib_free_vmalloc_buffer(subs); in pdacf_pcm_hw_free() 120 static int pdacf_pcm_prepare(struct snd_pcm_substream *subs) in pdacf_pcm_prepare() argument 122 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_prepare() 123 struct snd_pcm_runtime *runtime = subs->runtime; in pdacf_pcm_prepare() [all …]
|
/sound/isa/sb/ |
D | emu8000_pcm.c | 228 static int emu8k_pcm_open(struct snd_pcm_substream *subs) in emu8k_pcm_open() argument 230 struct snd_emu8000 *emu = snd_pcm_substream_chip(subs); in emu8k_pcm_open() 232 struct snd_pcm_runtime *runtime = subs->runtime; in emu8k_pcm_open() 239 rec->substream = subs; in emu8k_pcm_open() 258 static int emu8k_pcm_close(struct snd_pcm_substream *subs) in emu8k_pcm_close() argument 260 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_close() 262 subs->runtime->private_data = NULL; in emu8k_pcm_close() 388 static int emu8k_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in emu8k_pcm_trigger() argument 390 struct snd_emu8k_pcm *rec = subs->runtime->private_data; in emu8k_pcm_trigger() 445 static int emu8k_pcm_copy(struct snd_pcm_substream *subs, in emu8k_pcm_copy() argument [all …]
|
/sound/pci/mixart/ |
D | mixart.c | 429 static int snd_mixart_trigger(struct snd_pcm_substream *subs, int cmd) in snd_mixart_trigger() argument 431 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger() 436 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger() 453 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger() 460 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger() 465 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger() 490 static int snd_mixart_prepare(struct snd_pcm_substream *subs) in snd_mixart_prepare() argument 492 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_prepare() 493 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_prepare() 504 chip->mgr->sample_rate = subs->runtime->rate; in snd_mixart_prepare() [all …]
|
/sound/drivers/vx/ |
D | vx_pcm.c | 526 static int vx_pcm_playback_open(struct snd_pcm_substream *subs) in vx_pcm_playback_open() argument 528 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_open() 529 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_open() 537 audio = subs->pcm->device * 2; in vx_pcm_playback_open() 553 pipe->substream = subs; in vx_pcm_playback_open() 570 static int vx_pcm_playback_close(struct snd_pcm_substream *subs) in vx_pcm_playback_close() argument 572 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_close() 575 if (! subs->runtime->private_data) in vx_pcm_playback_close() 578 pipe = subs->runtime->private_data; in vx_pcm_playback_close() 691 struct snd_pcm_substream *subs, in vx_pcm_playback_transfer() argument [all …]
|
/sound/ppc/ |
D | pmac.c | 127 static int snd_pmac_pcm_hw_params(struct snd_pcm_substream *subs, in snd_pmac_pcm_hw_params() argument 130 return snd_pcm_lib_malloc_pages(subs, params_buffer_bytes(hw_params)); in snd_pmac_pcm_hw_params() 136 static int snd_pmac_pcm_hw_free(struct snd_pcm_substream *subs) in snd_pmac_pcm_hw_free() argument 138 snd_pcm_lib_free_pages(subs); in snd_pmac_pcm_hw_free() 211 …nd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) in snd_pmac_pcm_prepare() argument 215 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_prepare() 220 rec->dma_size = snd_pcm_lib_buffer_bytes(subs); in snd_pmac_pcm_prepare() 221 rec->period_size = snd_pcm_lib_period_bytes(subs); in snd_pmac_pcm_prepare() 276 struct snd_pcm_substream *subs, int cmd) in snd_pmac_pcm_trigger() argument 286 command = (subs->stream == SNDRV_PCM_STREAM_PLAYBACK ? in snd_pmac_pcm_trigger() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_midi.c | 333 struct snd_seq_port_subscribe subs; in snd_seq_oss_midi_open() local 363 memset(&subs, 0, sizeof(subs)); in snd_seq_oss_midi_open() 366 subs.sender = dp->addr; in snd_seq_oss_midi_open() 367 subs.dest.client = mdev->client; in snd_seq_oss_midi_open() 368 subs.dest.port = mdev->port; in snd_seq_oss_midi_open() 369 if (snd_seq_kernel_client_ctl(dp->cseq, SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, &subs) >= 0) in snd_seq_oss_midi_open() 373 subs.sender.client = mdev->client; in snd_seq_oss_midi_open() 374 subs.sender.port = mdev->port; in snd_seq_oss_midi_open() 375 subs.dest = dp->addr; in snd_seq_oss_midi_open() 376 subs.flags = SNDRV_SEQ_PORT_SUBS_TIMESTAMP; in snd_seq_oss_midi_open() [all …]
|
D | seq_oss_init.c | 112 struct snd_seq_port_subscribe subs; in snd_seq_oss_create_client() local 114 memset(&subs, 0, sizeof(subs)); in snd_seq_oss_create_client() 115 subs.sender.client = SNDRV_SEQ_CLIENT_SYSTEM; in snd_seq_oss_create_client() 116 subs.sender.port = SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE; in snd_seq_oss_create_client() 117 subs.dest.client = system_client; in snd_seq_oss_create_client() 118 subs.dest.port = system_port; in snd_seq_oss_create_client() 119 call_ctl(SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT, &subs); in snd_seq_oss_create_client()
|
/sound/pci/pcxhr/ |
D | pcxhr.c | 640 struct snd_pcm_substream *subs = stream->substream; in pcxhr_update_r_buffer() local 641 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_update_r_buffer() 643 is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE); in pcxhr_update_r_buffer() 644 stream_num = is_capture ? 0 : subs->number; in pcxhr_update_r_buffer() 649 chip->chip_idx, (void *)(long)subs->runtime->dma_addr, in pcxhr_update_r_buffer() 650 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer() 657 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer() 659 rmh.cmd[1] = subs->runtime->dma_bytes * 8; in pcxhr_update_r_buffer() 661 rmh.cmd[2] = subs->runtime->dma_addr >> 24; in pcxhr_update_r_buffer() 665 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD; in pcxhr_update_r_buffer() [all …]
|
/sound/pci/ |
D | maestro3.c | 1061 struct snd_pcm_substream *subs) in snd_m3_pcm_start() argument 1063 if (! s || ! subs) in snd_m3_pcm_start() 1067 switch (subs->stream) { in snd_m3_pcm_start() 1088 struct snd_pcm_substream *subs) in snd_m3_pcm_stop() argument 1090 if (! s || ! subs) in snd_m3_pcm_stop() 1096 switch (subs->stream) { in snd_m3_pcm_stop() 1112 snd_m3_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in snd_m3_pcm_trigger() argument 1114 struct snd_m3 *chip = snd_pcm_substream_chip(subs); in snd_m3_pcm_trigger() 1115 struct m3_dma *s = subs->runtime->private_data; in snd_m3_pcm_trigger() 1129 err = snd_m3_pcm_start(chip, s, subs); in snd_m3_pcm_trigger() [all …]
|
/sound/firewire/fireworks/ |
D | fireworks_midi.c | 117 struct snd_rawmidi_substream *subs; in set_midi_substream_names() local 119 list_for_each_entry(subs, &str->substreams, list) { in set_midi_substream_names() 120 snprintf(subs->name, sizeof(subs->name), in set_midi_substream_names() 121 "%s MIDI %d", efw->card->shortname, subs->number + 1); in set_midi_substream_names()
|
/sound/firewire/bebob/ |
D | bebob_midi.c | 116 struct snd_rawmidi_substream *subs; in set_midi_substream_names() local 118 list_for_each_entry(subs, &str->substreams, list) { in set_midi_substream_names() 119 snprintf(subs->name, sizeof(subs->name), in set_midi_substream_names() 121 bebob->card->shortname, subs->number + 1); in set_midi_substream_names()
|
/sound/pci/ymfpci/ |
D | ymfpci_main.c | 336 unsigned int subs = ypcm->substream->number; in snd_ymfpci_pcm_interrupt() local 342 volume = cpu_to_le32(chip->pcm_mixer[subs].left << 15); in snd_ymfpci_pcm_interrupt() 348 volume = cpu_to_le32(chip->pcm_mixer[subs].right << 15); in snd_ymfpci_pcm_interrupt() 1768 unsigned int subs = kcontrol->id.subdevice; in snd_ymfpci_pcm_vol_get() local 1770 ucontrol->value.integer.value[0] = chip->pcm_mixer[subs].left; in snd_ymfpci_pcm_vol_get() 1771 ucontrol->value.integer.value[1] = chip->pcm_mixer[subs].right; in snd_ymfpci_pcm_vol_get() 1779 unsigned int subs = kcontrol->id.subdevice; in snd_ymfpci_pcm_vol_put() local 1783 if (ucontrol->value.integer.value[0] != chip->pcm_mixer[subs].left || in snd_ymfpci_pcm_vol_put() 1784 ucontrol->value.integer.value[1] != chip->pcm_mixer[subs].right) { in snd_ymfpci_pcm_vol_put() 1785 chip->pcm_mixer[subs].left = ucontrol->value.integer.value[0]; in snd_ymfpci_pcm_vol_put() [all …]
|