* sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c:807 mt8195_dai_link_fixup() error: uninitialized symbol 'runtime'.
@ 2022-01-25 3:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-25 3:48 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4400 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Trevor Wu <trevor.wu@mediatek.com>
CC: Mark Brown <broonie@kernel.org>
CC: YC Hung <yc.hung@mediatek.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0
commit: 3d00d2c07f04f47aa4228700b440ac47abf13853 ASoC: mediatek: mt8195: add sof support on mt8195-mt6359-rt1019-rt5682
date: 7 weeks ago
:::::: branch date: 2 days ago
:::::: commit date: 7 weeks ago
config: csky-randconfig-m031-20220125 (https://download.01.org/0day-ci/archive/20220125/202201251130.VWnp9gOh-lkp(a)intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c:807 mt8195_dai_link_fixup() error: uninitialized symbol 'runtime'.
Old smatch warnings:
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c:831 mt8195_mt6359_rt1019_rt5682_card_late_probe() error: uninitialized symbol 'sof_comp'.
vim +/runtime +807 sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c
3d00d2c07f04f4 Trevor Wu 2021-11-29 769
3d00d2c07f04f4 Trevor Wu 2021-11-29 770 /* fixup the BE DAI link to match any values from topology */
3d00d2c07f04f4 Trevor Wu 2021-11-29 771 static int mt8195_dai_link_fixup(struct snd_soc_pcm_runtime *rtd,
3d00d2c07f04f4 Trevor Wu 2021-11-29 772 struct snd_pcm_hw_params *params)
3d00d2c07f04f4 Trevor Wu 2021-11-29 773 {
3d00d2c07f04f4 Trevor Wu 2021-11-29 774 struct snd_soc_card *card = rtd->card;
3d00d2c07f04f4 Trevor Wu 2021-11-29 775 struct snd_soc_dai_link *sof_dai_link = NULL;
3d00d2c07f04f4 Trevor Wu 2021-11-29 776 struct snd_soc_pcm_runtime *runtime;
3d00d2c07f04f4 Trevor Wu 2021-11-29 777 struct snd_soc_dai *cpu_dai;
3d00d2c07f04f4 Trevor Wu 2021-11-29 778 int i, j, ret = 0;
3d00d2c07f04f4 Trevor Wu 2021-11-29 779
3d00d2c07f04f4 Trevor Wu 2021-11-29 780 for (i = 0; i < ARRAY_SIZE(g_sof_conn_streams); i++) {
3d00d2c07f04f4 Trevor Wu 2021-11-29 781 const struct sof_conn_stream *conn = &g_sof_conn_streams[i];
3d00d2c07f04f4 Trevor Wu 2021-11-29 782
3d00d2c07f04f4 Trevor Wu 2021-11-29 783 if (strcmp(rtd->dai_link->name, conn->normal_link))
3d00d2c07f04f4 Trevor Wu 2021-11-29 784 continue;
3d00d2c07f04f4 Trevor Wu 2021-11-29 785
3d00d2c07f04f4 Trevor Wu 2021-11-29 786 for_each_card_rtds(card, runtime) {
3d00d2c07f04f4 Trevor Wu 2021-11-29 787 if (strcmp(runtime->dai_link->name, conn->sof_link))
3d00d2c07f04f4 Trevor Wu 2021-11-29 788 continue;
3d00d2c07f04f4 Trevor Wu 2021-11-29 789
3d00d2c07f04f4 Trevor Wu 2021-11-29 790 for_each_rtd_cpu_dais(runtime, j, cpu_dai) {
3d00d2c07f04f4 Trevor Wu 2021-11-29 791 if (cpu_dai->stream_active[conn->stream_dir] > 0) {
3d00d2c07f04f4 Trevor Wu 2021-11-29 792 sof_dai_link = runtime->dai_link;
3d00d2c07f04f4 Trevor Wu 2021-11-29 793 break;
3d00d2c07f04f4 Trevor Wu 2021-11-29 794 }
3d00d2c07f04f4 Trevor Wu 2021-11-29 795 }
3d00d2c07f04f4 Trevor Wu 2021-11-29 796 break;
3d00d2c07f04f4 Trevor Wu 2021-11-29 797 }
3d00d2c07f04f4 Trevor Wu 2021-11-29 798
3d00d2c07f04f4 Trevor Wu 2021-11-29 799 if (sof_dai_link && sof_dai_link->be_hw_params_fixup)
3d00d2c07f04f4 Trevor Wu 2021-11-29 800 ret = sof_dai_link->be_hw_params_fixup(runtime, params);
3d00d2c07f04f4 Trevor Wu 2021-11-29 801
3d00d2c07f04f4 Trevor Wu 2021-11-29 802 break;
3d00d2c07f04f4 Trevor Wu 2021-11-29 803 }
3d00d2c07f04f4 Trevor Wu 2021-11-29 804
3d00d2c07f04f4 Trevor Wu 2021-11-29 805 if (!strcmp(rtd->dai_link->name, "ETDM2_IN_BE") ||
3d00d2c07f04f4 Trevor Wu 2021-11-29 806 !strcmp(rtd->dai_link->name, "ETDM1_OUT_BE")) {
3d00d2c07f04f4 Trevor Wu 2021-11-29 @807 mt8195_etdm_hw_params_fixup(runtime, params);
3d00d2c07f04f4 Trevor Wu 2021-11-29 808 }
3d00d2c07f04f4 Trevor Wu 2021-11-29 809
3d00d2c07f04f4 Trevor Wu 2021-11-29 810 return ret;
3d00d2c07f04f4 Trevor Wu 2021-11-29 811 }
3d00d2c07f04f4 Trevor Wu 2021-11-29 812
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-25 3:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 3:48 sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c:807 mt8195_dai_link_fixup() error: uninitialized symbol 'runtime' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.