linux-stable/sound/soc/qcom/qdsp6
Arnd Bergmann 5b5089e2a1
ASoC: q6dsp: fix event handler prototype
clang-16 points out a mismatch in function types that was hidden
by a typecast:

sound/soc/qcom/qdsp6/q6apm-dai.c:355:38: error: cast from 'void (*)(uint32_t, uint32_t, uint32_t *, void *)' (aka 'void (*)(unsigned int, unsigned int, unsigned int *, void *)') to 'q6apm_cb' (aka 'void (*)(unsigned int, unsigned int, void *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  355 |         prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler, prtd, graph_id);
sound/soc/qcom/qdsp6/q6apm-dai.c:499:38: error: cast from 'void (*)(uint32_t, uint32_t, uint32_t *, void *)' (aka 'void (*)(unsigned int, unsigned int, unsigned int *, void *)') to 'q6apm_cb' (aka 'void (*)(unsigned int, unsigned int, void *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  499 |         prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler_compr, prtd, graph_id);

The only difference here is the 'payload' argument, which is not even
used in this function, so just fix its type and remove the cast.

Fixes: 88b60bf047 ("ASoC: q6dsp: q6apm-dai: Add open/free compress DAI callbacks")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://msgid.link/r/20240213101105.459402-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-02-13 13:28:43 +00:00
..
audioreach.c ASoC: qcom: audioreach: Add 4 channel support 2023-12-11 12:54:10 +00:00
audioreach.h ASoC: qcom: audioreach: drop duplicate channel defines 2023-12-11 12:54:09 +00:00
Makefile ASoC: qdsp6: audioreach: add support for q6prm-clocks 2021-10-26 13:50:12 +01:00
q6adm.c ASoC: qcom: q6dsp: Fix an off-by-one in q6adm_alloc_copp() 2022-07-21 13:38:55 +01:00
q6adm.h ASoC: qdsp6: q6adm: Add q6adm driver 2018-05-21 16:40:24 +01:00
q6afe-clocks.c ASoC: qcom: reduce number of binding headers includes 2023-10-09 13:14:19 +01:00
q6afe-dai.c ASoC: qcom: reduce number of binding headers includes 2023-10-09 13:14:19 +01:00
q6afe.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
q6afe.h ASoC: qcom: reduce number of binding headers includes 2023-10-09 13:14:19 +01:00
q6apm-dai.c ASoC: q6dsp: fix event handler prototype 2024-02-13 13:28:43 +00:00
q6apm-lpass-dais.c ASoC: qcom: q6apm-lpass-dais: pass max number of channels to Audioreach 2023-10-25 17:21:40 +01:00
q6apm.c ASoC: q6dsp: q6apm: make g_apm static 2023-07-13 16:20:25 +01:00
q6apm.h ASoC: qcom: reduce number of binding headers includes 2023-10-09 13:14:19 +01:00
q6asm-dai.c ASoC: DT matching and header cleanups 2023-10-09 23:14:18 +01:00
q6asm.c ASoC: qcom: reduce number of binding headers includes 2023-10-09 13:14:19 +01:00
q6asm.h ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
q6core.c soc: qcom: apr: make remove callback of apr driver void returned 2023-01-06 11:50:13 -06:00
q6core.h
q6dsp-common.c ASoC: qcom: q6dsp-common: move channel allocation to common 2023-05-11 10:19:03 +09:00
q6dsp-common.h ASoC: qcom: q6dsp-common: move channel allocation to common 2023-05-11 10:19:03 +09:00
q6dsp-errno.h
q6dsp-lpass-clocks.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00
q6dsp-lpass-clocks.h ASoC: qdsp6: q6afe-clocks: move audio-clocks to common file 2021-10-26 13:49:59 +01:00
q6dsp-lpass-ports.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
q6dsp-lpass-ports.h ASoC: qdsp6: q6afe-dai: move lpass audio ports to common file 2021-10-26 13:49:58 +01:00
q6prm-clocks.c ASoC: qcom: reduce number of binding headers includes 2023-10-09 13:14:19 +01:00
q6prm.c ASoC: qcom: q6prm: fix incorrect clk_root passed to ADSP 2023-03-05 23:36:37 +00:00
q6prm.h ASoC: qcom: qdsp6: q6prm: add new clocks 2022-08-17 13:00:28 +01:00
q6routing.c ASoC: DT matching and header cleanups 2023-10-09 23:14:18 +01:00
q6routing.h ASoC: qdsp6: q6routing: Add q6routing driver 2018-05-21 16:41:48 +01:00
topology.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00