|
@@ -27,6 +27,14 @@ struct rsnd_dma_ctrl {
|
|
|
int dmapp_num;
|
|
int dmapp_num;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+struct rsnd_dma_ops {
|
|
|
|
|
+ void (*start)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
|
|
|
|
|
+ void (*stop)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
|
|
|
|
|
+ int (*init)(struct rsnd_dai_stream *io, struct rsnd_dma *dma, int id,
|
|
|
|
|
+ struct rsnd_mod *mod_from, struct rsnd_mod *mod_to);
|
|
|
|
|
+ void (*quit)(struct rsnd_dai_stream *io, struct rsnd_dma *dma);
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
#define rsnd_priv_to_dmac(p) ((struct rsnd_dma_ctrl *)(p)->dma)
|
|
#define rsnd_priv_to_dmac(p) ((struct rsnd_dma_ctrl *)(p)->dma)
|
|
|
|
|
|
|
|
/*
|
|
/*
|