]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: add error message in case of missing imx-pcm-dma support
authorMarco Felsch <m.felsch@pengutronix.de>
Wed, 1 Jun 2022 09:23:42 +0000 (11:23 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:38:34 +0000 (12:38 +0100)
commit4441abb72687d058ca077c35e94fdad0e7567a16
treed79f85c1f845b292908721ea6018cc43bda35e94
parent26180aac24284185812fc2dcc61ddd3ac0df1b29
ASoC: fsl_sai: add error message in case of missing imx-pcm-dma support

If the imx-pcm-dma is required we need to have the module enabled. For
all NXP/FSL sound cards using the ASoC architecture this is the case but
in case of using the simple-audio-card sound card this isn't the case.

In such case the driver probe fails silently and the card isn't
available. It took a while to find the missing Kconfig. Make this easier
for others by printing a error if this the module isn't available but
required by the HW.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20220601092342.3328644-3-m.felsch@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c