ASoC: Intel: Skylake: Add D0i3 mode ref counting
authorVinod Koul <vinod.koul@intel.com>
Thu, 3 Nov 2016 11:37:20 +0000 (17:07 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 3 Nov 2016 17:14:42 +0000 (11:14 -0600)
commita83e3b4c4454ecdc473cf09aa1c9d1705623c4cc
tree165721daa72811beddab5dcf764e1e91b9408adc
parent6bd9dcf339ebb292fa149ee0e52ea3c9d9822553
ASoC: Intel: Skylake: Add D0i3 mode ref counting

For device opened/closed, we check the D0i3 capability for the device
and invoke skl_tplg_d0i3_get/put, which counts the use case based on the
mode supported.

These counters are then used to decide if the device can enter D0i3 mode
of streaming or non-streaming or no D0i3.

Signed-off-by: Jayachandran B <jayachandran.b@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/bxt-sst.c
sound/soc/intel/skylake/skl-pcm.c
sound/soc/intel/skylake/skl-sst-ipc.c
sound/soc/intel/skylake/skl-sst-ipc.h
sound/soc/intel/skylake/skl-topology.c
sound/soc/intel/skylake/skl-topology.h