alsa_stream 21 drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c if (chip->alsa_stream[i]) { alsa_stream 22 drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c err = bcm2835_audio_set_ctls(chip->alsa_stream[i]); alsa_stream 52 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c void bcm2835_playback_fifo(struct bcm2835_alsa_stream *alsa_stream, alsa_stream 55 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_substream *substream = alsa_stream->substream; alsa_stream 58 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (!alsa_stream->period_size) alsa_stream 61 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (bytes >= alsa_stream->buffer_size) { alsa_stream 64 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->draining ? alsa_stream 71 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c pos = atomic_read(&alsa_stream->pos); alsa_stream 73 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c pos %= alsa_stream->buffer_size; alsa_stream 74 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c atomic_set(&alsa_stream->pos, pos); alsa_stream 76 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->period_offset += bytes; alsa_stream 77 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->interpolate_start = ktime_get(); alsa_stream 78 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (alsa_stream->period_offset >= alsa_stream->period_size) { alsa_stream 79 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->period_offset %= alsa_stream->period_size; alsa_stream 90 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream; alsa_stream 112 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream = kzalloc(sizeof(*alsa_stream), GFP_KERNEL); alsa_stream 113 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if (!alsa_stream) { alsa_stream 119 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->chip = chip; alsa_stream 120 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->substream = substream; alsa_stream 121 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->idx = idx; alsa_stream 123 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c err = bcm2835_audio_open(alsa_stream); alsa_stream 125 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c kfree(alsa_stream); alsa_stream 128 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c runtime->private_data = alsa_stream; alsa_stream 148 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c chip->alsa_stream[idx] = alsa_stream; alsa_stream 170 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream; alsa_stream 177 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream = runtime->private_data; alsa_stream 179 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->period_size = 0; alsa_stream 180 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->buffer_size = 0; alsa_stream 182 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c bcm2835_audio_close(alsa_stream); alsa_stream 183 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->chip->alsa_stream[alsa_stream->idx] = NULL; alsa_stream 211 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; alsa_stream 224 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c err = bcm2835_audio_set_params(alsa_stream, channels, alsa_stream 230 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c memset(&alsa_stream->pcm_indirect, 0, sizeof(alsa_stream->pcm_indirect)); alsa_stream 232 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->pcm_indirect.hw_buffer_size = alsa_stream 233 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->pcm_indirect.sw_buffer_size = alsa_stream 236 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->buffer_size = snd_pcm_lib_buffer_bytes(substream); alsa_stream 237 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->period_size = snd_pcm_lib_period_bytes(substream); alsa_stream 238 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c atomic_set(&alsa_stream->pos, 0); alsa_stream 239 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->period_offset = 0; alsa_stream 240 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->draining = false; alsa_stream 241 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->interpolate_start = ktime_get(); alsa_stream 250 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; alsa_stream 253 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c bcm2835_audio_write(alsa_stream, bytes, src); alsa_stream 259 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; alsa_stream 260 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct snd_pcm_indirect *pcm_indirect = &alsa_stream->pcm_indirect; alsa_stream 270 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; alsa_stream 274 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c return bcm2835_audio_start(alsa_stream); alsa_stream 276 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->draining = true; alsa_stream 277 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c return bcm2835_audio_drain(alsa_stream); alsa_stream 279 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c return bcm2835_audio_stop(alsa_stream); alsa_stream 290 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c struct bcm2835_alsa_stream *alsa_stream = runtime->private_data; alsa_stream 298 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c if ((ktime_to_ns(alsa_stream->interpolate_start)) && alsa_stream 299 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c (ktime_compare(alsa_stream->interpolate_start, now) < 0)) { alsa_stream 302 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c alsa_stream->interpolate_start))); alsa_stream 311 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c &alsa_stream->pcm_indirect, alsa_stream 312 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c atomic_read(&alsa_stream->pos)); alsa_stream 15 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c struct bcm2835_alsa_stream *alsa_stream; alsa_stream 114 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c bcm2835_playback_fifo(instance->alsa_stream, alsa_stream 202 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_open(struct bcm2835_alsa_stream *alsa_stream) alsa_stream 204 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c struct bcm2835_vchi_ctx *vchi_ctx = alsa_stream->chip->vchi_ctx; alsa_stream 213 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c instance->dev = alsa_stream->chip->dev; alsa_stream 214 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c instance->alsa_stream = alsa_stream; alsa_stream 215 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c alsa_stream->instance = instance; alsa_stream 240 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c alsa_stream->instance = NULL; alsa_stream 245 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_set_ctls(struct bcm2835_alsa_stream *alsa_stream) alsa_stream 247 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c struct bcm2835_chip *chip = alsa_stream->chip; alsa_stream 257 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c return bcm2835_audio_send_msg(alsa_stream->instance, &m, true); alsa_stream 260 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_set_params(struct bcm2835_alsa_stream *alsa_stream, alsa_stream 273 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c err = bcm2835_audio_set_ctls(alsa_stream); alsa_stream 277 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c return bcm2835_audio_send_msg(alsa_stream->instance, &m, true); alsa_stream 280 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_start(struct bcm2835_alsa_stream *alsa_stream) alsa_stream 282 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c return bcm2835_audio_send_simple(alsa_stream->instance, alsa_stream 286 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_stop(struct bcm2835_alsa_stream *alsa_stream) alsa_stream 288 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c return bcm2835_audio_send_simple(alsa_stream->instance, alsa_stream 293 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_drain(struct bcm2835_alsa_stream *alsa_stream) alsa_stream 300 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c return bcm2835_audio_send_msg(alsa_stream->instance, &m, false); alsa_stream 303 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_close(struct bcm2835_alsa_stream *alsa_stream) alsa_stream 305 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c struct bcm2835_audio_instance *instance = alsa_stream->instance; alsa_stream 308 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c err = bcm2835_audio_send_simple(alsa_stream->instance, alsa_stream 313 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c alsa_stream->instance = NULL; alsa_stream 319 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c int bcm2835_audio_write(struct bcm2835_alsa_stream *alsa_stream, alsa_stream 322 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c struct bcm2835_audio_instance *instance = alsa_stream->instance; alsa_stream 56 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h struct bcm2835_alsa_stream *alsa_stream[MAX_SUBSTREAMS]; alsa_stream 97 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_open(struct bcm2835_alsa_stream *alsa_stream); alsa_stream 98 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_close(struct bcm2835_alsa_stream *alsa_stream); alsa_stream 99 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_set_params(struct bcm2835_alsa_stream *alsa_stream, alsa_stream 102 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_start(struct bcm2835_alsa_stream *alsa_stream); alsa_stream 103 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_stop(struct bcm2835_alsa_stream *alsa_stream); alsa_stream 104 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_drain(struct bcm2835_alsa_stream *alsa_stream); alsa_stream 105 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_set_ctls(struct bcm2835_alsa_stream *alsa_stream); alsa_stream 106 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h int bcm2835_audio_write(struct bcm2835_alsa_stream *alsa_stream, alsa_stream 109 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h void bcm2835_playback_fifo(struct bcm2835_alsa_stream *alsa_stream, alsa_stream 111 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h unsigned int bcm2835_audio_retrieve_buffers(struct bcm2835_alsa_stream *alsa_stream);