Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5254311pxv; Wed, 28 Jul 2021 06:48:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj7QBIOv8hm2AkWmjiXyl3RwwpO1XocN+f2xTfZSPGf4c37HgfeWwuLUO6XgCulWABY6vA X-Received: by 2002:a92:8747:: with SMTP id d7mr21292292ilm.173.1627480097489; Wed, 28 Jul 2021 06:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627480097; cv=none; d=google.com; s=arc-20160816; b=wXKbo3ruCDDUbGU2M9QXBoC0QW7FhQoRni2Ri7Quj2NW4dQgrclAMoJ5l62GGLriPL xGXagCvLKUweGt/AlSC6D0sL8DEHxSmPhaoyPKyB/f9ZKx2mi1VFNWNOR5czzhj0rAgq UURSFAfB0RbMBmngSl8fDH0F8oB+mZ0AE+Ei08Jf12Ou2lwFFbUMgti/0Exp4Jpgrf1s TfGbxD3d4hStoHsfJYQFCSrBzbViRZvpoNzFD8smnfzTeEoCOJGmzOk6+LqSPxLbb1sR 4DWNzrOw7t3p5CTwlpn+2q1O4MakAXJ0zldC5aEpcJZcKL+8bHcvYniIj1hzt9A6HdmC ANRg== 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=gZBfdzKCf7MimQj8s86TOtGPJRjEk+L7pnGb15Pkchs=; b=Ag3ArMjke9Bu7a/2HtWA65w9uua2cLk+uO1rd0zLW+En5RqmXxNyAccry+h/w9vOl5 pKOFYVPMI7B3/od/NZBY2uLN9QMlEsaCZ2xr5jbhwv2FSkfGKS4GxrWu3Ec6QSQSaI/7 5KtNlbrIYUSX+C0Rmh/Zvd4VfGfLluvWsLoPTQU2se43kkMQoo7Fxk/5wkX9KDz/rBX2 eIpVgmTEBgCF3gkJvy5Y7+lt2XEeg0u0zrInb25lUZiJAtky3yQnfpXdqz7gkCF8Bq4l 8Je4e6G7+kJr2o6+otRmCJK0ooCZgnBTjwxB9AVIx787QPBw0crKXVaV/Osn6SbaW059 q4xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=RDB0ZsMl; 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 p6si7478730ilo.37.2021.07.28.06.48.06; Wed, 28 Jul 2021 06:48:17 -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=RDB0ZsMl; 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 S235377AbhG1NrB (ORCPT + 99 others); Wed, 28 Jul 2021 09:47:01 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:52542 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236554AbhG1Now (ORCPT ); Wed, 28 Jul 2021 09:44:52 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 16S5XUqp014335; Wed, 28 Jul 2021 08:44:36 -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=gZBfdzKCf7MimQj8s86TOtGPJRjEk+L7pnGb15Pkchs=; b=RDB0ZsMl7426umHD7UvwCKQd0rWb7el3C8zHvZMHigqcf31ZVmdRjE5mOGJjPzISmRnX Tceo1pt/3XRC1GSQhBF2ClrrRu6Rzb/E7offcS2vQk9z1pCKRdWuNPQ4AwjYUR2okRCb lMmBXRVDnU4/Y8SnS+PdGGvuEqEV5uSVYyEDLAPthhzUAkibLimrmawK9uwORFdBwTEy 7vFzwp75d8sF9Z8u9Pqgtbzgp1KhRCb09CHaB7wHX3iiBHAjUE6sKSRno/1Oz7EwXGmk owc7b4Mc+rGkyQnjBBeY9BK0zUTp1ac+EwaOQVIiRpqNP8/XUgbzbr6gfCjRUTCWvl2l KQ== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3a30q20fx9-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 28 Jul 2021 08:44:35 -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.2242.4; Wed, 28 Jul 2021 14:44:32 +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; Wed, 28 Jul 2021 14:44:32 +0100 Received: from vitaly-Inspiron-5415.ad.cirrus.com (unknown [198.90.238.32]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 1499B46E; Wed, 28 Jul 2021 13:44:32 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai CC: , , , Lucas Tanure Subject: [PATCH v2 08/27] ALSA: hda/cs8409: Disable unsolicited response for the first boot Date: Wed, 28 Jul 2021 14:43:49 +0100 Message-ID: <20210728134408.369396-9-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210728134408.369396-1-vitalyr@opensource.cirrus.com> References: <20210728134408.369396-1-vitalyr@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: nYVt8qQbqRWkeIHUfynX9EBHxd9gCisE X-Proofpoint-GUID: nYVt8qQbqRWkeIHUfynX9EBHxd9gCisE X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2107280077 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Tanure The subsequence suspend and remuse have their enable/disable unsolicited responses at the correct place already Signed-off-by: Lucas Tanure Signed-off-by: Vitaly Rodionov Changes in v2: - No changes --- sound/pci/hda/patch_cs8409.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/pci/hda/patch_cs8409.c b/sound/pci/hda/patch_cs8409.c index 4906d2913603..2ed07ab3f47e 100644 --- a/sound/pci/hda/patch_cs8409.c +++ b/sound/pci/hda/patch_cs8409.c @@ -621,9 +621,6 @@ static void cs8409_cs42l42_hw_init(struct hda_codec *codec) for (; seq_bullseye->nid; seq_bullseye++) cs8409_vendor_coef_set(codec, seq_bullseye->cir, seq_bullseye->coeff); - /* Disable Unsolicited Response during boot */ - cs8409_enable_ur(codec, 0); - /* Reset CS42L42 */ cs8409_cs42l42_reset(codec); @@ -795,6 +792,8 @@ void cs8409_cs42l42_fixups(struct hda_codec *codec, const struct hda_fixup *fix, 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, NULL, &cs8409_cs42l42_amic_volume_mixer); + /* Disable Unsolicited Response during boot */ + cs8409_enable_ur(codec, 0); cs8409_cs42l42_hw_init(codec); snd_hda_codec_set_name(codec, "CS8409/CS42L42"); break; -- 2.25.1