Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2766296pxj; Mon, 31 May 2021 10:12:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrkKcRjn68AZYt7XP7EzNhSmUCT6mx7QzxdMorJFeiHSrQ/lRDJevlwnXmWTu669F7USNF X-Received: by 2002:a17:906:5391:: with SMTP id g17mr11392144ejo.461.1622481131644; Mon, 31 May 2021 10:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622481131; cv=none; d=google.com; s=arc-20160816; b=qaDPsyoJyVbxUvu+l6tMQY1hX1kBa2yJSQ8xW+nuR60TZLVFJ0LtGruAiVvabB2GpR pM0+ZQocUvO5KiQsUwhUTxvQ0HVQ/dqZ6AuWVoa9G6yj+5wD7pgt9qmRCi9zouNI2TuJ Azf8QDs+VBbEPTcKNIB5anf6niwBx6AESDJusruJ2WKAqgk2KRAVrp7nj0XwhKTQ6cA9 L+P5rAfYQtPm2bbz1J8lx7S+Ky9YkL2OQ/URsBI6Lycjj3gJLT3K+JNpIExZcNO+sGK9 Ij39Q+IUvWpkib98BSxL8QNGQ7H9HzEsMEgvxn2gMTlfbHWAhvTSCrjelgNRoAV5/H46 C6ZQ== 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=dqTOwjhr7Npem3urBCYYnMAA5DL+HiXM8f0EdwNTHLM=; b=MPOeV6gOi8qdr/S1SOcGkhVvg938FEsERNYeko/KCdtu1lKEOmZshXHuMsgR1KRzIq HpVNjB2S2yk9/TcVsNxCXVIaF1poapUESoz4hVwrpQZZyH7IlgDTEn+S+mZpTuDo+CpD FM4JXw1QrdIA44gJD29NYZti/EpDBs6jwxfjjIHLvcfADTx7IBdzE7NNI8iaVauKe6Mw VabnYhRIlcNgQ06RIE0wQgVBoiwJWDVXx3OrlSeTgEYH7nwx1VOCkkfxdAwj8ommluFs eCq/bQDGIjN4vfaU6ia7sKwkNILxbTwDVSu3tJ6MvzrEn/GS/A/V/LmvHdv11DTw6h27 PB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Fuul6hxR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si91067edr.482.2021.05.31.10.11.48; Mon, 31 May 2021 10:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Fuul6hxR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234716AbhEaRJZ (ORCPT + 99 others); Mon, 31 May 2021 13:09:25 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:16312 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233092AbhEaQzb (ORCPT ); Mon, 31 May 2021 12:55:31 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14VGpfL9008565; Mon, 31 May 2021 11:52:59 -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=dqTOwjhr7Npem3urBCYYnMAA5DL+HiXM8f0EdwNTHLM=; b=Fuul6hxRPT9zkAu6rHtksE/mb0gbb3O52lL2eXfBSIQws2OjZeGcbHfboGlj9epJUjmN FBeAQ6FZ+iGEvA0EDwWRTTT957ybkUsxc6/2sbNCkW9fa2g3UzuQdAz6omxsfdiEtehh SEDXSKLw7d+rJh6ODSiOHIn4unG7DZ42Pv8W7tTqJStlyTDg3s2AdIn/aQ9nL788NAbJ 3xhBoM/C6tGpYCcq1onyb3DbrKPaibJ6wq0OKjYwFZraoqctW03qq2m8AbtvZ1BnW1I7 zgnA1iit2ht9FngvRE9hfRvUmuFW0ArSWpA9lrkyE9fAvP/wTdOGoPUFdeYgtUltgL4i tQ== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 38vv1h0cvr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 31 May 2021 11:52:59 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Mon, 31 May 2021 17:37:54 +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.2242.4 via Frontend Transport; Mon, 31 May 2021 17:37:54 +0100 Received: from vitaly-Inspiron-5415.ad.cirrus.com (unknown [198.90.238.140]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id A63202B2; Mon, 31 May 2021 16:37:54 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai CC: , , , Stefan Binding Subject: [PATCH v1 1/1] ALSA: hda/cirrus: Set Initial DMIC volume to -26 dB Date: Mon, 31 May 2021 17:37:54 +0100 Message-ID: <20210531163754.136736-1-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: q9zGe_kq_7CSLQUe56y0KRyUE0--1XqA X-Proofpoint-GUID: q9zGe_kq_7CSLQUe56y0KRyUE0--1XqA X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxlogscore=999 clxscore=1015 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105310126 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Binding Previously this fix was applied only to Bullseye variant laptops, and should be applied to Cyborg and Warlock variants. Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov --- sound/pci/hda/patch_cirrus.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 726507d0b04c..8629e84fef23 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c @@ -2206,10 +2206,9 @@ static void cs8409_cs42l42_fixups(struct hda_codec *codec, break; case HDA_FIXUP_ACT_PROBE: - /* Set initial volume on Bullseye to -26 dB */ - if (codec->fixup_id == CS8409_BULLSEYE) - snd_hda_codec_amp_init_stereo(codec, CS8409_CS42L42_DMIC_ADC_PIN_NID, - HDA_INPUT, 0, 0xff, 0x19); + /* Set initial DMIC volume to -26 dB */ + snd_hda_codec_amp_init_stereo(codec, CS8409_CS42L42_DMIC_ADC_PIN_NID, + HDA_INPUT, 0, 0xff, 0x19); snd_hda_gen_add_kctl(&spec->gen, NULL, &cs8409_cs42l42_hp_volume_mixer); snd_hda_gen_add_kctl(&spec->gen, -- 2.25.1