From patchwork Mon Mar 26 13:13:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 10307785 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 095CF600F6 for ; Mon, 26 Mar 2018 13:12:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDF882949C for ; Mon, 26 Mar 2018 13:12:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D271D294EA; Mon, 26 Mar 2018 13:12: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.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no 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 58C012949C for ; Mon, 26 Mar 2018 13:12:50 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1667726718B; Mon, 26 Mar 2018 15:12:43 +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 BA4F4267214; Mon, 26 Mar 2018 15:12:40 +0200 (CEST) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0043.outbound.protection.outlook.com [104.47.33.43]) by alsa0.perex.cz (Postfix) with ESMTP id 685D2267190 for ; Mon, 26 Mar 2018 15:12:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rej8WpCFoarnHmnZY8/HfDSWnS93TvfrOkg50YR/lNY=; b=n4tqG523GyvMHjeg6L+88sTsU4wUTh/uU9eebKLDWyxmUS/ykmpmvX2WGJrw4LYEDc7FwkOZPvStMsCly3gXnJDeVgyH1EIy81RcGCz40zwWZBL7nA01o7xL+c2HR/vY/Jp0susSxbp8s/Lsv6JcI4v8LnwSLo4pDNRjXCDLc28= Received: from DM3PR12CA0097.namprd12.prod.outlook.com (10.161.150.145) by BY2PR12MB0323.namprd12.prod.outlook.com (10.162.83.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 26 Mar 2018 13:12:34 +0000 Received: from DM3NAM03FT043.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::209) by DM3PR12CA0097.outlook.office365.com (2603:10b6:0:55::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10 via Frontend Transport; Mon, 26 Mar 2018 13:12:34 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by DM3NAM03FT043.mail.protection.outlook.com (10.152.83.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.631.7 via Frontend Transport; Mon, 26 Mar 2018 13:12:33 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.382.0; Mon, 26 Mar 2018 08:12:33 -0500 From: Vijendar Mukunda To: , , Date: Mon, 26 Mar 2018 18:43:00 +0530 Message-ID: <1522069983-11381-6-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522069983-11381-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1522069983-11381-1-git-send-email-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(39380400002)(396003)(2980300002)(428003)(189003)(199004)(39060400002)(36756003)(77096007)(356003)(26005)(446003)(105586002)(53416004)(6666003)(50226002)(50466002)(426003)(336012)(8936002)(81156014)(8676002)(81166006)(186003)(48376002)(47776003)(305945005)(110136005)(2201001)(7696005)(11346002)(54906003)(478600001)(86362001)(316002)(16586007)(2906002)(53936002)(76176011)(104016004)(97736004)(5660300001)(51416003)(106466001)(68736007)(72206003)(4326008)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0323; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT043; 1:mQXOkvui2dt+ddCE38JbUXE9f03ryoZ0HUqkRfIhXRa2VhcbPoWhvvskTHTHk1/CaIJJ/levcosFrdYXKbo9IIHxyfvauUr/ek5AEoeAuKWXILrZm+l+78cVQDEYfv4l X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 41626e64-5ac4-4eb7-ef91-08d5931b3d27 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BY2PR12MB0323; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0323; 3:tkhpmnVeQ/ue2frHVEs6EqVvGx2FI2Di4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TICyWXoCVtZGcNzzKa7NKrS2tc8jmFjlDKR0PCaiP6DbgCGwm7oRsu4lCmf8kvA8merF0lVvbnVY8b5B0eYWyaUhedOBBnVD7GgrvDJeCEHHw2VB+f6/JRJ2oPOTlttioz5kzxhbqqrTPoBQeirRviyz+e9vZd+7j61WSl3EZMOEUD2gzr5dVnPkrpd0fx+/QBKD0G9/mdserI+56H/OdTzqxu2amiIRXscsCeTj+9uri06/q3Ih/+vWI2kW5w5KxhcYY6hV2k5tEjK2YNc8k/oU+IXkQPx+PdAZO4XJXNRb+EYAFLsIbAUn4gRCP4Y9jvrttFylbO4gWD/Hhaj5VAcOb12hKcs+TUJQ7TRRAW7yP7bQp9E7M0Xsb8igsjoZWjR7pXGisOvY6DScq5FhHynx8yMY/HTYDWYFceO1v X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93003095)(3231221)(944501327)(52105095)(10201501046)(3002001)(6055026)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:BY2PR12MB0323; BCL:0; PCL:0; RULEID:; SRVR:BY2PR12MB0323; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0323; 4:MBf2f6IMzzbUByWFQVToyItBje92aZ27vuCcFCVQiwcKcWE5asyBAUp4K9dnE/Bd+nHSNAWHBbjHNeU/tMND1qHSqteyacCU7fsfhCgz1wPsk4S9YLwXugmE9o3dh2RP0g42LJccU+gd4/PrIPQ7MYn849XURc74lGMRHJnqPNFWrESr3d4X31UhxfSEctMDmnsIs2RyAXty4zb4qCZR9x+StqMcl8ZXiXUBg773sLCRdSRLibank7koS4nyP553u8umYUTjw+abkRpTcwdpcYfwg1SXpKVQxJo7vMCOtuYhc+Asnc+iQ/l8GA4E4d6i X-Forefront-PRVS: 06237E4555 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0323; 23:WhirLlizb1bsMI0LVBAZhsvNPdrydHIA6/wDmj25L?= =?us-ascii?Q?gfMvDhp0hf7X/Iet2GWKXm8ON8H4Dud7X6uL5MxXG6VpHQw4gJHhtmiNDua/?= =?us-ascii?Q?Hgjboqswzo1GiWRtnbl9TcdcBmE3VAnHDBgWtTxjgnbw6g8MvroXdD5kIkWx?= =?us-ascii?Q?xexszYRMCK14K+P3Othfl2spOjYpk9nQn8wGA+pC0JMaSzlDiutHKMqLqKv3?= =?us-ascii?Q?GJe5jj4FYJshBP86wM+2rnPjPtqlTbl5YJfztbWu75tL3UQI4X1yeVVMW25G?= =?us-ascii?Q?UP8XLU0unbwKVs83fJw0ghOu3Yt2nIWKEobE5cBOjS56QzIR2aKH9NqNErPj?= =?us-ascii?Q?3aXjBe8IYunveUtuGRSK1plTME173gMMmKGFUHBSDMoRwtzDp6Bine3WitWC?= =?us-ascii?Q?0mtW4D5nODUtVH7psezjMXI0Jq4aClCbOoUf/VqxUT5p/ZJjd5EbD2Drt70p?= =?us-ascii?Q?2DvfFt3uxMczx/XgwbG1CDHSId2Z4mNn33ScLhxcvdWckJLtEAiE8BRCXtlQ?= =?us-ascii?Q?uAPDIJ/5aw8ZtxnnHltuKhvVoWDI+iUn/lnQa4oWPLeNqPQf0UrwiJa8hBYE?= =?us-ascii?Q?QPz6CC7RucGlEY8OQSGo/zoBKl5h1oX32sP5NWQFLPEch/x06m8F5tpcdJxd?= =?us-ascii?Q?iMdATmAmNhil+Kh4Bqj3lRm39yj8hFyGGDLMaUBlPE0dEmsTtRwwFo2cwpm1?= =?us-ascii?Q?2lrokBF81b3kK/ooxkjs+BGIvtN1Z3N9EJX97xPrAq4yNpA6EZwuywWVLUZp?= =?us-ascii?Q?JEajrPaWnhkrO0GAE/XKHkfrDUNVKPaDJyX8niaoj2y+8OmDp1RqyVFkZdNw?= =?us-ascii?Q?aI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yqwx1rTNAP0qrkuKK/vn93DPhMTpcQFRsBXR5tPWHosNVPSACyZPkuKKj3JK7/gZCgkH1Hofer94FFsQ==; 5:bV1dAnGelqYoRJ55cAEv+Dk54ng6JfReqWsFxsILKKSduPapPW0lVVAFOTPRpwZRL0iI2K4q6Qgkfyeej/L9c0DTMRgIkyXhjDtjo3Xm5AuzW7j6XEm/7gAo5glxdNucdkAxQLjhnfCMqld/89YEdFamXAEG2LTs5He0iCL2ifA=; 24:TUyG4Aq3KZO7pWMQgul006QZU9NjFhf4D1PYzrY27ny8g46URB59Jhy13H0rhJwV4jBXW3gR8g9y16u0x631nLwajtDvXA+boLG7RsoTBuM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0323; 7:gnVbIzQdDahBKXyqHEaOVclnUI8eYAo6zjv/dYfJiMMtu1YHmKXAF3r/JZezMe4cesiWQBAeSlj52OXZAgQ8KldSHXbSnXGCfx5/IeRS6Drxz0epQge65KjKTf6HCEZ5HKo1h4z3z0lBidZzeQrVBV6rKkGsrOKMZEkotgvRfyGi+DqRyJ5++m3vBoKgONZ872E2NELOPHkidzzw4RBmxU5li11lUHOs+D6g0Y2mbIUaxCqlp1nAD7gk8NIiF3nj; 20:DAXcUGu1uSEdrcf6d8p4FB2xQKfUFfFWXJKZb5i8dEAPXZrojziJ95bH6zV9iwCAzGYmoLL1YZfdbI2zzzIha6oXiPuDPNHVkVasFlmQMOPZOs9UmKxX0W6OVGw5FISgi0N6EUZQW5nvwWtEUvoRxkaRrmF0QM24z4v3zvZB/+Napuy6j/RLaONOApIuZwIiq92Kk9syBS/Ic91feL3ENPFRfaCuychcLKMWObD9mLVKsCNoS/yRptdMLbGujN+W X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2018 13:12:33.9095 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 41626e64-5ac4-4eb7-ef91-08d5931b3d27 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0323 Cc: tiwai@suse.de, Alexander.Deucher@amd.com, Vijendar Mukunda , lgirdwood@gmail.com, Akshu.Agrawal@amd.com Subject: [alsa-devel] [PATCH 5/8] ASoC: amd: prepare callback modifications for bt i2s instance 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 modified prepare callback for configuring dma channels for BT instance. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 53 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index 9bd12bd..86d2287 100644 --- a/sound/soc/amd/acp-pcm-dma.c +++ b/sound/soc/amd/acp-pcm-dma.c @@ -1012,25 +1012,62 @@ static int acp_dma_mmap(struct snd_pcm_substream *substream, static int acp_dma_prepare(struct snd_pcm_substream *substream) { + u16 start_dscr_idx; struct snd_pcm_runtime *runtime = substream->runtime; struct audio_substream_data *rtd = runtime->private_data; if (!rtd) return -EINVAL; if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { - config_acp_dma_channel(rtd->acp_mmio, SYSRAM_TO_ACP_CH_NUM, - PLAYBACK_START_DMA_DESCR_CH12, + switch (rtd->i2s_play_instance) { + case I2S_BT_INSTANCE: + start_dscr_idx = PLAYBACK_START_DMA_DESCR_CH8; + config_acp_dma_channel(rtd->acp_mmio, + SYSRAM_TO_ACP_BT_INSTANCE_CH_NUM, + start_dscr_idx, NUM_DSCRS_PER_CHANNEL, 0); - config_acp_dma_channel(rtd->acp_mmio, ACP_TO_I2S_DMA_CH_NUM, - PLAYBACK_START_DMA_DESCR_CH13, + config_acp_dma_channel(rtd->acp_mmio, + ACP_TO_I2S_DMA_BT_INSTANCE_CH_NUM, + start_dscr_idx + 2, NUM_DSCRS_PER_CHANNEL, 0); + break; + case I2S_SP_INSTANCE: + default: + start_dscr_idx = PLAYBACK_START_DMA_DESCR_CH12; + config_acp_dma_channel(rtd->acp_mmio, + SYSRAM_TO_ACP_CH_NUM, + start_dscr_idx, + NUM_DSCRS_PER_CHANNEL, 0); + config_acp_dma_channel(rtd->acp_mmio, + ACP_TO_I2S_DMA_CH_NUM, + start_dscr_idx + 2, + NUM_DSCRS_PER_CHANNEL, 0); + } } else { - config_acp_dma_channel(rtd->acp_mmio, ACP_TO_SYSRAM_CH_NUM, - CAPTURE_START_DMA_DESCR_CH14, + switch (rtd->i2s_capture_instance) { + case I2S_BT_INSTANCE: + start_dscr_idx = CAPTURE_START_DMA_DESCR_CH10; + config_acp_dma_channel(rtd->acp_mmio, + ACP_TO_SYSRAM_BT_INSTANCE_CH_NUM, + start_dscr_idx, NUM_DSCRS_PER_CHANNEL, 0); - config_acp_dma_channel(rtd->acp_mmio, I2S_TO_ACP_DMA_CH_NUM, - CAPTURE_START_DMA_DESCR_CH15, + config_acp_dma_channel(rtd->acp_mmio, + I2S_TO_ACP_DMA_BT_INSTANCE_CH_NUM, + start_dscr_idx + 2, NUM_DSCRS_PER_CHANNEL, 0); + break; + case I2S_SP_INSTANCE: + default: + start_dscr_idx = CAPTURE_START_DMA_DESCR_CH14; + config_acp_dma_channel(rtd->acp_mmio, + ACP_TO_SYSRAM_CH_NUM, + start_dscr_idx, + NUM_DSCRS_PER_CHANNEL, 0); + config_acp_dma_channel(rtd->acp_mmio, + I2S_TO_ACP_DMA_CH_NUM, + start_dscr_idx + 2, + NUM_DSCRS_PER_CHANNEL, 0); + } } return 0; }