From patchwork Fri Mar 28 08:03:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi X-Patchwork-Id: 14031741 Received: from smtp134-89.sina.com.cn (smtp134-89.sina.com.cn [180.149.134.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C43B018DB03 for ; Fri, 28 Mar 2025 08:04:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=180.149.134.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743149046; cv=none; b=B320nKkumc9B9zXUJXpVudSN+AhCNUt2MTKSIaOxxC0chC/3+sUXJ1d+Z9CBXCRdusPQe83Mm02/C1mK/SjB26YWPYG8JmRdTJkqT4rOPab8iojV5LAkilpPsBtvYDn40NQgX4QascPM0tM42mGlTjKQIH2jRs+1StIq/5VA6y0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743149046; c=relaxed/simple; bh=NzYQEUI5IMYQzbPwxOcL54RLdpv557uWokoO6HoPeRA=; h=From:To:Cc:Subject:Date:Message-Id; b=o6mwzKalBfvFHXw6y1Ervp4oOn+Vb8RpUZRw7TzuVcc1i06ZGf8j5VtsE6BbjxkjmqSS+OR9837z06x50etlOCXJsc/oKlJ9xJ64lE8EpyDB9JJJEkKXWz3vbQcWoD+EYTaAn4pTDdnoy/hlNXtEiEem79sX1J581TlkJwjL0gQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=everest-semi.com; spf=pass smtp.mailfrom=everest-semi.com; arc=none smtp.client-ip=180.149.134.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=everest-semi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=everest-semi.com Received: from unknown (HELO zy-virtual-machine.localdomain)([180.159.108.242]) by sina.net (10.185.250.31) with ESMTP id 67E657C900005D88; Fri, 28 Mar 2025 16:03:22 +0800 (CST) X-Sender: zhangyi@everest-semi.com X-Auth-ID: zhangyi@everest-semi.com Authentication-Results: sina.net; spf=none smtp.mailfrom=zhangyi@everest-semi.com; dkim=none header.i=none; dmarc=none action=none header.from=zhangyi@everest-semi.com X-SMAIL-MID: 7A2EBD2D146E471FA9632C9DBAF341DC X-SMAIL-UIID: 7A2EBD2D146E471FA9632C9DBAF341DC-20250328-160322 From: Zhang Yi To: broonie@kernel.org, robh@kernel.org, tiwai@suse.com, devicetree@vger.kernel.org, conor+dt@kernel.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, perex@perex.cz, krzk+dt@kernel.org Cc: amadeuszx.slawinski@linux.intel.com, krzk@kernel.org, Zhang Yi Subject: [PATCH v7 0/2] ASoC: codecs: add support for ES8389 Date: Fri, 28 Mar 2025 16:03:17 +0800 Message-Id: <20250328080319.53734-1-zhangyi@everest-semi.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The driver is for codec ES8389 of everest-semi. v7 -> v6: - Modify the order in the Kconfig and Makefile - Remove ES8390 in description of codec driver - Romove unused variable in the codec driver - Modify notation for declaring variables v6 -> v5: add "Reviewed-by" at v6 2/2 v5 -> v4: - Modify kcontrol on DMIC in the codec driver - Modify the way to set the slot and add es8389_set_tdm_slot in the codec driver - Modify the problem ablout making the use of a MCLK depend on the configuration of a TDM slot in the codec driver - Remove the "everest,adc-slot", "everest,dac-slot" and "everest,dmic-enabled" in the codec driver and the yaml file, because they are unnecessary. - Remove the "prefix_name" in the yaml file. v4 -> v3: - Remove simple probe enter/exit debugs in the codec driver - Modify the problem about double free in i2c_probe - Modify the problem about coding style and wrapping - Modify the problem about Bindings are before the user - Modify the ref of "everest,adc-slot" and "everest,dac-slot" in the yaml file - Add description of "prefix_name" and "everest,dmic-enabled" in the yaml file v3 -> v2: Modify the format of examples in the yaml file v2 -> v1: - Remove a empty switch in the codec driver - Modify the format of examples in the yaml file v1 -> v0: - Modify the register names in the codec driver - Use yaml instead of txt to describe dts Zhang Yi (2): ASoC: codecs: add support for ES8389 ASoC: dt-bindings: Add Everest ES8389 audio CODEC .../bindings/sound/everest,es8389.yaml | 50 + sound/soc/codecs/Kconfig | 7 +- sound/soc/codecs/Makefile | 2 + sound/soc/codecs/es8389.c | 962 ++++++++++++++++++ sound/soc/codecs/es8389.h | 140 +++ 5 files changed, 1160 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/sound/everest,es8389.yaml create mode 100644 sound/soc/codecs/es8389.c create mode 100644 sound/soc/codecs/es8389.h