Skip to content

Commit de7d83d

Browse files
committed
Merge tag 'asoc-v5.0-2' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Additional fixes for the next release A couple of fixes for build bot issues in the STM32 SAI driver.
2 parents 5e3cdec + 6be0f96 commit de7d83d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sound/soc/stm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ menu "STMicroelectronics STM32 SOC audio support"
33
config SND_SOC_STM32_SAI
44
tristate "STM32 SAI interface (Serial Audio Interface) support"
55
depends on (ARCH_STM32 && OF) || COMPILE_TEST
6+
depends on COMMON_CLK
67
depends on SND_SOC
78
select SND_SOC_GENERIC_DMAENGINE_PCM
89
select REGMAP_MMIO

sound/soc/stm/stm32_sai_sub.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,11 @@ static int stm32_sai_add_mclk_provider(struct stm32_sai_sub_data *sai)
404404
* String after "_" char is stripped in parent name.
405405
*/
406406
p = mclk_name;
407-
while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 6))) {
407+
while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 7))) {
408408
*p++ = *s++;
409409
i++;
410410
}
411-
STM_SAI_IS_SUB_A(sai) ?
412-
strncat(p, "a_mclk", 6) : strncat(p, "b_mclk", 6);
411+
STM_SAI_IS_SUB_A(sai) ? strcat(p, "a_mclk") : strcat(p, "b_mclk");
413412

414413
mclk->hw.init = CLK_HW_INIT(mclk_name, pname, &mclk_ops, 0);
415414
mclk->sai_data = sai;

0 commit comments

Comments
 (0)