Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: mediatek: fix coverity problems

Merge series from Trevor Wu <trevor.wu@mediatek.com>:

Coverity reports some UNINIT and CERT STR31-C problems, so we add
initialization and dai id check to resolve problems.

+188 -38
+1 -1
sound/soc/codecs/mt6358.c
··· 429 429 struct mt6358_priv *priv = snd_soc_component_get_drvdata(component); 430 430 struct soc_mixer_control *mc = 431 431 (struct soc_mixer_control *)kcontrol->private_value; 432 - unsigned int reg; 432 + unsigned int reg = 0; 433 433 int ret; 434 434 435 435 ret = snd_soc_put_volsw(kcontrol, ucontrol);
+1 -1
sound/soc/codecs/mt6359.c
··· 358 358 struct mt6359_priv *priv = snd_soc_component_get_drvdata(component); 359 359 struct soc_mixer_control *mc = 360 360 (struct soc_mixer_control *)kcontrol->private_value; 361 - unsigned int reg; 361 + unsigned int reg = 0; 362 362 int index = ucontrol->value.integer.value[0]; 363 363 int ret; 364 364
+11 -6
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
··· 704 704 { 705 705 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 706 706 struct mt8195_afe_private *afe_priv = afe->platform_priv; 707 - struct mtk_dai_adda_priv *adda_priv = afe_priv->dai_priv[dai->id]; 707 + struct mtk_dai_adda_priv *adda_priv; 708 708 unsigned int rate = params_rate(params); 709 - int id = dai->id; 710 - int ret = 0; 709 + int ret; 710 + 711 + if (dai->id != MT8195_AFE_IO_DL_SRC && 712 + dai->id != MT8195_AFE_IO_UL_SRC1 && 713 + dai->id != MT8195_AFE_IO_UL_SRC2) 714 + return -EINVAL; 715 + adda_priv = afe_priv->dai_priv[dai->id]; 711 716 712 717 dev_dbg(afe->dev, "%s(), id %d, stream %d, rate %d\n", 713 - __func__, id, substream->stream, rate); 718 + __func__, dai->id, substream->stream, rate); 714 719 715 720 if (rate > ADDA_HIRES_THRES) 716 721 adda_priv->hires_required = 1; ··· 723 718 adda_priv->hires_required = 0; 724 719 725 720 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) 726 - ret = mtk_dai_da_configure(afe, rate, id); 721 + ret = mtk_dai_da_configure(afe, rate, dai->id); 727 722 else 728 - ret = mtk_dai_ad_configure(afe, rate, id); 723 + ret = mtk_dai_ad_configure(afe, rate, dai->id); 729 724 730 725 return ret; 731 726 }
+154 -23
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
··· 137 137 { .rate = 352800, .reg_value = 21, }, 138 138 }; 139 139 140 + static bool mt8195_afe_etdm_is_valid(int id) 141 + { 142 + switch (id) { 143 + case MT8195_AFE_IO_ETDM1_IN: 144 + fallthrough; 145 + case MT8195_AFE_IO_ETDM2_IN: 146 + fallthrough; 147 + case MT8195_AFE_IO_ETDM1_OUT: 148 + fallthrough; 149 + case MT8195_AFE_IO_ETDM2_OUT: 150 + fallthrough; 151 + case MT8195_AFE_IO_DPTX: 152 + fallthrough; 153 + case MT8195_AFE_IO_ETDM3_OUT: 154 + return true; 155 + default: 156 + return false; 157 + } 158 + } 159 + 160 + static bool mt8195_afe_hdmitx_dptx_is_valid(int id) 161 + { 162 + switch (id) { 163 + case MT8195_AFE_IO_DPTX: 164 + fallthrough; 165 + case MT8195_AFE_IO_ETDM3_OUT: 166 + return true; 167 + default: 168 + return false; 169 + } 170 + } 171 + 140 172 static int get_etdm_fs_timing(unsigned int rate) 141 173 { 142 174 int i; ··· 268 236 { 269 237 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 270 238 struct mt8195_afe_private *afe_priv = afe->platform_priv; 271 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; 239 + struct mtk_dai_etdm_priv *etdm_data; 272 240 241 + if (!mt8195_afe_etdm_is_valid(dai->id)) 242 + return -EINVAL; 243 + 244 + etdm_data = afe_priv->dai_priv[dai->id]; 273 245 return (etdm_data->cowork_slv_count > 0 || 274 246 etdm_data->cowork_source_id != COWORK_ETDM_NONE); 275 247 } ··· 300 264 { 301 265 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 302 266 struct mt8195_afe_private *afe_priv = afe->platform_priv; 303 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; 304 - int dai_id = etdm_data->cowork_source_id; 267 + struct mtk_dai_etdm_priv *etdm_data; 268 + int dai_id; 269 + 270 + if (!mt8195_afe_etdm_is_valid(dai->id)) 271 + return -EINVAL; 272 + 273 + etdm_data = afe_priv->dai_priv[dai->id]; 274 + dai_id = etdm_data->cowork_source_id; 305 275 306 276 if (dai_id == COWORK_ETDM_NONE) 307 277 dai_id = dai->id; ··· 1318 1276 int ret = 0; 1319 1277 struct etdm_con_reg etdm_reg; 1320 1278 struct mt8195_afe_private *afe_priv = afe->platform_priv; 1321 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 1279 + struct mtk_dai_etdm_priv *etdm_data; 1322 1280 unsigned long flags; 1323 1281 1282 + if (!mt8195_afe_etdm_is_valid(dai_id)) 1283 + return -EINVAL; 1284 + 1285 + etdm_data = afe_priv->dai_priv[dai_id]; 1324 1286 spin_lock_irqsave(&afe_priv->afe_ctrl_lock, flags); 1325 1287 etdm_data->en_ref_cnt++; 1326 1288 if (etdm_data->en_ref_cnt == 1) { ··· 1345 1299 int ret = 0; 1346 1300 struct etdm_con_reg etdm_reg; 1347 1301 struct mt8195_afe_private *afe_priv = afe->platform_priv; 1348 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 1302 + struct mtk_dai_etdm_priv *etdm_data; 1349 1303 unsigned long flags; 1350 1304 1305 + if (!mt8195_afe_etdm_is_valid(dai_id)) 1306 + return -EINVAL; 1307 + 1308 + etdm_data = afe_priv->dai_priv[dai_id]; 1351 1309 spin_lock_irqsave(&afe_priv->afe_ctrl_lock, flags); 1352 1310 if (etdm_data->en_ref_cnt > 0) { 1353 1311 etdm_data->en_ref_cnt--; ··· 1407 1357 static int mt8195_etdm_sync_mode_configure(struct mtk_base_afe *afe, int dai_id) 1408 1358 { 1409 1359 struct mt8195_afe_private *afe_priv = afe->platform_priv; 1410 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 1360 + struct mtk_dai_etdm_priv *etdm_data; 1411 1361 unsigned int reg = 0; 1412 1362 unsigned int mask; 1413 1363 unsigned int val; 1414 1364 int cowork_source_sel; 1415 1365 1366 + if (!mt8195_afe_etdm_is_valid(dai_id)) 1367 + return -EINVAL; 1368 + 1369 + etdm_data = afe_priv->dai_priv[dai_id]; 1416 1370 if (etdm_data->cowork_source_id == COWORK_ETDM_NONE) 1417 1371 return 0; 1418 1372 ··· 1586 1532 1587 1533 if (is_cowork_mode(dai)) { 1588 1534 mst_dai_id = get_etdm_cowork_master_id(dai); 1589 - mtk_dai_etdm_enable_mclk(afe, mst_dai_id); 1535 + if (!mt8195_afe_etdm_is_valid(mst_dai_id)) 1536 + return -EINVAL; 1590 1537 1538 + mtk_dai_etdm_enable_mclk(afe, mst_dai_id); 1591 1539 cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(mst_dai_id); 1592 1540 if (cg_id >= 0) 1593 1541 mt8195_afe_enable_clk(afe, afe_priv->clk[cg_id]); ··· 1627 1571 1628 1572 if (is_cowork_mode(dai)) { 1629 1573 mst_dai_id = get_etdm_cowork_master_id(dai); 1574 + if (!mt8195_afe_etdm_is_valid(mst_dai_id)) 1575 + return; 1576 + 1630 1577 cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(mst_dai_id); 1631 1578 if (cg_id >= 0) 1632 1579 mt8195_afe_disable_clk(afe, afe_priv->clk[cg_id]); ··· 1690 1631 int dai_id) 1691 1632 { 1692 1633 struct mt8195_afe_private *afe_priv = afe->platform_priv; 1693 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 1634 + struct mtk_dai_etdm_priv *etdm_data; 1694 1635 struct etdm_con_reg etdm_reg; 1695 - bool slave_mode = etdm_data->slave_mode; 1696 - unsigned int data_mode = etdm_data->data_mode; 1697 - unsigned int lrck_width = etdm_data->lrck_width; 1636 + bool slave_mode; 1637 + unsigned int data_mode; 1638 + unsigned int lrck_width; 1698 1639 unsigned int val = 0; 1699 1640 unsigned int mask = 0; 1700 1641 int i; 1701 1642 int ret; 1643 + 1644 + if (!mt8195_afe_etdm_is_valid(dai_id)) 1645 + return -EINVAL; 1646 + 1647 + etdm_data = afe_priv->dai_priv[dai_id]; 1648 + slave_mode = etdm_data->slave_mode; 1649 + data_mode = etdm_data->data_mode; 1650 + lrck_width = etdm_data->lrck_width; 1702 1651 1703 1652 dev_dbg(afe->dev, "%s rate %u channels %u, id %d\n", 1704 1653 __func__, rate, channels, dai_id); ··· 1815 1748 int dai_id) 1816 1749 { 1817 1750 struct mt8195_afe_private *afe_priv = afe->platform_priv; 1818 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 1751 + struct mtk_dai_etdm_priv *etdm_data; 1819 1752 struct etdm_con_reg etdm_reg; 1820 - bool slave_mode = etdm_data->slave_mode; 1821 - unsigned int lrck_width = etdm_data->lrck_width; 1753 + bool slave_mode; 1754 + unsigned int lrck_width; 1822 1755 unsigned int val = 0; 1823 1756 unsigned int mask = 0; 1824 1757 int ret; 1825 1758 int fs = 0; 1759 + 1760 + if (!mt8195_afe_etdm_is_valid(dai_id)) 1761 + return -EINVAL; 1762 + 1763 + etdm_data = afe_priv->dai_priv[dai_id]; 1764 + slave_mode = etdm_data->slave_mode; 1765 + lrck_width = etdm_data->lrck_width; 1826 1766 1827 1767 dev_dbg(afe->dev, "%s rate %u channels %u, id %d\n", 1828 1768 __func__, rate, channels, dai_id); ··· 1911 1837 static int mtk_dai_etdm_mclk_configure(struct mtk_base_afe *afe, int dai_id) 1912 1838 { 1913 1839 struct mt8195_afe_private *afe_priv = afe->platform_priv; 1914 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 1840 + struct mtk_dai_etdm_priv *etdm_data; 1915 1841 int clk_id = mtk_dai_etdm_get_clk_id_by_dai_id(dai_id); 1916 1842 int clkdiv_id = mtk_dai_etdm_get_clkdiv_id_by_dai_id(dai_id); 1917 1843 int apll; ··· 1924 1850 if (clk_id < 0 || clkdiv_id < 0) 1925 1851 return 0; 1926 1852 1853 + if (!mt8195_afe_etdm_is_valid(dai_id)) 1854 + return -EINVAL; 1855 + 1856 + etdm_data = afe_priv->dai_priv[dai_id]; 1927 1857 ret = get_etdm_reg(dai_id, &etdm_reg); 1928 1858 if (ret < 0) 1929 1859 return ret; ··· 1966 1888 int dai_id) 1967 1889 { 1968 1890 struct mt8195_afe_private *afe_priv = afe->platform_priv; 1969 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 1891 + struct mtk_dai_etdm_priv *etdm_data; 1970 1892 struct etdm_con_reg etdm_reg; 1971 - bool slave_mode = etdm_data->slave_mode; 1893 + bool slave_mode; 1972 1894 unsigned int etdm_channels; 1973 1895 unsigned int val = 0; 1974 1896 unsigned int mask = 0; ··· 1976 1898 unsigned int wlen = get_etdm_wlen(bit_width); 1977 1899 int ret; 1978 1900 1901 + if (!mt8195_afe_etdm_is_valid(dai_id)) 1902 + return -EINVAL; 1903 + 1904 + etdm_data = afe_priv->dai_priv[dai_id]; 1905 + slave_mode = etdm_data->slave_mode; 1979 1906 ret = get_etdm_reg(dai_id, &etdm_reg); 1980 1907 if (ret < 0) 1981 1908 return ret; ··· 2056 1973 2057 1974 if (is_cowork_mode(dai)) { 2058 1975 mst_dai_id = get_etdm_cowork_master_id(dai); 1976 + if (!mt8195_afe_etdm_is_valid(mst_dai_id)) 1977 + return -EINVAL; 2059 1978 2060 1979 ret = mtk_dai_etdm_mclk_configure(afe, mst_dai_id); 2061 1980 if (ret) ··· 2109 2024 case SNDRV_PCM_TRIGGER_RESUME: 2110 2025 if (is_cowork_mode(dai)) { 2111 2026 mst_dai_id = get_etdm_cowork_master_id(dai); 2027 + if (!mt8195_afe_etdm_is_valid(mst_dai_id)) 2028 + return -EINVAL; 2029 + 2112 2030 mst_etdm_data = afe_priv->dai_priv[mst_dai_id]; 2113 2031 2114 2032 //open master first ··· 2128 2040 case SNDRV_PCM_TRIGGER_SUSPEND: 2129 2041 if (is_cowork_mode(dai)) { 2130 2042 mst_dai_id = get_etdm_cowork_master_id(dai); 2043 + if (!mt8195_afe_etdm_is_valid(mst_dai_id)) 2044 + return -EINVAL; 2045 + 2131 2046 mst_etdm_data = afe_priv->dai_priv[mst_dai_id]; 2132 2047 2133 2048 for (i = 0; i < mst_etdm_data->cowork_slv_count; i++) { ··· 2152 2061 static int mtk_dai_etdm_cal_mclk(struct mtk_base_afe *afe, int freq, int dai_id) 2153 2062 { 2154 2063 struct mt8195_afe_private *afe_priv = afe->platform_priv; 2155 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; 2064 + struct mtk_dai_etdm_priv *etdm_data; 2156 2065 int apll; 2157 2066 int apll_rate; 2158 2067 2068 + if (!mt8195_afe_etdm_is_valid(dai_id)) 2069 + return -EINVAL; 2070 + 2071 + etdm_data = afe_priv->dai_priv[dai_id]; 2159 2072 if (freq == 0) { 2160 2073 etdm_data->mclk_freq = freq; 2161 2074 return 0; ··· 2199 2104 else 2200 2105 dai_id = dai->id; 2201 2106 2107 + if (!mt8195_afe_etdm_is_valid(dai_id)) 2108 + return -EINVAL; 2109 + 2202 2110 etdm_data = afe_priv->dai_priv[dai_id]; 2203 2111 etdm_data->mclk_dir = dir; 2204 2112 return mtk_dai_etdm_cal_mclk(afe, freq, dai_id); ··· 2213 2115 { 2214 2116 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 2215 2117 struct mt8195_afe_private *afe_priv = afe->platform_priv; 2216 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; 2118 + struct mtk_dai_etdm_priv *etdm_data; 2217 2119 2120 + if (!mt8195_afe_etdm_is_valid(dai->id)) 2121 + return -EINVAL; 2122 + 2123 + etdm_data = afe_priv->dai_priv[dai->id]; 2218 2124 dev_dbg(dai->dev, "%s id %d slot_width %d\n", 2219 2125 __func__, dai->id, slot_width); 2220 2126 ··· 2231 2129 { 2232 2130 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 2233 2131 struct mt8195_afe_private *afe_priv = afe->platform_priv; 2234 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; 2132 + struct mtk_dai_etdm_priv *etdm_data; 2235 2133 2134 + if (!mt8195_afe_etdm_is_valid(dai->id)) 2135 + return -EINVAL; 2136 + 2137 + etdm_data = afe_priv->dai_priv[dai->id]; 2236 2138 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { 2237 2139 case SND_SOC_DAIFMT_I2S: 2238 2140 etdm_data->format = MTK_DAI_ETDM_FORMAT_I2S; ··· 2354 2248 { 2355 2249 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 2356 2250 struct mt8195_afe_private *afe_priv = afe->platform_priv; 2357 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; 2251 + struct mtk_dai_etdm_priv *etdm_data; 2358 2252 unsigned int rate = params_rate(params); 2359 2253 unsigned int channels = params_channels(params); 2360 2254 snd_pcm_format_t format = params_format(params); 2361 2255 int width = snd_pcm_format_physical_width(format); 2362 2256 int ret = 0; 2257 + 2258 + if (!mt8195_afe_hdmitx_dptx_is_valid(dai->id)) 2259 + return -EINVAL; 2260 + 2261 + etdm_data = afe_priv->dai_priv[dai->id]; 2363 2262 2364 2263 /* dptx configure */ 2365 2264 if (dai->id == MT8195_AFE_IO_DPTX) { ··· 2442 2331 { 2443 2332 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 2444 2333 struct mt8195_afe_private *afe_priv = afe->platform_priv; 2445 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; 2334 + struct mtk_dai_etdm_priv *etdm_data; 2335 + 2336 + if (!mt8195_afe_hdmitx_dptx_is_valid(dai->id)) 2337 + return -EINVAL; 2338 + 2339 + etdm_data = afe_priv->dai_priv[dai->id]; 2446 2340 2447 2341 dev_dbg(dai->dev, "%s id %d freq %u, dir %d\n", 2448 2342 __func__, dai->id, freq, dir); ··· 2486 2370 { 2487 2371 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 2488 2372 struct mt8195_afe_private *afe_priv = afe->platform_priv; 2489 - struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; 2373 + struct mtk_dai_etdm_priv *etdm_data; 2490 2374 2491 2375 dev_dbg(dai->dev, "%s id %d\n", __func__, dai->id); 2492 2376 2377 + if (!mt8195_afe_etdm_is_valid(dai->id)) 2378 + return -EINVAL; 2379 + 2380 + etdm_data = afe_priv->dai_priv[dai->id]; 2493 2381 if (etdm_data->mclk_freq) { 2494 2382 dev_dbg(afe->dev, "MCLK always on, rate %d\n", 2495 2383 etdm_data->mclk_freq); ··· 2597 2477 etdm_data = afe_priv->dai_priv[i]; 2598 2478 if (etdm_data->cowork_source_id != COWORK_ETDM_NONE) { 2599 2479 mst_dai_id = etdm_data->cowork_source_id; 2480 + if (!mt8195_afe_etdm_is_valid(mst_dai_id)) { 2481 + dev_err(afe->dev, "%s invalid dai id %d\n", 2482 + __func__, mst_dai_id); 2483 + return; 2484 + } 2600 2485 mst_data = afe_priv->dai_priv[mst_dai_id]; 2601 2486 if (mst_data->cowork_source_id != COWORK_ETDM_NONE) 2602 2487 dev_info(afe->dev, "%s [%d] wrong sync source\n" ··· 2638 2513 2639 2514 for (i = 0; i < MT8195_AFE_IO_ETDM_NUM; i++) { 2640 2515 dai_id = ETDM_TO_DAI_ID(i); 2516 + if (!mt8195_afe_etdm_is_valid(dai_id)) { 2517 + dev_err(afe->dev, "%s invalid dai id %d\n", 2518 + __func__, dai_id); 2519 + return; 2520 + } 2521 + 2641 2522 etdm_data = afe_priv->dai_priv[dai_id]; 2642 2523 2643 2524 ret = snprintf(prop, sizeof(prop),
+20 -6
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
··· 122 122 struct snd_pcm_runtime * const runtime = substream->runtime; 123 123 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 124 124 struct mt8195_afe_private *afe_priv = afe->platform_priv; 125 - struct mtk_dai_pcmif_priv *pcmif_priv = afe_priv->dai_priv[dai->id]; 126 - unsigned int slave_mode = pcmif_priv->slave_mode; 127 - unsigned int lrck_inv = pcmif_priv->lrck_inv; 128 - unsigned int bck_inv = pcmif_priv->bck_inv; 129 - unsigned int fmt = pcmif_priv->format; 125 + struct mtk_dai_pcmif_priv *pcmif_priv; 126 + unsigned int slave_mode; 127 + unsigned int lrck_inv; 128 + unsigned int bck_inv; 129 + unsigned int fmt; 130 130 unsigned int bit_width = dai->sample_bits; 131 131 unsigned int val = 0; 132 132 unsigned int mask = 0; 133 133 int fs = 0; 134 134 int mode = 0; 135 + 136 + if (dai->id != MT8195_AFE_IO_PCM) 137 + return -EINVAL; 138 + 139 + pcmif_priv = afe_priv->dai_priv[dai->id]; 140 + slave_mode = pcmif_priv->slave_mode; 141 + lrck_inv = pcmif_priv->lrck_inv; 142 + bck_inv = pcmif_priv->bck_inv; 143 + fmt = pcmif_priv->format; 135 144 136 145 /* sync freq mode */ 137 146 fs = mt8195_afe_fs_timing(runtime->rate); ··· 239 230 { 240 231 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); 241 232 struct mt8195_afe_private *afe_priv = afe->platform_priv; 242 - struct mtk_dai_pcmif_priv *pcmif_priv = afe_priv->dai_priv[dai->id]; 233 + struct mtk_dai_pcmif_priv *pcmif_priv; 243 234 244 235 dev_dbg(dai->dev, "%s fmt 0x%x\n", __func__, fmt); 236 + 237 + if (dai->id != MT8195_AFE_IO_PCM) 238 + return -EINVAL; 239 + 240 + pcmif_priv = afe_priv->dai_priv[dai->id]; 245 241 246 242 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { 247 243 case SND_SOC_DAIFMT_I2S:
+1 -1
sound/soc/mediatek/mt8195/mt8195-mt6359.c
··· 158 158 int mtkaif_phase_cycle[MT8195_MTKAIF_MISO_NUM]; 159 159 int mtkaif_calibration_num_phase; 160 160 bool mtkaif_calibration_ok; 161 - unsigned int monitor; 161 + unsigned int monitor = 0; 162 162 int counter; 163 163 int phase; 164 164 int i;