ALSA: xen-front: Implement Xen event channel handling

Handle Xen event channels:
  - create for all configured streams and publish
    corresponding ring references and event channels in Xen store,
    so backend can connect
  - implement event channels interrupt handlers
  - create and destroy event channels with respect to Xen bus state

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Oleksandr Andrushchenko
2018-05-14 09:27:39 +03:00
committed by Takashi Iwai
parent fd3b36045c
commit 788ef64a2c
5 changed files with 604 additions and 2 deletions

View File

@@ -13,9 +13,14 @@
#include "xen_snd_front_cfg.h"
struct xen_snd_front_evtchnl_pair;
struct xen_snd_front_info {
struct xenbus_device *xb_dev;
int num_evt_pairs;
struct xen_snd_front_evtchnl_pair *evt_pairs;
struct xen_front_cfg_card cfg;
};