linux/sound/soc/amd
Venkata Prasad Potturu d7871f400c
ASoC: amd: acp: Fix incorrect retrival of acp_chip_info
Use dev_get_drvdata(dev->parent) instead of dev_get_platdata(dev)
to correctly obtain acp_chip_info members in the acp I2S driver.
Previously, some members were not updated properly due to incorrect
data access, which could potentially lead to null pointer
dereferences.

This issue was missed in the earlier commit
("ASoC: amd: acp: Fix NULL pointer deref in acp_i2s_set_tdm_slot"),
which only addressed set_tdm_slot(). This change ensures that all
relevant functions correctly retrieve acp_chip_info, preventing
further null pointer dereference issues.

Fixes: e3933683b2 ("ASoC: amd: acp: Remove redundant acp_dev_data structure")

Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250910171419.3682468-1-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
History 2025-09-15 12:49:11 +01:00
..
acp ASoC: amd: acp: Fix incorrect retrival of acp_chip_info 2025-09-15 12:49:11 +01:00
include ASoC: AMD : add ACP 2.2 register headers 2016-01-10 12:44:10 +00:00
ps ASoC: amd: ps: Add SoundWire pci and dma driver support for acp7.2 platform 2025-08-01 14:36:05 +01:00
raven ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
renoir ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
rpl ASoC: amd: Convert to RUNTIME_PM_OPS() & co 2025-03-17 10:15:04 +00:00
vangogh ASoC: amd: Convert to RUNTIME_PM_OPS() & co 2025-03-17 10:15:04 +00:00
yc ASoC: amd: yc: Add DMI quirk for HP Laptop 17 cp-2033dx 2025-07-16 11:50:33 +01:00
acp-config.c ASoC: amd: Add acpi machine id for acp7.0 version based platform 2024-08-23 11:03:05 +01:00
acp-da7219-max98357a.c ASoC: amd: use new ACP dev names for DAI links 2025-05-14 15:15:59 +02:00
acp-es8336.c ASoC: amd: use new ACP dev names for DAI links 2025-05-14 15:15:59 +02:00
acp-pcm-dma.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
acp-rt5645.c ASoC: amd: use new ACP dev names for DAI links 2025-05-14 15:15:59 +02:00
acp.h ASoC: amd: add I2S MICSP instance support 2022-07-05 13:00:44 +01:00
acp3x-rt5682-max9836.c ASoC: amd: remove dpcm_xxx flags 2024-10-23 13:01:54 +01:00
Kconfig ASoC: amd: Standardize ASoC menu 2025-06-24 01:01:10 +01:00
mach-config.h ASoC: amd: acp: add soundwire machine for ACP7.0 and ACP7.1 sof stack 2025-06-23 13:12:14 +01:00
Makefile ASoC: amd: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:13 +09:00