Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2858786rdb; Tue, 12 Sep 2023 14:35:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoApR3vjkWyvPeRwBaIiaqhjwmT+UeNRZZPZUrEBkbsl5DvfmDIrjYlPYcWNxCr4w7K2nd X-Received: by 2002:a17:90b:1494:b0:26f:4685:5b6c with SMTP id js20-20020a17090b149400b0026f46855b6cmr5116346pjb.19.1694554526196; Tue, 12 Sep 2023 14:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694554526; cv=none; d=google.com; s=arc-20160816; b=rYRHmi/ih3eDFUX6a3e2FdW6+rRu8pKP2N0+t5GSQQzP8lrbjIg/qIw8jLSFWk1cuX Cc1CYodtAr51cghDtRMxPqCEu3hET/MHN7KCR/XvN81XBULfT0KOWzrF6Xfv5GPUuvEV VapkRXoSBBpsgC0RaMU0D0cKkbF9wE4HD8tAjmn6FFG2HNZI4LxCRNzw6m0pquiHN7ds P53JLldvR77ak+Rj7twTFmGyuHqr2qeHFv2yA9r0Y9rB27sqJyfqbpP1aGv8eUnaRIv9 aJhr0nNn+8EABCBDsWFV8ezuWRC9hQYVQ1T/frbWcVW8WSWJR0WK70CGyM7eoktlgU3U u5DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1porTvqeYXaFtlUOTFTmmIvbdiQVMQMctewjU45FxdI=; fh=TTRvwhtSpFfc6xrCAtJ8Hp2lYt48eyAp5fimYFBwG24=; b=DrebM1Ig3Z2vg+LFKTVJJE34xj4TlpiARX3Pnp/bGsi+xarJsxNAwTiySuGwfv/VVD +OmVspcj7x3FI2Hfq7gXpIqFVibRLzEAaOHxY3oqTdcEFMn7Ss7icKLyV7yVb5Gkpc2d HAdpfFxjG1oSD8gIx8VSJsFcyK5ihxssBocov8NswcRqlWNTkNOGORqBMvWe7Cd+6iDM Cl2ucX3SNiT1z8r5N5CAM6McZg7+1R0g5QDxzuARuSfHMbSZLeYGVmUcP60IG89IqdiM wi/bC8W79U3xQtxr5tzVERaBcEtdop8ZBfAvj8iiyAqtH53Lnz1nlVSRHQtOJhn18t2L A7Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ROsOy7uQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r4-20020a17090a940400b0026f51be8d51si111388pjo.82.2023.09.12.14.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 14:35:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ROsOy7uQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D9D9D85C4D75; Tue, 12 Sep 2023 10:44:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237142AbjILRoU (ORCPT + 99 others); Tue, 12 Sep 2023 13:44:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237132AbjILRoT (ORCPT ); Tue, 12 Sep 2023 13:44:19 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 473DB10C9 for ; Tue, 12 Sep 2023 10:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694540655; x=1726076655; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=cm5fmflUTyUPcscwv9xakLpN6ml82B7DzcINH5QsMyM=; b=ROsOy7uQ0lJ8cJKVHFTwqz4HYNg7gkNY3tfjwFLeXNaq3ycc4q5lWP+9 Uqx5gG9KQFj8vPuc1k82b7VaB+Po4ILcIXRi16z0nAYatP4zsYEWi8dd7 9LNB0csZLvz1tSwMIl48W1DpQLKp44LFNwLUkEt8VfhGIe1QiiDuDEREt aXiQLvUxPY6/EpvkO++jwXf8K9zOHTcBtQRxRp4SFp9hEIHEzHelHAZrU 5Z3HCuGtKeNWuztnF6WDlur+N6kA/GAr148QZO4zo4al2X1YqUES5zWcP Hr8CPE+OK5Z0Sz3vZw+piqW0Bt4nw8U50na0vCA3Yc2GWkLaQ+eMNOsOM w==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="378356230" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="378356230" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 10:44:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="809363946" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="809363946" Received: from skotini-mobl.amr.corp.intel.com (HELO [10.209.169.137]) ([10.209.169.137]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 10:44:14 -0700 Message-ID: <1d2d927d-6506-86fb-fc42-038d2d70c853@linux.intel.com> Date: Tue, 12 Sep 2023 13:39:56 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.15.0 Subject: Re: [PATCH 0/4] ASoC: cs35l56: Use PCI SSID to select specific firmware Content-Language: en-US To: Richard Fitzgerald , broonie@kernel.org, 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 References: <20230912163207.3498161-1-rf@opensource.cirrus.com> From: Pierre-Louis Bossart In-Reply-To: <20230912163207.3498161-1-rf@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 10:44:26 -0700 (PDT) On 9/12/23 12:32, 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." > > 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 for the series Reviewed-by: Pierre-Louis Bossart > > 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(+) >