Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/usb/go7007/
Dsnd-go7007.c75 struct go7007_snd *gosnd = go->snd_context; in parse_audio_stream_data() local
76 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; in parse_audio_stream_data()
80 spin_lock_irqsave(&gosnd->lock, flags); in parse_audio_stream_data()
81 gosnd->hw_ptr += frames; in parse_audio_stream_data()
82 if (gosnd->hw_ptr >= runtime->buffer_size) in parse_audio_stream_data()
83 gosnd->hw_ptr -= runtime->buffer_size; in parse_audio_stream_data()
84 gosnd->avail += frames; in parse_audio_stream_data()
85 spin_unlock_irqrestore(&gosnd->lock, flags); in parse_audio_stream_data()
86 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()
87 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()
[all …]