Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4670256ioa; Wed, 27 Apr 2022 08:36:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyorXy9oDNywiIXEhdPLFds8yrFD+n1IUr5b5rcx6y83+tm8NSX2w4M/PsRkns7QhHS6WC6 X-Received: by 2002:a05:6a00:a85:b0:4e0:57a7:2d5d with SMTP id b5-20020a056a000a8500b004e057a72d5dmr30429985pfl.81.1651073786729; Wed, 27 Apr 2022 08:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651073786; cv=none; d=google.com; s=arc-20160816; b=xxuPJZVjOaDfNAdDMEdZvfQO6KbOdnM2vCleSD7YNzGLQ158DG/Q+mXJtPbQ0vsDS1 9Bl+bP17J67PzEpUpzJa9eRHctoDtYLsvY1FjWn2NP86LXMVflZATkMWv4wE3blyhJee 30D0xo3m4sBPKgNN5DfAoN+BtQVT5l2EF8M6YyTcgfk4gM7XiEMtRX0B3JDbScSEpzVr oQB4yDHVkjPq7lVaMpsAzIUjklHAASWITWOWXTZIqkkBEEMwfly35fCXxA3nsWAUhNcX oVtXtbFm37bvAAAVkWeZkf4VzfCY/xa8HZeDf3R2KBx07e2M0zHAA5VNZ37KDcLmt0IJ zEBA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g1RmRdkWCWx+sGJ2eRDtrZCMuIcQc3eGNVQfIw64t/A=; b=T8GZsy1NjRlynMr6fLwv3Q/xckXNq/aymH0T4fygukwxQgcFLTs0Y9j8ZDk9tY6pBY Y97jBS0kPL45xjdZ7chCQjErpq7N7Mwfi96TFkldCuE6ADMYpcw/NLh9dZ5GQOQ+XKry 1eexfFLycDrsY646Q/IvNjDQDhHyyUkoJWgMlZhliG87yXBbtpCb+XKtKkS5GoZ5DKow Rqdy3U1vT/B7Vo7GCmkSDH+tEWA8udh8ljy2WRGrlTb1j6SMQbl6VLgzRlQIDZ2qpPRi SEnvj71dT+xoCV0+SI5zOAadp1hjza6bjz7MzjbPgfLcQhfkT/v5Htt70+Lx/n4JY3Fo PskQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=J48oAKBM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id co23-20020a17090afe9700b001bd14e01fb2si5139865pjb.160.2022.04.27.08.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:36:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=J48oAKBM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 35C0A2A6A3E; Wed, 27 Apr 2022 08:08:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239322AbiD0PLx (ORCPT + 99 others); Wed, 27 Apr 2022 11:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239049AbiD0PK7 (ORCPT ); Wed, 27 Apr 2022 11:10:59 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 815B254F94 for ; Wed, 27 Apr 2022 08:07:47 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23RBg6qA022428; Wed, 27 Apr 2022 10:07:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=g1RmRdkWCWx+sGJ2eRDtrZCMuIcQc3eGNVQfIw64t/A=; b=J48oAKBM8CiXQM8PDd0ktWr3Mn8WvzkxIGpSEAIQAwkgo62l1ltd0CzZFdTKtDoqV15B Qs4sbdTpPu/QMm5H8UCNWw3RbYNUhypUI4kFBaNXjz7ctVO5SQnS5SO9RjuzzNCQ9M2U 4U7VAU0uYgYkXGCMrxcWBOy6BZQiFVfHhhqLh6xtyN6HOagHggm4d8rVSKUi2PH+snKO 7Q2GMzDX/+LBi7ytLXyOsTt/QWAM7nKvEblZhscYhxwqg49PFup2OWIo8LK/polhukem 8AmwCUG+jBQhEe4I4hu2Usgh5rx28Q+v8mbJzT+FLdlmTRiyY/HG/11ObDao8sLbwc15 VQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3fprt60xte-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 27 Apr 2022 10:07:31 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 27 Apr 2022 16:07:22 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.24 via Frontend Transport; Wed, 27 Apr 2022 16:07:22 +0100 Received: from vitaly-Legion-7-16ACHg6.ad.cirrus.com (unknown [198.90.238.170]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id C511B46C; Wed, 27 Apr 2022 15:07:21 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai , Mark Brown CC: , , , Stefan Binding Subject: [PATCH 02/26] ALSA: hda: cs35l41: Set Speaker Position for CLSA0100 Laptop Date: Wed, 27 Apr 2022 16:06:56 +0100 Message-ID: <20220427150720.9194-3-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220427150720.9194-1-vitalyr@opensource.cirrus.com> References: <20220427150720.9194-1-vitalyr@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: djrlAJ6_sCIosubbElx_wBlLKxpfFMZQ X-Proofpoint-ORIG-GUID: djrlAJ6_sCIosubbElx_wBlLKxpfFMZQ X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 From: Stefan Binding This laptop does not contain required properties inside ACPI, instead the values are be hardcoded inside the driver. Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov --- sound/pci/hda/cs35l41_hda.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index bc277b352ac9..d7e90c0cae51 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -281,6 +281,7 @@ static int cs35l41_hda_read_acpi(struct cs35l41_hda *cs35l41, const char *hid, i /* check I2C address to assign the index */ cs35l41->index = id == 0x40 ? 0 : 1; + cs35l41->hw_cfg.spk_pos = cs35l41->index; cs35l41->reset_gpio = gpiod_get_index(physdev, NULL, 0, GPIOD_OUT_HIGH); cs35l41->hw_cfg.bst_type = CS35L41_EXT_BOOST_NO_VSPK_SWITCH; cs35l41->hw_cfg.valid = true; -- 2.32.0