Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-pcm.c52 void bcm2835_playback_fifo(struct bcm2835_alsa_stream *alsa_stream, in bcm2835_playback_fifo() argument
55 struct snd_pcm_substream *substream = alsa_stream->substream; in bcm2835_playback_fifo()
58 if (!alsa_stream->period_size) in bcm2835_playback_fifo()
61 if (bytes >= alsa_stream->buffer_size) { in bcm2835_playback_fifo()
64 alsa_stream->draining ? in bcm2835_playback_fifo()
71 pos = atomic_read(&alsa_stream->pos); in bcm2835_playback_fifo()
73 pos %= alsa_stream->buffer_size; in bcm2835_playback_fifo()
74 atomic_set(&alsa_stream->pos, pos); in bcm2835_playback_fifo()
76 alsa_stream->period_offset += bytes; in bcm2835_playback_fifo()
77 alsa_stream->interpolate_start = ktime_get(); in bcm2835_playback_fifo()
[all …]
Dbcm2835-vchiq.c15 struct bcm2835_alsa_stream *alsa_stream; member
111 bcm2835_playback_fifo(instance->alsa_stream, in audio_vchi_callback()
203 int bcm2835_audio_open(struct bcm2835_alsa_stream *alsa_stream) in bcm2835_audio_open() argument
205 struct bcm2835_vchi_ctx *vchi_ctx = alsa_stream->chip->vchi_ctx; in bcm2835_audio_open()
214 instance->dev = alsa_stream->chip->dev; in bcm2835_audio_open()
215 instance->alsa_stream = alsa_stream; in bcm2835_audio_open()
216 alsa_stream->instance = instance; in bcm2835_audio_open()
242 alsa_stream->instance = NULL; in bcm2835_audio_open()
247 int bcm2835_audio_set_ctls(struct bcm2835_alsa_stream *alsa_stream) in bcm2835_audio_set_ctls() argument
249 struct bcm2835_chip *chip = alsa_stream->chip; in bcm2835_audio_set_ctls()
[all …]
Dbcm2835.h56 struct bcm2835_alsa_stream *alsa_stream[MAX_SUBSTREAMS]; member
97 int bcm2835_audio_open(struct bcm2835_alsa_stream *alsa_stream);
98 int bcm2835_audio_close(struct bcm2835_alsa_stream *alsa_stream);
99 int bcm2835_audio_set_params(struct bcm2835_alsa_stream *alsa_stream,
102 int bcm2835_audio_start(struct bcm2835_alsa_stream *alsa_stream);
103 int bcm2835_audio_stop(struct bcm2835_alsa_stream *alsa_stream);
104 int bcm2835_audio_drain(struct bcm2835_alsa_stream *alsa_stream);
105 int bcm2835_audio_set_ctls(struct bcm2835_alsa_stream *alsa_stream);
106 int bcm2835_audio_write(struct bcm2835_alsa_stream *alsa_stream,
109 void bcm2835_playback_fifo(struct bcm2835_alsa_stream *alsa_stream,
[all …]
Dbcm2835-ctl.c21 if (chip->alsa_stream[i]) { in bcm2835_audio_set_chip_ctls()
22 err = bcm2835_audio_set_ctls(chip->alsa_stream[i]); in bcm2835_audio_set_chip_ctls()