linux/sound/soc/uniphier
Ingyu Jang 9b0c65115a
ASoC: uniphier: Handle regmap_write errors in aio_iecout_set_enable()
The aio_oport_set_stream_type() function did not previously check the
return values of regmap_write().
If these functions fail, it could lead to silent failures when
configuring the audio playback port, causing improper behavior in audio
stream output via S/PDIF without any indication of an error.

This patch modifies aio_oport_set_stream_type() to check the return
values of regmap_write().
If regmap_write() fails, the error code is propagated back to the caller
to ensure proper error handling.

Signed-off-by: Ingyu Jang <ingyujang25@unist.ac.kr>
Link: https://patch.msgid.link/SE1P216MB2287962B462AE91B26248D19FD7E2@SE1P216MB2287.KORP216.PROD.OUTLOOK.COM
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-10-23 00:07:04 +01:00
..
aio-compress.c ASoC: uniphier: convert not to use asoc_xxx() 2023-09-25 14:16:39 +02:00
aio-core.c ASoC: uniphier: Handle regmap_write errors in aio_iecout_set_enable() 2024-10-23 00:07:04 +01:00
aio-cpu.c ASoC: uniphier: Make uniphier_aio_remove() return void 2023-10-23 13:29:48 +01:00
aio-dma.c ASoC: uniphier: Constify static snd_pcm_hardware 2024-05-07 00:00:22 +09:00
aio-ld11.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
aio-pxs2.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
aio-reg.h ASoC: uniphier: add support for multichannel output 2018-07-30 12:02:31 +01:00
aio.h ASoC: uniphier: Make uniphier_aio_remove() return void 2023-10-23 13:29:48 +01:00
evea.c ASoC: constify snd_soc_component_driver struct 2024-09-30 01:10:48 +02:00
Kconfig ASoC: uniphier: drop selecting non-existing SND_SOC_UNIPHIER_AIO_DMA 2021-11-25 11:54:30 +00:00
Makefile ASoC: uniphier: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:36 +09:00