diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2020-09-29 17:12:36 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-02 17:32:29 +0300 |
commit | 64b9b1b005743a7bb4443442347024fca56433ee (patch) | |
tree | efd179c431d999919c58ab939e6584b18fd12bf7 /sound/soc/intel/catpt/ipc.c | |
parent | 92946c1d7ea8c5e19a4d7b4bd8896f04dc09c655 (diff) | |
download | linux-64b9b1b005743a7bb4443442347024fca56433ee.tar.xz |
ASoC: Intel: catpt: Add IPC message handlers
Declare global and stream IPC message handlers for all known message
types.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200929141247.8058-4-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/catpt/ipc.c')
-rw-r--r-- | sound/soc/intel/catpt/ipc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/intel/catpt/ipc.c b/sound/soc/intel/catpt/ipc.c index 060fa8d97e50..060c1ca6e080 100644 --- a/sound/soc/intel/catpt/ipc.c +++ b/sound/soc/intel/catpt/ipc.c @@ -168,6 +168,10 @@ static void catpt_dsp_process_response(struct catpt_dev *cdev, u32 header) switch (msg.global_msg_type) { case CATPT_GLB_REQUEST_CORE_DUMP: + dev_err(cdev->dev, "ADSP device coredump received\n"); + ipc->ready = false; + catpt_coredump(cdev); + /* TODO: attempt recovery */ break; case CATPT_GLB_STREAM_MESSAGE: |