summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/common/sst-ipc.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-09-26 11:05:28 +0530
committerMark Brown <broonie@kernel.org>2016-10-28 19:05:48 +0100
commitf999d1fd69ede11012a872cbdba33bd9c9c2e386 (patch)
tree30e85621453dab0d6b6242db70d040efb6353ad1 /sound/soc/intel/common/sst-ipc.h
parent6a7f5e41128de638fae7522262d18a6ef9cf1096 (diff)
downloadlinux-stable-f999d1fd69ede11012a872cbdba33bd9c9c2e386.tar.gz
linux-stable-f999d1fd69ede11012a872cbdba33bd9c9c2e386.tar.bz2
linux-stable-f999d1fd69ede11012a872cbdba33bd9c9c2e386.zip
ASoC: Intel: Add check_dsp_lp_on callback on IPC
Some controllers support power modes which can't communicate using IPC. So add a callback to check and wake DSP before sending IPC and then put to sleep if it is in these power modes. 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>
Diffstat (limited to 'sound/soc/intel/common/sst-ipc.h')
-rw-r--r--sound/soc/intel/common/sst-ipc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/intel/common/sst-ipc.h b/sound/soc/intel/common/sst-ipc.h
index ceb7e468a3fa..46871a5dff1d 100644
--- a/sound/soc/intel/common/sst-ipc.h
+++ b/sound/soc/intel/common/sst-ipc.h
@@ -52,6 +52,7 @@ struct sst_plat_ipc_ops {
void (*tx_data_copy)(struct ipc_message *, char *, size_t);
u64 (*reply_msg_match)(u64 header, u64 *mask);
bool (*is_dsp_busy)(struct sst_dsp *dsp);
+ int (*check_dsp_lp_on)(struct sst_dsp *dsp, bool state);
};
/* SST generic IPC data */