aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorJeeja KP <jeeja.kp@intel.com>2015-08-23 02:22:51 -0400
committerTakashi Iwai <tiwai@suse.de>2015-08-23 03:43:27 -0400
commit4308c9b083fbab1a442e68a03de099841791df27 (patch)
tree664c2721d627828f15465b4092c39314aef6d237 /include/sound
parent54d1d2f5f0886f7c31512c83a6ed87bbcd0d2b3a (diff)
ALSA: hdac: Add snd_hdac_get_hdac_stream()
Add a helper to find the stream using stream tag and direction. This is useful for drivers to query stream based on stream tag and direction, fox example while downloading FW thru DSP loader code 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')
-rw-r--r--include/sound/hdaudio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h
index 23a44c39c51c..49bc836fcd84 100644
--- a/include/sound/hdaudio.h
+++ b/include/sound/hdaudio.h
@@ -438,6 +438,8 @@ void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev,
438struct hdac_stream *snd_hdac_stream_assign(struct hdac_bus *bus, 438struct hdac_stream *snd_hdac_stream_assign(struct hdac_bus *bus,
439 struct snd_pcm_substream *substream); 439 struct snd_pcm_substream *substream);
440void snd_hdac_stream_release(struct hdac_stream *azx_dev); 440void snd_hdac_stream_release(struct hdac_stream *azx_dev);
441struct hdac_stream *snd_hdac_get_stream(struct hdac_bus *bus,
442 int dir, int stream_tag);
441 443
442int snd_hdac_stream_setup(struct hdac_stream *azx_dev); 444int snd_hdac_stream_setup(struct hdac_stream *azx_dev);
443void snd_hdac_stream_cleanup(struct hdac_stream *azx_dev); 445void snd_hdac_stream_cleanup(struct hdac_stream *azx_dev);