#include "rsnd.h"
struct rsnd_cmd { … };
#define CMD_NAME …
#define rsnd_cmd_nr(priv) …
#define for_each_rsnd_cmd(pos, priv, i) …
static int rsnd_cmd_init(struct rsnd_mod *mod,
struct rsnd_dai_stream *io,
struct rsnd_priv *priv)
{ … }
static int rsnd_cmd_start(struct rsnd_mod *mod,
struct rsnd_dai_stream *io,
struct rsnd_priv *priv)
{ … }
static int rsnd_cmd_stop(struct rsnd_mod *mod,
struct rsnd_dai_stream *io,
struct rsnd_priv *priv)
{ … }
#ifdef CONFIG_DEBUG_FS
static void rsnd_cmd_debug_info(struct seq_file *m,
struct rsnd_dai_stream *io,
struct rsnd_mod *mod)
{ … }
#define DEBUG_INFO …
#else
#define DEBUG_INFO
#endif
static struct rsnd_mod_ops rsnd_cmd_ops = …;
static struct rsnd_mod *rsnd_cmd_mod_get(struct rsnd_priv *priv, int id)
{ … }
int rsnd_cmd_attach(struct rsnd_dai_stream *io, int id)
{ … }
int rsnd_cmd_probe(struct rsnd_priv *priv)
{ … }
void rsnd_cmd_remove(struct rsnd_priv *priv)
{ … }