From patchwork Thu May 12 02:17:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1629876 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=THezTXFf; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KzFn22lqBz9sGJ for ; Thu, 12 May 2022 12:18:13 +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 1noyOu-0006zK-8Q; Thu, 12 May 2022 02:18:00 +0000 Received: from mail-pl1-f181.google.com ([209.85.214.181]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1noyOs-0006wW-Kf for kernel-team@lists.ubuntu.com; Thu, 12 May 2022 02:17:58 +0000 Received: by mail-pl1-f181.google.com with SMTP id c11so3541663plg.13 for ; Wed, 11 May 2022 19:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=KXBjjsBV5iQ4nHx/b8yDIVIkRAn1wJs+ckEq9bEIqI0=; b=THezTXFfS907GtAOOujhCEJQsUAuIuwtoW3MvhoFpU718WwzzUYpekDaSKqeHeeTy3 6RXqhV1H6mZvS8qf+EK0hOtJPbXzw1aE2P7IKGU/KpmF77h/xzsX0XloRVqqJJqjNA4O +bgbZr33StWr9vD7XTXDIuLEquEj4RSFQ5JE9vtzfgGJPP39DRnnxsHCzNQ02imjCmL5 QOBu+zLavOwWMaS+PQKWRAunHMvGCmpYxIc10GWQKI1DUDkmO75VlTAz5Lc41zzKfn9k R7GPD5ErB29lRd8kHRWodoVfmIJJAdDjLvornBLLNQjig3I1aCY6YpKo4EBfJql1B0Ka 2xOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=KXBjjsBV5iQ4nHx/b8yDIVIkRAn1wJs+ckEq9bEIqI0=; b=DGLeJ+5seALlqiUmgyRLd+BQRGekrARREiba2iuvFOerye5CF1kHv4RYyp6FPUUAhq hzNF+yr7KSQezvepPv4HqvGtITOMbevwWzgFJIDIgfGM9L5iCjj2bUGrC12HWoMfAFxL tRoiF2SMh6CoyIHysYsabU8oWX9QePAGoK1I7+qwGf6Kf51vfjaHiAo/aju2kdxqnffw PsgyeGbSlxXoX0v7OxfUyRMQeEsdoHp8oxM7gOCxMz5egKEIFNrBZfLA46x7JhSxiWBb dz3uDNthlF4G8TaXav9gpnQz1l8nnPv0xtTB2tOIfV2zhqBDRyitdX2X7koKJeMFDgSR xgow== X-Gm-Message-State: AOAM531QvOSvKh7CaawErZqfYvRdxJXpiw2c9Zv5n59AxOYH7/T6IzRG 5gphNjDftgOjVf60a9Yie0y3dHV4+ho= X-Google-Smtp-Source: ABdhPJzzhiXGkRCwFLrHisupIgBnVgcW1tUjyxtpkhffORrd/HFYFBpR7OIeZ2XZLGWgcTIe7wQojw== X-Received: by 2002:a17:902:d2c7:b0:15e:c939:efff with SMTP id n7-20020a170902d2c700b0015ec939efffmr28300155plc.126.1652321876415; Wed, 11 May 2022 19:17:56 -0700 (PDT) Received: from localhost (220-135-95-34.hinet-ip.hinet.net. [220.135.95.34]) by smtp.gmail.com with ESMTPSA id o2-20020a170902778200b0015e8d4eb290sm2549470pll.218.2022.05.11.19.17.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 19:17:55 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/4][SRU][OEM-5.17] Headset mic with Cirrus logic codec doesn't work Date: Thu, 12 May 2022 10:17:50 +0800 Message-Id: <20220512021754.271500-1-acelan.kao@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.214.181; envelope-from=acelan@gmail.com; helo=mail-pl1-f181.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: "Chia-Lin Kao (AceLan)" BugLink: https://bugs.launchpad.net/bugs/1972815 [Impact] Headset mic doesn't be selected automatically after headset is plugged in. [Fix] Cirrus provides a fix for this issue https://patchwork.kernel.org/project/alsa-devel/cover/20220504161236.2490532-1-sbinding@opensource.cirrus.com/ [Test] Verified on the target platform, and confirmed these patches work. [Where problems could occur] These affect the mic detection on CS8409_BULLSEYE, CS8409_WARLOCK, CS8409_WARLOCK_MLK, CS8409_WARLOCK_MLK_DUAL_MIC, CS8409_CYBORG, and CS8409_ODIN platforms. Hard to tell if it introduce any regression, will keep an eye on it. Stefan Binding (4): ALSA: hda/cs8409: Fix Full Scale Volume setting for all variants UBUNTU: SAUCE: ASoC: cs42l42: Move CS42L42 register descriptions to general include UBUNTU: SAUCE: ALSA: hda/cs8409: Use general cs42l42 include in cs8409 hda driver UBUNTU: SAUCE: ALSA: hda/cs8409: Support manual mode detection for CS42L42 include/sound/cs42l42.h | 810 +++++++++++++++++++++++++++ sound/pci/hda/patch_cs8409-tables.c | 327 ++++++----- sound/pci/hda/patch_cs8409.c | 300 ++++++---- sound/pci/hda/patch_cs8409.h | 12 +- sound/soc/codecs/cs42l42.h | 815 +--------------------------- 5 files changed, 1184 insertions(+), 1080 deletions(-) create mode 100644 include/sound/cs42l42.h