From patchwork Sun Jul 9 05:39:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 9831607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C1A05602C9 for ; Sun, 9 Jul 2017 05:39:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5D9627FB7 for ; Sun, 9 Jul 2017 05:39:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6D6327FBC; Sun, 9 Jul 2017 05:39:51 +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=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD2D227FB7 for ; Sun, 9 Jul 2017 05:39:50 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 134BE266B23; Sun, 9 Jul 2017 07:39:49 +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 C3A74266BA6; Sun, 9 Jul 2017 07:39:47 +0200 (CEST) Received: from muru.com (muru.com [72.249.23.125]) by alsa0.perex.cz (Postfix) with ESMTP id 965BA26648D for ; Sun, 9 Jul 2017 07:39:44 +0200 (CEST) Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 226E680FE; Sun, 9 Jul 2017 05:40:09 +0000 (UTC) Date: Sat, 8 Jul 2017 22:39:39 -0700 From: Tony Lindgren To: Sebastian Reichel Message-ID: <20170709053939.GQ3730@atomide.com> References: <20170707164229.5868-1-sebastian.reichel@collabora.co.uk> <20170707164229.5868-2-sebastian.reichel@collabora.co.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170707164229.5868-2-sebastian.reichel@collabora.co.uk> User-Agent: Mutt/1.8.2 (2017-04-18) Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, Takashi Iwai , Rob Herring , Mark Brown , Sebastian Reichel , linux-omap@vger.kernel.org Subject: Re: [alsa-devel] [PATCH 1/3] ASoC: codec: cpcap: new codec 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP * Sebastian Reichel [170707 09:43]: > Motorola CPCAP is a PMIC with audio functionality, that can be > found on Motorola Droid 4 and probably a few other phones from > Motorola's Droid series. > > The driver has been written from scratch using Motorola's Android > driver, register dumps from running Android and datasheet for NXP > MC13783UG (which is similar to Motorola CPCAP, but not the same). > > The chip provides two audio interfaces, that can be muxed to two > different audio codecs. One provides support for stereo output > (named StDAC or HiFi), while the other only provides mono output > (named Voice). Only the Voice codec provides a Capture interface. I needed the patch below for modular .config. Other than that, plays music fine for me, so feel free to add: Acked-by: Tony Lindgren 8< ----------------------- From tony Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Sat, 8 Jul 2017 21:43:46 -0700 Subject: [PATCH] ALSA: pcm: Export soc_dpcm_runtime_update Some drivers may need to use this from loadable modules. Otherwise we will get: ERROR: "soc_dpcm_runtime_update" [sound/soc/codecs/snd-soc-cpcap.ko] undefined! Signed-off-by: Tony Lindgren --- sound/soc/soc-pcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2539,6 +2539,8 @@ int soc_dpcm_runtime_update(struct snd_soc_card *card) mutex_unlock(&card->mutex); return 0; } +EXPORT_SYMBOL_GPL(soc_dpcm_runtime_update); + int soc_dpcm_be_digital_mute(struct snd_soc_pcm_runtime *fe, int mute) { struct snd_soc_dpcm *dpcm;