Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1695873ybl; Thu, 5 Dec 2019 05:41:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxRi0IOxZM7Ye3Vr5XUf4YcY210ZPUBqsZipARGqo8Oszta3s8P6Vn3697iTzJ86aCNF2iO X-Received: by 2002:a05:6808:197:: with SMTP id w23mr7368326oic.46.1575553307998; Thu, 05 Dec 2019 05:41:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575553307; cv=pass; d=google.com; s=arc-20160816; b=pPbFP7KLlya3yJMqZX+0O2/wjmrsXlqZtNnOoVNbuiP93VgrHCctrYm7NMCsPV4d4s SsV2tJ7Mi5M1TMe0R/boAxDsluINolLkXQDkCb3vp8bqpBts4jWRmSitpblTchlAuJRP Hg/osf5uQAUGE55ywEe40kjTGLZMZRB61JjO1mxt+bpJW/Vjm2XzxcaMe1h03QtVgGp7 0qVA4ehkTf/PgNCB8lwEvlGQTRrDxlKBzN5+dFL+SuK2pAwCNZOny6whN4fVuVctdM5d EEGT/oBjL5icGhE+8tYCloIR49TpO+JAeUkrCHZEhMnEnc2ZT35LV29xu+VqQWqCQ8t/ /W2g== 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=ut0B5CEuA09psSxCpV5btNncQviIbnAjU0/pQKg3nyY=; b=v2RoqiTXBGT9AxuaMxEfsNMCzt6zkm5T5FCMR9SYqTsFzxl+giaVzpXYa0RTozOXAn ALPJC6Wx+3bjHZyAv/Kef8VhRACCW2EO5ryR5RsTLM8TGBgl8SZSPS3VnWzOmiLRH/4F zsY386SZ4fUHQyKhAOWbsDK2XTmRjd+mwEdPMtuyk+0jx3+vYdvUK26UZQhOqPSH1El+ e8ulfg/8r6zSzbqNcsQsQSqdL1h6H2yAvHyFsr6VkECVVN5QhiN1+RWuqmB3MMve0xFE QRY1JwrPq8uI69O63eErGDrJeCHhF34rCdIw0Jn+d3eRkGmFP6kExsLCwa4KCuvLYT9Z DS7A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=x9ZDDzFx; 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 2si4497918oii.67.2019.12.05.05.41.35; Thu, 05 Dec 2019 05:41:47 -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=x9ZDDzFx; 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 S1729596AbfLENjw (ORCPT + 99 others); Thu, 5 Dec 2019 08:39:52 -0500 Received: from mail-bn8nam12on2085.outbound.protection.outlook.com ([40.107.237.85]:9923 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729096AbfLENju (ORCPT ); Thu, 5 Dec 2019 08:39:50 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gYdZjBECXYdnU97eOYCooGh+MfW/iXXzOBBN2ozXXoFQGgo7eKHSlaqg2aeRQOZZRLCCsHn8I83PfXeWIiVFkN9YLf9po+qGokG3MlN/F1oLy3vmP9kZWQUYOIaHTtTjBNjb25D43Q50xrC5zpHaZTYpWmi11ElFfG+ikveSQKGCwcNVClvG3sbJ2kBowAzijkKssXRyePEVBW4OoEi2cRyN5RBi08EuQdQw07kx8TMRZ1Mh3AMQrRivVXt8+VzozTutv2/rvrFRcsvtHVZToUBBZOEArMcvChR7xbaawlwwE4HievU8z/tOmD2BvOjkpt05N2PvWlQY8yN2LwG8Dg== 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=ut0B5CEuA09psSxCpV5btNncQviIbnAjU0/pQKg3nyY=; b=QVp1dqZqtRQZjMwncdOrBHq97pPe8uTt9FN9ULOZuD0pQJhkZNrdoLulFjRaOFeGEJtYdGM1lvO1zdG0/33w/u3tHMN+5kRisIQifNQGVmQMmseNeRpSXhpFvsEGYZW/mcml5okazes8TkxKRtuafe2NA7GiRy40NpgwXLK2mYNg8hpAMIjxVF+Oy+wpm0DhaoTkPU3YdziFehag96otCWZWTUFpIRMwCILK0U3EJXJn9U2w7DCi1Q+fs4BXuJcbI2gKg7zcCXI+k5vgBjLLrVpG3EOozCxYyVnnBjGcyh2TYbOF8JJYH7uAaO/NaMMsav1rd9//4uA31WfI5P0QKQ== 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=ut0B5CEuA09psSxCpV5btNncQviIbnAjU0/pQKg3nyY=; b=x9ZDDzFxfOKRxz519jp8wDCd+JICUj73wMECIB2YJPIgQAZsP0DEFnHF+fGrI0iOpkda9+bX0QPaNVMDPiYcDz9E9fKThx2YONylRyU5f1mfAMYvn21r+jClaN+24/xrYpzM7otj6lp+g2NlEJ73vP33t/O0ucuPn5dDl/bqBTI= Received: from MN2PR12CA0006.namprd12.prod.outlook.com (2603:10b6:208:a8::19) by BL0PR12MB2435.namprd12.prod.outlook.com (2603:10b6:207:48::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.14; Thu, 5 Dec 2019 13:39:42 +0000 Received: from BN8NAM11FT006.eop-nam11.prod.protection.outlook.com (2a01:111:f400:7eae::205) by MN2PR12CA0006.outlook.office365.com (2603:10b6:208:a8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2516.14 via Frontend Transport; Thu, 5 Dec 2019 13:39:42 +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 BN8NAM11FT006.mail.protection.outlook.com (10.13.177.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2451.23 via Frontend Transport; Thu, 5 Dec 2019 13:39:42 +0000 Received: from SATLEXMB01.amd.com (10.181.40.142) 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, 5 Dec 2019 07:39:41 -0600 Received: from vishnu-All-Series.amd.com (10.180.168.240) by SATLEXMB01.amd.com (10.181.40.142) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Thu, 5 Dec 2019 07:39:37 -0600 From: Ravulapati Vishnu vardhan rao CC: , , , Ravulapati Vishnu vardhan rao , Liam Girdwood , Mark Brown , Jaroslav Kysela , "Takashi Iwai" , Vijendar Mukunda , "Gustavo A. R. Silva" , YueHaibing , Kuninori Morimoto , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: [PATCH v14 5/7] ASoC: amd: Handle ACP3x I2S-SP Interrupts. Date: Thu, 5 Dec 2019 19:07:30 +0530 Message-ID: <1575553053-18344-6-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575553053-18344-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> References: <1575553053-18344-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)(39860400002)(376002)(346002)(396003)(136003)(428003)(189003)(199004)(53416004)(4326008)(478600001)(36756003)(81166006)(7416002)(51416003)(7696005)(426003)(109986005)(336012)(2906002)(76176011)(2616005)(70586007)(305945005)(6666004)(70206006)(11346002)(186003)(26005)(16586007)(356004)(54906003)(81156014)(48376002)(50466002)(316002)(86362001)(50226002)(8676002)(5660300002)(8936002)(266003)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR12MB2435;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: 9c67bc50-b331-43bd-d922-08d779889526 X-MS-TrafficTypeDiagnostic: BL0PR12MB2435:|BL0PR12MB2435: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:2582; X-Forefront-PRVS: 02426D11FE X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pwoCB/7KsGa4Ghm+X+F3GKYxMzeBY+rDoq/Oy8PENArxUJIUmOs/+uTZED9bQ3bCzZjG/oPQeoF6kkzZNU19VBdpMTi/Qeo20WYTc8XzofXRS4A+du+nlUSlI2Ll0v6lwe4fCqqWWYfHZ8lpwK61u8wacim0jHNR94MNJ76QbwuealHCMfN9B41o4JhG/duYcDgeq6R11ICoXC8JouCiAGvcV9ZSG7h0VD3TqM/TH9ldCzLFuMyArUXbw5aBPwn5IoeT3qdF6QBhMm6YPUjbJoTWbcgN26TCIqHDszcRcuHUbz+aAHRCU/Jkiz4ecJxaoNwoslkFTDkbkWbmhrpatipe9Rl67xCnDzS3yVxevLgtz5pxDsgsow7Cqwk1CMfYg3nXOozz1uvX9o89bR2b0gK09E+fMR/fUM6JCLgKHp0Oq5TrHr3sGyXg0sH+mA5mcEc2VUWM29B0PPZ+O93S7Z0iQAmMvJhc5c3pwlW936MjRx7z0kGLnaMHsV/+Xvl3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2019 13:39:42.0638 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9c67bc50-b331-43bd-d922-08d779889526 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: BL0PR12MB2435 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 14ef38e..7a107ea 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