Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/media/usb/go7007/
Dsnd-go7007.c67 struct go7007_snd *gosnd = go->snd_context; in parse_audio_stream_data() local
68 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; in parse_audio_stream_data()
72 spin_lock_irqsave(&gosnd->lock, flags); in parse_audio_stream_data()
73 gosnd->hw_ptr += frames; in parse_audio_stream_data()
74 if (gosnd->hw_ptr >= runtime->buffer_size) in parse_audio_stream_data()
75 gosnd->hw_ptr -= runtime->buffer_size; in parse_audio_stream_data()
76 gosnd->avail += frames; in parse_audio_stream_data()
77 spin_unlock_irqrestore(&gosnd->lock, flags); in parse_audio_stream_data()
78 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()
79 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()
[all …]