diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-06-17 07:50:16 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-06-17 12:29:26 +0200 |
commit | e7a3484dc5b15aa69e44a8b29d9a6e512fa3f922 (patch) | |
tree | a1d3532971c04d3e84513cd19ee6df67a25ab31a /include/sound/hdaudio_ext.h | |
parent | ALSA: HDAC: move SND_HDA_PREALLOC_SIZE to core (diff) | |
download | linux-e7a3484dc5b15aa69e44a8b29d9a6e512fa3f922.tar.xz linux-e7a3484dc5b15aa69e44a8b29d9a6e512fa3f922.zip |
ALSA: hda: add hdac_ext stream creation and cleanup routines
HDAC extended core should create streams for an extended bus and also free
up those on cleanup. So introduce snd_hdac_ext_stream_init_all and
snd_hdac_stream_free_all routines
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/hdaudio_ext.h')
-rw-r--r-- | include/sound/hdaudio_ext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/hdaudio_ext.h b/include/sound/hdaudio_ext.h index 202350a8eddb..877661629322 100644 --- a/include/sound/hdaudio_ext.h +++ b/include/sound/hdaudio_ext.h @@ -87,6 +87,9 @@ struct hdac_ext_stream { void snd_hdac_ext_stream_init(struct hdac_ext_bus *bus, struct hdac_ext_stream *stream, int idx, int direction, int tag); +int snd_hdac_ext_stream_init_all(struct hdac_ext_bus *ebus, int start_idx, + int num_stream, int dir); +void snd_hdac_stream_free_all(struct hdac_ext_bus *ebus); struct hdac_ext_stream *snd_hdac_ext_stream_assign(struct hdac_ext_bus *bus, struct snd_pcm_substream *substream, int type); |