linux/sound/soc/atmel
Andrei Simion 2ed22161b1
ASoC: atmel: atmel-classd: Re-add dai_link->platform to fix card init
The removed dai_link->platform component cause a fail which
is exposed at runtime. (ex: when a sound tool is used)
This patch re-adds the dai_link->platform component to have
a full card registered.

Before this patch:
:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CLASSD [CLASSD], device 0: CLASSD PCM snd-soc-dummy-dai-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0

:~$ speaker-test -t sine
speaker-test 1.2.6
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Playback open error: -22,Invalid argument

After this patch which restores the platform component:
:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CLASSD [CLASSD], device 0: CLASSD PCM snd-soc-dummy-dai-0
						[CLASSD PCM snd-soc-dummy-dai-0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
-> Resolve the playback error.

Fixes: 2f650f87c0 ("ASoC: atmel: remove unnecessary dai_link->platform")
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://msgid.link/r/20240604101030.237792-1-andrei.simion@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-06-06 14:04:00 +01:00
..
atmel_ssc_dai.c ASoC: atmel_ssc_dai: Remove the unneeded result variable 2022-08-23 13:04:51 +01:00
atmel_ssc_dai.h
atmel_wm8904.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00
atmel-classd.c ASoC: atmel: atmel-classd: Re-add dai_link->platform to fix card init 2024-06-06 14:04:00 +01:00
atmel-classd.h
atmel-i2s.c ASoC: atmel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
atmel-pcm-dma.c ASoC: atmel: convert not to use asoc_xxx() 2023-09-25 14:16:27 +02:00
atmel-pcm-pdc.c ASoC: atmel: convert not to use asoc_xxx() 2023-09-25 14:16:27 +02:00
atmel-pcm.h
atmel-pdmic.c ASoC: atmel: convert not to use asoc_xxx() 2023-09-25 14:16:27 +02:00
atmel-pdmic.h
Kconfig ASoC: wm8731: Factor out the I2C and SPI bus code into separate modules 2022-04-04 08:39:32 +01:00
Makefile ASoC: atmel: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:15 +09:00
mchp-i2s-mcc.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00
mchp-pdmc.c ASoC: dmaengine: Drop unused iov_iter for process callback 2023-09-01 15:38:29 +02:00
mchp-spdifrx.c ASoC: atmel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
mchp-spdiftx.c ASoC: atmel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
mikroe-proto.c ASoC: atmel: use devm_snd_soc_register_card() 2024-01-22 00:06:03 +00:00
sam9g20_wm8731.c ASoC: atmel: convert not to use asoc_xxx() 2023-09-25 14:16:27 +02:00
sam9x5_wm8731.c ASoC: atmel: convert not to use asoc_xxx() 2023-09-25 14:16:27 +02:00
tse850-pcm5142.c ASoC: atmel: tse850-pcm5142: Remove unused of_gpio.h 2024-05-08 11:40:47 +09:00