]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2ee566aec7bafd90c05737c95688da127ab286f
tree2a96c35b59641cb3cf898333398388b0155af77e
parentf870167da8873b3ef5b4c007d220280ba41d8ba7
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