From: Mario Limonciello <mario.limonciello@xxxxxxx>
The various AMD audio drivers have self contained implementations
for SMN router communication that require hardcoding the bridge ID.
These implementations also don't prevent race conditions with other
drivers performing SMN communication.
A new centralized driver AMD_NODE is introduced and all drivers in
the kernel should use this instead. Adjust all AMD audio drivers to
use it.
Mario Limonciello (7):
x86/amd_node: Add a helper for use with `read_poll_timeout`
ASoC: amd: acp: rembrandt: Use AMD_NODE
ASoC: amd: acp: acp70: Use AMD_NODE
ASoC: amd: acp: acp63: Use AMD_NODE
ASoC: SOF: amd: Use AMD_NODE
ASoC: amd: acp: Drop local symbols for smn read/write
ASoC: SOF: amd: Drop host bridge ID from struct
arch/x86/include/asm/amd_node.h | 11 +++++
sound/soc/amd/acp/Kconfig | 3 ++
sound/soc/amd/acp/acp-legacy-common.c | 18 --------
sound/soc/amd/acp/acp-rembrandt.c | 28 ++++++------
sound/soc/amd/acp/acp63.c | 63 +++++++++++++++++----------
sound/soc/amd/acp/acp70.c | 28 ++----------
sound/soc/amd/acp/amd.h | 3 --
sound/soc/sof/amd/Kconfig | 1 +
sound/soc/sof/amd/acp.c | 56 +++++++-----------------
sound/soc/sof/amd/acp.h | 2 -
sound/soc/sof/amd/pci-acp63.c | 1 -
sound/soc/sof/amd/pci-acp70.c | 1 -
sound/soc/sof/amd/pci-rmb.c | 1 -
sound/soc/sof/amd/pci-rn.c | 1 -
sound/soc/sof/amd/pci-vangogh.c | 1 -
15 files changed, 90 insertions(+), 128 deletions(-)
--
2.43.0
[Index of Archives]
[Pulseaudio]
[Linux Audio Users]
[ALSA Devel]
[Fedora Desktop]
[Fedora SELinux]
[Big List of Linux Books]
[Yosemite News]
[KDE Users]