Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2214270rwd; Fri, 9 Jun 2023 08:09:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7QzsOeYy6ITbBGvsYE6wJCyR8ptQ3aojN2NUj+aIoweZn9+fZsCQcTm/ahx5JDr42ej3vH X-Received: by 2002:a17:903:120d:b0:1ac:83d1:9269 with SMTP id l13-20020a170903120d00b001ac83d19269mr1690520plh.16.1686323341672; Fri, 09 Jun 2023 08:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686323341; cv=none; d=google.com; s=arc-20160816; b=DlRrlohBgdkGNcmY1+ORSj+guQJD5++alwZFVPZz/PqpptdPkWGmZKSP2wrBjnzbTr rR4yLjzL9Uzm3VwWfu6zoEL+L0/kAiIcbLBQjs/m0o+Bf5vwT+6UQyh1RU8rXvcopgo0 /oN9vzXSSu3rY+6U+GXN85zdEEea0AozBJuX3A5deAZVQGdWQQa0Le4ziLeKhAHsVBpG YOGmUCFdEQNiNVUckD2p7AVOarEdRlLqrq8lSkwxQhfTXJpH+gX48HzdmtaR0M80wCnd hB0cBxZ5SdkaX5j4Mj3wH63oBrYQH6tx3thYHuW6Ahe7xWxW9a2mbTPZzS5GT5V6K8BY hWeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RuQSolMY+GsunpVDUBYRLCP9uTfJjpPU4KcdicPOHq4=; b=c0DruB/oyalftV4H8KvytJwkvrFiDIo9f4PO6vG9Jcz2jVd7I4Yhxc5sgtgRz4GwA8 znCCAILOJrwU19e/ie6Zo5SQOXqnF7SqLz4dTAzyvWay9u5HDQxBoVyUDFEli/1xH4Cw Bx409p8wAlgvZEk/pVmqN/7ssPiRLqLvs5L6w+BJtiwKwRU1+E83jOP6yUbXRtgB+oks DEQGMxDUOfOiLvmppy87lOMmjTs8hopP++prpsa97U7xHsCiwZDzblo06749pJA4fCwB NqoexNbocvB5ZtZsAcLw5bMhaIMX1J3V7p5ygDCLOee+zh44wdEHTg7yvVVwuICmm7iF G2tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ONwJl09/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a170902cec900b001b1be13179csi2902624plg.385.2023.06.09.08.08.45; Fri, 09 Jun 2023 08:09:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ONwJl09/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241625AbjFIOyi (ORCPT + 99 others); Fri, 9 Jun 2023 10:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241624AbjFIOyb (ORCPT ); Fri, 9 Jun 2023 10:54:31 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2420D30F1 for ; Fri, 9 Jun 2023 07:54:22 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f7a8089709so19235525e9.1 for ; Fri, 09 Jun 2023 07:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686322460; x=1688914460; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RuQSolMY+GsunpVDUBYRLCP9uTfJjpPU4KcdicPOHq4=; b=ONwJl09/bsLQmdUzwtjnMWbC7fFCwIu40+1GGEzwNKYAYTImxjdf80WVJenHhV6SZE l4hyaIQb9uouf0Knk+bgqUpA18RhoQmWzHa7wGTm5DaL1kfmpeIfSfRyW1UzLp3TNe5M gND5CHZmr7t5WkwjRCPDvGuC0Edq6WoaG+VBGf4QjCiqRI+E3F9BC/91d2r+CdYGCS6i G17IodWT7T+WZtjs6mV8Dg2r0gO3rHNyRe2cAdPYHdyQ2n9s5t89eyCv0FdZ2gTN3MRX GqPUaqQnWTqHRyJZ/jEBAx1d8jxCsWZ7kSYgZXoGyrwXvIHOkOCROW+CL57a6XTPXRqX l03g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686322460; x=1688914460; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RuQSolMY+GsunpVDUBYRLCP9uTfJjpPU4KcdicPOHq4=; b=f2u59xMfTKVLfyMcwbPATBvMZ4cBYeY6P9jmuI1XnyixGGZGEqMMXD+NYcyWxlNezq 1eemcVnP828RYzQYImwnIDyQugqBWP4A6Xa+VDd69Ct/WUjJPuw8MX5CEuFGfmoxC99m MlyxW+qlHrAk+vr3b23xtFpNed4iWOt8F0tTn1Oe0XbEuOqlmnTT3A/vQmfTKV5rRdOW BMzyELewYFJzb8WFwwJ6zbhLAG0Q56XLE1aGEFimdHel8wN6d808Y5oLwTMInuU+SLtO K/UoOgb3fxVMwtzNMy+w8aDf8SO6OVNi0cdMpUngzfl7Pd6HSIqolkUMaP5mgPxFN3dy qcmA== X-Gm-Message-State: AC+VfDzYCXhFo+h/PH7++a5FST0OPGRGjnnkaEb5hqIW8rYpJkcw9BHI Gs3aazs6L64OzJbCe0FFCyw6jQ== X-Received: by 2002:a1c:6a18:0:b0:3f7:e536:8f06 with SMTP id f24-20020a1c6a18000000b003f7e5368f06mr1341409wmc.26.1686322460491; Fri, 09 Jun 2023 07:54:20 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id c21-20020a05600c0ad500b003f7310a3ffasm2946632wmr.2.2023.06.09.07.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 07:54:16 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, ckeepax@opensource.cirrus.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, Mohammad Rafi Shaik , Srinivas Kandagatla Subject: [PATCH v2 02/11] ASoC: q6dsp: q6apm: add end of stream events Date: Fri, 9 Jun 2023 15:53:58 +0100 Message-Id: <20230609145407.18774-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20230609145407.18774-1-srinivas.kandagatla@linaro.org> References: <20230609145407.18774-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mohammad Rafi Shaik EOS event from dsp is currently not sent to the dai drivers, add the missing callback. Signed-off-by: Mohammad Rafi Shaik Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6apm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/qcom/qdsp6/q6apm.c b/sound/soc/qcom/qdsp6/q6apm.c index a7a3f973eb6d..b07fee8ccac1 100644 --- a/sound/soc/qcom/qdsp6/q6apm.c +++ b/sound/soc/qcom/qdsp6/q6apm.c @@ -497,6 +497,9 @@ static int graph_callback(struct gpr_resp_pkt *data, void *priv, int op) } break; case DATA_CMD_WR_SH_MEM_EP_EOS_RENDERED: + client_event = APM_CLIENT_EVENT_CMD_EOS_DONE; + if (graph->cb) + graph->cb(client_event, hdr->token, data->payload, graph->priv); break; case GPR_BASIC_RSP_RESULT: switch (result->opcode) { -- 2.21.0