1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
4 * Xen para-virtual sound device
6 * Copyright (C) 2016-2018 EPAM Systems Inc.
8 * Author: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
11 #ifndef __XEN_SND_FRONT_CFG_H
12 #define __XEN_SND_FRONT_CFG_H
14 #include <sound/core.h>
15 #include <sound/pcm.h>
17 struct xen_snd_front_info
;
19 struct xen_front_cfg_stream
{
22 struct snd_pcm_hardware pcm_hw
;
25 struct xen_front_cfg_pcm_instance
{
28 struct snd_pcm_hardware pcm_hw
;
30 struct xen_front_cfg_stream
*streams_pb
;
32 struct xen_front_cfg_stream
*streams_cap
;
35 struct xen_front_cfg_card
{
38 struct snd_pcm_hardware pcm_hw
;
39 int num_pcm_instances
;
40 struct xen_front_cfg_pcm_instance
*pcm_instances
;
43 int xen_snd_front_cfg_card(struct xen_snd_front_info
*front_info
,
46 #endif /* __XEN_SND_FRONT_CFG_H */