Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 145) sorted by relevance

123456

/sound/firewire/
Damdtp-stream.c90 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_stream_init() argument
99 s->protocol = kzalloc(protocol_size, GFP_KERNEL); in amdtp_stream_init()
100 if (!s->protocol) in amdtp_stream_init()
103 s->unit = unit; in amdtp_stream_init()
104 s->direction = dir; in amdtp_stream_init()
105 s->flags = flags; in amdtp_stream_init()
106 s->context = ERR_PTR(-1); in amdtp_stream_init()
107 mutex_init(&s->mutex); in amdtp_stream_init()
108 s->packet_index = 0; in amdtp_stream_init()
110 init_waitqueue_head(&s->ready_wait); in amdtp_stream_init()
[all …]
Damdtp-am824.c55 int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate, in amdtp_am824_set_parameters() argument
60 struct amdtp_am824 *p = s->protocol; in amdtp_am824_set_parameters()
65 if (amdtp_stream_running(s)) in amdtp_am824_set_parameters()
75 if (WARN_ON(amdtp_stream_running(s)) || in amdtp_am824_set_parameters()
80 err = amdtp_stream_set_parameters(s, rate, in amdtp_am824_set_parameters()
85 if (s->direction == AMDTP_OUT_STREAM) in amdtp_am824_set_parameters()
86 s->ctx_data.rx.fdf = AMDTP_FDF_AM824 | s->sfc; in amdtp_am824_set_parameters()
112 p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1; in amdtp_am824_set_parameters()
125 void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index, in amdtp_am824_set_pcm_position() argument
128 struct amdtp_am824 *p = s->protocol; in amdtp_am824_set_pcm_position()
[all …]
Damdtp-stream.h110 struct amdtp_stream *s,
209 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit,
214 void amdtp_stream_destroy(struct amdtp_stream *s);
216 int amdtp_stream_set_parameters(struct amdtp_stream *s, unsigned int rate,
218 unsigned int amdtp_stream_get_max_payload(struct amdtp_stream *s);
220 void amdtp_stream_update(struct amdtp_stream *s);
222 int amdtp_stream_add_pcm_hw_constraints(struct amdtp_stream *s,
225 void amdtp_stream_pcm_prepare(struct amdtp_stream *s);
226 void amdtp_stream_pcm_abort(struct amdtp_stream *s);
237 static inline bool amdtp_stream_running(struct amdtp_stream *s) in amdtp_stream_running() argument
[all …]
Damdtp-am824.h30 int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate,
35 void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index,
38 void amdtp_am824_set_midi_position(struct amdtp_stream *s,
41 int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s,
44 void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port,
47 int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
Damdtp-stream-trace.h17 …TP_PROTO(const struct amdtp_stream *s, u32 cycles, const __be32 *cip_header, unsigned int payload_…
18 …TP_ARGS(s, cycles, cip_header, payload_length, data_blocks, data_block_counter, packet_index, inde…
36 __entry->channel = s->context->channel;
37 if (s->direction == AMDTP_IN_STREAM) {
38 __entry->src = fw_parent_device(s->unit)->node_id;
39 __entry->dest = fw_parent_device(s->unit)->card->node_id;
41 __entry->src = fw_parent_device(s->unit)->card->node_id;
42 __entry->dest = fw_parent_device(s->unit)->node_id;
/sound/usb/usx2y/
Dusb_stream.c15 struct usb_stream *s = sk->s; in usb_stream_next_packet_size() local
18 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size()
23 struct usb_stream *s = sk->s; in playback_prep_freqn() local
29 if (s->idle_outsize + lb + l > s->period_size) in playback_prep_freqn()
42 s->idle_outsize += lb - s->period_size; in playback_prep_freqn()
43 snd_printdd(KERN_DEBUG "idle=%i ul=%i ps=%i\n", s->idle_outsize, in playback_prep_freqn()
44 lb, s->period_size); in playback_prep_freqn()
89 struct usb_stream *s = sk->s; in init_urbs() local
91 (char *)s + sizeof(*s) + sizeof(struct usb_stream_packet) * s->inpackets; in init_urbs()
132 struct usb_stream *s; in usb_stream_free() local
[all …]
Dus122l.c109 struct usb_stream *s; in usb_stream_hwdep_vm_fault() local
112 s = us122l->sk.s; in usb_stream_hwdep_vm_fault()
113 if (!s) in usb_stream_hwdep_vm_fault()
117 if (offset < PAGE_ALIGN(s->read_size)) { in usb_stream_hwdep_vm_fault()
118 vaddr = (char *)s + offset; in usb_stream_hwdep_vm_fault()
120 offset -= PAGE_ALIGN(s->read_size); in usb_stream_hwdep_vm_fault()
121 if (offset >= PAGE_ALIGN(s->write_size)) in usb_stream_hwdep_vm_fault()
204 struct usb_stream *s; in usb_stream_hwdep_mmap() local
210 s = us122l->sk.s; in usb_stream_hwdep_mmap()
211 read = offset < s->read_size; in usb_stream_hwdep_mmap()
[all …]
/sound/firewire/digi00x/
Damdtp-dot.c113 int amdtp_dot_set_parameters(struct amdtp_stream *s, unsigned int rate, in amdtp_dot_set_parameters() argument
116 struct amdtp_dot *p = s->protocol; in amdtp_dot_set_parameters()
119 if (amdtp_stream_running(s)) in amdtp_dot_set_parameters()
126 err = amdtp_stream_set_parameters(s, rate, pcm_channels + 1); in amdtp_dot_set_parameters()
130 s->ctx_data.rx.fdf = AMDTP_FDF_AM824 | s->sfc; in amdtp_dot_set_parameters()
140 p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1; in amdtp_dot_set_parameters()
145 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument
149 struct amdtp_dot *p = s->protocol; in write_pcm_s32()
157 pcm_buffer_pointer = s->pcm_buffer_pointer + pcm_frames; in write_pcm_s32()
171 buffer += s->data_block_quadlets; in write_pcm_s32()
[all …]
Ddigi00x.h115 int amdtp_dot_init(struct amdtp_stream *s, struct fw_unit *unit,
117 int amdtp_dot_set_parameters(struct amdtp_stream *s, unsigned int rate,
119 void amdtp_dot_reset(struct amdtp_stream *s);
120 int amdtp_dot_add_pcm_hw_constraints(struct amdtp_stream *s,
122 void amdtp_dot_midi_trigger(struct amdtp_stream *s, unsigned int port,
/sound/soc/fsl/
Dmpc5200_dma.c61 static void psc_dma_bcom_enqueue_next_buffer(struct psc_dma_stream *s) in psc_dma_bcom_enqueue_next_buffer() argument
66 bd = bcom_prepare_next_buffer(s->bcom_task); in psc_dma_bcom_enqueue_next_buffer()
67 bd->status = s->period_bytes; in psc_dma_bcom_enqueue_next_buffer()
68 bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); in psc_dma_bcom_enqueue_next_buffer()
69 bcom_submit_next_buffer(s->bcom_task, NULL); in psc_dma_bcom_enqueue_next_buffer()
72 s->period_next = (s->period_next + 1) % s->runtime->periods; in psc_dma_bcom_enqueue_next_buffer()
78 struct psc_dma_stream *s = _psc_dma_stream; in psc_dma_bcom_irq() local
80 spin_lock(&s->psc_dma->lock); in psc_dma_bcom_irq()
83 while (bcom_buffer_done(s->bcom_task)) { in psc_dma_bcom_irq()
84 bcom_retrieve_buffer(s->bcom_task, NULL, NULL); in psc_dma_bcom_irq()
[all …]
/sound/firewire/tascam/
Damdtp-tascam.c18 int amdtp_tscm_set_parameters(struct amdtp_stream *s, unsigned int rate) in amdtp_tscm_set_parameters() argument
20 struct amdtp_tscm *p = s->protocol; in amdtp_tscm_set_parameters()
23 if (amdtp_stream_running(s)) in amdtp_tscm_set_parameters()
29 if (s->direction == AMDTP_IN_STREAM) in amdtp_tscm_set_parameters()
32 return amdtp_stream_set_parameters(s, rate, data_channels); in amdtp_tscm_set_parameters()
35 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument
39 struct amdtp_tscm *p = s->protocol; in write_pcm_s32()
47 pcm_buffer_pointer = s->pcm_buffer_pointer + pcm_frames; in write_pcm_s32()
59 buffer += s->data_block_quadlets; in write_pcm_s32()
65 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument
[all …]
/sound/firewire/motu/
Damdtp-motu.c48 int amdtp_motu_set_parameters(struct amdtp_stream *s, unsigned int rate, in amdtp_motu_set_parameters() argument
52 struct amdtp_motu *p = s->protocol; in amdtp_motu_set_parameters()
57 if (amdtp_stream_running(s)) in amdtp_motu_set_parameters()
76 err = amdtp_stream_set_parameters(s, rate, data_block_quadlets); in amdtp_motu_set_parameters()
93 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument
97 struct amdtp_motu *p = s->protocol; in read_pcm_s32()
106 pcm_buffer_pointer = s->pcm_buffer_pointer + pcm_frames; in read_pcm_s32()
123 buffer += s->data_block_quadlets; in read_pcm_s32()
129 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument
133 struct amdtp_motu *p = s->protocol; in write_pcm_s32()
[all …]
Damdtp-motu-trace.h22 TP_PROTO(struct amdtp_stream *s, unsigned int data_blocks, __be32 *buffer),
23 TP_ARGS(s, data_blocks, buffer),
31 if (s->direction == AMDTP_IN_STREAM) {
32 __entry->src = fw_parent_device(s->unit)->node_id;
33 __entry->dst = fw_parent_device(s->unit)->card->node_id;
35 __entry->src = fw_parent_device(s->unit)->card->node_id;
36 __entry->dst = fw_parent_device(s->unit)->node_id;
39 copy_sph(__get_dynamic_array(tstamps), buffer, data_blocks, s->data_block_quadlets);
51 TP_PROTO(struct amdtp_stream *s, unsigned int data_blocks, __be32 *buffer),
52 TP_ARGS(s, data_blocks, buffer),
[all …]
/sound/firewire/fireface/
Damdtp-ff.c15 int amdtp_ff_set_parameters(struct amdtp_stream *s, unsigned int rate, in amdtp_ff_set_parameters() argument
18 struct amdtp_ff *p = s->protocol; in amdtp_ff_set_parameters()
21 if (amdtp_stream_running(s)) in amdtp_ff_set_parameters()
27 return amdtp_stream_set_parameters(s, rate, data_channels); in amdtp_ff_set_parameters()
30 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument
34 struct amdtp_ff *p = s->protocol; in write_pcm_s32()
42 pcm_buffer_pointer = s->pcm_buffer_pointer + pcm_frames; in write_pcm_s32()
54 buffer += s->data_block_quadlets; in write_pcm_s32()
60 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument
64 struct amdtp_ff *p = s->protocol; in read_pcm_s32()
[all …]
/sound/
Dsound_core.c162 static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, const struct file_o… in __sound_insert_unit() argument
197 s->unit_minor=n; in __sound_insert_unit()
198 s->unit_fops=fops; in __sound_insert_unit()
204 s->next=*list; in __sound_insert_unit()
205 *list=s; in __sound_insert_unit()
244 struct sound_unit *s = kmalloc(sizeof(*s), GFP_KERNEL); in sound_insert_unit() local
247 if (!s) in sound_insert_unit()
252 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit()
258 sprintf(s->name, "sound/%s", name); in sound_insert_unit()
260 sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); in sound_insert_unit()
[all …]
/sound/isa/
Dsscape.c156 static struct snd_dma_buffer *get_dmabuf(struct soundscape *s, in get_dmabuf() argument
162 s->chip->card->dev, in get_dmabuf()
199 static void sscape_write(struct soundscape *s, enum GA_REG reg, in sscape_write() argument
204 spin_lock_irqsave(&s->lock, flags); in sscape_write()
205 sscape_write_unsafe(s->io_base, reg, val); in sscape_write()
206 spin_unlock_irqrestore(&s->lock, flags); in sscape_write()
364 static int obp_startup_ack(struct soundscape *s, unsigned timeout) in obp_startup_ack() argument
372 spin_lock_irqsave(&s->lock, flags); in obp_startup_ack()
373 x = host_read_unsafe(s->io_base); in obp_startup_ack()
374 spin_unlock_irqrestore(&s->lock, flags); in obp_startup_ack()
[all …]
/sound/pci/nm256/
Dnm256.c411 snd_nm256_set_format(struct nm256 *chip, struct nm256_stream *s, in snd_nm256_set_format() argument
418 s->shift = 0; in snd_nm256_set_format()
421 s->shift++; in snd_nm256_set_format()
425 s->shift++; in snd_nm256_set_format()
485 static void snd_nm256_pcm_mark(struct nm256 *chip, struct nm256_stream *s, int reg) in snd_nm256_pcm_mark() argument
487 s->cur_period++; in snd_nm256_pcm_mark()
488 s->cur_period %= s->periods; in snd_nm256_pcm_mark()
489 snd_nm256_writel(chip, reg, s->buf + s->cur_period * s->period_size); in snd_nm256_pcm_mark()
492 #define snd_nm256_playback_mark(chip, s) snd_nm256_pcm_mark(chip, s, NM_PBUFFER_WMARK) argument
493 #define snd_nm256_capture_mark(chip, s) snd_nm256_pcm_mark(chip, s, NM_RBUFFER_WMARK) argument
[all …]
/sound/core/
Dcontrol_led.c467 static char *find_eos(char *s) in find_eos() argument
469 while (*s && *s != ',') in find_eos()
470 s++; in find_eos()
471 if (*s) in find_eos()
472 s++; in find_eos()
473 return s; in find_eos()
476 static char *parse_uint(char *s, unsigned int *val) in parse_uint() argument
479 if (kstrtoull(s, 10, &res)) in parse_uint()
482 return find_eos(s); in parse_uint()
485 static char *parse_string(char *s, char *val, size_t val_size) in parse_string() argument
[all …]
/sound/pci/
Dmaestro3.c1040 static int snd_m3_pcm_start(struct snd_m3 *chip, struct m3_dma *s, in snd_m3_pcm_start() argument
1043 if (! s || ! subs) in snd_m3_pcm_start()
1051 s->inst.data + CDATA_INSTANCE_READY, 1); in snd_m3_pcm_start()
1060 s->inst.data + CDATA_INSTANCE_READY, 1); in snd_m3_pcm_start()
1067 static int snd_m3_pcm_stop(struct snd_m3 *chip, struct m3_dma *s, in snd_m3_pcm_stop() argument
1070 if (! s || ! subs) in snd_m3_pcm_stop()
1074 s->inst.data + CDATA_INSTANCE_READY, 0); in snd_m3_pcm_stop()
1095 struct m3_dma *s = subs->runtime->private_data; in snd_m3_pcm_trigger() local
1098 if (snd_BUG_ON(!s)) in snd_m3_pcm_trigger()
1105 if (s->running) in snd_m3_pcm_trigger()
[all …]
/sound/pci/hda/
Dca0132_regs.h350 #define X_RANGE_MAIN(a, s) \ argument
351 (((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < X_END))
352 #define X_RANGE_AUX(a, s) \ argument
353 (((a) >= X_END) && ((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < AX_END))
354 #define X_RANGE_EXT(a, s) \ argument
355 (((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < X_EXT))
356 #define X_RANGE_ALL(a, s) \ argument
357 (((a)+((s)-1)*XRAM_XRAM_CHAN_INCR < AX_END))
359 #define Y_RANGE_MAIN(a, s) \ argument
361 ((a)+((s)-1)*YRAM_YRAM_CHAN_INCR < Y_END))
[all …]
/sound/soc/sof/intel/
Dhda-stream.c163 struct hdac_stream *s; in hda_dsp_stream_get() local
168 list_for_each_entry(s, &bus->stream_list, list) { in hda_dsp_stream_get()
169 if (s->direction == direction && !s->opened) { in hda_dsp_stream_get()
170 stream = stream_to_hdac_ext_stream(s); in hda_dsp_stream_get()
178 s->opened = true; in hda_dsp_stream_get()
214 struct hdac_stream *s; in hda_dsp_stream_put() local
224 list_for_each_entry(s, &bus->stream_list, list) { in hda_dsp_stream_put()
225 stream = stream_to_hdac_ext_stream(s); in hda_dsp_stream_put()
228 if (!s->opened) in hda_dsp_stream_put()
231 if (s->direction == direction && s->stream_tag == stream_tag) { in hda_dsp_stream_put()
[all …]
/sound/xen/
Dxen_snd_front_evtchnl.c306 int s, index; in xen_snd_front_evtchnl_create_all() local
310 for (s = 0; s < pcm_instance->num_streams_pb; s++) { in xen_snd_front_evtchnl_create_all()
311 index = pcm_instance->streams_pb[s].index; in xen_snd_front_evtchnl_create_all()
330 for (s = 0; s < pcm_instance->num_streams_cap; s++) { in xen_snd_front_evtchnl_create_all()
331 index = pcm_instance->streams_cap[s].index; in xen_snd_front_evtchnl_create_all()
400 int s, index; in xen_snd_front_evtchnl_publish_all() local
404 for (s = 0; s < pcm_instance->num_streams_pb; s++) { in xen_snd_front_evtchnl_publish_all()
405 index = pcm_instance->streams_pb[s].index; in xen_snd_front_evtchnl_publish_all()
409 pcm_instance->streams_pb[s].xenstore_path, in xen_snd_front_evtchnl_publish_all()
417 pcm_instance->streams_pb[s].xenstore_path, in xen_snd_front_evtchnl_publish_all()
[all …]
/sound/usb/
Dusbaudio.h125 #define combine_word(s) ((*(s)) | ((unsigned int)(s)[1] << 8)) argument
126 #define combine_triple(s) (combine_word(s) | ((unsigned int)(s)[2] << 16)) argument
127 #define combine_quad(s) (combine_triple(s) | ((unsigned int)(s)[3] << 24)) argument
/sound/soc/codecs/
Dcs42xx8.h106 #define CS42XX8_FUNCMOD_MFREQ_256(s) ((0 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument
107 #define CS42XX8_FUNCMOD_MFREQ_384(s) ((1 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument
108 #define CS42XX8_FUNCMOD_MFREQ_512(s) ((2 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument
109 #define CS42XX8_FUNCMOD_MFREQ_768(s) ((3 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument
110 #define CS42XX8_FUNCMOD_MFREQ_1024(s) ((4 << CS42XX8_FUNCMOD_MFREQ_SHIFT) >> (s >> 1)) argument
/sound/pci/asihpi/
Dasihpi.c105 struct clk_source s[MAX_CLOCKSOURCES]; member
564 struct snd_pcm_substream *s; in snd_card_asihpi_trigger() local
573 snd_pcm_group_for_each_entry(s, substream) { in snd_card_asihpi_trigger()
574 struct snd_pcm_runtime *runtime = s->runtime; in snd_card_asihpi_trigger()
577 if (snd_pcm_substream_chip(s) != card) in snd_card_asihpi_trigger()
581 if (substream->stream != s->stream) in snd_card_asihpi_trigger()
585 if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_card_asihpi_trigger()
593 snd_printddd("%d preload %d\n", s->number, preload); in snd_card_asihpi_trigger()
603 snd_printdd("%d group\n", s->number); in snd_card_asihpi_trigger()
608 snd_pcm_trigger_done(s, substream); in snd_card_asihpi_trigger()
[all …]

123456