• Home
  • Raw
  • Download

Lines Matching refs:s

15 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()
72 pcm_buffer_pointer = s->pcm_buffer_pointer + pcm_frames; in read_pcm_s32()
84 buffer += s->data_block_quadlets; in read_pcm_s32()
90 static void write_pcm_silence(struct amdtp_stream *s, in write_pcm_silence() argument
93 struct amdtp_ff *p = s->protocol; in write_pcm_silence()
99 buffer += s->data_block_quadlets; in write_pcm_silence()
103 int amdtp_ff_add_pcm_hw_constraints(struct amdtp_stream *s, in amdtp_ff_add_pcm_hw_constraints() argument
112 return amdtp_stream_add_pcm_hw_constraints(s, runtime); in amdtp_ff_add_pcm_hw_constraints()
115 static unsigned int process_it_ctx_payloads(struct amdtp_stream *s, in process_it_ctx_payloads() argument
129 write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_it_ctx_payloads()
132 write_pcm_silence(s, buf, data_blocks); in process_it_ctx_payloads()
139 static unsigned int process_ir_ctx_payloads(struct amdtp_stream *s, in process_ir_ctx_payloads() argument
153 read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_ir_ctx_payloads()
161 int amdtp_ff_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_ff_init() argument
171 return amdtp_stream_init(s, unit, dir, CIP_BLOCKING | CIP_UNAWARE_SYT | CIP_NO_HEADER, 0, in amdtp_ff_init()