Lines Matching refs:mapper
63 static int single_pre_process(struct mapper_context *mapper, in single_pre_process() argument
67 struct single_state *state = mapper->private_data; in single_pre_process()
70 if (cntrs->bytes_per_sample != mapper->bytes_per_sample || in single_pre_process()
71 cntrs->samples_per_frame != mapper->samples_per_frame) in single_pre_process()
75 if (mapper->type == MAPPER_TYPE_DEMUXER) { in single_pre_process()
76 if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED || in single_pre_process()
77 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED) in single_pre_process()
79 else if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED || in single_pre_process()
80 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED) in single_pre_process()
85 if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED || in single_pre_process()
86 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED) in single_pre_process()
88 else if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED || in single_pre_process()
89 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED) in single_pre_process()
97 bytes_per_buffer = mapper->bytes_per_sample * in single_pre_process()
98 mapper->samples_per_frame * in single_pre_process()
99 mapper->frames_per_buffer; in single_pre_process()
109 static int single_muxer_process_frames(struct mapper_context *mapper, in single_muxer_process_frames() argument
115 struct single_state *state = mapper->private_data; in single_muxer_process_frames()
134 mapper->bytes_per_sample, in single_muxer_process_frames()
135 mapper->samples_per_frame); in single_muxer_process_frames()
140 static int single_demuxer_process_frames(struct mapper_context *mapper, in single_demuxer_process_frames() argument
146 struct single_state *state = mapper->private_data; in single_demuxer_process_frames()
156 mapper->bytes_per_sample, in single_demuxer_process_frames()
157 mapper->samples_per_frame); in single_demuxer_process_frames()
164 static void single_post_process(struct mapper_context *mapper) in single_post_process() argument
166 struct single_state *state = mapper->private_data; in single_post_process()