Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp401962pxb; Sun, 10 Oct 2021 00:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGQprdS2EUeNlBIipCCWgSkGGXYAgPYNEBy+SAMxjeMNXApECh6QZJo5AFJvheFHeuMWc7 X-Received: by 2002:a17:906:645:: with SMTP id t5mr16886940ejb.163.1633852202943; Sun, 10 Oct 2021 00:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633852202; cv=none; d=google.com; s=arc-20160816; b=Hr9bbedBaliLJWnLYuTTZotBaKDvoVQ72OcM61EQ43WPtfOVTc424pB539B+SzlAG8 nSDTCua9gR+5nqfCF4LsVfTB/+7WlqxYNCtk+5MFjbU6q8g9IAwKK55yzvFz5GYTHl9p vRkwsHKqkpKh+qb+UI705CAyCSuVY6PdARRVyCF5zlJY3eQldDkUay9GumVgOX+EWVQH EX6Db5PF4g4lWVwR2owuQKoaW9ql69VfngLQhnxc0W+//70bYvC0Htoky2pBKnG/K5V6 bgXd+vqzwezzdFyh1qnq+DSEFpepwHGvKkznayqz+MXYvxBYNUyKqXtcsIw7Di9eMj+M mL6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:organization :message-id:date:subject:to:from; bh=+b6uEDuCuO+z05QKHhztqkRmpMmctmTZN9OqQApcMy8=; b=YEYa6lo8oI3FYeP/zGJRFYbdxl9JeRYPZbe77WL+gUwbikblY09P4csN0UllXnf379 Q6+D7cbJ8Dbv1a6J9pDgYjFdJhpT22rfR31TWXlMh3L/YKrOILiTdE25NtmnVmFlz49j 1wBPtXxPdsW0GWtgILpOze6in4n98uqvzLXgleMMeZcYtUar0914r/Ed1Nw6jxaJVvi+ W+LyEuM1KYgYqx4O8sWabCga5UnyVjACt29tQwKzWDEJA4dvWXbxYUrDlaezzlg/2zgK f8jcvZ7vDlvc8wcOFmaDKZ67cRRS6gIc6TJMDOAhc9Ci9mhwm4M0bfbhCkbAK45I61vH GcVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd29si300447ejc.75.2021.10.10.00.49.24; Sun, 10 Oct 2021 00:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbhJJHtZ (ORCPT + 99 others); Sun, 10 Oct 2021 03:49:25 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:58897 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbhJJHtY (ORCPT ); Sun, 10 Oct 2021 03:49:24 -0400 Received: from bagend.localnet (86-126-20-31.ftth.glasoperator.nl [31.20.126.86]) (Authenticated sender: didi.debian@cknow.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 47F8D60006; Sun, 10 Oct 2021 07:47:22 +0000 (UTC) From: Diederik de Haas To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Thierry Reding , Jon Hunter , Stephan Gerhold , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Guido =?ISO-8859-1?Q?G=FCnther?= Subject: Re: [PATCH] ASoC: simple-card: Fill in driver name Date: Sun, 10 Oct 2021 09:47:12 +0200 Message-ID: <4974503.Y8KB3sNASq@bagend> Organization: Connecting Knowledge In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5876364.1uclEOo45F"; micalg="pgp-sha256"; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart5876364.1uclEOo45F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; protected-headers="v1" From: Diederik de Haas To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Thierry Reding , Jon Hunter , Stephan Gerhold , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Guido =?ISO-8859-1?Q?G=FCnther?= Subject: Re: [PATCH] ASoC: simple-card: Fill in driver name Date: Sun, 10 Oct 2021 09:47:12 +0200 Message-ID: <4974503.Y8KB3sNASq@bagend> Organization: Connecting Knowledge In-Reply-To: References: On Tuesday, 22 June 2021 10:27:09 CEST Guido G=FCnther wrote: > alsa-ucm groups by driver name so fill that in as well. Otherwise the > presented information is redundant and doesn't reflect the used > driver. We can't just use 'asoc-simple-card' since the driver name is > restricted to 15 characters. >=20 > Before: >=20 > # cat /proc/asound/cards > 0 [Devkit ]: Librem_5_Devkit - Librem 5 Devkit > Librem 5 Devkit > After: >=20 > 0 [Devkit ]: simple-card - Librem 5 Devkit > Librem 5 Devkit >=20 > Signed-off-by: Guido G=C3=BCnther > --- > This came out of a discussion about adding alsa-ucm profiles for the > Librem 5 Devkit at https://github.com/alsa-project/alsa-ucm-conf/pull/102 >=20 > sound/soc/generic/simple-card.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/sound/soc/generic/simple-card.c > b/sound/soc/generic/simple-card.c index 0015f534d42d..a3a7990b5cb6 100644 > --- a/sound/soc/generic/simple-card.c > +++ b/sound/soc/generic/simple-card.c > @@ -621,6 +621,7 @@ static int asoc_simple_probe(struct platform_device > *pdev) card->owner =3D THIS_MODULE; > card->dev =3D dev; > card->probe =3D simple_soc_probe; > + card->driver_name =3D "simple-card"; >=20 > li =3D devm_kzalloc(dev, sizeof(*li), GFP_KERNEL); > if (!li) Unfortunately this change broke multichannel audio on my Rock64 device runn= ing=20 Debian. My Rock64 is connected to my AVR (Pioneer SC-1224) via a HDMI cable. Before/without this change, pulseaudio correctly identifies my AVR and give= s me=20 hdmi-stereo/hdmi-surround/hdmi-surround71 output profiles via the HDMI card= and=20 iec958-stereo/iec958-ac3-surround-51 on my SPDIF card. After/with this change, I only have a stereo-fallback output profile on bot= h=20 HDMI and SPDIF card. I reported this to Debian at https://bugs.debian.org/995923 I have verified that reverting this commit on a self-built 5.14.10 brought = back=20 multichannel audio. On LibreELEC's current nightly builds (version 11) with kernel 5.14 on=20 a(nother) Rock64 device (also connected via HDMI cable), I hear no sound at= =20 all. Previous nightly builds (version 11) with I _assume_ kernel < 5.14,=20 worked fine. As I didn't keep previous nightly builds, I can't verify that. I reported that at https://github.com/LibreELEC/LibreELEC.tv/issues/5734 I have NOT verified whether reverting this commit would also restore audio = with=20 LibreELEC as I'm not familiar with their build system. This is the first time I'm reporting an issue to the upstream Linux kernel,= so=20 I hope I did it correctly (DL-ed mbox file and did Reply-to-All). If not,=20 apologies and I hope you'll point me to the correct place/way. (I don't know if others need to be notified too as it is part of 5.14 relea= ses) Cheers, Diederik --nextPart5876364.1uclEOo45F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCYWKagAAKCRDXblvOeH7b btKJAP94HDQVbxFH7oeZReoLAa9c33hWAkhsXvRR0RgKBsCXlAD/eNwTTabMI5Cy U1Wsg+p38twgt/m85qPOO2Vwgkfwqgk= =aGUG -----END PGP SIGNATURE----- --nextPart5876364.1uclEOo45F--