From patchwork Wed Oct 22 00:40:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianqun Xu X-Patchwork-Id: 5129031 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0D2249F349 for ; Wed, 22 Oct 2014 00:43:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33D1F201B4 for ; Wed, 22 Oct 2014 00:43:27 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D2DBC20158 for ; Wed, 22 Oct 2014 00:43:25 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4CFC5261735; Wed, 22 Oct 2014 02:43:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id DEC0A261647; Wed, 22 Oct 2014 02:43:16 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 11763261691; Wed, 22 Oct 2014 02:43:16 +0200 (CEST) Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.99.132]) by alsa0.perex.cz (Postfix) with ESMTP id 87A41261540 for ; Wed, 22 Oct 2014 02:43:07 +0200 (CEST) Received: from jay.xu?rock-chips.com (unknown [192.168.167.131]) by regular1.263xmail.com (Postfix) with SMTP id B99797973; Wed, 22 Oct 2014 08:43:02 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id EB6AA463; Wed, 22 Oct 2014 08:43:00 +0800 (CST) X-RL-SENDER: jay.xu@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 127.0.0.1 X-LOGIN-NAME: jay.xu@rock-chips.com X-UNIQUE-TAG: <7c6d2a5d942d1a44a8118e565de28946> X-ATTACHMENT-NUM: 0 X-SENDER: xjq@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [127.0.0.1]) by smtp.263.net (Postfix) whith ESMTP id 221091DKOQQ; Wed, 22 Oct 2014 08:43:02 +0800 (CST) From: Jianqun To: heiko@sntech.de, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.de, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Date: Wed, 22 Oct 2014 08:40:56 +0800 Message-Id: <1413938456-30468-1-git-send-email-jay.xu@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413891110-21059-1-git-send-email-jay.xu@rock-chips.com> References: <1413891110-21059-1-git-send-email-jay.xu@rock-chips.com> Cc: huangtao@rock-chips.com, cf@rock-chips.com, Jianqun Subject: [alsa-devel] [PATCH] ASoC: rockchip-i2s: add rockchip-max98090 driver support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This patch is to add support for rockchip board with max98090 codec. It also needs sound node in dt file. Tested on rockchip board based on rk3288. Signed-off-by: Jianqun --- change since v1: -Just make the max98090 driver directly selectable, suggested by Lars sound/soc/rockchip/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig index 78fc159..230b0e9 100644 --- a/sound/soc/rockchip/Kconfig +++ b/sound/soc/rockchip/Kconfig @@ -9,3 +9,15 @@ config SND_SOC_ROCKCHIP config SND_SOC_ROCKCHIP_I2S tristate + depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP + help + Say Y or M if you want to add support for I2S driver for Rockchip + I2S device. + +config SND_SOC_MAX98090 + tristate "ASoC support max98090 device driver" + depends on I2C && GPIOLIB + select SND_SOC_ROCKCHIP_I2S + help + Say Y or M here if you want to add support for Rockchio board using + a max98090 codec.