Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4587257iog; Wed, 22 Jun 2022 01:43:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sx2qbvBbd4tCiRXh+GjeIFIw3FfD08juXAhSDg/GY2uhXiGBqn01sad6hXItA+aTF3XfP7 X-Received: by 2002:aa7:cdd1:0:b0:435:750f:7c75 with SMTP id h17-20020aa7cdd1000000b00435750f7c75mr2746775edw.91.1655887384335; Wed, 22 Jun 2022 01:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655887384; cv=none; d=google.com; s=arc-20160816; b=TeNcDulzdd7p+LtlNysYZnLJMUi7V1V3dJYbTtvekADBgpRnxKV5Mr181x08QA1z5Y 4GrMvWhNxNyAG3Z898XQNLYSMqcAFI7DKcBTbO2SxMi7Vj3qfUiXF0ImcMwE3ksLVzHV dOx73UH4tsw0D4H8/dbKq1fe1xSTBmZPi90I3qatw6oonIM/94yyz67x7gZPyGFVhyrw S64jSJo8OTnD+yQdli3zwAOZlrOguy71ftIWO1D8t7x9AZHCeO8GEHyKtikeWok37Wqu PgweqGsVlHUiGrDAyfvM8fUd6s3vyyZKK2F4Q2Daj9t4kUgSr4vCOvzR/qssErdgOxdI AKhw== 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=1RRaMRmqCtNJ/aNxiTNL3YnYTBnZ5RcjAuQuvPbk0Tk=; b=tTQVBX/IxL7azrPwEVpzDbtp8UtCmEiBfmpsJz8kI37iA7o6a5AFIz1fyZAr0YuFqb OLhyVFbzP7rF7im3eB8j2hSLWamg6hsube8mFee35qxIiK9TWztL/XAY8cpSSZM/26pL /J8EakOcWrOmgkHKF3FwZWz+1BTqMjS6qoB9aG20uxDZW6Vn8OCnZsVzUZfIY58leoV5 Ozh/VsnOGM8hYv6M0I9tj2pbXqLMHEBlnQ/QoY7twLg6Q0bhioTGDhlt9lkA0kRl/Fu9 TISYBjmX4KaZT/9TjWS7+ZmPUL0zmWkufMZNW7XjJEjYAGJLf7R5NyPM0mNL60VbJ7B4 jmDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OnILg0MP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a056402255100b004355a191e8csi19142487edb.69.2022.06.22.01.42.37; Wed, 22 Jun 2022 01:43:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OnILg0MP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355072AbiFVIkf (ORCPT + 99 others); Wed, 22 Jun 2022 04:40:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354745AbiFVIke (ORCPT ); Wed, 22 Jun 2022 04:40:34 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21FE938BD8 for ; Wed, 22 Jun 2022 01:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655887233; x=1687423233; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=lfCre8ivv7Zd1IkJm7XBr2ruY993pMUvBr7MGHnoa5E=; b=OnILg0MPQvb5OVLv5kxV/KQnQpmOUychfS5R3GhupR7X+Jsscy+oMZxj GQ0/WNWmeY/32qUXiEIQLSBEv8wxh89lN8+0TOUNEfs8ghBymt2ugGaXY O+OXTcMEr+pb7tXBYX39W6xanOrdxRjOuS/0rgxC4E0qesexrWK2WL1g1 NQnuQP2AGK76ITF4TMw0saqJFEekspDrOv8ktBaVlW11XJNax6K6WvBBw CskufMmN8Csi1yMwX+JNWLR6XirCEiy0l0wwqSRzhxUnqDRuM+8SdWIJD YV/tAh5P0je5wQR1Tg6bm2XsmZEG9wCcXBABKVsEtlATEClos8OJbkX5C A==; X-IronPort-AV: E=McAfee;i="6400,9594,10385"; a="277904491" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="277904491" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 01:40:32 -0700 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="644080043" Received: from aslawinx-mobl.ger.corp.intel.com (HELO [10.99.249.103]) ([10.99.249.103]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 01:40:31 -0700 Message-ID: Date: Wed, 22 Jun 2022 10:40:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v7 05/14] ALSA: hda: cs35l41: Save Subsystem ID inside CS35L41 Driver Content-Language: en-US To: Vitaly Rodionov , Jaroslav Kysela , Takashi Iwai , Mark Brown Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Stefan Binding References: <20220622074653.179078-1-vitalyr@opensource.cirrus.com> <20220622074653.179078-6-vitalyr@opensource.cirrus.com> From: =?UTF-8?Q?Amadeusz_S=c5=82awi=c5=84ski?= In-Reply-To: <20220622074653.179078-6-vitalyr@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/22/2022 9:46 AM, Vitaly Rodionov wrote: > From: Stefan Binding > > The Subsystem ID is read from the HDA driver, and will > be used by the CS35L41 driver to be able to uniquely > identify the laptop, which is required to be able to > define firmware to be used by specific models. > > Signed-off-by: Stefan Binding > Signed-off-by: Vitaly Rodionov > --- > sound/pci/hda/cs35l41_hda.c | 3 +++ > sound/pci/hda/cs35l41_hda.h | 1 + > sound/pci/hda/hda_component.h | 1 + > sound/pci/hda/patch_realtek.c | 1 + > 4 files changed, 6 insertions(+) > > diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c > index 92c6d8b7052e..7f0132694774 100644 > --- a/sound/pci/hda/cs35l41_hda.c > +++ b/sound/pci/hda/cs35l41_hda.c > @@ -356,6 +356,9 @@ static int cs35l41_hda_bind(struct device *dev, struct device *master, void *mas > return -EBUSY; > > comps->dev = dev; > + if (!cs35l41->acpi_subsystem_id) > + cs35l41->acpi_subsystem_id = devm_kasprintf(dev, GFP_KERNEL, > + "%.8x", comps->subsystem_id); Wouldn't comps->codec->core.subsystem_id instead of comps->subsystem_id work here? You already added saving of codec in patch 3, and then you don't need rest of this patch?