From patchwork Wed Jul 4 09:49:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10506435 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 A62A8602BC for ; Wed, 4 Jul 2018 09:54:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A559828DD9 for ; Wed, 4 Jul 2018 09:54:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9959F28DDD; Wed, 4 Jul 2018 09:54:48 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,UPPERCASE_50_75 autolearn=unavailable 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 249B228DD9 for ; Wed, 4 Jul 2018 09:54:48 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=f3QsxON5gKjBOaDKBOUOcLMqlQA0duxvCIXvSOqpAKA=; b=SMqouHMes6FTz/EYI/aHA+ZOhb Pxg6CXzpUv+XwcrPsbmydAuQpqL80woiipLM23TvBN54feRv+Wkv62mzX9Ge14LIfsclxNPF8TX61 WdPkj7750kWtK0QHGY6Cp8CUSLRadb1XpM9B2w8o08VadDkg6Btio+Z4J4RRe3Q8eio0x5dph8DCN Sy8X8Tst9+N6E6Sq4byiWvk701M/t5zhZ6eZVx1THljTCCrsWHE9SWzQf6HNF8ORE9iIP1sePLqjR SXcDe1DEm+gA41+YwyDNL8XmNNof4AEXOsaJk7bXyTZwfjdieYHjZTxBtSUoWxOWoWcdA3sYm7457 nBGPIaSw==; 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 1faeUm-00047j-JU; Wed, 04 Jul 2018 09:54:44 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1faeSE-0001w9-8P for linux-arm-kernel@lists.infradead.org; Wed, 04 Jul 2018 09:52:07 +0000 Received: by mail-wm0-x22e.google.com with SMTP id b188-v6so5147410wme.3 for ; Wed, 04 Jul 2018 02:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2hHRQMSfbTJdMwinfMPKwYGBAvEGeRcl/rJ/8+GBz4g=; b=Duz1tjnjtRXMuPwmhRlFOQivg21BsxguiHAoiRMcn82x+R1ZxXfJOOyYUUlE0RC2pV EznQcR+ZSX0/mmP8TBhXvAB6qsGFIuPLybcqeuND7AW6EmyXnqnyD6J+jXI5JuckKasM 014GAWIJzBeEx5gQiFhGg087pb1WJBDtEYQCQ= 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:in-reply-to :references; bh=2hHRQMSfbTJdMwinfMPKwYGBAvEGeRcl/rJ/8+GBz4g=; b=GTJhJZ1WkM+FQzPoRjyFGJD5Eh8atLSCsl3mAa3MXRHznbnNTg++V9c/xb3NG5X8Cp ZmNjBBsHFy/ZD8tLKUqGXih99mZMszLW2T0LBmt453vnCmlCabgOejmgppDFQBhzHYVc Egae1StAjDx02yHMB3SIE9BJQxfFM1qRJAaQoiNfBVvrIkxtW4NKOLpIOobK2gT6xga3 orYTLyZ+J+4fqBR2hOL3LLbCjYA0o2Y596Wa2WrMmAsQsjrr5ehfzra5Ucf9FiZ7ifaf C4rwgW8oJIeDFFBVcQp1hyC3/cZ4PT3fxtnFVgr/vEMH26PvJCFVZlHZ5YWnEMSX8YAD R3Qw== X-Gm-Message-State: APt69E0fEZ3jgZi+j/4olRAnwaAquGnwt/Skhdh47zTK7zDNdjoTLVUQ k1lew4PDPl91tjYq7u7UBnRl/w== X-Google-Smtp-Source: AAOMgpc+ffPQ5ZJyOGvqpHi43GLBVCx8hF4g/NqGhXzodkQhEgOaJKengmmGS/9q35UPxU+KSr5uoQ== X-Received: by 2002:a1c:6f44:: with SMTP id k65-v6mr1069186wmc.19.1530697914193; Wed, 04 Jul 2018 02:51:54 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id 125-v6sm6370089wmw.9.2018.07.04.02.51.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Jul 2018 02:51:53 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 1/6] ASoC: qdsp6: q6afe: Add missing slimbus capture ports Date: Wed, 4 Jul 2018 10:49:39 +0100 Message-Id: <20180704094944.16440-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180704094944.16440-1-srinivas.kandagatla@linaro.org> References: <20180704094944.16440-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180704_025206_369649_57DD9331 X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bgoswami@codeaurora.org, linux-arm-msm@vger.kernel.org, tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Existing code already has support for SLIMbus TX and RX, only thing that was missing from TX side was mapping between virtual to actual DSP port ids. This patch adds those mappings. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6afe.c b/sound/soc/qcom/qdsp6/q6afe.c index 621b67b34db9..90e2d8e658bf 100644 --- a/sound/soc/qcom/qdsp6/q6afe.c +++ b/sound/soc/qcom/qdsp6/q6afe.c @@ -514,6 +514,20 @@ static struct afe_port_map port_maps[AFE_PORT_MAX] = { SLIMBUS_5_RX, 1, 1}, [SLIMBUS_6_RX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_6_RX, SLIMBUS_6_RX, 1, 1}, + [SLIMBUS_0_TX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX, + SLIMBUS_0_TX, 0, 1}, + [SLIMBUS_1_TX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX, + SLIMBUS_1_TX, 0, 1}, + [SLIMBUS_2_TX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX, + SLIMBUS_2_TX, 0, 1}, + [SLIMBUS_3_TX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX, + SLIMBUS_3_TX, 0, 1}, + [SLIMBUS_4_TX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX, + SLIMBUS_4_TX, 0, 1}, + [SLIMBUS_5_TX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX, + SLIMBUS_5_TX, 0, 1}, + [SLIMBUS_6_TX] = { AFE_PORT_ID_SLIMBUS_MULTI_CHAN_6_TX, + SLIMBUS_6_TX, 0, 1}, [PRIMARY_MI2S_RX] = { AFE_PORT_ID_PRIMARY_MI2S_RX, PRIMARY_MI2S_RX, 1, 1}, [PRIMARY_MI2S_TX] = { AFE_PORT_ID_PRIMARY_MI2S_TX, @@ -1372,6 +1386,13 @@ struct q6afe_port *q6afe_port_get_from_id(struct device *dev, int id) case AFE_PORT_ID_MULTICHAN_HDMI_RX: cfg_type = AFE_PARAM_ID_HDMI_CONFIG; break; + case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX: + case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX: + case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX: + case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX: + case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX: + case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX: + case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_6_TX: case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_RX: case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_RX: case AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_RX: