From patchwork Wed Jan 3 11:55:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "D, Lakshmi Sowjanya" X-Patchwork-Id: 184720 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4970750dyb; Wed, 3 Jan 2024 03:59:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsjlVtAIVPNZggoPV5Wya8ek8gUPpC1NngaVKGVzsGLxAaCMtRzGwTKgzIFWQd6okplpAm X-Received: by 2002:a05:6a20:8e28:b0:197:792b:1d6e with SMTP id y40-20020a056a208e2800b00197792b1d6emr428023pzj.63.1704283153536; Wed, 03 Jan 2024 03:59:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704283153; cv=none; d=google.com; s=arc-20160816; b=VMRRmsPjTE0uqE/kE3NPJzZQ1DjNJY8mXFA8a+YCgCg1Ik4qR26fIlU9Swxu5RtbWI XK6gw+6v4Aqpzf0K3BcIiX9rdLKEPflJDHXAEEnRMysvA0XxwFKZQep8BBc6LqHtluAD D4pFTqQcLY7pGndqqFMYLMd4OUdpODk5xk6ePc/7IxiFQG1UpWBBeqaocPfEhPrdFBjO BqgQR7Y9X00YUFnLQAut4jCuu49g4dA1nuqjNoHWU5g0YQzKhWIiXpoeSk4vdn0OrJUs AjkO+iwOyYFNG2U2NApLbV+XqKMGBMw3I/9wtTmMM3JqelORUR/46YWNSrLrqymWwe1c Rc5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=F6DDAwnJyc7gqeXQy1eTazJ5RGN2XJInOFeV5shtaVI=; fh=4NrVLy9e1N+ecgT+cYXeaYo3IQFJO3N8B6ul/oSBUd8=; b=BIpTt9d4Y6947NnpOZteEQRu0SkBy8dFkXAusNEJbXuIJSEwo8RC+ExvzVTnZe4pgt pM8nP39soWJCeWJrx8xL3fIudJK9Nc9JstKUP4Q3oluwrgYFwaRmps3KbMJpKX4o8eAO RW/NBQaX0QgPLTYwbY2u2M410zjf11B2BHvY4nrV8iee36NaaB8mA1dL8cOUX2rWTNdj Z6kLj81a8FxIr7UV0OnOXmlwFhHoCuZPdre9c2CT/aT6jIwDtiRDz5uUfV0NW4ag8Fbe WTx9zy4FkMq9BmRCAp6wnClDH1vn1zih2aBhR7ACRX6TCkbhkDdweQw1dHgxk+qVFUdl FgDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="DPhFDyz/"; spf=pass (google.com: domain of linux-kernel+bounces-15474-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15474-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p13-20020a635b0d000000b005cdc2cc9a17si21638226pgb.797.2024.01.03.03.59.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 03:59:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15474-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="DPhFDyz/"; spf=pass (google.com: domain of linux-kernel+bounces-15474-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15474-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 51896284F5C for ; Wed, 3 Jan 2024 11:59:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 496061A70A; Wed, 3 Jan 2024 11:56:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DPhFDyz/" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 136C419469; Wed, 3 Jan 2024 11:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704283009; x=1735819009; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C3p46caV8CRS4j/dEHJyoZnEtIablwurupbiv6nNHMI=; b=DPhFDyz/my2D02keicqCZv6T6z8Du1LA10nwV56+pQPlU7Xd8VVcaryI hFo9KXImss8K+ygnr7CkKwLCf4FXenB8+5pWqsYSjhpfaCzquL7tb9IpX vDpjWYuoS9Lkb0kLcWsLfZAncIzdz86DJ67+r2oZdLcpiEi7LgvlZJtKY 1clerfFKahg6Sc1b83i7fG8BoKu3w2Hkc59MgfHOZmwhPtEtB7y37ZF+P G9tkCIuSlpAZnHnPO8pwS5bVd/TtMIku+eamU5XYrKguKdZxqQ+QtvMEE ValEAEH7eUa/l0LKramYG5HBlKbtFzs2nrEjp8g846gyqDfWkPRBl1oa8 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="428169541" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="428169541" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 03:56:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="1111348097" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="1111348097" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga005.fm.intel.com with ESMTP; 03 Jan 2024 03:56:41 -0800 From: lakshmi.sowjanya.d@intel.com To: tglx@linutronix.de, jstultz@google.com, giometti@enneenne.com, corbet@lwn.net, linux-kernel@vger.kernel.org Cc: x86@kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org, andriy.shevchenko@linux.intel.com, eddie.dong@intel.com, christopher.s.hall@intel.com, jesse.brandeburg@intel.com, davem@davemloft.net, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, perex@perex.cz, linux-sound@vger.kernel.org, anthony.l.nguyen@intel.com, pandith.n@intel.com, mallikarjunappa.sangannavar@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [RFC PATCH v3 06/11] ALSA: hda: remove convert_art_to_tsc() Date: Wed, 3 Jan 2024 17:25:57 +0530 Message-Id: <20240103115602.19044-7-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240103115602.19044-1-lakshmi.sowjanya.d@intel.com> References: <20240103115602.19044-1-lakshmi.sowjanya.d@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787070412118539387 X-GMAIL-MSGID: 1787070412118539387 From: Thomas Gleixner Remove convert_art_to_tsc() function call, Pass system clock cycles and clocksource ID as input to get_device_system_crosststamp(). Signed-off-by: Thomas Gleixner Signed-off-by: Lakshmi Sowjanya D --- sound/pci/hda/hda_controller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index c42e9ffff9db..787521d7f3b1 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -457,7 +457,8 @@ static int azx_get_sync_time(ktime_t *device, *device = ktime_add_ns(*device, (wallclk_cycles * NSEC_PER_SEC) / ((HDA_MAX_CYCLE_VALUE + 1) * runtime->rate)); - *system = convert_art_to_tsc(tsc_counter); + system->cycles = tsc_counter; + system->cs_id = CSID_X86_ART; return 0; }