diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2022-10-27 14:46:56 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-10-28 14:04:33 +0200 |
commit | efffb014478e76c35b1a9e279d7010f70ff517e2 (patch) | |
tree | 773a4ca8a86e594191a3d4b40e1a79745b08d747 /include/sound/hdaudio.h | |
parent | ASoC: Intel: avs: Introduce PCM power management routines (diff) | |
download | linux-efffb014478e76c35b1a9e279d7010f70ff517e2.tar.xz linux-efffb014478e76c35b1a9e279d7010f70ff517e2.zip |
ALSA: hda: Introduce snd_hdac_stream_wait_drsm()
Allow for waiting for DRSM bit for specified stream to be cleared from
HDAudio library level. Drivers may utilize this optional step during the
stream resume procedure.
Suggested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20221027124702.1761002-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/hdaudio.h')
-rw-r--r-- | include/sound/hdaudio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 78f1809a4ad6..a6872537724d 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -597,6 +597,7 @@ int snd_hdac_stream_get_spbmaxfifo(struct hdac_bus *bus, struct hdac_stream *azx_dev); void snd_hdac_stream_drsm_enable(struct hdac_bus *bus, bool enable, int index); +int snd_hdac_stream_wait_drsm(struct hdac_stream *azx_dev); int snd_hdac_stream_set_dpibr(struct hdac_bus *bus, struct hdac_stream *azx_dev, u32 value); int snd_hdac_stream_set_lpib(struct hdac_stream *azx_dev, u32 value); |