From patchwork Tue Jul 7 16:36:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11649275 Return-Path: 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 AB0D860D for ; Tue, 7 Jul 2020 16:39:35 +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 409C7206E2 for ; Tue, 7 Jul 2020 16:39:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="nsAZjQKZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="igUVII5d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 409C7206E2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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 B8584166C; Tue, 7 Jul 2020 18:38:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B8584166C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594139973; bh=J2MJ/duH2bS5U1Y0T+/jkmjX+XL5hlBX5Sdwc59rfgg=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=nsAZjQKZwwQNYhTg5/X3Ag+MPie3QYivrcfXoXjrToJUxjMredesckYD1PV+6d7il zWjW4AzTtu7vy/zwYGGr8NrpX7FpJ4MKi3HefgF+CzLPeKM8jk8W39MGh/+qtQU3kC Jt1cxaJM2i9xZXkY7/fmHu35p7RqvfAuGm5dYvIk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A32F7F80216; Tue, 7 Jul 2020 18:37:11 +0200 (CEST) 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 D569EF802DD; Tue, 7 Jul 2020 18:37:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0E160F801F9 for ; Tue, 7 Jul 2020 18:36:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0E160F801F9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="igUVII5d" Received: by mail-wr1-x441.google.com with SMTP id q5so45857567wru.6 for ; Tue, 07 Jul 2020 09:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=89ssfiDaoOJSnjV248d4sDefUT+7TO0HxUeigRg/Xi8=; b=igUVII5dZ2G5KVSukaILRqxVMXxGWlzOmIIK0fjLv5HWnWKekkDNcTXX9hPb1wQwN8 FTPapeYqOVja2FGOzgs/K81A9eNNe7LdIa2R0rAWj8EssShRgcuphy6vBK/RVDUMJ4ID afHei0QePdDSFkpA1Bww2imqh2kbl+5qYpaIq3qicJkR0QAhQ1FD3+pMWVzTqe4+da1z 1dcLS0wHxrbYzxAjc0SaOoUDlFoh6wL02xIuEffBjmsJocDi2vudx04v9ZV4BXNvBVqP Z+ItAR+E3tjX64F0bLJGf3BjW7DeGbI8MUh+OAV+U9eiUsexu89nvkg0yvy+eFnSKIjP CQjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=89ssfiDaoOJSnjV248d4sDefUT+7TO0HxUeigRg/Xi8=; b=GNT1kd6+yXXGuNeMauUWLKEYDGYYbbcwT1lCZ2Q+Mn/Sxuc0nCHlbeDPYp10opPBzf VSY+a2m/8yvEfMT/c9Gi/G2to2dBYFRCk7BUPbMhtBXwsKd/nuNbihYj2i9ykkT3SVMl HxF7uxXJz4miQFBdAqJyxtYhhg6V9o/l++ih4OtBA7Oz4OvT8s3BN6m+poYkist0CiMS SfvUk4bYVZgKyJ/0OQTShnBGs8KqQ5hS45bVqMM9mYfml7ZGYvCTPrsA7ThhrGAppRra BkJnatkVxkpvqbnCIkSdDF38YFe/BoCDNayEoo0y0zYh6dREn9FNQbPaaKWPEeNEFdFC Tf+w== X-Gm-Message-State: AOAM531ISNKRutcpUZYyX1sX3ar9t/jcgm+M/M7IpCTLGslAeLHkTXJK Ev12QAXpMQSZcYUT4SD4AMVBuA== X-Google-Smtp-Source: ABdhPJwCyvOuGqMhL0YVGz/yoxJtvXzq8/2DIwLjjCWwVY+dCgTdX/SvInkwsOOlCV4xU5MUfG3y8w== X-Received: by 2002:a5d:60d0:: with SMTP id x16mr56186871wrt.5.1594139814687; Tue, 07 Jul 2020 09:36:54 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id p14sm1925874wrj.14.2020.07.07.09.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 09:36:54 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Subject: [PATCH 04/11] ASoC: q6asm: use flags directly from asm-dai Date: Tue, 7 Jul 2020 17:36:34 +0100 Message-Id: <20200707163641.17113-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200707163641.17113-1-srinivas.kandagatla@linaro.org> References: <20200707163641.17113-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, ckeepax@opensource.cirrus.com, tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, vkoul@kernel.org, Srinivas Kandagatla 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" use flags set by asm-dais directly! This will be useful gapless case where write needs a special flag to indicate that last buffer. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sound/soc/qcom/qdsp6/q6asm.c b/sound/soc/qcom/qdsp6/q6asm.c index f5d1f3c2c1ec..d6728304ce6a 100644 --- a/sound/soc/qcom/qdsp6/q6asm.c +++ b/sound/soc/qcom/qdsp6/q6asm.c @@ -1546,10 +1546,7 @@ int q6asm_write_async(struct audio_client *ac, uint32_t stream_id, uint32_t len, write->mem_map_handle = ac->port[SNDRV_PCM_STREAM_PLAYBACK].mem_map_handle; - if (wflags == NO_TIMESTAMP) - write->flags = (wflags & 0x800000FF); - else - write->flags = (0x80000000 | wflags); + write->flags = wflags; port->dsp_buf++;