ASoC: spacemit: fix build warning and error

Merge series from Troy Mitchell <troy.mitchell@linux.spacemit.com>:

After the i2s patch for K1 was merged, two issues were identified:
- Missing error handling for the init_dai() function [1],
  which is required since the function allocates memory internally.
- The Kconfig entry ignored the dependency chain of DMA_CMA [2].

This series fixes both issues.

Link: https://lore.kernel.org/all/aPtiNCZ_KBezL2Dr@stanley.mountain/#t [1]
Link: https://lore.kernel.org/all/20251022141705.714b19b5@canb.auug.org.au/ [2]
This commit is contained in:
Mark Brown 2025-10-28 14:27:50 +00:00
commit 060028c7fc
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -6,8 +6,7 @@ menu "SpacemiT"
config SND_SOC_K1_I2S
tristate "K1 I2S Device Driver"
select SND_SOC_GENERIC_DMAENGINE_PCM
select CMA
select DMA_CMA
depends on DMA_CMA
help
Say Y or M if you want to add support for I2S driver for
K1 I2S controller. The device supports up to maximum of