From patchwork Wed Nov 28 07:28:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Kellermann X-Patchwork-Id: 10702029 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0BE7013BF for ; Wed, 28 Nov 2018 07:29:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9B1F2C393 for ; Wed, 28 Nov 2018 07:29:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD5AC2C386; Wed, 28 Nov 2018 07:29:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C2822C386 for ; Wed, 28 Nov 2018 07:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DfCS5IDQYeNQgq8BTSLTIu35N7eaaSpGdRJP1p8wgik=; b=BvoM5Lf8a19uuA bsgx8wW25vWjAU29Qaz+o2/EiXFn61Cu9lG8eZcZRQRMpQu3DXgHaveJMaqsP+W4tSCRT+kXukFGN x2/SdLgqJaMt5jdmj5ejAivocwfb6oMabKCBsDuPHWI0e+we1x+F/cUOQcm1PJMhAoAAPpPsupQBu ESrXo3jcQcj0WFa7omO6+AADQMcjZpiu4wo2j60BfeErqmOPdrumqubFxj4JF60sIS4/4v01PCXKy XSq6Hs6v8wtQLrvm+IYvObvZEAk/Z1e5eU67HDKpn80IxkJV4sYwwXtQge8TxpOojGXRga0EgC6Ir MCbEkRbYLHvRXl7OBZjA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRuHY-0000Hp-7K; Wed, 28 Nov 2018 07:29:12 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRuHV-0000A8-8R for linux-rockchip@lists.infradead.org; Wed, 28 Nov 2018 07:29:10 +0000 Received: by mail-wm1-x341.google.com with SMTP id n133so1444524wmd.4 for ; Tue, 27 Nov 2018 23:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5dHstrDpJv3Yp1o0c1yK4Vv3iJU5cSAEcnYo0kIJEv4=; b=tyjpPmWJhofn4UorgshkPDDKDX1rr6eWHAbQIYS2EgyV0/eZ10bZqfWUymWvdcA07V a01jqBUWeOMLTlksGK645ngF0foOHIARHf7eNNfq2lCfXOYVP1WXZwLzfjpWU6KqsbrO AgDuJngQ2+ItKjruSNXo46j1IDf9E4wzz6oZXBvpnAnqkEVzCjFZzHDfg/L0L4f+ePiK vMlX1jIb58Q5k5X5kpLZUD3bj5JTVJNLzBvF3q/YF59Jfc6tTklcS8vt0X0hIrohH5Hf 1zH5K12QuFcu95m3+aw2ZBSOCEK+9Pi8FbWwVn18Wa7SNHLQbm/5J8xvUIPN02i/mSjF 5Bvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5dHstrDpJv3Yp1o0c1yK4Vv3iJU5cSAEcnYo0kIJEv4=; b=OoW9e6j2GdYI3Ikw5UFgKeVJiYLKFr0rYCDZ31HPyhSYR+XP9img/ZVRcjevW99ADh D02F3XY+bxBd9o93Ppc+SDuZXxo8UNQ+2t8yhf4OedRjdKfkrfiGiEr5Y5V8VqCr0Al9 7KQkOPYuTgD5OA8YZbIClljV49F3UJx6i4Qha/vAA/OUZW5JnxJ7x0Cxv1m8YlL/gm5f 1T7plPJg93nr+CkfpstLbYNjeWveUF48HAHfyNQEu+QRs46kAZDrEaRmsSs7EZ7n2+VH IBwFGDgDv0BbpkhsoeohF1eo7mdrRagC+/8jbTwoao4nIYPncIiH+1kvgSlj/U8slKOA vbzA== X-Gm-Message-State: AA+aEWaoLPf355pmjpc/X7WdXHZZ/XaSMV8pqdRCmh4sudwUoxhtGmOc W6drxQU15JvhraUnZKROX64= X-Google-Smtp-Source: AFSGD/XUzAWvtUmPFk5XAIWUbZqY32L4DFfF0K2neeqKYEZp6tLnm/91vH4hunsx1WMY1qxdjyiHSQ== X-Received: by 2002:a7b:c34b:: with SMTP id l11mr1777233wmj.30.1543390136727; Tue, 27 Nov 2018 23:28:56 -0800 (PST) Received: from heron.blarg.de (pD9EBF509.dip0.t-ipconnect.de. [217.235.245.9]) by smtp.gmail.com with ESMTPSA id c12sm3894519wrs.82.2018.11.27.23.28.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 23:28:55 -0800 (PST) From: Max Kellermann To: heiko@sntech.de, linux-rockchip@lists.infradead.org Subject: [PATCH] sound/soc/rockchip: add RT5640 codec option Date: Wed, 28 Nov 2018 08:28:52 +0100 Message-Id: <20181128072852.32760-1-max.kellermann@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181127_232909_350452_1823BAD3 X-CRM114-Status: GOOD ( 11.76 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: oder_chiou@realtek.com, bardliao@realtek.com, Max Kellermann , linux-kernel@vger.kernel.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Firefly-RK3399 DeviceTree (`arch/arm64/boot/dts/rockchip/rk3399-firefly.dts`) defines a `simple-audio-card` device which selects a `realtek,rt5640` codec. This codec however is inaccessible in the kernel configuration (`SND_SOC_RT5640`) and thus cannot be used. This patch adds a new configuration option named `SND_SOC_ROCKCHIP_RT5640` which selects `SND_SOC_RT5640` and `SND_SIMPLE_CARD`, but does nothing else. It enables `SND_SIMPLE_CARD`, because that's what the Firefly has. I'm not sure if there are Rockchip products which need a different sound card driver with RT5640. Signed-off-by: Max Kellermann --- sound/soc/rockchip/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig index 957046ac6c8c..ac2e27043107 100644 --- a/sound/soc/rockchip/Kconfig +++ b/sound/soc/rockchip/Kconfig @@ -42,6 +42,16 @@ config SND_SOC_ROCKCHIP_MAX98090 Say Y or M here if you want to add support for SoC audio on Rockchip boards using the MAX98090 codec, such as Veyron. +config SND_SOC_ROCKCHIP_RT5640 + tristate "ASoC support for Rockchip boards using a RT5640 codec" + depends on SND_SOC_ROCKCHIP + select SND_SOC_ROCKCHIP_I2S + select SND_SOC_RT5640 + select SND_SIMPLE_CARD + help + Say Y or M here if you want to add support for SoC audio on Rockchip + boards using the RT5640 codec, such as Firefly-RK3399. + config SND_SOC_ROCKCHIP_RT5645 tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec" depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP