mirror_ubuntu-kernels/sound/soc/amd/acp
Syed Saba Kareem ed2232d491
ASoC: amd: acp: fix for i2s mode register field update
I2S mode register field will be set to 1 when tdm mode is enabled.
Update the I2S mode field based on tdm_mode flag check.

This will fix below smatch checker warning.

sound/soc/amd/acp/acp-i2s.c:59 acp_set_i2s_clk()
	warn: odd binop '0x0 & 0x2'

Fixes: 40f74d5f09 ("ASoC: amd: acp: refactor acp i2s clock
	generation code")

Reported-By: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
Link: https://lore.kernel.org/r/20231031135949.1064581-3-Syed.SabaKareem@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-10-31 14:26:11 +00:00
..
acp3x-es83xx ASoC: amd: convert not to use asoc_xxx() 2023-09-26 17:18:34 +02:00
acp63.c ASoC: amd: acp: add condition check for i2s clock generation 2023-10-25 17:21:50 +01:00
acp70.c ASoC: amd: acp: Add pci legacy driver support for acp7.0 platform 2023-10-25 17:21:54 +01:00
acp-i2s.c ASoC: amd: acp: fix for i2s mode register field update 2023-10-31 14:26:11 +00:00
acp-legacy-common.c ASoC: amd: acp: Add pci legacy driver support for acp7.0 platform 2023-10-25 17:21:54 +01:00
acp-legacy-mach.c ASoC: amd: acp: add machine driver support for pdm use case 2023-10-25 17:21:51 +01:00
acp-mach-common.c ASoC: amd: acp: add machine driver support for acp7.0 2023-10-25 17:21:55 +01:00
acp-mach.h ASoC: amd: acp: Add pci legacy driver support for acp7.0 platform 2023-10-25 17:21:54 +01:00
acp-pci.c ASoC: amd: acp: Add pci legacy driver support for acp7.0 platform 2023-10-25 17:21:54 +01:00
acp-pdm.c ASoC: amd: acp: move pdm macros to common header file 2023-07-09 22:47:40 +01:00
acp-platform.c ASoC: amd: acp: add machine driver support for pdm use case 2023-10-25 17:21:51 +01:00
acp-rembrandt.c ASoC: amd: acp: add condition check for i2s clock generation 2023-10-25 17:21:50 +01:00
acp-renoir.c ASoC: amd: acp: add platform and flag data to acp data structure 2023-10-25 17:21:49 +01:00
acp-sof-mach.c ASoC: amd: acp: Add kcontrols and widgets per-codec in common code 2023-08-18 13:55:06 +01:00
amd.h ASoC: amd: acp: Add pci legacy driver support for acp7.0 platform 2023-10-25 17:21:54 +01:00
chip_offset_byte.h ASoC: amd: acp: add code for scanning acp pdm controller 2023-10-25 17:21:48 +01:00
Kconfig ASoC: amd: acp: select SND_SOC_AMD_ACP_LEGACY_COMMON for ACP63 2023-10-27 17:37:33 +01:00
Makefile ASoC: amd: acp: add Kconfig options for acp6.3 based platform driver 2023-10-25 17:21:47 +01:00