Lines Matching refs:sw_data
72 snd_printk(KERN_DEBUG "STAT: sw_io: %d, sw_data: %d\n", rec->sw_io,
73 rec->sw_data);
148 * a period, move sw_data to the next correctly aligned
162 rec->sw_data =
174 "STAT: @re-align: sw_data "
176 rec->sw_data);
184 * until the position of sw_data: Filling the fifo with
187 if (rec->sw_io != rec->sw_data) {
189 if (rec->sw_data > rec->sw_io)
190 diff = rec->sw_data - rec->sw_io;
194 rec->sw_data;
196 rec->sw_io = rec->sw_data;
285 "sw_data: %d, appl_ptr: %u\n",
286 rec->sw_io, rec->sw_data,
313 * the current position (sw_data) in _one_ step
315 unsigned int sw_to_end = rec->sw_buffer_size - rec->sw_data;
330 /* copy bytes from intermediate buffer position sw_data to the
347 /* increase sw_data by the number of actually written bytes
350 rec->sw_data += bytes;
351 if (rec->sw_data == rec->sw_buffer_size)
352 rec->sw_data = 0;
353 /* now sw_data is the position where ALSA is going to write
445 "@firstzerotime: sw_io: %d, sw_data: %d, "
447 rec->sw_io, rec->sw_data,
478 size_t sw_to_end = rec->sw_buffer_size - rec->sw_data;
498 /* copy bytes from the intermediate buffer (position sw_data)
515 /* increase sw_data by the number of actually copied bytes from
518 rec->sw_data += bytes;
519 if (rec->sw_data == rec->sw_buffer_size)
520 rec->sw_data = 0;