Lines Matching refs:msg
160 struct virtio_snd_msg *msg; in virtsnd_pcm_dev_set_params() local
183 msg = virtsnd_pcm_ctl_msg_alloc(vss, VIRTIO_SND_R_PCM_SET_PARAMS, in virtsnd_pcm_dev_set_params()
185 if (!msg) in virtsnd_pcm_dev_set_params()
188 request = virtsnd_ctl_msg_request(msg); in virtsnd_pcm_dev_set_params()
203 return virtsnd_ctl_msg_send_sync(vss->snd, msg); in virtsnd_pcm_dev_set_params()
274 struct virtio_snd_msg *msg; in virtsnd_pcm_prepare() local
303 msg = virtsnd_pcm_ctl_msg_alloc(vss, VIRTIO_SND_R_PCM_PREPARE, in virtsnd_pcm_prepare()
305 if (!msg) in virtsnd_pcm_prepare()
308 return virtsnd_ctl_msg_send_sync(vss->snd, msg); in virtsnd_pcm_prepare()
325 struct virtio_snd_msg *msg; in virtsnd_pcm_trigger() local
344 msg = virtsnd_pcm_ctl_msg_alloc(vss, VIRTIO_SND_R_PCM_START, in virtsnd_pcm_trigger()
346 if (!msg) { in virtsnd_pcm_trigger()
354 return virtsnd_ctl_msg_send_sync(snd, msg); in virtsnd_pcm_trigger()
366 msg = virtsnd_pcm_ctl_msg_alloc(vss, VIRTIO_SND_R_PCM_STOP, in virtsnd_pcm_trigger()
368 if (!msg) in virtsnd_pcm_trigger()
371 return virtsnd_ctl_msg_send_sync(snd, msg); in virtsnd_pcm_trigger()
391 struct virtio_snd_msg *msg; in virtsnd_pcm_sync_stop() local
400 msg = virtsnd_pcm_ctl_msg_alloc(vss, VIRTIO_SND_R_PCM_RELEASE, in virtsnd_pcm_sync_stop()
402 if (!msg) in virtsnd_pcm_sync_stop()
405 rc = virtsnd_ctl_msg_send_sync(snd, msg); in virtsnd_pcm_sync_stop()