Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp311584ybc; Tue, 19 Nov 2019 01:39:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxJ7NFZ3dx3IGzh063Zeo7mlIFaxHLIOoai8TP9AgqnOY5CQtp0grz/SXbdLFkEjz2cf20Y X-Received: by 2002:a17:906:a28d:: with SMTP id i13mr33045633ejz.288.1574156351443; Tue, 19 Nov 2019 01:39:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574156351; cv=pass; d=google.com; s=arc-20160816; b=qZW5lTFF/aHaEAjr6huxewJIwRgkWhFcMVhvquivCRMWOtQI+kX6vKjHiogcwqjE5K ggTOl5d6rHXAL76DmApbyVRgU0ob/3BvxMd+uI67XIv8hv/FWPfnTZ64S2phJqwId+lD aID3uJDelegdMD+WuUwIsUgTfIzIw6b2EgpSu72EFc7kj7wGPmhqR1CjKjBpv9sHOpog LfEuIRX4n2zp+5CnZo6yJk8OtgZe7uswcYyNLdBB87avDzB6OuHPmxtnBO1mw1+fiR+o pGgwTkh4xXt2mItB4gkVadiiTvM0Bgr29AVYq5lNMNE9hR77mngcHxjDfzSgvKVKKr0g tMKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:mime-version:references:in-reply-to :message-id:date:subject:cc:from:dkim-signature; bh=bF3ObpMDNGS6u6mbWRwaVQmx6sADTc0lqCjP4+6OrHc=; b=sGxVqW39B9I6qF0n6QJaVeFtA78kfzCFWmw3zjNuO921ibTT/wa711JJHnAXOmXsKc Mwp9NtGpanLQ+j6FgxsktP0dWlQCVDWPSGJekj9qdlfdflHbFYjjKKhxx4l5hBQc3dVb Yamy82a3CJt2UEdeLs2fNMEhZfwEjB/oXRvns51MyGTT1ObGRB5iajuianDBoEfXss0r EShHOtsR+q4TCfFVvxeRH6EUmFI9oOn0Df6WuDN2eXlfb9/MxpfXQgKBczHm7+wLpef8 AH8joJYpFB8CMfhpVAFWqILUsZMWwN8WhKBO93IjfXcNzwsOyRukAANT5PE56y8PA5Gf FNkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=gkMKm1ft; arc=pass (i=1); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18si13278091eje.20.2019.11.19.01.38.44; Tue, 19 Nov 2019 01:39:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=gkMKm1ft; arc=pass (i=1); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727522AbfKSJet (ORCPT + 99 others); Tue, 19 Nov 2019 04:34:49 -0500 Received: from mail-eopbgr750045.outbound.protection.outlook.com ([40.107.75.45]:32577 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbfKSJes (ORCPT ); Tue, 19 Nov 2019 04:34:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=adX+aVMuQY5PcFW/gDSVq3cELcHPoPDxIBteqZXPLqF8qrMC7uzSMCvwsUVZkqU3r0/obYAb7TqbsWK7MGXZcd/POSY7zzX6jsMcOAWAw5ys/h4usXekXdZG/lnwg3WCE+J+Gk+X3svATb7r+Df2V6ZMLCjtIKhCdZ5aU+QxnAHpPrFFKrhzyENQtkVKtjBa19vNZj6GvPHV863Z87bjb4onc/ojvkEmcwQyyYqEpdXE8cY4vnihFkD6OTUvt3d1oLYrFJZMEk0CRjhCn/rd8QAcIKwk2LAI7OBPPLNsPelXEa5ZIparbFGnfA1A19EEeCLN4mfC+O7yzmUWJ/tWTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bF3ObpMDNGS6u6mbWRwaVQmx6sADTc0lqCjP4+6OrHc=; b=CkQk7AJtJOP67EySjgDyHY3SHDn1a+mN7E3KMMGX5brlSWejmniSJfFen/iR8LULZlcIWl3hBkEgjpk6OsHw+W0IFhd8TnWqjQUGuhSV6DJlcKh1bpk4tNam5IkBTqtwOFmSwEtZbiNVIFV6A0vBPwXNanoWVW5oSOqWIq2gH4gTPP2OstO6m5ol8dNsd7hGIotfON2xDpVoPFHM8TAduGRvJuOwmtLffcRK5QAq86Efg7O/lOARpsNTV2HGMrucaFvx4YY/QhmTpTfUxMZC1NCC3BduzK87buGal7xfGB5YcX5BY99YdFYX/qxQCtb60LXn861q1ZHdkCofYJv3fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none (sender ip is 165.204.84.17) smtp.rcpttodomain=google.com smtp.mailfrom=amd.com; dmarc=permerror action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bF3ObpMDNGS6u6mbWRwaVQmx6sADTc0lqCjP4+6OrHc=; b=gkMKm1ftSOJmGxTileQrHZf0xU/SPZ0x4duHbTUSwZP2fYF+CCLGbJeReqBpKtJd2yqfIEeHiBj3YHroNzzBdXYyFL8hgVH7Kyl9++rAZE8ihEZFrWI1y5SNDCnkURWFAI8h8QXOLwMbPaDemzpTkphZ41Y0bpSh5iZzM03E9lo= Received: from SN1PR12CA0060.namprd12.prod.outlook.com (2603:10b6:802:20::31) by MN2PR12MB4141.namprd12.prod.outlook.com (2603:10b6:208:1d5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.28; Tue, 19 Nov 2019 09:34:45 +0000 Received: from CO1NAM11FT010.eop-nam11.prod.protection.outlook.com (2a01:111:f400:7eab::208) by SN1PR12CA0060.outlook.office365.com (2603:10b6:802:20::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2474.16 via Frontend Transport; Tue, 19 Nov 2019 09:34:45 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; google.com; dkim=none (message not signed) header.d=none;google.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 SATLEXMB01.amd.com (165.204.84.17) by CO1NAM11FT010.mail.protection.outlook.com (10.13.175.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2451.23 via Frontend Transport; Tue, 19 Nov 2019 09:34:45 +0000 Received: from SATLEXMB02.amd.com (10.181.40.143) by SATLEXMB01.amd.com (10.181.40.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 19 Nov 2019 03:34:43 -0600 Received: from vishnu-All-Series.amd.com (10.180.168.240) by SATLEXMB02.amd.com (10.181.40.143) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Tue, 19 Nov 2019 03:34:39 -0600 From: Ravulapati Vishnu vardhan rao CC: , , , Ravulapati Vishnu vardhan rao , Liam Girdwood , Mark Brown , Jaroslav Kysela , "Takashi Iwai" , Vijendar Mukunda , YueHaibing , Colin Ian King , "Gustavo A. R. Silva" , Kuninori Morimoto , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH v8 5/6] ASoC: amd: Handle ACP3x I2S-SP Interrupts. Date: Tue, 19 Nov 2019 15:02:46 +0530 Message-ID: <1574155967-1315-6-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574155967-1315-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> References: <1574155967-1315-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> MIME-Version: 1.0 Content-Type: text/plain 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)(4636009)(1496009)(376002)(396003)(346002)(39860400002)(136003)(428003)(189003)(199004)(16586007)(316002)(336012)(6666004)(356004)(7416002)(305945005)(11346002)(478600001)(4326008)(2906002)(70206006)(70586007)(8676002)(54906003)(47776003)(81166006)(81156014)(86362001)(36756003)(76176011)(26005)(51416003)(7696005)(446003)(126002)(476003)(2616005)(8936002)(50226002)(486006)(5660300002)(186003)(1671002)(50466002)(426003)(48376002)(53416004)(109986005)(266003)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR12MB4141;H:SATLEXMB01.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a4153cee-b145-4ecb-dcb0-08d76cd3b6a1 X-MS-TrafficTypeDiagnostic: MN2PR12MB4141:|MN2PR12MB4141: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:2582; X-Forefront-PRVS: 022649CC2C X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MCyTHYB/C4gaokFoeNdoOYN1HGpEUJJcMls6TE7frgn5YyeqFGgP60wZVMjMHPoK55dtJfFLLQj5+Lby6Fgws55fqusDVQ/eC7tR0bqemLsACF/W1LaTVpzRwRpVaFzwAal8FfEUG8puycc8IY3VcEwtx4KA1DAJGQYKxRUlX/pb0hfubLfLdfIkQcBxd99tqAJzVqCNxNUnRNYDesO6vwRFPnnLwzZopUqoLY7yoIL5nG9lMOIhVY9el0jcaN8f6M6Fw8XSQASCvHSrP93RsNryKkphPRQJYli1YNUmrLHRHHPmSZ2eqDkmNB/QGxh/iwYoXjGEaj4OKepkqC4y0WoikT4deOMuRrldf+AOCZFA52vAJtoa+Zjz6ikHxa/UjON7RixKbhjEqzjmg4IO3/q0hyLoVqCdJ8ObybH3/wyluJh62bcXR8ESZbO/IYC0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2019 09:34:45.2538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4153cee-b145-4ecb-dcb0-08d76cd3b6a1 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=[SATLEXMB01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4141 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enabled support for I2S-SP interrupt handling. Previous to this implementation, driver supports only interrupts on BT instance. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index 4fd3fc8..819ec3a 100644 --- a/sound/soc/amd/raven/acp3x-pcm-dma.c +++ b/sound/soc/amd/raven/acp3x-pcm-dma.c @@ -177,6 +177,13 @@ static irqreturn_t i2s_irq_handler(int irq, void *dev_id) snd_pcm_period_elapsed(rv_i2s_data->play_stream); play_flag = 1; } + if ((val & BIT(I2S_TX_THRESHOLD)) && + rv_i2s_data->i2ssp_play_stream) { + rv_writel(BIT(I2S_TX_THRESHOLD), + rv_i2s_data->acp3x_base + mmACP_EXTERNAL_INTR_STAT); + snd_pcm_period_elapsed(rv_i2s_data->i2ssp_play_stream); + play_flag = 1; + } if ((val & BIT(BT_RX_THRESHOLD)) && rv_i2s_data->capture_stream) { rv_writel(BIT(BT_RX_THRESHOLD), rv_i2s_data->acp3x_base + @@ -184,6 +191,13 @@ static irqreturn_t i2s_irq_handler(int irq, void *dev_id) snd_pcm_period_elapsed(rv_i2s_data->capture_stream); cap_flag = 1; } + if ((val & BIT(I2S_RX_THRESHOLD)) && + rv_i2s_data->i2ssp_capture_stream) { + rv_writel(BIT(I2S_RX_THRESHOLD), + rv_i2s_data->acp3x_base + mmACP_EXTERNAL_INTR_STAT); + snd_pcm_period_elapsed(rv_i2s_data->i2ssp_capture_stream); + cap_flag = 1; + } if (play_flag | cap_flag) return IRQ_HANDLED; -- 2.7.4