]> 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)
commit073cc7adf062e9c7a8b76e474fb505f93dc9530f
tree2a96c35b59641cb3cf898333398388b0155af77e
parent8885e4962584d243955c6115d336e69629ac0c87
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