Message ID | 1573137364-5592-6-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=zQEr=Y6=alsa-project.org=alsa-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E1E7139A for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 6 Nov 2019 14:41:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2F4E521D79 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 6 Nov 2019 14:41:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="q6BrTQ3A"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="G2HPILww" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2F4E521D79 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C099C16B0; Wed, 6 Nov 2019 15:40:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C099C16B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1573051303; bh=NdubzcsrI6X0SN+57g0kaNJRUs6AmStP1OGZJIg9XQ8=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=q6BrTQ3Adw7+mZFQz7EAGm0CB5sn8E4SUhA/jB5d+4ycc080JdQelhfSy3w0U0/xY 1Om/8yt9GWWKpY/QBlKSDyYxmPlkEdRifsUQ6SQQLRTthuBMv7F3j6XmwmJrfAmnse sqpw8hGEnjmvoQW467JYzMa2Ja20mXZfad0EI4Jw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 14A56F8063E; Wed, 6 Nov 2019 15:38:29 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id EAE83F80642; Wed, 6 Nov 2019 15:38:27 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=5.0 tests=DATE_IN_FUTURE_12_24, DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,SPF_HELO_PASS,SPF_NONE,SURBL_BLOCKED, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770074.outbound.protection.outlook.com [40.107.77.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B6F42F8063C for <alsa-devel@alsa-project.org>; Wed, 6 Nov 2019 15:38:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B6F42F8063C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="G2HPILww" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kil2UdAjJu3Ltr7RCw+ThmrdakEUg3lppqprX5G8vcEJYicaOpbhCRDsmi7rYUXjAuzM4wCnHL5ikfCsT+EpLOP87SY7FLuJIt7etUe5rcTOj/+pCjib0+W54EmqzPcOSHTQVpoWjUamw7PHyMltwu1Z58X8CpiTfQV1s7AIzaMpYQkqv0cPsj4vkT73yB+5igl2LDx167KVqi0bo936YbenoRKnF3ZIRcnuWY47ITHtlAnO+djLefumUE5iYnL90vkEQLW8SWUOUW7sk0XZsvNj9d80V09UW/aXcm67fCTB9tGQdOgh7FA9HkXqVb4FfzZkRr0Qm8Ikc4hSYPLSFQ== 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=vP950m9Lua3CxdO/VEl54zPIkv84dlcsHExu98kMj2E=; b=HIFJLM6rFXulk2EL5oZ9pGf3mBvxf8RFRDxA59/9s/5G0qWaKOXgqoOQWqerKrvBdGmFs1QmTSMp7am8x/1E2KQYP5aDbATCkiyb2SFF3lDXXrXMq72C8X5HGPgJ0TSKaQ2ErA12p9wYRYqvMRL9IKHiWRAhX3m/81Z9rHdZ6ZE/MvefSWd4vd+rlTYtgD9eKwtPifEbqV4HA46jf3/b/UgcKkXIGHMCXNpUA9qQbQjcx7TD2MK0LxRyZasDt/nibFd46hwp6KNYMbeqLoNGQLFMBKrcqwNkYniQFtbHZoMv9KQ3R1rpT04sD+6eDeYu8LJi9ky4LDaNY0t6luiQXQ== 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=vP950m9Lua3CxdO/VEl54zPIkv84dlcsHExu98kMj2E=; b=G2HPILww2neDJMia3TMUMOMggIFyg85PrFh7r9MRyXBWPKnlX2wEuB9HQtvVCJBISuA6vV6ZIZLLpqPcxHFh6faRjpvdv3f8oaqaa5A3+8AG/2d3oC+CfUJliu8BVv2Uqj9f24xUVvpRbQFDm+U5A8yjmTu+V0ce+bd8hDFOm9g= Received: from CY4PR12CA0034.namprd12.prod.outlook.com (2603:10b6:903:129::20) by DM6PR12MB3370.namprd12.prod.outlook.com (2603:10b6:5:38::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Wed, 6 Nov 2019 14:38:21 +0000 Received: from DM3NAM03FT060.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::206) by CY4PR12CA0034.outlook.office365.com (2603:10b6:903:129::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20 via Frontend Transport; Wed, 6 Nov 2019 14:38:21 +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 DM3NAM03FT060.mail.protection.outlook.com (10.152.83.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2430.20 via Frontend Transport; Wed, 6 Nov 2019 14:38:21 +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; Wed, 6 Nov 2019 08:38:20 -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; Wed, 6 Nov 2019 08:38:14 -0600 From: Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com> To: Date: Thu, 7 Nov 2019 20:06:02 +0530 Message-ID: <1573137364-5592-6-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573137364-5592-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com> References: <1573137364-5592-1-git-send-email-Vishnuvardhanrao.Ravulapati@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)(4636009)(376002)(396003)(346002)(39860400002)(136003)(428003)(199004)(189003)(47776003)(486006)(476003)(336012)(2616005)(126002)(53416004)(356004)(11346002)(109986005)(426003)(54906003)(6666004)(446003)(16586007)(70586007)(316002)(70206006)(2906002)(5660300002)(26005)(478600001)(86362001)(4326008)(186003)(36756003)(50466002)(1671002)(50226002)(48376002)(8676002)(8936002)(51416003)(76176011)(81156014)(81166006)(305945005)(7696005)(266003)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR12MB3370; H:SATLEXMB01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8ae07e60-1bb3-48eb-8b66-08d762c6f8c9 X-MS-TrafficTypeDiagnostic: DM6PR12MB3370:|DM6PR12MB3370: X-Microsoft-Antispam-PRVS: <DM6PR12MB3370EDBCFF619C019F78B868E7790@DM6PR12MB3370.namprd12.prod.outlook.com> X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:431; X-Forefront-PRVS: 02135EB356 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WznM1EnCSUcrBm61a6fO7RW2xPuLfOWfNUSEuf/jd+s778MMg50SvQiVniUQa4a9P6S1IATsdBIcrnuLQgXJkeUzlPZuolkdMKumw4NEJHQ0BVMEY5UMF9UBBQq2C0+P0sbGdz4JVBYQJNI4rCCxjFRAGjGlEhRX7vE2nXb8FHcrNNp1HMPhgdzh3j6gmAkyK3oFPUqtrdOzBGBev28TPBJ/nwSIrx8lYqGVLwpOeJ6bGR2nV6o+W7s/1zgzzq3UqEIm+uDFz3pnC2JpPxmZehwjK/hIhJIcykIpRV9bHEaNHw6rZSuB2tbLqnlC07UP7DVB/OVy3bR6W0Q9b7CQ/bNjxXM1m3lnhFdXZMniYAvCAWjWtVW/Ym70TIJlcG8KJQToBmBmeJ0FvD7Hi9k+rz9bAMlkiERgB+a3SRDjJRhFUTfKEpq1bCRHw7X7HO3C X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2019 14:38:21.2378 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ae07e60-1bb3-48eb-8b66-08d762c6f8c9 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: DM6PR12MB3370 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." <alsa-devel@alsa-project.org>, Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>, open list <linux-kernel@vger.kernel.org>, Takashi Iwai <tiwai@suse.com>, YueHaibing <yuehaibing@huawei.com>, Liam Girdwood <lgirdwood@gmail.com>, Akshu.Agrawal@amd.com, Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com>, Mark Brown <broonie@kernel.org>, djkurtz@google.com, Vijendar Mukunda <Vijendar.Mukunda@amd.com>, Alexander.Deucher@amd.com, Colin Ian King <colin.king@canonical.com> Subject: [alsa-devel] [RESEND PATCH v2 5/7] ASoC: amd: handle ACP3x i2s-sp watermark interrupt. X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
[RESEND,v2,1/7] ASoC: amd: Create multiple I2S platform device endpoints
|
expand
|
diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index 58db11b..689e234 100644 --- a/sound/soc/amd/raven/acp3x-pcm-dma.c +++ b/sound/soc/amd/raven/acp3x-pcm-dma.c @@ -176,6 +176,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 + @@ -183,6 +190,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;
whenever audio data equal to I2S-SP fifo watermark level is produced/consumed, interrupt is generated. Signed-off-by: Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com> --- sound/soc/amd/raven/acp3x-pcm-dma.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)