Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14071520ybl; Mon, 30 Dec 2019 03:33:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwnwr6nG+glAFSzbUX8fJcUsA6uVMLhiW9b5N5sEr062lEOq3xmZQnFpJ3FSk2qXSHQQwEz X-Received: by 2002:a05:6830:1e11:: with SMTP id s17mr71032158otr.343.1577705602592; Mon, 30 Dec 2019 03:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577705602; cv=none; d=google.com; s=arc-20160816; b=z/HTRXInIfoGpE6A5E6suwJOCkY3f/+twpQDItUcE9t/GHdUY9dEnzCbFaz5OswJFr pbajCkshc8V7nX/XEKW2YHStu5il2tPb1OFEitwgNUWOB+VD5b8vcieGRtVvgLy09Cr0 gNopzECG0a7Sb8YQli3lkRu0h76GlEDjj81it7gBi+9Y7oRk6YZ5wjE7h4UbNJd34frU KGMQbRJKxwn479j8UgccvRkOtm7NJt0RS3q3wE3+W0eY21xpV+6nwaQE8+Y4X/Pn+lAL UTwYCs/P2diwHsSg9zo89U3eqmyODfrAcxDIw8AS8bBrCuPSFbLd9AyzBS1okoHlyEW/ jNdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1GHqDgA6kYmq5GSBHlIsIzHnCtQqTYiwnbuuh95mc1A=; b=r/7lV8FjpP243rsTZzJDtHrBkuIjEfKZdAMB8xAd4XqPbWVQgUSRuXMqn4DloEsSht IaY0xU/HWfMz/G8Sjz+RkEv8Qu8WB21dlkPI60CF9DQMpxhWOiN4aQxj6F9Efxer6J2G hXodBset0cdB2dtngKjK8mxqOhO/pCUWpxQ46riq3SWFTvEIymSzEg3kquaIzbpldC5Z 5NsriIeOFXyOHBgYykvCT71D/WacxO+hpeyZeJehz7ZZwKez/hMmy8WjdnaeouCPOwhv hRYpXb074OZ1C3quH55uNjlD66hEdsRbjPwhyeC97vAy4Vgz8q4SIwA90Cinm0h6k8Fv u+Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si22611937otc.105.2019.12.30.03.33.09; Mon, 30 Dec 2019 03:33:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727397AbfL3LcS (ORCPT + 99 others); Mon, 30 Dec 2019 06:32:18 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:37904 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727360AbfL3LcR (ORCPT ); Mon, 30 Dec 2019 06:32:17 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id BBBF21C2604; Mon, 30 Dec 2019 12:32:15 +0100 (CET) Date: Mon, 30 Dec 2019 12:32:14 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Kai Vehmanen , Takashi Iwai , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: Re: [PATCH 4.19 102/219] ALSA: hda/hdmi - implement mst_no_extra_pcms flag Message-ID: <20191230113214.GB10304@amd> References: <20191229162508.458551679@linuxfoundation.org> <20191229162523.844585380@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ADZbWkCsHQ7r3kzd" Content-Disposition: inline In-Reply-To: <20191229162523.844585380@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Kai Vehmanen >=20 > [ Upstream commit 2a2edfbbfee47947dd05f5860c66c0e80ee5e09d ] >=20 > To support the DP-MST multiple streams via single connector feature, > the HDMI driver was extended with the concept of backup PCMs. See > commit 9152085defb6 ("ALSA: hda - add DP MST audio support"). =2E.. > Signed-off-by: Sasha Levin This variable is not ever set in this patch, nor is it set elsewhere in 4.19-stable. This means this patch is not suitable for stable. Best regards, Pavel > index 2003403ce1c8..199927694aef 100644 > --- a/sound/pci/hda/hda_codec.h > +++ b/sound/pci/hda/hda_codec.h > @@ -262,6 +262,7 @@ struct hda_codec { > unsigned int force_pin_prefix:1; /* Add location prefix */ > unsigned int link_down_at_suspend:1; /* link down at runtime suspend */ > unsigned int relaxed_resume:1; /* don't resume forcibly for jack */ > + unsigned int mst_no_extra_pcms:1; /* no backup PCMs for DP-MST */ > =20 > #ifdef CONFIG_PM > unsigned long power_on_acct; > diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c > index c827a2a89cc3..9d5e3c8d62b9 100644 > --- a/sound/pci/hda/patch_hdmi.c > +++ b/sound/pci/hda/patch_hdmi.c > @@ -2063,15 +2063,24 @@ static bool is_hdmi_pcm_attached(struct hdac_devi= ce *hdac, int pcm_idx) > static int generic_hdmi_build_pcms(struct hda_codec *codec) > { > struct hdmi_spec *spec =3D codec->spec; > - int idx; > + int idx, pcm_num; > =20 > /* > * for non-mst mode, pcm number is the same as before > - * for DP MST mode, pcm number is (nid number + dev_num - 1) > - * dev_num is the device entry number in a pin > - * > + * for DP MST mode without extra PCM, pcm number is same > + * for DP MST mode with extra PCMs, pcm number is > + * (nid number + dev_num - 1) > + * dev_num is the device entry number in a pin > */ > - for (idx =3D 0; idx < spec->num_nids + spec->dev_num - 1; idx++) { > + > + if (codec->mst_no_extra_pcms) > + pcm_num =3D spec->num_nids; > + else > + pcm_num =3D spec->num_nids + spec->dev_num - 1; > + > + codec_dbg(codec, "hdmi: pcm_num set to %d\n", pcm_num); > + > + for (idx =3D 0; idx < pcm_num; idx++) { > struct hda_pcm *info; > struct hda_pcm_stream *pstr; > =20 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl4J4D4ACgkQMOfwapXb+vJXXgCeNDh4A40dM5KvH84pVurQdugK kUAAn3hedVY2L21yEaPLrk59oZ2eJyrx =BvHn -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd--