Message ID | 20230912163207.3498161-1-rf@opensource.cirrus.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp217779vqi; Thu, 14 Sep 2023 02:20:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF2Dvzy80v28JDDQY4FCiaTjvPSmxF0CS4MY0n20lYLJjeK65w+nOTRyPS1KAbyofOfakVy X-Received: by 2002:a05:6a20:12d2:b0:153:a897:3be7 with SMTP id v18-20020a056a2012d200b00153a8973be7mr5751608pzg.15.1694683214306; Thu, 14 Sep 2023 02:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694683214; cv=none; d=google.com; s=arc-20160816; b=li4r9NjyQO7XWGgZdjHxO61IApo3HiR9+kCbhyVWPsbBhcCdidJwB9SF3bUzC64a9r zJnM44fs5QJxqMC6+PD8AdDWxBtVOCCEA6xB3EU7jQdPfk7yTdxs3cXiqqzU+XykFHVF vO1XsNKo47QyKiATHK3JsqBE7ob1/t/XyuLC9HyFYGc4dNEAzEvGV8+pqbLTEE6uIVgx blYPde7+edJKYQy+Z1X/WG+y6LeKU80qQCSFkRCjhkmkmF6zTytUQUYjzN4COsTSgiwn 793H4T3XgrsJvmRbnKukzhIuBQ+6qpKYCJ8c1SQpsrRUXerKGgk3/SWcjSkidGIbLZG2 K8IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Yzq9Xw4dTcc5E2TJ7dbQo9WUoZ24uQ0OYS9i7lTvOIE=; fh=BVyRkeWQgbLHHjD2wsZRKNYbtMse/+APTjljLzZQ3qo=; b=MQ1cd6+26l/p1ciBTzFvQNMQvYJxShyRTGd2FvXmF4S2sf4aexLA31zcMMDSVTYzg7 5r2e5Q5ENNU7FrIun+GFGOy90iWsY4OOcRjNWgxN2wapI88Jakl11YWVf7NyCYj/rpxF kpX/oJdVK5f6tkiTiap76efFCNnqE6PGVSi0oHuyQwmL6AsKNuLARtDnf2W2V+UpTEmM TPiC3KTlKNs6reVOCLYkNdAxkNV51Lg4cXXbiugQP0k4euO/biekGmt8BGWkyhoohlN0 +NFMIWO3EUHwibregdezVHESrtp+GFGd5h/LeEDRqMGiasHOZxJP1OtGo/ySd1sykn1L nzaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="o/iE9Cum"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ce6-20020a056a002a0600b0068be9e10995si1207825pfb.70.2023.09.14.02.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 02:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="o/iE9Cum"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 074CA803200D; Tue, 12 Sep 2023 09:32:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236847AbjILQcb (ORCPT <rfc822;pwkd43@gmail.com> + 37 others); Tue, 12 Sep 2023 12:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233551AbjILQc2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Sep 2023 12:32:28 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B1D610EF for <linux-kernel@vger.kernel.org>; Tue, 12 Sep 2023 09:32:24 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38CFSmv7002448; Tue, 12 Sep 2023 11:32:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=Y zq9Xw4dTcc5E2TJ7dbQo9WUoZ24uQ0OYS9i7lTvOIE=; b=o/iE9Cum2iFUEYrLR KjePNT74rq72mj66a4QBGI2U7JYIBOm/Z8FRWkM0sNRZw28mE9epAptvjy3JITKI IJvADMAXIrOmyvmGXQg1a3BW7nhPYkkBLsaOtEMIgCbFhIk9GOgLyYkoPhbVjyoN QkpkQNPjk5FtgsksT2r58iNDyI8r9WL73+PAv52CngHXpzZKDUa3S1bFtV6DcoDX +KZicOPf9yamOqfWuq9cDB0zT1KT59/UcHm7Qyx8Y4g2/Z/rFXo/4j2BIc1LMX2n krPN09BFmVfP4iyFpZfTTuVg8X80DuCw3QkcIFp/fg+BHYEpTD5in4alZfP0O09N DDxRg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3t0p3xkxda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Sep 2023 11:32:10 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Tue, 12 Sep 2023 17:32:08 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Tue, 12 Sep 2023 17:32:08 +0100 Received: from edi-sw-dsktp-006.ad.cirrus.com (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.125]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id E5B9815B4; Tue, 12 Sep 2023 16:32:07 +0000 (UTC) From: Richard Fitzgerald <rf@opensource.cirrus.com> To: <broonie@kernel.org>, <pierre-louis.bossart@linux.intel.com>, <yung-chuan.liao@linux.intel.com>, <kai.vehmanen@linux.intel.com>, <peter.ujfalusi@linux.intel.com> CC: <alsa-devel@alsa-project.org>, <patches@opensource.cirrus.com>, <linux-kernel@vger.kernel.org>, Richard Fitzgerald <rf@opensource.cirrus.com> Subject: [PATCH 0/4] ASoC: cs35l56: Use PCI SSID to select specific firmware Date: Tue, 12 Sep 2023 17:32:03 +0100 Message-ID: <20230912163207.3498161-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: SBbUJ2GtAPPLx8gAMzW7KuSaoCNZSC6r X-Proofpoint-GUID: SBbUJ2GtAPPLx8gAMzW7KuSaoCNZSC6r X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 09:32:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776855374088356423 X-GMAIL-MSGID: 1777004146126851881 |
Series |
ASoC: cs35l56: Use PCI SSID to select specific firmware
|
|
Message
Richard Fitzgerald
Sept. 12, 2023, 4:32 p.m. UTC
The PCI device registers contain a subsystem ID (SSID), that is separate from the silicon ID. The PCI specification defines it thus: "They provide a mechanism for board vendors to distiguish their boards from one another even thought the boards may have the same PCI controller on them." This allows the driver for the silicon part to apply board-speficic settings based on this SSID. The CS35L56 driver uses this to select the correct firmware file for the board. The actual ID is part of the PCI register set of the host audio interface so this set of patches includes extracting the SSID from the Intel audio controller and passing it to the machine driver and then to ASoC components. Other PCI audio controllers will have the same SSID registers, so can use the same mechanism to pass the SSID. Richard Fitzgerald (4): ASoC: soc-card: Add storage for PCI SSID ASoC: SOF: Pass PCI SSID to machine driver ASoC: Intel: sof_sdw: Copy PCI SSID to struct snd_soc_card ASoC: cs35l56: Use PCI SSID as the firmware UID include/sound/soc-acpi.h | 7 ++++++ include/sound/soc-card.h | 37 ++++++++++++++++++++++++++++++++ include/sound/soc.h | 11 ++++++++++ include/sound/sof.h | 8 +++++++ sound/soc/codecs/cs35l56.c | 11 ++++++++++ sound/soc/intel/boards/sof_sdw.c | 6 ++++++ sound/soc/sof/sof-audio.c | 7 ++++++ sound/soc/sof/sof-pci-dev.c | 8 +++++++ 8 files changed, 95 insertions(+)
Comments
On Tue, 12 Sep 2023 17:32:03 +0100, Richard Fitzgerald wrote: > The PCI device registers contain a subsystem ID (SSID), that is > separate from the silicon ID. The PCI specification defines it thus: > > "They provide a mechanism for board vendors to distiguish their > boards from one another even thought the boards may have the same > PCI controller on them." > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/4] ASoC: soc-card: Add storage for PCI SSID commit: 47f56e38a199bd45514b8e0142399cba4feeaf1a [2/4] ASoC: SOF: Pass PCI SSID to machine driver commit: ba2de401d32625fe538d3f2c00ca73740dd2d516 [3/4] ASoC: Intel: sof_sdw: Copy PCI SSID to struct snd_soc_card commit: d8b387544ff4d02eda1d1839a0c601de4b037c33 [4/4] ASoC: cs35l56: Use PCI SSID as the firmware UID commit: 1a1c3d794ef65ef2978c5e65e1aed3fe6f014e90 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark