Home
last modified time | relevance | path

Searched refs:count1 (Results 1 – 3 of 3) sorted by relevance

/sound/core/
Drawmidi.c1066 int result = 0, count1; in snd_rawmidi_receive() local
1092 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1093 if (count1 > count) in snd_rawmidi_receive()
1094 count1 = count; in snd_rawmidi_receive()
1095 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in snd_rawmidi_receive()
1096 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
1097 memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); in snd_rawmidi_receive()
1098 runtime->hw_ptr += count1; in snd_rawmidi_receive()
1100 runtime->avail += count1; in snd_rawmidi_receive()
1101 count -= count1; in snd_rawmidi_receive()
[all …]
/sound/firewire/
Disight.c112 unsigned int count1; in isight_samples() local
122 count1 = runtime->buffer_size - isight->buffer_pointer; in isight_samples()
124 samples, count1 * 4); in isight_samples()
125 samples += count1 * 2; in isight_samples()
126 memcpy(runtime->dma_area, samples, (count - count1) * 4); in isight_samples()
142 unsigned int count1; in isight_dropped_samples() local
154 count1 = runtime->buffer_size - isight->buffer_pointer; in isight_dropped_samples()
156 0, count1 * 4); in isight_dropped_samples()
157 memset(runtime->dma_area, 0, (dropped - count1) * 4); in isight_dropped_samples()
/sound/drivers/
Daloop.c609 unsigned int running, count1, count2; in loopback_jiffies_timer_pos_update() local
627 count1 = bytepos_delta(dpcm_play, delta_play - delta_capt); in loopback_jiffies_timer_pos_update()
628 bytepos_finish(dpcm_play, count1); in loopback_jiffies_timer_pos_update()
631 count1 = bytepos_delta(dpcm_capt, delta_capt - delta_play); in loopback_jiffies_timer_pos_update()
632 clear_capture_buf(dpcm_capt, count1); in loopback_jiffies_timer_pos_update()
633 bytepos_finish(dpcm_capt, count1); in loopback_jiffies_timer_pos_update()
641 count1 = bytepos_delta(dpcm_play, delta_play); in loopback_jiffies_timer_pos_update()
643 if (count1 < count2) { in loopback_jiffies_timer_pos_update()
644 dpcm_capt->last_drift = count2 - count1; in loopback_jiffies_timer_pos_update()
645 count1 = count2; in loopback_jiffies_timer_pos_update()
[all …]