From patchwork Wed Nov 22 06:35:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Chiu X-Patchwork-Id: 1867160 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SZs2l5d0Bz1yRg for ; Wed, 22 Nov 2023 17:36:15 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1r5gq9-0001zO-8W; Wed, 22 Nov 2023 06:36:01 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1r5gpv-0001yC-Bn for kernel-team@lists.ubuntu.com; Wed, 22 Nov 2023 06:35:48 +0000 Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 1F4253F471 for ; Wed, 22 Nov 2023 06:35:47 +0000 (UTC) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-6cb9dd2ab9cso3714830b3a.3 for ; Tue, 21 Nov 2023 22:35:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700634945; x=1701239745; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p5tzhba7p/uJbIsfiUZiGU7TbJ1i99nUpiPqyqpFFyE=; b=R7hFRH4BAZvOhUyCRohzkbGBmULgdrMnEUsaUdGMWNh9X7klHmwfvvr08dfj7SLlid qk62wGPy1vyxVoEP1nCxwTHLsjr08Z5M5xMm5Tix9IqruKm6WdwybRwnchklO6S950Sk AwWWFflWxzBwu+mhT0WeHEq40btPI9S4LxBjIpyZ4stBxInTBGTLKNxe7AeRSBPOJFnT CVO7u4qM+Q2PPrMCsAXghsRho66i+zWgvESYL/AOun7Gh4n9zeEwCtAfQjbsP2HbS2S7 PsiHwefK+2tyylTfc7LC+I1MrC/bJJNNS0m9Un4ZjYTcmH3wqMOQyX0hlGe1BfKiLQlC 1aPA== X-Gm-Message-State: AOJu0Ywr85jy9NyJzz2kajLCKmXq5yngJ0MAxDPwC4CAf4rbynuZoBDU lt76S2D/n23ZXFoYSnwQoH1TkZwJn2TrBOalquPNWBADKbECuCPPJKoUxbg9yNCtnYVOHPIMjEG db+KsllT7oZlqZph3ie0uTKCKa1T2PvOkL6ZxnOlbguFAmG9Ung== X-Received: by 2002:a05:6a00:4c10:b0:6c4:d12c:adf0 with SMTP id ea16-20020a056a004c1000b006c4d12cadf0mr1741967pfb.33.1700634945285; Tue, 21 Nov 2023 22:35:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsxuMOBXZCodNb3lh9h1HVOlhTp4HcisTF9SMqhN6b1Y0J+JU9sCfDX/xo0D5iquGsBTtgEA== X-Received: by 2002:a05:6a00:4c10:b0:6c4:d12c:adf0 with SMTP id ea16-20020a056a004c1000b006c4d12cadf0mr1741947pfb.33.1700634944752; Tue, 21 Nov 2023 22:35:44 -0800 (PST) Received: from localhost.localdomain (114-36-219-155.dynamic-ip.hinet.net. [114.36.219.155]) by smtp.gmail.com with ESMTPSA id z10-20020a056a00240a00b006c31c0dfb69sm8966360pfh.188.2023.11.21.22.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 22:35:44 -0800 (PST) From: Chris Chiu To: kernel-team@lists.ubuntu.com Subject: [PATCH 00/10][SRU][M] Fix system suspend problem for Cirrus CS35L41 HDA codec on HP ZBook Fury 16 G9 Date: Wed, 22 Nov 2023 14:35:31 +0800 Message-Id: <20231122063541.11346-1-chris.chiu@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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" BugLink: https://bugs.launchpad.net/bugs/2042060 [Impact] Few HP ZBook Fury 16 G9 laptops suffers audio problems after system resume from suspend. The audio play and capture functions are not working after resume from S3. [Fix] Backport the fix from Cirrus on linux-next https://lore.kernel.org/all/20231026150558.2105827-1-sbinding@opensource.cirrus.com/. [Test Case] 1. Power on the HP ZBook Fury 16 G9 machine with CS35L41 HDA . 2. Perform system suspend/resume at least 3 times. 3. Verify the audio functions, including playback and capture [Where problems could occur] Only affect specific laptops with the CS35L41 HDA. The impact is restricted. Stefan Binding (10): ALSA: hda: cs35l41: Support systems with missing _DSD properties ALSA: hda: cs35l41: Override the _DSD for HP Zbook Fury 17 G9 to correct boost type ALSA: hda: cs35l41: Use reset label to get GPIO for HP Zbook Fury 17 G9 ALSA: hda: cs35l41: Assert reset before system suspend ALSA: hda: cs35l41: Assert Reset prior to de-asserting in probe and system resume ALSA: hda: cs35l41: Run boot process during resume callbacks ALSA: hda: cs35l41: Force a software reset after hardware reset ALSA: hda: cs35l41: Do not unload firmware before reset in system suspend ALSA: hda: cs35l41: Check CSPL state after loading firmware ASoC: cs35l41: Detect CSPL errors when sending CSPL commands include/sound/cs35l41.h | 3 + sound/pci/hda/Makefile | 2 +- sound/pci/hda/cs35l41_hda.c | 235 ++++++++++++++------------- sound/pci/hda/cs35l41_hda.h | 1 + sound/pci/hda/cs35l41_hda_property.c | 112 +++++++++++++ sound/pci/hda/cs35l41_hda_property.h | 18 ++ sound/soc/codecs/cs35l41-lib.c | 6 + 7 files changed, 262 insertions(+), 115 deletions(-) create mode 100644 sound/pci/hda/cs35l41_hda_property.c create mode 100644 sound/pci/hda/cs35l41_hda_property.h Acked-by: Stefan Bader Acked-by: Tim Gardner