From patchwork Tue Jul 1 07:48:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benoit Cousson X-Patchwork-Id: 4457021 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 817F69F26C for ; Tue, 1 Jul 2014 07:53:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD4982040F for ; Tue, 1 Jul 2014 07:53:22 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 9A9CF2020F for ; Tue, 1 Jul 2014 07:53:21 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B163E2657C9; Tue, 1 Jul 2014 09:53:20 +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,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 22DE7265725; Tue, 1 Jul 2014 09:49:29 +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 4C9FA265720; Tue, 1 Jul 2014 09:49:28 +0200 (CEST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by alsa0.perex.cz (Postfix) with ESMTP id 769C62656FF for ; Tue, 1 Jul 2014 09:49:07 +0200 (CEST) Received: by mail-wi0-f181.google.com with SMTP id n3so7225391wiv.8 for ; Tue, 01 Jul 2014 00:49:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=T6TCOeynsGuvJwQvix8T3wtfhV88Zg+lFzxkxfy5njs=; b=kQmx6O+p8+WvhIloSIrXBvVVFTnkMRGcil99tLyol83mnaCNax4dBjoFGLrGH+Ro6+ 0qnbhODYai37xQWrRBGCIMwgvPl7ra/yVG8yOugILWQcT9XjjA3LFBojUV7UpVmCDQeQ IoNyZJ7A8DW3X41HvfIVjV1yUrY0hp+/HDxanq38uIyiYt5GJLmx8G/jurAmbtMknU1S h9DgafRRVeBqwAilJOEHXVP1oGXiN19fPe+OuVBE8+OMT0LEdoSTzOTwAh4rrsymm751 NOc4QbV5/Dv+Sa0D56cFtNgcX0Bimi/TxIJD4UDRdUMEbtG63UZ1F0RzLnDYBuVd8p7I 4eww== X-Gm-Message-State: ALoCoQkwCdK9k8REq5FLf12RFuywQkunD06lgLQo6xufvRbTLxNYPnzb1uUrHqw4Vs4qPtCVcR5s X-Received: by 10.195.18.8 with SMTP id gi8mr48845182wjd.75.1404200947206; Tue, 01 Jul 2014 00:49:07 -0700 (PDT) Received: from localhost.localdomain (lau06-1-82-228-246-9.fbx.proxad.net. [82.228.246.9]) by mx.google.com with ESMTPSA id bq7sm40353720wib.7.2014.07.01.00.49.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Jul 2014 00:49:06 -0700 (PDT) From: Benoit Cousson To: broonie@kernel.org, lgirdwood@gmail.com, lars@metafoo.de Date: Tue, 1 Jul 2014 09:48:01 +0200 Message-Id: <1404200881-32253-9-git-send-email-bcousson@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404200881-32253-1-git-send-email-bcousson@baylibre.com> References: <1404200881-32253-1-git-send-email-bcousson@baylibre.com> Cc: misael.lopez@ti.com, alsa-devel@alsa-project.org, Benoit Cousson Subject: [alsa-devel] [PATCH v4 8/8] ASoC: core: Add a warning for link_dai_widget in the multicodec case 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 Multicodec links are not supported in the case of CODEC to CODEC links. Just print a warning if it happens. Signed-off-by: Benoit Cousson --- sound/soc/soc-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 3764150..3640242 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1486,6 +1486,9 @@ static int soc_link_dai_widgets(struct snd_soc_card *card, struct snd_soc_dapm_widget *play_w, *capture_w; int ret; + if (rtd->num_codecs > 1) + dev_warn(card->dev, "ASoC: Multiple codecs not supported yet\n"); + /* link the DAI widgets */ play_w = codec_dai->playback_widget; capture_w = cpu_dai->capture_widget;