diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2018-05-14 08:27:38 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-05-16 12:58:39 +0200 |
commit | fd3b36045c2c612b5f44a47f388677af256d1d0a (patch) | |
tree | 225cf95c572f3799842b1b317471652c3547c4fe /sound/xen/xen_snd_front.c | |
parent | ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver (diff) | |
download | linux-fd3b36045c2c612b5f44a47f388677af256d1d0a.tar.xz linux-fd3b36045c2c612b5f44a47f388677af256d1d0a.zip |
ALSA: xen-front: Read sound driver configuration from Xen store
Read configuration values from Xen store according
to xen/interface/io/sndif.h protocol:
- introduce configuration structures for different
components, e.g. sound card, device, stream
- read PCM HW parameters, e.g rate, format etc.
- detect stream type (capture/playback)
- read device and card parameters
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/xen/xen_snd_front.c')
-rw-r--r-- | sound/xen/xen_snd_front.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/xen/xen_snd_front.c b/sound/xen/xen_snd_front.c index bbbe2767b565..70fa91683c71 100644 --- a/sound/xen/xen_snd_front.c +++ b/sound/xen/xen_snd_front.c @@ -25,6 +25,13 @@ static void xen_snd_drv_fini(struct xen_snd_front_info *front_info) static int sndback_initwait(struct xen_snd_front_info *front_info) { + int num_streams; + int ret; + + ret = xen_snd_front_cfg_card(front_info, &num_streams); + if (ret < 0) + return ret; + return 0; } |