Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3128640ybc; Thu, 21 Nov 2019 03:50:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzDnWNXPyAMczwnxjrPpdWBaA1yh601oUsfKkRWdqPQ/b0wNwxAVQTTBhL+wSoaTcUkFqY4 X-Received: by 2002:a17:906:f209:: with SMTP id gt9mr13301273ejb.241.1574337058754; Thu, 21 Nov 2019 03:50:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574337058; cv=pass; d=google.com; s=arc-20160816; b=vB8/WWXMj1yzCfzl12Fm80HyIX+1mqvg5vGEtT9FR+AMrRCCyuuCh94MLaIbz9mU9j DTb10YUIkCJbx0YbKkI79BXzrztm2CRec+les+KEBzDDgqTtWXMHlw7AelRoZVioMRAQ /hhRMBS6MTXxfoCBWcpAvGaCLgnw1JSsfUuu6jHmF7nxSJK3cu2TiD0107xbycxx7fmq 6UVNAd5qe6zDsBDiipgJ6g+DFSArDxitIlH0iJEM4SqQA4wdoG58DZol5vhcKoJIEX+O MCCl423rm0DctkKLfuoiLsn4PCr/NcuyG2bGLs/O1m5j0TOQDVpQxSewZUPCuLHGoERp k+Lg== 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=KBc9OJPsrCC+mhZipXl3H5EkdsVz/SKcxKxntZyRPeY=; b=o1igyaJIKQKJqlYDT1wGejCpycFkZgBEVMGk8KPEnnw8iOPbnquvkFQ2eZWeKsDTl8 H/Xh10c4/snSXtW5Jfs6HzxHzcvzOnd45xmIrU6Amc1pUfM6dLv0vEzWM9bP1KihmCKE XnL+y30EiX//Tf9VxdxDe5cLvpewMfT51OpUHo34iLirUaTQhD2wqjSHxqa3DJBngqCa tS7Sp6XkhS+x5yii5ar+M64o8wG+SJxOJ6H6z2j7T88+WJ5iovK7ZXBsj3pnLB/jOw3S 9szvoODXpxZ6heJ5VMkoYiuuMa5rxCTa5BOXmQg3yDhEOICXSPiB7x44yrQeHqc0gi7s E6bA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=QM9iec3X; 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 z16si1539889eji.25.2019.11.21.03.50.33; Thu, 21 Nov 2019 03:50:58 -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=QM9iec3X; 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 S1726927AbfKULsC (ORCPT + 99 others); Thu, 21 Nov 2019 06:48:02 -0500 Received: from mail-eopbgr730076.outbound.protection.outlook.com ([40.107.73.76]:41424 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726802AbfKULsC (ORCPT ); Thu, 21 Nov 2019 06:48:02 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UFu3CIVLS/ZqiO0snElWRB8zIupy0altOFUcOMcfMHpZt81tqNSEZ1BTrTuINTbLYJrNHWlJeVY3XiSGw1vUSMEMxTQBV9/yoVxHbOPUoZGq/7bu2KuOeztVxLEzY2g9d3fhDdEnuBmyc2bwTtjyVDd1rflwv+u3At1NixX6XTSZLxPIexKqkA41sHC0+QyWCVd3Hz6ZXH0MYxFztued+SOfLqQbAV5YFdVGwX3VSFPER0KNicohfV2FrSc+1uuJnZMe3n4IBIbi53oAQdTHFhuFeodMTkUHxXU0ZnshrRGK9aIjJne5FG1QZLzgs4urdxQ/d6HJVBfORwBR97G5ww== 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=KBc9OJPsrCC+mhZipXl3H5EkdsVz/SKcxKxntZyRPeY=; b=Sj8UzeKl2bj4kno2q+mfUUoy5afCja1bQemoZ5oGAZdpZVWPGi0dOzA6hs6jjG2rcMCXW4pjlfU2zPjCm7nyBdIDA8pAE2xzlklPooSOr/ZQxb3UoPltP3+f5qQ+EXGTtz+DGJ12Ttnqs6jzy5Nk56lSr+tqtqffnxIJdka8thnp0HcsEKQD7DRvaR2px2ruEb/CuSioMcjaSpTE5vdyA6tMBbg+m5uZsIypQItde6yjcsNyskS6UXXlepSpFmswu56ry5fdksBYungOunLj/u6NeYlLR3pAsPjcFgQSDqoaDENMCe/IJLyeVWPEIr1w/XMCU1Tb+ZNxVOCjGrvNEA== 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=KBc9OJPsrCC+mhZipXl3H5EkdsVz/SKcxKxntZyRPeY=; b=QM9iec3X8wE8+D2Wc5h29tCZ/IYR2/PGbFA+qljd1i/KbIDZI6ZF6kdaODSqPfTI5uuX4ivhh3PkkEnQ80jQk9w+448fElteP6ZOUGHjNwyd0HLbnGJwRknbL+QiGpxEVlo+TjRKn7mpF4qXuXQMxL9MpDBBj/2qNX4HDibx7JY= Received: from DM3PR12CA0056.namprd12.prod.outlook.com (2603:10b6:0:56::24) by BY5PR12MB4114.namprd12.prod.outlook.com (2603:10b6:a03:20c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.19; Thu, 21 Nov 2019 11:47:57 +0000 Received: from CO1NAM11FT057.eop-nam11.prod.protection.outlook.com (2a01:111:f400:7eab::209) by DM3PR12CA0056.outlook.office365.com (2603:10b6:0:56::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.19 via Frontend Transport; Thu, 21 Nov 2019 11:47:57 +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 SATLEXMB02.amd.com (165.204.84.17) by CO1NAM11FT057.mail.protection.outlook.com (10.13.174.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2451.23 via Frontend Transport; Thu, 21 Nov 2019 11:47:57 +0000 Received: from SATLEXMB02.amd.com (10.181.40.143) by SATLEXMB02.amd.com (10.181.40.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 21 Nov 2019 05:47:49 -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; Thu, 21 Nov 2019 05:47:45 -0600 From: Ravulapati Vishnu vardhan rao CC: , , , , "Ravulapati Vishnu vardhan rao" , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vijendar Mukunda , Colin Ian King , YueHaibing , "Gustavo A. R. Silva" , Kuninori Morimoto , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [RESEND PATCH v11 5/6] ASoC: amd: Handle ACP3x I2S-SP Interrupts. Date: Thu, 21 Nov 2019 17:16:00 +0530 Message-ID: <1574336761-16717-6-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574336761-16717-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> References: <1574336761-16717-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)(396003)(136003)(376002)(346002)(39860400002)(428003)(189003)(199004)(50226002)(53416004)(1671002)(356004)(50466002)(4326008)(48376002)(5660300002)(478600001)(6666004)(54906003)(51416003)(7696005)(186003)(316002)(336012)(16586007)(86362001)(76176011)(26005)(81166006)(81156014)(8676002)(8936002)(70586007)(109986005)(446003)(2616005)(36756003)(70206006)(11346002)(7416002)(426003)(305945005)(47776003)(2906002)(266003)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY5PR12MB4114;H:SATLEXMB02.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: de3afacd-c046-4305-a282-08d76e78a726 X-MS-TrafficTypeDiagnostic: BY5PR12MB4114:|BY5PR12MB4114: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:2582; X-Forefront-PRVS: 0228DDDDD7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B9O8luXr2IsuR4nt3qca3JrGlOoAdga72C0xaO+qFo7pqAzHAogboC070oPK9nilDluc1zIZ/v2SY6NZQNhdvB+wZMzzIUhcmnRZYIhWpzZNoHx7wIRfFDjM9RuJPBcV2XBq+5I32benzi+EPmotsMkEMtn5VqBfFCVSzvRAL5kUXEsg6aOfrTNR4R+dAmOh1Pzf5Mdd76vYPLUQ0YlCOGuWH12FSJnQDK7kquYyO1FH5w9flsTv+SSrx74nAOihKCKcrIQ74zdRnLJOxFHwwG5vdVol0CWAZ2X9ND5kaDVLkNyAaYIJr/HlM7nm4BO3HSKkomYF6qD3BwKz1f1v+fpZAgOZgnx7QSqsYqd64gq4Qogcq92h/2/V1jQvxjzdCm8zZdIUaBLqWfPW28XgEBEdyuE8zVivTh2hfgyiJDRnWZ8iKDa4jt7yZ6u+Lxcx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2019 11:47:57.4041 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: de3afacd-c046-4305-a282-08d76e78a726 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=[SATLEXMB02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4114 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 fc16432..e0bac1f 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