tree:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git asoc-5.14
head: 03effde3a2ea1d82c4dd6b634fc6174545d2c34f
commit: aa736700f42fa0813e286ca2f9274ffaa25163b9 [42/51] ASoC: imx-card: Add imx-card
machine driver
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git/commit/?...
git remote add broonie-misc
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
git fetch --no-tags broonie-misc asoc-5.14
git checkout aa736700f42fa0813e286ca2f9274ffaa25163b9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> sound/soc/fsl/imx-card.c:121:27: sparse: sparse: symbol
'ak4458_fs_mul' was not declared. Should it be static?
> sound/soc/fsl/imx-card.c:138:31: sparse: sparse: symbol 'ak4458_tdm_fs_mul'
was not declared. Should it be static?
> sound/soc/fsl/imx-card.c:149:27: sparse: sparse: symbol 'ak4497_fs_mul' was
not declared. Should it be static?
> sound/soc/fsl/imx-card.c:166:27: sparse: sparse: symbol 'ak5558_fs_mul' was
not declared. Should it be static?
> sound/soc/fsl/imx-card.c:180:31: sparse: sparse: symbol 'ak5558_tdm_fs_mul'
was not declared. Should it be static?
> sound/soc/fsl/imx-card.c:631:59: sparse: sparse: incorrect type in assignment
(different base types) @@ expected unsigned int [usertype] asrc_format @@ got
restricted snd_pcm_format_t [usertype] @@
sound/soc/fsl/imx-card.c:631:59:
sparse: expected unsigned int [usertype] asrc_format
sound/soc/fsl/imx-card.c:631:59: sparse: got restricted snd_pcm_format_t
[usertype]
sound/soc/fsl/imx-card.c:633:59: sparse: sparse: incorrect type in assignment
(different base types) @@ expected unsigned int [usertype] asrc_format @@ got
restricted snd_pcm_format_t [usertype] @@
sound/soc/fsl/imx-card.c:633:59: sparse: expected unsigned int [usertype]
asrc_format
sound/soc/fsl/imx-card.c:633:59: sparse: got restricted snd_pcm_format_t
[usertype]
vim +/ak4458_fs_mul +121 sound/soc/fsl/imx-card.c
120
121 struct imx_akcodec_fs_mul ak4458_fs_mul[] = {
122 /*
Normal, < 32kHz */
123 { .rmin = 8000, .rmax = 24000, .wmin = 1024, .wmax = 1024, },
124 /* Normal, 32kHz */
125 { .rmin = 32000, .rmax = 32000, .wmin = 256, .wmax = 1024, },
126 /* Normal */
127 { .rmin = 44100, .rmax = 48000, .wmin = 256, .wmax = 768, },
128 /* Double */
129 { .rmin = 88200, .rmax = 96000, .wmin = 256, .wmax = 512, },
130 /* Quad */
131 { .rmin = 176400, .rmax = 192000, .wmin = 128, .wmax = 256, },
132 /* Oct */
133 { .rmin = 352800, .rmax = 384000, .wmin = 32, .wmax = 128, },
134 /* Hex */
135 { .rmin = 705600, .rmax = 768000, .wmin = 16, .wmax = 64, },
136 };
137
138 struct imx_akcodec_tdm_fs_mul ak4458_tdm_fs_mul[] = {
139 /*
140 * Table 13 - Audio Interface Format
141 * For TDM mode, MCLK should is set to
142 * obtained from 2 * slots * slot_width
143 */
144 { .min = 128, .max = 128, .mul = 256 }, /* TDM128 */
145 { .min = 256, .max = 256, .mul = 512 }, /* TDM256 */
146 { .min = 512, .max = 512, .mul = 1024 }, /* TDM512 */
147 };
148
149 struct imx_akcodec_fs_mul ak4497_fs_mul[] = {
150 /**
151 * Table 7 - mapping multiplier and speed mode
152 * Tables 8 & 9 - mapping speed mode and LRCK fs
153 */
154 { .rmin = 8000, .rmax = 32000, .wmin = 1024, .wmax = 1024, }, /* Normal, <=
32kHz */
155 { .rmin = 44100, .rmax = 48000, .wmin = 512, .wmax = 512, }, /* Normal */
156 { .rmin = 88200, .rmax = 96000, .wmin = 256, .wmax = 256, }, /* Double */
157 { .rmin = 176400, .rmax = 192000, .wmin = 128, .wmax = 128, }, /* Quad */
158 { .rmin = 352800, .rmax = 384000, .wmin = 128, .wmax = 128, }, /* Oct */
159 { .rmin = 705600, .rmax = 768000, .wmin = 64, .wmax = 64, }, /* Hex */
160 };
161
162 /*
163 * Auto MCLK selection based on LRCK for Normal Mode
164 * (Table 4 from datasheet)
165 */
166 struct imx_akcodec_fs_mul ak5558_fs_mul[] = {
167 {
.rmin = 8000, .rmax = 32000, .wmin = 1024, .wmax = 1024, },
168 { .rmin = 44100, .rmax = 48000, .wmin = 512, .wmax = 512, },
169 { .rmin = 88200, .rmax = 96000, .wmin = 256, .wmax = 256, },
170 { .rmin = 176400, .rmax = 192000, .wmin = 128, .wmax = 128, },
171 { .rmin = 352800, .rmax = 384000, .wmin = 64, .wmax = 64, },
172 { .rmin = 705600, .rmax = 768000, .wmin = 32, .wmax = 32, },
173 };
174
175 /*
176 * MCLK and BCLK selection based on TDM mode
177 * because of SAI we also add the restriction: MCLK >= 2 * BCLK
178 * (Table 9 from datasheet)
179 */
180 struct imx_akcodec_tdm_fs_mul ak5558_tdm_fs_mul[] = {
181 { .min = 128, .max = 128, .mul = 256 },
182 { .min = 256, .max = 256, .mul = 512 },
183 { .min = 512, .max = 512, .mul = 1024 },
184 };
185
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org