From d83af363f1fc17e2b3e7cf2a0f848722f6643a9a Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Wed, 10 Dec 2025 12:12:47 +0100
Subject: [PATCH] conf: vc4-hdmi: define pcm configuration block only one time

There may be multiple vc4-hdmi soundcards in the system. Overwrite
the PCM configurations when loaded multiple times.

BugLink: https://github.com/alsa-project/alsa-lib/issues/488
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
 src/conf/cards/vc4-hdmi.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conf/cards/vc4-hdmi.conf b/src/conf/cards/vc4-hdmi.conf
index 0f313d821..7041d1850 100644
--- a/src/conf/cards/vc4-hdmi.conf
+++ b/src/conf/cards/vc4-hdmi.conf
@@ -3,7 +3,7 @@
 # subframe conversion
 #
 
-vc4-hdmi.pcm.hdmi.0 {
+vc4-hdmi.pcm.hdmi.!0 {
 	@args [ CARD AES0 AES1 AES2 AES3 ]
 	@args.CARD {
 		type string
@@ -50,7 +50,7 @@ vc4-hdmi.pcm.hdmi.0 {
 }
 
 # default with plug and softvol
-vc4-hdmi.pcm.default {
+vc4-hdmi.pcm.!default {
 	@args [ CARD ]
 	@args.CARD {
 		type string
