ALT Linux kernel packages development
 help / color / mirror / Atom feed
* [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels.
@ 2023-03-07 13:54 nickel
  2023-03-07 13:54 ` [d-kernel] [PATCH] ASoC: AMD: fix conflict use pci-acp driver for ES8336 codec nickel
  2023-03-08 22:10 ` [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels Vitaly Chikunov
  0 siblings, 2 replies; 3+ messages in thread
From: nickel @ 2023-03-07 13:54 UTC (permalink / raw)
  To: devel-kernel

This patch is intended for both Sisyphus std-def and p10 un-def 5.15  kernels.

[PATCH 1/1] ASoC: AMD: fix conflict use pci-acp driver for ES8336 codec



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [d-kernel] [PATCH] ASoC: AMD: fix conflict use pci-acp driver for ES8336 codec
  2023-03-07 13:54 [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels nickel
@ 2023-03-07 13:54 ` nickel
  2023-03-08 22:10 ` [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels Vitaly Chikunov
  1 sibling, 0 replies; 3+ messages in thread
From: nickel @ 2023-03-07 13:54 UTC (permalink / raw)
  To: devel-kernel; +Cc: Vasiliy Kovalev

From: Vasiliy Kovalev <kovalev@altlinux.org>

For a family of machines whose pci revision ID is 0x1 (renoir),
working with the es8336 codec is only available through the
snd-pci-acp3x driver (raven).

Now we will use a specific driver if there is an acpi device
detected as "ESSX8336" in the machine.

Fixes: 5d33d36f777903 ("ASoC: AMD: add ACP machine driver for ES8336")
Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
Signed-off-by: Nikolai Kostrigin <nickel@altlinux.org>
---
 sound/soc/amd/raven/pci-acp3x.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sound/soc/amd/raven/pci-acp3x.c b/sound/soc/amd/raven/pci-acp3x.c
index cdb8773b11f136..94e12a1483bb55 100644
--- a/sound/soc/amd/raven/pci-acp3x.c
+++ b/sound/soc/amd/raven/pci-acp3x.c
@@ -11,6 +11,7 @@
 #include <linux/interrupt.h>
 #include <linux/pm_runtime.h>
 #include <linux/delay.h>
+#include <sound/soc-acpi.h>
 
 #include "acp3x.h"
 
@@ -133,8 +134,11 @@ static int snd_acp3x_probe(struct pci_dev *pci,
 	int ret, i;
 	u32 addr, val;
 
+	dev_info(&pci->dev, "pci->revision = 0x%x\n", pci->revision);
 	/* Raven and lucienne device detection */
-	if (pci->revision != 0x00 && pci->revision != 0x01)
+	if (acpi_dev_get_first_match_dev("ESSX8336", NULL, -1))
+		dev_info(&pci->dev, "use pci-acp for ES8336 codec\n");
+	else if (pci->revision != 0x00)
 		return -ENODEV;
 
 	if (pci_enable_device(pci)) {
-- 
2.33.6



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels.
  2023-03-07 13:54 [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels nickel
  2023-03-07 13:54 ` [d-kernel] [PATCH] ASoC: AMD: fix conflict use pci-acp driver for ES8336 codec nickel
@ 2023-03-08 22:10 ` Vitaly Chikunov
  1 sibling, 0 replies; 3+ messages in thread
From: Vitaly Chikunov @ 2023-03-08 22:10 UTC (permalink / raw)
  To: ALT Linux kernel packages development

On Tue, Mar 07, 2023 at 04:54:56PM +0300, nickel@altlinux.org wrote:
> This patch is intended for both Sisyphus std-def and p10 un-def 5.15  kernels.

Applied, thanks

> 
> [PATCH 1/1] ASoC: AMD: fix conflict use pci-acp driver for ES8336 codec
> 
> _______________________________________________
> devel-kernel mailing list
> devel-kernel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel-kernel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-08 22:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 13:54 [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels nickel
2023-03-07 13:54 ` [d-kernel] [PATCH] ASoC: AMD: fix conflict use pci-acp driver for ES8336 codec nickel
2023-03-08 22:10 ` [d-kernel] [PATCH 0/1] Fix pci-acp driver selection for AMD platforms in 5.15 kernels Vitaly Chikunov

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git