22 #ifndef __SOUND_PCM_INDIRECT_H
23 #define __SOUND_PCM_INDIRECT_H
59 rec->
sw_ready += (
int)frames_to_bytes(runtime, diff);
69 if (hw_to_end < bytes)
71 if (sw_to_end < bytes)
75 copy(substream, rec, bytes);
103 if (substream->
ops->ack)
104 substream->
ops->ack(substream);
124 rec->
sw_ready -= frames_to_bytes(runtime, diff);
134 if (hw_to_end < bytes)
136 if (sw_to_end < bytes)
140 copy(substream, rec, bytes);
161 int bytes = ptr - rec->
hw_io;
172 if (substream->
ops->ack)
173 substream->
ops->ack(substream);