Home
last modified time | relevance | path

Searched refs:hw_ptr (Results 1 – 2 of 2) sorted by relevance

/drivers/media/usb/go7007/
Dsnd-go7007.c41 int hw_ptr; member
72 gosnd->hw_ptr += frames; in parse_audio_stream_data()
73 if (gosnd->hw_ptr >= runtime->buffer_size) in parse_audio_stream_data()
74 gosnd->hw_ptr -= runtime->buffer_size; in parse_audio_stream_data()
159 gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; in go7007_snd_pcm_trigger()
172 return gosnd->hw_ptr; in go7007_snd_pcm_pointer()
214 gosnd->hw_ptr = gosnd->w_idx = gosnd->avail = 0; in go7007_snd_init()
/drivers/usb/gadget/function/
Du_audio.c46 ssize_t hw_ptr; member
152 unsigned int hw_ptr; in u_audio_iso_complete() local
242 hw_ptr = prm->hw_ptr; in u_audio_iso_complete()
245 pending = runtime->dma_bytes - hw_ptr; in u_audio_iso_complete()
249 memcpy(req->buf, runtime->dma_area + hw_ptr, pending); in u_audio_iso_complete()
253 memcpy(req->buf, runtime->dma_area + hw_ptr, in u_audio_iso_complete()
258 memcpy(runtime->dma_area + hw_ptr, req->buf, pending); in u_audio_iso_complete()
262 memcpy(runtime->dma_area + hw_ptr, req->buf, in u_audio_iso_complete()
268 prm->hw_ptr = (hw_ptr + req->actual) % runtime->dma_bytes; in u_audio_iso_complete()
269 hw_ptr = prm->hw_ptr; in u_audio_iso_complete()
[all …]