Searched refs:gosnd (Results 1 – 1 of 1) sorted by relevance
66 struct go7007_snd *gosnd = go->snd_context; in parse_audio_stream_data() local67 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; in parse_audio_stream_data()71 spin_lock_irqsave(&gosnd->lock, flags); in parse_audio_stream_data()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()75 gosnd->avail += frames; in parse_audio_stream_data()76 spin_unlock_irqrestore(&gosnd->lock, flags); in parse_audio_stream_data()77 if (gosnd->w_idx + length > runtime->dma_bytes) { in parse_audio_stream_data()78 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data()[all …]