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 3835EC433F5 for ; Mon, 9 May 2022 17:05:42 +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 A1E4E1730; Mon, 9 May 2022 19:04:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A1E4E1730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1652115940; bh=bfDJdYMeVvIeKwWHDaSaTzZNTKf2+FbXAYA7FO9f42A=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=lDSUKdM9veB4Zv8qGWQ5Wzbxul5Cnk1oeUmCvHchTztNI+KTcuxMpzhYbk3L2jyxj 8o8/ylDdlUAsdW2ftZ1HuCzhK6x9ib4j2MFb2Qu2DZqQ5ixRqlUNKOmEPxP2BNg7W3 UXEEdZL4lFo4RhUZN99rARgZ4O8/xqyLap8Rk/jE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 38ED2F8011C; Mon, 9 May 2022 19:04:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A5E96F8025D; Mon, 9 May 2022 19:04:48 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D748FF8011C for ; Mon, 9 May 2022 19:04:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D748FF8011C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="V+M9+1jW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652115883; x=1683651883; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bfDJdYMeVvIeKwWHDaSaTzZNTKf2+FbXAYA7FO9f42A=; b=V+M9+1jWmtGVr9hPs5+DnVaO8oTm6zti5Dtk/rgVbIMd2aFmgjnH4Ndo zASV0mq89zcWcNDErDS+R3du2ITffzwhOSvXJIbUGbzsSqUvVDKznRZ8F WvS2j/Lh6IhFu+2eiwnrCgqbe1sYzlPsPQNzYOfO/IhqdtRgXSSMuAvW/ JXvOUKLxAe2TPe1wSyWZy8kiWCKD8loJEK+7kZocXfBMC/1InaqxLipQw NiqhcETsANxLGIBSWplDMcaTrhBXkqG8qMhvM/M5QwTZF6qBFbVNus/dX rqRQ/C5Jk5PLKNVHIzkZzF/0ZRzCfbIFK1hhGodb3sf/hEJ8xwIkAlRm1 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="249011659" X-IronPort-AV: E=Sophos;i="5.91,211,1647327600"; d="scan'208";a="249011659" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 10:04:38 -0700 X-IronPort-AV: E=Sophos;i="5.91,211,1647327600"; d="scan'208";a="565177994" Received: from mkarkhan-mobl.amr.corp.intel.com (HELO pbossart-mobl3.amr.corp.intel.com) ([10.209.61.140]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 10:04:37 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Subject: [PATCH] ASoC: SOF: ipc: introduce cont_update_posn in sof_ipc_stream_params struct Date: Mon, 9 May 2022 12:04:25 -0500 Message-Id: <20220509170425.54640-1-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Kai Vehmanen , tiwai@suse.de, Ranjani Sridharan , Pierre-Louis Bossart , broonie@kernel.org, YC Hung , Daniel Baluta 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" From: YC Hung The host stream position is updated when no_stream_position is set as 0. However current implementation updates host stream position only when report data is larger than or equal to host period size which is decided by the period size of host side. It maybe cause host stream position update not in time. Therefore this patch introduces another field "cont_update_posn", a boolean value aimed to update host stream position continuously and based on period size of pipeline. It can get better precise when need to update host stream position from firmware. Reviewed-by: Daniel Baluta Reviewed-by: Ranjani Sridharan Reviewed-by: Kai Vehmanen Signed-off-by: YC Hung Signed-off-by: Pierre-Louis Bossart --- include/sound/sof/stream.h | 3 ++- include/uapi/sound/sof/abi.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/sound/sof/stream.h b/include/sound/sof/stream.h index 58a0d49977d63..1db3bbc3e65d4 100644 --- a/include/sound/sof/stream.h +++ b/include/sound/sof/stream.h @@ -85,8 +85,9 @@ struct sof_ipc_stream_params { uint32_t host_period_bytes; uint16_t no_stream_position; /**< 1 means don't send stream position */ + uint8_t cont_update_posn; /**< 1 means continuous update stream position */ - uint16_t reserved[3]; + uint8_t reserved[5]; uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */ } __packed; diff --git a/include/uapi/sound/sof/abi.h b/include/uapi/sound/sof/abi.h index b87e46684623b..0e7dccdc25fdd 100644 --- a/include/uapi/sound/sof/abi.h +++ b/include/uapi/sound/sof/abi.h @@ -26,7 +26,7 @@ /* SOF ABI version major, minor and patch numbers */ #define SOF_ABI_MAJOR 3 -#define SOF_ABI_MINOR 20 +#define SOF_ABI_MINOR 21 #define SOF_ABI_PATCH 0 /* SOF ABI version number. Format within 32bit word is MMmmmppp */ -- 2.30.2