From patchwork Thu Aug 19 06:14:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1518431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gqvd43j9nz9t18; Thu, 19 Aug 2021 16:15:04 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mGbKO-0008SU-2o; Thu, 19 Aug 2021 06:15:00 +0000 Received: from mail-pj1-f44.google.com ([209.85.216.44]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mGbKB-0008KZ-V2 for kernel-team@lists.ubuntu.com; Thu, 19 Aug 2021 06:14:48 +0000 Received: by mail-pj1-f44.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so10619084pjr.1 for ; Wed, 18 Aug 2021 23:14:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/axbKTBSQsd3MRxcPbvqfsFaTdudOqHQTZVytgpQK2Y=; b=dhhxtnOgqV2zg6LsYQPHohIzF/8t/LXGq+azHG9r+vBbxRs8Jt+cQTDU0tKJMh69PF 79LUjwWqXlgSkHYm3lf9pzjosmkpXmJS5OkxWpOBGUkdQqHJ1JqTWSMWt3sw2VR/Yd2t QAhOyp7XY0b2s1ik9Glj7sdVhOBWExwaNm5Tp9EC6TAIMqaugt/pn1Ga5km3psd1+baz QbmFR/bvlK1qvLw61w3kCnVMPS8aPWMR1EGcnKWzl2ihr/gHzBvYpUIZB0DzhsG6byVL v1uGJeeSnTTiNz1pc4+mJBLvc1fRauJfP3yqhCsIS4HVWwnccK/6CJZfbbrB/pblmDDo ZFHA== X-Gm-Message-State: AOAM530gk93lioUqveqywn9KI6N9mce/nXBUPJZsKCuk24bSpgKUUuYC yeC3vlJSq+O7t3ZqgJDKqn+vvnZujX/AcA== X-Google-Smtp-Source: ABdhPJwiO9wGDyl9U1SY7qoAnZJawoTdYFZhQgk3x/whe57ptSQxGvg+XVvo5KgNVsSgyZc5a+ejIA== X-Received: by 2002:a17:90a:a581:: with SMTP id b1mr10189816pjq.146.1629353684901; Wed, 18 Aug 2021 23:14:44 -0700 (PDT) Received: from localhost (114-47-140-65.dynamic-ip.hinet.net. [114.47.140.65]) by smtp.gmail.com with ESMTPSA id j185sm1808130pfb.86.2021.08.18.23.14.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 23:14:44 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 08/30][SRU][OEM-5.13][I][U] ALSA: hda/cs8409: Disable unsolicited response for the first boot Date: Thu, 19 Aug 2021 14:14:04 +0800 Message-Id: <20210819061427.900601-9-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819061427.900601-1-vicamo.yang@canonical.com> References: <20210819061427.900601-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.44; envelope-from=vicamo@gmail.com; helo=mail-pj1-f44.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Lucas Tanure BugLink: https://bugs.launchpad.net/bugs/1939541 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 Link: https://lore.kernel.org/r/20210811185654.6837-9-vitalyr@opensource.cirrus.com Signed-off-by: Takashi Iwai (cherry picked from commit 134ae782c468769b5524bed50e8d58ed3cad3587) Signed-off-by: You-Sheng Yang --- 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;