From patchwork Fri Jan 7 16:06:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charles Keepax X-Patchwork-Id: 12706808 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D9BDC433EF for ; Fri, 7 Jan 2022 16:07:42 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 70BAD17AE; Fri, 7 Jan 2022 17:06:50 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 70BAD17AE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1641571660; bh=qcgxyM/M86pC78VSKykOD8PQbKHPVYipdfRDP09tDqs=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=RtuZBKv0AGy4Tk0ShJHTyp/RiE9OClhDd8jTFM5T0PY+nyIqSg2R1ytfuiEvwZznQ 5yy3qOLwn9p1PwuGWhuNLPCQwCGxwYX7kgfL57v1oLoUW7Nd6aFnZPtyuHOA6OE2pV ueGcGgOHxtw8wQoSWi+39vSXi1ptqyBCCLtBMqUA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0664CF80254; Fri, 7 Jan 2022 17:06:50 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 85FF5F8025D; Fri, 7 Jan 2022 17:06:47 +0100 (CET) Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8D635F800AE for ; Fri, 7 Jan 2022 17:06:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8D635F800AE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="olG8vwsE" Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 207Fo5en008257; Fri, 7 Jan 2022 10:06:39 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=PODMain02222019; bh=AZHvETci1n4kMyjiI/bOuQF4OLFyYHQKnRu4S0irYFs=; b=olG8vwsEcPNMSK3tSB1JJXTYjUE+NrjP0EwdqJEZDnjWODmsxIi46VYZNj9eRXvTS5to tR66+UazjYHQSrPvhYa9WXpthmQjYNwsGbXTphra8wmnfqwJf36/XMWlvjvkFPs1TZ73 07mGXNvF3EdaWOr6iSdbN5PZIDto6vI4n0R5HsPnaP3zprHtMGC4Ig0YR4egKvCNfhQ2 I3lksVUGghi8GNtZkjGeDNEAsaMd1QlP/dRSvpN4bxjq0T2izQlYXEwnJQ9+TkjLJJ/A Pz8sLHrM0kjL4DvJecragpyqT7rUqG6v9HKNpi/i0gBkHLJb+bSBoxPm9pt2kwqGth67 bA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3dergng0n6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 07 Jan 2022 10:06:39 -0600 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.2375.17; Fri, 7 Jan 2022 16:06:37 +0000 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.2375.17 via Frontend Transport; Fri, 7 Jan 2022 16:06:37 +0000 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id E605B2A9; Fri, 7 Jan 2022 16:06:36 +0000 (UTC) From: Charles Keepax To: Subject: [PATCH 0/2] Add low power hibernation support to cs35l41 Date: Fri, 7 Jan 2022 16:06:34 +0000 Message-ID: <20220107160636.6555-1-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Proofpoint-GUID: 7xccvbLp4fFnrv5ejlmM7n3yv1ycpRtz X-Proofpoint-ORIG-GUID: 7xccvbLp4fFnrv5ejlmM7n3yv1ycpRtz X-Proofpoint-Spam-Reason: safe Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, david.rhodes@cirrus.com, lgirdwood@gmail.com, tiwai@suse.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" This patch series adds support for the low power hibernation feature on cs35l41. This allows the DSP memory to be retained whilst the device enters a very low power state. These patches will cause some very minor conflicts with Lucas's currently outstanding work on the HDA version of cs35l41. Whilst things will still build (well now I fixed my silly mistake), this patch adds a test key function his code will now have to call. It looks like Lucas's patch might get a respin based on the comments from Andy, in which case I guess we can pull the small change into the next version of it. But either way these patches are not urgent so I am happy if they sit around until Lucas's stuff is merged too. Thanks, Charles Charles Keepax (2): ASoC: cs35l41: Update handling of test key registers ASoC: cs35l41: Add support for hibernate memory retention mode include/sound/cs35l41.h | 7 ++ sound/soc/codecs/cs35l41-i2c.c | 1 + sound/soc/codecs/cs35l41-lib.c | 73 +++++++------ sound/soc/codecs/cs35l41-spi.c | 1 + sound/soc/codecs/cs35l41.c | 233 +++++++++++++++++++++++++++++++++++++---- sound/soc/codecs/cs35l41.h | 4 + 6 files changed, 268 insertions(+), 51 deletions(-)