From patchwork Thu Feb 24 12:18:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghu Ballappa Bankapur X-Patchwork-Id: 546464 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B5E48C433F5 for ; Fri, 25 Feb 2022 13:20:24 +0000 (UTC) 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 EAEFB1B59; Fri, 25 Feb 2022 14:19:32 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EAEFB1B59 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1645795223; bh=as2uhMogn9T+KCET5eO2f3WkKqPR+kbsfCRon27ux98=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=HQ+mRWhcNiu/9azZ7RKiAp2c3aXEFEJbjWpv4a0Zj/yxpUPfzf/gM9v9+3MKnzZMf +dlCxlTjouVIc9uVhVidV9pAbnDeJ7eCKeil7TnYAnkf9Sd/vW3P6sZH9/yRS05gOu f8MdXTL5oIF+P13PD3dLamYJWFpFz9HNpEVplP1M= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A67BEF805E7; Fri, 25 Feb 2022 14:11:37 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0D835F8030F; Thu, 24 Feb 2022 13:19:06 +0100 (CET) Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6F18AF800F3 for ; Thu, 24 Feb 2022 13:19:02 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6F18AF800F3 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="BD+wLMAe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645705144; x=1677241144; h=from:to:cc:subject:date:message-id:mime-version; bh=BzUrG8s2LgYooYxvt/wrbsGOBCwEI54uyGiHOgTZTM8=; b=BD+wLMAe06lNxOMsXO3ib0gYNrQ0keEsZpTaqycqkicY2f2Ba/DTZcKU 64hK+plcVyJov1K8DtS3yPMOIRKzn7uGBkRmE1hg9KeS6sO7rzyx8lluA Ge4M/k2Q6Fsm4MdGB8qxsb+TuMA3riygU3puYGqgGO3l4Iu9WFAsd1omf I=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 24 Feb 2022 04:18:59 -0800 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 04:18:59 -0800 Received: from hu-rbankapu-blr.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Thu, 24 Feb 2022 04:18:56 -0800 From: Raghu Bankapur To: Vinod Koul , Jaroslav Kysela , "Takashi Iwai" , , Subject: [PATCH V2 0/1] ASoC: compress: propagate the error code from the Date: Thu, 24 Feb 2022 17:48:32 +0530 Message-ID: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-Mailman-Approved-At: Fri, 25 Feb 2022 14:11:19 +0100 Cc: Krishna Jha , Raghu Bankapur 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" Propagate the error code from the compress framework for the timestamp query. This error code will be used by the client to handle the error case scenarios gracefully. This propgated error is used by direct client like Audio HAL through IOCTL -SNDRV_COMPRESS_TSTAMP response, further this response is sent to upper layer, based on this error audio related usecases related to render position and presentation are handled. Changes since v1: - Remove initialization for ret, since it is updated by pointer function - Added new line after ret declaration Raghu Bankapur (1): ASoC: compress: propagate the error code from the compress framework sound/core/compress_offload.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)