ASoC: Additional fixes for the next release
A couple of fixes for build bot issues in the STM32 SAI driver. -----BEGIN PGP SIGNATURE----- iQFHBAABCgAxFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlvPB6ETHGJyb29uaWVA a2VybmVsLm9yZwAKCRAk1otyXVSH0AolB/9nKMIGJqCZWWLh+Rq1dAc1k3+cOkuU 4Culg5XaTn9uS9Tu5DJKotk8SC4zvblbC4JiQPVisuUm1EY/ADwsu92DeC3xB3w4 iEyep1H1UzM8um/uuPe0lMWalNBFCsNRih0ZETxLh1ZK2hJlUtCYHz0n5ewmq/6R QVdkAtm8oMll1LhTu9x95+ozYp33IxFpDVjSDXDZcWbgg93wBZ6dUMVLeREOK+Vl h2H4TVgN/frJyBdKDBItCLVyL9e5ygw6UioEi4vgy08q1Kw01RKmRA86dScgBXaY NVCi8OAVqQKoO0j5ChISnJPX3SmVV/5f6K+0x1to5bqfGOwOmoqCbOSB =jBs9 -----END PGP SIGNATURE----- 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.
This commit is contained in:
commit
de7d83da84
@ -3,6 +3,7 @@ menu "STMicroelectronics STM32 SOC audio support"
|
||||
config SND_SOC_STM32_SAI
|
||||
tristate "STM32 SAI interface (Serial Audio Interface) support"
|
||||
depends on (ARCH_STM32 && OF) || COMPILE_TEST
|
||||
depends on COMMON_CLK
|
||||
depends on SND_SOC
|
||||
select SND_SOC_GENERIC_DMAENGINE_PCM
|
||||
select REGMAP_MMIO
|
||||
|
@ -404,12 +404,11 @@ static int stm32_sai_add_mclk_provider(struct stm32_sai_sub_data *sai)
|
||||
* String after "_" char is stripped in parent name.
|
||||
*/
|
||||
p = mclk_name;
|
||||
while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 6))) {
|
||||
while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 7))) {
|
||||
*p++ = *s++;
|
||||
i++;
|
||||
}
|
||||
STM_SAI_IS_SUB_A(sai) ?
|
||||
strncat(p, "a_mclk", 6) : strncat(p, "b_mclk", 6);
|
||||
STM_SAI_IS_SUB_A(sai) ? strcat(p, "a_mclk") : strcat(p, "b_mclk");
|
||||
|
||||
mclk->hw.init = CLK_HW_INIT(mclk_name, pname, &mclk_ops, 0);
|
||||
mclk->sai_data = sai;
|
||||
|
Loading…
Reference in New Issue
Block a user