From patchwork Wed Feb 7 06:08:49 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: 197755 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2031414dyb; Tue, 6 Feb 2024 22:11:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4WYuG4swHu5q5En6xh+9a7da0R4g5snEUZPuVgLfJ5fu3ESxE3pTeT9fkILKDE0NnvpCD X-Received: by 2002:a17:90a:4383:b0:295:fbbc:6daa with SMTP id r3-20020a17090a438300b00295fbbc6daamr1660559pjg.19.1707286317149; Tue, 06 Feb 2024 22:11:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707286317; cv=pass; d=google.com; s=arc-20160816; b=d6VH0iy8MXV/+yo7+stKA2bkNgri5N+DuUKTF8K0KEjRtF34XSa9CQ+6JWL7c/10oL sUSvwIpo+hldMtccbtu1hyTxq4g8f3mVdLilNxC3s9LmTKs+MZn1LPA/ZpDodBAosJyg OpoBSSAdaViMQF04numVpRBbfKgJ+G4yoLW5ZKTsWZJLilA/J/GunnK5YDX+zggNYMKs 6+in5zPGjjWNMIHRAhpai/UneLQZiURf/TV0/TFZ/I3sqOHK0g/9CaO0VasWXM2C7cb2 u9zvTbnDFhvj27E7GhNB97rDcg4YvX8tZCEfPSLIpxBAFXiDTnbc4SPAjgGzDltQbpd3 THFQ== ARC-Message-Signature: i=2; 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=3oqOWK4mlIlAwgo8wYo2agAGNTVZM1RQKGIq1lFPuXY=; fh=IoNZ6n42+DTag5bAAj43mhGnnMISSykcvyosTbbRkGg=; b=KpqwjGe9IHvxFsmse0GMP+VL2vZhk9doKuPCg0UnS/8fCpfBLDV5uFKv96+ZAaBEXn PEG+mC3oux8+u+aRzUtKrFbeDoBXeb/HvoOLVuSrsuYfSN4Yc3HrGGVjtPVaaCrguSNw ueKKNSbK3jIobIVAC+ji+oBPz6qwGrX9z24IZ+tVtu8OmUsJSMyDtQmwGOPI6buGaNlT H59t7cmtn5dnLKhG0CgmIfxF10AITtD9zVkFxu8g+/rBNK2W12q29LQGa0muiPXKsaR8 xX8kw/sDny2lSZ2f5KDcNggykyk8Avvgq+66wbTnKIBuvHfOnnDPlF/yCZMdNABIU2QS 8O2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KQ0raAcm; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-55999-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55999-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVn+R8lzj61hDchRNg3SQ1gLeQ8wmlDPKy2YQ1aNiH8JokBIjUsifTv8WeLosc63MBWOyYFI8Z7Flvb7S4+ZSkzVMqnog== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id na16-20020a17090b4c1000b0029078b78be0si894704pjb.2.2024.02.06.22.11.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 22:11:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55999-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KQ0raAcm; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-55999-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55999-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 E795B288D71 for ; Wed, 7 Feb 2024 06:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA0D3208C5; Wed, 7 Feb 2024 06:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KQ0raAcm" 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 9F4D81CD3D; Wed, 7 Feb 2024 06:09:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707286185; cv=none; b=AJsFwR9b8SsCQPx9SMGG12t26yEESzDbdwtBiI5ADAJ2tH3VYdHl7RkcUqBUmF5bTk0nVWYNPyzzXachpI1pP8wZDDe3LHFtJxva+AiHYGbixhX0XFsRJjEdMoLQY17geM0Y87MoF9U0q6wZEp2cM1V6EuHPqbolSVjK2wqUkAU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707286185; c=relaxed/simple; bh=W10ncAbxufnh5zyGwKufTz7fuO6HXps1+JuIZZy6KjQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Kalkwg4IDQwX1LsLDm7npSJ+QReTN4DiYb+Gu+kqdO1qww2G4TOoSPt76rSrre2hCvalpAfBgQNAaPT1PhsbnBDSXBUexBcuHxCZsSruJcSuC0glzK1QII/4OblwKhiI9bvAj81sxXFYPVtuNvC8tIQD5hwf8hMPpPXV5K6zDzs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KQ0raAcm; arc=none smtp.client-ip=192.55.52.88 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=1707286183; x=1738822183; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=W10ncAbxufnh5zyGwKufTz7fuO6HXps1+JuIZZy6KjQ=; b=KQ0raAcmpgkT+Ren+8Qc69oo7XAgfGW766kIoTip/Gj6OS0FNoBVu5Bt elHAAopyCuvXS/wHCxY2e1O91Fvg4PeMe/3kJmS5hBx/ajdQykkoennQj w0kVoCQBC37uLKvhUqRtCzWpXLO5Bk1OXQ9hITOE3CZaXsvYkXsINtw7R Q1YhLX2mPpiaUq3rvuDp8TkiWKKytOuJdPWS1ESzCbvbE5kz/nQba+Bm/ k/Buw3FTNKr1D/+XRFAqH4FiHxy22F6bxVJ4sbpp7MhpTyGdXsylSj7dv Uhn/aIs3CJTrhstBYwQ1BycFAaCZ4ZBUVat40gsW+zV9qsmwUxUM7JOhk w==; X-IronPort-AV: E=McAfee;i="6600,9927,10976"; a="436054014" X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="436054014" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2024 22:09:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="5849799" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa004.fm.intel.com with ESMTP; 06 Feb 2024 22:09:36 -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, peter.hilber@opensynergy.com, pandith.n@intel.com, mallikarjunappa.sangannavar@intel.com, subramanian.mohan@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v4 06/11] ALSA: hda: remove convert_art_to_tsc() Date: Wed, 7 Feb 2024 11:38:49 +0530 Message-Id: <20240207060854.6524-7-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240207060854.6524-1-lakshmi.sowjanya.d@intel.com> References: <20240207060854.6524-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: 1790219457664093290 X-GMAIL-MSGID: 1790219457664093290 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 3e7bfeee84fd..5206adedb000 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -455,7 +455,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; }