ALSA: hdac: Add support for hda DMA Resume capability
authorJeeja KP <jeeja.kp@intel.com>
Fri, 18 Dec 2015 09:41:59 +0000 (15:11 +0530)
committerMark Brown <broonie@kernel.org>
Sun, 10 Jan 2016 12:02:30 +0000 (12:02 +0000)
commita9c48f7f5906d02d4ec4aa50b1c20fccbce53eec
tree845f455a73f44b45c1f6d075ce73ab76b0363677
parent1e83b0475a6833a2cb88beeb79f095b0cf4b40db
ALSA: hdac: Add support for hda DMA Resume capability

Skylake sports new capability of DMA resume, DRSM where we can
resume the DMA. This capability is defined by presence of
AZX_DRSM_CAP_ID.

If this capability is present, we use this capability.
So we add:

snd_hdac_ext_stream_drsm_enable() - DMA resume caps
snd_hdac_ext_stream_set_dpibr() - set the DMA position
snd_hdac_ext_stream_set_lpib() - set the lpib

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/hda_register.h
include/sound/hdaudio_ext.h
sound/hda/ext/hdac_ext_controller.c
sound/hda/ext/hdac_ext_stream.c