Received: by 10.223.185.116 with SMTP id b49csp2628788wrg; Mon, 5 Mar 2018 06:16:19 -0800 (PST) X-Google-Smtp-Source: AG47ELuYPO/s5BNdHiukcstKX3RwGUwG6JbuIeEarIcFFG5j/A4kjfeBoYDrxfkXmvIISAURfL9B X-Received: by 10.98.14.79 with SMTP id w76mr7648523pfi.1.1520259379710; Mon, 05 Mar 2018 06:16:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259379; cv=none; d=google.com; s=arc-20160816; b=StuWaMbXn6vUHnnkmAjXpyVJwJ4CIp0nA6XxzYHS0AGgwYkmtnu3MGQOZPUlMxBJE6 6etGho7q9IeoguY6zV+FmdLBrvTpeaxYZZmtgeekS0PJ7T7VUJ8VxVz+JqsSKQq2ZPlV cYA8AOLTvyu4G/i6HhyGZQ5x8YJ4XYCPzkq69M6dDHmCV1uPEZSrFJYAC+UAioHh/c7z ceTKGFwDeAWJK4JtPY9vueThx2d61X03RXuElRJt17sLb+y9YUKd58k6awdzZsWDSjDP PUsEIOZNhggGE+zco6TJySU0q1AnME12rtjAV5EKG3M7KrOr7hFyx4tQY64Tdnz5+PNg n5HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=O0pWzihYIb7506ceI93UX5fzc5sr6q3LNq/2QA+BfLM=; b=mEuVCcHCYa7BSe3r4tjs1n/T3o08InSUn7Di7C6eeUgRvWid0AbAcZcN3HFyaNZ9L4 wKkONl3QR+Kpxk3LhrUFPneL/vmNow8Ru6gZ2VD7sC96NryTtlICEo10v5PskDrlWDhh Q+0cuh0cmtq3s2Dy+c5j8sqnCzJMLV/6L3KDvrPrVxP8PsS/r6DGQBXunPHc29sUulQn sRcGw5aW/PfPTtZSZ7FtCWb0kz6CLnX4DkiXwYo1cFa//NM9Z5XNWryrWYihphaBklIM urZJ3/Kni/F/hSGYDauTXI7TVr9JBE1N0cF1ECs1o+/Bm8a/90+FDH/ZsSirrOnpH28S M7AQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si8388748pgc.663.2018.03.05.06.16.05; Mon, 05 Mar 2018 06:16:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934917AbeCEMst (ORCPT + 99 others); Mon, 5 Mar 2018 07:48:49 -0500 Received: from mail.bootlin.com ([62.4.15.54]:56161 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933451AbeCEMsp (ORCPT ); Mon, 5 Mar 2018 07:48:45 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8672E207CA; Mon, 5 Mar 2018 13:48:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.lan (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id F416020379; Mon, 5 Mar 2018 13:48:31 +0100 (CET) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, perex@perex.cz, tiwai@suse.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mylene.josserand@bootlin.com, alexandre.belloni@bootlin.com, thomas.petazzoni@bootlin.com, michael@amarulasolutions.com Subject: [PATCH v2 0/2] ASoC: Add support for DAC PCM1789 Date: Mon, 5 Mar 2018 13:48:15 +0100 Message-Id: <20180305124817.7421-1-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello everyone, The current series is the second version to add the support of Texas Instrument's DAC PCM1789. This DAC is very minimalist and does not have many registers. It is important to notice that this DAC needs to always have clocks enabled (even without any data) otherwise it will be in a "desynchronized" state and can not send data correctly. This issue has been solved by performing a reset each time a sound is played. This reset can produce a "pop" noise. Depending on your DAI, you will need to provide and enable the MCLK to be able to communicate with this codec throught i2c. Changes since v1: - Create a new file to support pcm1789 instead of converting the existing pcm179x driver. All the patches are merged into one patch. - Update the code to use gpiod for the reset. - Add some fixes according to Thomas Petazzoni's reviews - Create a new patch to add device-tree bindings for this new DAC. Thank you in advance for any review. Best regards, Mylène Mylène Josserand (2): ASoC: codecs: Add support for PCM1789 ASoC: Add bindings for PCM1789 .../devicetree/bindings/sound/pcm1789.txt | 21 ++ sound/soc/codecs/Kconfig | 12 + sound/soc/codecs/Makefile | 4 + sound/soc/codecs/pcm1789-i2c.c | 76 ++++++ sound/soc/codecs/pcm1789.c | 288 +++++++++++++++++++++ sound/soc/codecs/pcm1789.h | 28 ++ 6 files changed, 429 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/pcm1789.txt create mode 100644 sound/soc/codecs/pcm1789-i2c.c create mode 100644 sound/soc/codecs/pcm1789.c create mode 100644 sound/soc/codecs/pcm1789.h -- 2.11.0