Lines Matching refs:stream_id

130                                                        uint32_t stream_id)  in virtio_snd_pcm_get_stream()  argument
132 return stream_id >= s->snd_conf.streams ? NULL : in virtio_snd_pcm_get_stream()
133 s->pcm->streams[stream_id]; in virtio_snd_pcm_get_stream()
143 uint32_t stream_id) in virtio_snd_pcm_get_params() argument
145 return stream_id >= s->snd_conf.streams ? NULL in virtio_snd_pcm_get_params()
146 : &s->pcm->pcm_params[stream_id]; in virtio_snd_pcm_get_params()
159 uint32_t stream_id, start_id, count, size; in virtio_snd_handle_pcm_info() local
199 stream_id = i + start_id; in virtio_snd_handle_pcm_info()
200 trace_virtio_snd_handle_pcm_info(stream_id); in virtio_snd_handle_pcm_info()
201 stream = virtio_snd_pcm_get_stream(s, stream_id); in virtio_snd_handle_pcm_info()
203 error_report("Invalid stream id: %"PRIu32, stream_id); in virtio_snd_handle_pcm_info()
241 uint32_t stream_id, in virtio_snd_set_pcm_params() argument
246 if (stream_id >= s->snd_conf.streams || s->pcm->pcm_params == NULL) { in virtio_snd_set_pcm_params()
254 st_params = virtio_snd_pcm_get_params(s, stream_id); in virtio_snd_set_pcm_params()
292 uint32_t stream_id; in virtio_snd_handle_pcm_set_params() local
309 stream_id = le32_to_cpu(req.hdr.stream_id); in virtio_snd_handle_pcm_set_params()
310 trace_virtio_snd_handle_pcm_set_params(stream_id); in virtio_snd_handle_pcm_set_params()
311 cmd->resp.code = virtio_snd_set_pcm_params(s, stream_id, &req); in virtio_snd_handle_pcm_set_params()
410 static uint32_t virtio_snd_pcm_prepare(VirtIOSound *s, uint32_t stream_id) in virtio_snd_pcm_prepare() argument
418 stream_id >= s->snd_conf.streams) { in virtio_snd_pcm_prepare()
422 params = virtio_snd_pcm_get_params(s, stream_id); in virtio_snd_pcm_prepare()
427 stream = virtio_snd_pcm_get_stream(s, stream_id); in virtio_snd_pcm_prepare()
431 stream->id = stream_id; in virtio_snd_pcm_prepare()
441 s->pcm->streams[stream_id] = stream; in virtio_snd_pcm_prepare()
445 stream->info.direction = stream_id < s->snd_conf.streams / 2 + in virtio_snd_pcm_prepare()
512 uint32_t stream_id; in virtio_snd_handle_pcm_prepare() local
516 &stream_id, in virtio_snd_handle_pcm_prepare()
517 sizeof(stream_id)); in virtio_snd_handle_pcm_prepare()
519 stream_id = le32_to_cpu(stream_id); in virtio_snd_handle_pcm_prepare()
520 cmd->resp.code = msg_sz == sizeof(stream_id) in virtio_snd_handle_pcm_prepare()
521 ? virtio_snd_pcm_prepare(s, stream_id) in virtio_snd_handle_pcm_prepare()
538 uint32_t stream_id; in virtio_snd_handle_pcm_start_stop() local
553 stream_id = le32_to_cpu(req.stream_id); in virtio_snd_handle_pcm_start_stop()
556 "VIRTIO_SND_R_PCM_STOP", stream_id); in virtio_snd_handle_pcm_start_stop()
558 stream = virtio_snd_pcm_get_stream(s, stream_id); in virtio_snd_handle_pcm_start_stop()
569 error_report("Invalid stream id: %"PRIu32, stream_id); in virtio_snd_handle_pcm_start_stop()
603 uint32_t stream_id; in virtio_snd_handle_pcm_release() local
608 &stream_id, in virtio_snd_handle_pcm_release()
609 sizeof(stream_id)); in virtio_snd_handle_pcm_release()
611 if (msg_sz != sizeof(stream_id)) { in virtio_snd_handle_pcm_release()
617 %zu\n", __func__, msg_sz, sizeof(stream_id)); in virtio_snd_handle_pcm_release()
622 stream_id = le32_to_cpu(stream_id); in virtio_snd_handle_pcm_release()
623 trace_virtio_snd_handle_pcm_release(stream_id); in virtio_snd_handle_pcm_release()
624 stream = virtio_snd_pcm_get_stream(s, stream_id); in virtio_snd_handle_pcm_release()
629 error_report("already released stream %"PRIu32, stream_id); in virtio_snd_handle_pcm_release()
632 stream_id); in virtio_snd_handle_pcm_release()
647 trace_virtio_snd_pcm_stream_flush(stream_id); in virtio_snd_handle_pcm_release()
853 uint32_t stream_id; in virtio_snd_handle_tx_xfer() local
881 stream_id = le32_to_cpu(hdr.stream_id); in virtio_snd_handle_tx_xfer()
883 if (stream_id >= vsnd->snd_conf.streams in virtio_snd_handle_tx_xfer()
884 || vsnd->pcm->streams[stream_id] == NULL) { in virtio_snd_handle_tx_xfer()
888 stream = vsnd->pcm->streams[stream_id]; in virtio_snd_handle_tx_xfer()
934 uint32_t stream_id; in virtio_snd_handle_rx_xfer() local
962 stream_id = le32_to_cpu(hdr.stream_id); in virtio_snd_handle_rx_xfer()
964 if (stream_id >= vsnd->snd_conf.streams in virtio_snd_handle_rx_xfer()
965 || !vsnd->pcm->streams[stream_id]) { in virtio_snd_handle_rx_xfer()
969 stream = vsnd->pcm->streams[stream_id]; in virtio_snd_handle_rx_xfer()