Message ID | 20230118160452.2385494-1-sbinding@opensource.cirrus.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2423867wrn; Wed, 18 Jan 2023 08:13:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXuXGJTioV+fmc1XGIjK3dCURfS1YO0G76dKm6x3X+tlN+qzwDbAt65nLZPGo8O7xmBnlLOj X-Received: by 2002:a05:6402:d68:b0:461:ca30:653 with SMTP id ec40-20020a0564020d6800b00461ca300653mr7658995edb.31.1674058413543; Wed, 18 Jan 2023 08:13:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674058413; cv=none; d=google.com; s=arc-20160816; b=PKAjk3W8KgHzuYPDBJydXV1xVZJs7p3HMf9jMvxynBd9zDBuuDLrQRNpt22e1nTDko JaNvJob2RbLAxYBmHIHyr3HuzAJJnBWxtkSDbEuiDNBccDk9a5PuZkUGmEhrrC0ovpdm V4nb1vnh+zkpdZnqOwPH0ytHqyetcRQ0kTEesbI+P9pMDLGrbpl7mbvGY1wPhYBI+OGP nez7QHkKN038tFtqahiPPQVhNBMZHKGWPNcYxe1xK1AebpEWkPB19eOgZ8UjxkWnzMpx KtAv6gSGRj1l9sYnD6TlxmYYrAXF6f/75/qewZ4Dw0GLXG0hd8/7BelVk5XQdupWbl4f RD0g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=TubZNWDH/zWXtSwzOFhswLR3JQxQo2D9s8O6hcO+0V4=; b=cBJ+X6dzGFSHkAaGhhG5T7NcqyYcjlm4L/mvay1kvVqBnCXIvJstJs45VBEudzVcIk lm0rrOCztZcv4a/Ch8ajxshNuTTy/vQp1qEneGfp8giDl7O3AcMnq/uFGSPKBKhXCEeh PN+GvQwnVat+MJfzVr5jw3/ja+gel4iMvlEnLXYZhMfdCNAwKiPCGP5EQVXc2/eaQpHe k5LxaXaocbD/1S0vkbTklnwaz/AqoTfrydObnkb+WFlyUVrvWK1HEnAVHPz1umcNTphn zWk4Ia/Hb4TsqllekKG7OnbCWgAThyOF9wKTFLJ62dq+ZITChXyLYQyVlCCG2V83AaxI +EeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=letUPSPx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056402355400b0048c0b5672cesi15693575edd.552.2023.01.18.08.13.09; Wed, 18 Jan 2023 08:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=letUPSPx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229998AbjARQJm (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Wed, 18 Jan 2023 11:09:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjARQJF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Jan 2023 11:09:05 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D60BF3EFC7 for <linux-kernel@vger.kernel.org>; Wed, 18 Jan 2023 08:05:16 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30IEEjl9023722; Wed, 18 Jan 2023 10:05:02 -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-transfer-encoding : content-type; s=PODMain02222019; bh=TubZNWDH/zWXtSwzOFhswLR3JQxQo2D9s8O6hcO+0V4=; b=letUPSPxqdfsIp8ZZBevx0WFZ3Ifg5H8vlu7ipN2qVVT8pZCTqJL53mumnEg3N7Tlcc3 YoVJT/CJcTsuvUfjJcn5EBGujKCM1ZNM8kNW1lyjbP3zIdI1tLpwtLMsX46eD16BVX3s UVUFRItS2ZvE5iJqUH78lNcKqh8shj6n/vL3PFW+vrLFZ/JhaRi4pzdcX3qf/qgn6//V TGhiXlhHs2+8ohep2SKfzm808EiI/Ch+c685r2CvMQ3v6io83IXwlJdIfAc8uOD+Ndfn jZbngziWhDzrAKepUEFXogCOyWP/oil3/uUnVDwKK8uW1mcPCkBimyg9BebdKMAJ0U7k cA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3n3spx6vk8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Jan 2023 10:05:00 -0600 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.21; Wed, 18 Jan 2023 10:04:57 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.7 via Frontend Transport; Wed, 18 Jan 2023 10:04:57 -0600 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.202.160]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id DD5B411CA; Wed, 18 Jan 2023 16:04:56 +0000 (UTC) From: Stefan Binding <sbinding@opensource.cirrus.com> To: Mark Brown <broonie@kernel.org>, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> CC: <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>, <patches@opensource.cirrus.com>, Stefan Binding <sbinding@opensource.cirrus.com> Subject: [PATCH v2 0/8] ASoC: cs42l42: Add Soundwire support Date: Wed, 18 Jan 2023 16:04:44 +0000 Message-ID: <20230118160452.2385494-1-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Dvqzp6B2ec0kf04P6WmVhfG2McbCgK_L X-Proofpoint-ORIG-GUID: Dvqzp6B2ec0kf04P6WmVhfG2McbCgK_L X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755377468920177328?= X-GMAIL-MSGID: =?utf-8?q?1755377474652947416?= |
Series |
ASoC: cs42l42: Add Soundwire support
|
|
Message
Stefan Binding
Jan. 18, 2023, 4:04 p.m. UTC
The CS42L42 has a Soundwire interface for control and audio. This chain of patches adds support for this. Patches #1 .. #5 split out various changes to the existing code that are needed for adding Soundwire. These are mostly around clocking and supporting the separate probe and enumeration stages in Soundwire. Patches #6 .. #8 actually adds the Soundwire handling. Changes since v1: - fixes for various review comments from v1 - add support for wakeup from clock stop using hardware interrupts - use port_prep callback to prepare/deprepare codec Richard Fitzgerald (6): ASoC: cs42l42: Add SOFT_RESET_REBOOT register ASoC: cs42l42: Ensure MCLKint is a multiple of the sample rate ASoC: cs42l42: Separate ASP config from PLL config ASoC: cs42l42: Export some functions for Soundwire ASoC: cs42l42: Add Soundwire support ASoC: cs42l42: Don't set idle_bias_on Stefan Binding (2): soundwire: stream: Add specific prep/deprep commands to port_prep callback ASoC: cs42l42: Wait for debounce interval after resume drivers/soundwire/stream.c | 4 +- include/linux/soundwire/sdw.h | 8 +- include/sound/cs42l42.h | 5 + sound/soc/codecs/Kconfig | 8 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/cs42l42-sdw.c | 603 +++++++++++++++++++++++++++++++++ sound/soc/codecs/cs42l42.c | 127 ++++--- sound/soc/codecs/cs42l42.h | 9 +- 8 files changed, 716 insertions(+), 50 deletions(-) create mode 100644 sound/soc/codecs/cs42l42-sdw.c
Comments
On 1/18/23 10:04, Stefan Binding wrote: > The CS42L42 has a Soundwire interface for control and audio. This > chain of patches adds support for this. > > Patches #1 .. #5 split out various changes to the existing code that > are needed for adding Soundwire. These are mostly around clocking and > supporting the separate probe and enumeration stages in Soundwire. > > Patches #6 .. #8 actually adds the Soundwire handling. > > Changes since v1: > - fixes for various review comments from v1 > - add support for wakeup from clock stop using hardware interrupts > - use port_prep callback to prepare/deprepare codec > > Richard Fitzgerald (6): > ASoC: cs42l42: Add SOFT_RESET_REBOOT register > ASoC: cs42l42: Ensure MCLKint is a multiple of the sample rate > ASoC: cs42l42: Separate ASP config from PLL config > ASoC: cs42l42: Export some functions for Soundwire > ASoC: cs42l42: Add Soundwire support > ASoC: cs42l42: Don't set idle_bias_on > > Stefan Binding (2): > soundwire: stream: Add specific prep/deprep commands to port_prep > callback probably want to CC: Vinod and Bard to get their Acked-by tag... > ASoC: cs42l42: Wait for debounce interval after resume > > drivers/soundwire/stream.c | 4 +- > include/linux/soundwire/sdw.h | 8 +- > include/sound/cs42l42.h | 5 + > sound/soc/codecs/Kconfig | 8 + > sound/soc/codecs/Makefile | 2 + > sound/soc/codecs/cs42l42-sdw.c | 603 +++++++++++++++++++++++++++++++++ > sound/soc/codecs/cs42l42.c | 127 ++++--- > sound/soc/codecs/cs42l42.h | 9 +- > 8 files changed, 716 insertions(+), 50 deletions(-) > create mode 100644 sound/soc/codecs/cs42l42-sdw.c >