ALSA: hdac: add link pm and ref counting
authorVinod Koul <vinod.koul@intel.com>
Thu, 12 May 2016 03:28:53 +0000 (08:58 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 13 May 2016 10:43:00 +0000 (11:43 +0100)
commit4446085d21e75dd6c0c45577f12db0bd7c7bf35f
tree2a96c35b59641cb3cf898333398388b0155af77e
parentbfb7802a06ac1855096a3f248822e8f943e6574d
ALSA: hdac: add link pm and ref counting

The HDA links can be switched off when not is use, similarly
command DMA can be stopped as well. This calls for a reference
counting mechanism on the link by it's users to manage the link
power. The DMA can be turned off when all links are off

For this we add two APIs
snd_hdac_ext_bus_link_get
snd_hdac_ext_bus_link_put

They help users to turn up/down link and manage the DMA as well

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