Home
last modified time | relevance | path

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

/drivers/media/usb/usbtv/
Dusbtv-audio.c103 size_t i, frame_bytes, chunk_length, buffer_pos, period_pos; in usbtv_audio_urb_received() local
128 buffer_pos = chip->snd_buffer_pos; in usbtv_audio_urb_received()
135 if (buffer_pos + chunk_length >= runtime->buffer_size) { in usbtv_audio_urb_received()
136 size_t cnt = (runtime->buffer_size - buffer_pos) * in usbtv_audio_urb_received()
138 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received()
143 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received()
147 buffer_pos += chunk_length; in usbtv_audio_urb_received()
150 if (buffer_pos >= runtime->buffer_size) in usbtv_audio_urb_received()
151 buffer_pos -= runtime->buffer_size; in usbtv_audio_urb_received()
161 chip->snd_buffer_pos = buffer_pos; in usbtv_audio_urb_received()
/drivers/usb/gadget/function/
Df_audio_source.c261 void *buffer_pos; member
377 if (!audio->buffer_pos) in audio_send()
410 if (audio->buffer_pos + length > audio->buffer_end) in audio_send()
411 length1 = audio->buffer_end - audio->buffer_pos; in audio_send()
414 memcpy(req->buf, audio->buffer_pos, length1); in audio_send()
422 audio->buffer_pos = audio->buffer_start + length2; in audio_send()
424 audio->buffer_pos += length1; in audio_send()
425 if (audio->buffer_pos >= audio->buffer_end) in audio_send()
426 audio->buffer_pos = audio->buffer_start; in audio_send()
731 audio->buffer_pos = 0; in audio_pcm_playback_stop()
[all …]
/drivers/most/
Dmost_snd.c51 unsigned int buffer_pos; member
191 fr0 = min(buffer_size - channel->buffer_pos, frames); in copy_data()
193 channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, in copy_data()
204 channel->buffer_pos += frames; in copy_data()
205 if (channel->buffer_pos >= buffer_size) in copy_data()
206 channel->buffer_pos -= buffer_size; in copy_data()
354 channel->buffer_pos = 0; in pcm_prepare()
400 return channel->buffer_pos; in pcm_pointer()