From patchwork Thu Sep 18 17:28:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4933091 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D4117BEEA5 for ; Thu, 18 Sep 2014 17:28:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A484220148 for ; Thu, 18 Sep 2014 17:28:52 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 62E5A20166 for ; Thu, 18 Sep 2014 17:28:51 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 06AE8261ADC; Thu, 18 Sep 2014 19:28:49 +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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id B83B82651D1; Thu, 18 Sep 2014 19:28:39 +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 972EE265282; Thu, 18 Sep 2014 19:28:38 +0200 (CEST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by alsa0.perex.cz (Postfix) with ESMTP id C6BEF261ADC for ; Thu, 18 Sep 2014 19:28:31 +0200 (CEST) Received: by mail-lb0-f171.google.com with SMTP id l4so1632129lbv.30 for ; Thu, 18 Sep 2014 10:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QIxbRVgzSaFJ5ZJM3FcE836alOojXJ3XG2prWTTXFTM=; b=m43EhJ6lvpiGonUUSLSDvfSDOm2TtLmpCwfUfMHe00+Rx3/rlbaS2NC+9WRS/E3sxZ y1t0bfmJ/KodD/hr1z6lnQ18h4EK4Pm0cH95kkkjNe5SnwQC8sbN4NTctGnlfIloam/U rUCuqS6nysgX4b/Q8W1V1c062yLpN+f+0uvykjwZEiocKGAJHncm8TzslVGueji/N2QA umXWT5GqMowya/+dS+7ayHpN5NOm5SCQZHsHVxoDtahulV4i2ks6hhOFRUVWtjjTISwL kE25DQ6gYIBKesluHf55Pp2l7QddNWSgS9Ug1Zy39FJ/6GoeFmwFWINREWweHvMShV5m YxYw== MIME-Version: 1.0 X-Received: by 10.112.128.228 with SMTP id nr4mr1206528lbb.42.1411061309173; Thu, 18 Sep 2014 10:28:29 -0700 (PDT) Received: by 10.152.192.163 with HTTP; Thu, 18 Sep 2014 10:28:29 -0700 (PDT) In-Reply-To: <20140918170524.GA6080@Asurada> References: <20140918170524.GA6080@Asurada> Date: Thu, 18 Sep 2014 14:28:29 -0300 Message-ID: From: Fabio Estevam To: Nicolin Chen Cc: Shengjiu Wang , Lars-Peter Clausen , "alsa-devel@alsa-project.org" , Markus Pargmann , Jean-Michel Hautbois , Michael Trimarchi , Shawn Guo Subject: Re: [alsa-devel] =?utf-8?q?No_sound_captured_with_SGTL5000_on_i=2EMX6?= =?utf-8?q?_in_I=C2=B2S_master_mode?= 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 Hi Nicolin, On Thu, Sep 18, 2014 at 2:05 PM, Nicolin Chen wrote: > The problem here should be the AUDMUX configuration issue. The imx- > sgtl5000.c driver only supports CODEC in master mode. So if you try > to switch the CODEC slave mode, you shall also change not only the > CBM_CFM to CBS_CFS but also swap the ext_port and int_port of AUDMUX > (a little confusing approach here as the configuration of AUDMUX is > routing the data and clocks from a source port to a destination port > while each of side, external or internal, might be a source port -- > When using CBM_CFM, the source port should be external port; while > using CBS_CFS, the source port should be the internal port.) Thanks for the hint on audmux swap! I can get ssi in master mode to work correctly with the change below: --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -111,8 +111,8 @@ "IN3R", "MICBIAS", "DMIC", "MICBIAS", "DMICDAT", "DMIC"; - mux-int-port = <2>; - mux-ext-port = <3>; + mux-int-port = <3>; + mux-ext-port = <2>; }; backlight { diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c index 3a3d17c..09ea6a5 100644 --- a/sound/soc/fsl/imx-wm8962.c +++ b/sound/soc/fsl/imx-wm8962.c @@ -247,7 +247,7 @@ static int imx_wm8962_probe(struct platform_device *pdev) data->dai.platform_of_node = ssi_np; data->dai.ops = &imx_hifi_ops; data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | - SND_SOC_DAIFMT_CBM_CFM; + SND_SOC_DAIFMT_CBS_CFS; data->card.dev = &pdev->dev; ret = snd_soc_of_parse_card_name(&data->card, "model");