Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp855252lqt; Tue, 19 Mar 2024 06:08:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk+eGbUfwIDDAXuQ2Tq6tpun9wVVVu4+cQfM/2N3WcKpZIvUZHVBBVd0k0YYdmE0PetlMU4c/kn+xYzbrkkbCnhZIRzX47ydJJfkT1CA== X-Google-Smtp-Source: AGHT+IECEwhEs/fDhkdlS9Td6T6nSiGmMuNhLSC5hQqe4FtEtCTy7o02mkP7kYUYJAgB2ZKSIYEb X-Received: by 2002:a17:90a:71c9:b0:29b:c47a:24c7 with SMTP id m9-20020a17090a71c900b0029bc47a24c7mr9659353pjs.27.1710853734141; Tue, 19 Mar 2024 06:08:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710853734; cv=pass; d=google.com; s=arc-20160816; b=ALrERyq7UBJ7qPZGTQVIGgqLpZzLXaRDCCMcvmLQiN3NTXNNa+t2IDGMEVx1vssAzB 81ND/8M6bETA2Ggj9y9sMy0r0yM/RgRABR5bWsbQzLOiZmCR2YSLC6kVsqlk0OfdcGvX 1w6xyUF4WZtPvOvO357mFUN+0p1MtQGqhKgYhxUS5pgBB1GchFNZC35rPpKTnExWLlTH sKSkwFoBabPRHF1MBGUdy8XRbmxUM4VCU4b7paFs4fi9dsLWXMavUdoUevRgptKm9o8j Nz/bY5lcVE/QcVC8fxwc0VeZX73b6pZsv7UkYH8inqFYkwidGYPooX6MmAikQ8wGAWE+ N6iQ== 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=sx9hCoRsk1hQP+wQSHdsR78bBWM/LX54nhJ5yAXu9lE=; fh=CGg6k4pIc/rgUymTUfzOJIVXiUSHuw63GXmrBxA2aU8=; b=u0X7VQhr3JjHbbqBodjgu8mZYtEWTwiz0NquhLsXjkbWwWSGETXNYNp/eYR1vCJrGa QMkcQv8M2wRwe2yW3m9FUW2OXD7A4v9xrsoyi6vdD5FEIit/VSQgikR8o4p6a2qVOe1t 1Wos4CYsmJ7FDKmvgyilcTlnLL86w0wjxS5tUCJrRCt7rzpXAQ3OrgD6Q0/hdt7SlIEZ oZ2IdTvMssg062vpOuHRznbol55U3B0QucKfZNmQBDvJrIViUQTO4W3/Gt5AEHMU6tEK Hdxn+JrQ7LlglcvXLA0CflOXWpLsy0QtSfwCbUnr81DRW9huxmgWT86aL+Rdi14ZYxf/ HaUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xry1VKBd; 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-107562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b11-20020a17090a12cb00b0029be9d81edfsi10130400pjg.176.2024.03.19.06.08.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 06:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107562-linux.lists.archive=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=Xry1VKBd; 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-107562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107562-linux.lists.archive=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 CEAA0281E9A for ; Tue, 19 Mar 2024 13:08:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BC55823A4; Tue, 19 Mar 2024 13:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Xry1VKBd" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 E100C81AC3; Tue, 19 Mar 2024 13:06:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853601; cv=none; b=X2mn6GElF/ZtkUCYFn5NyS3DL2rFh6lRHxDAz+k40Y9hvuKsCseXgPatofDGG3yRETyx7uHtT4t248TtWATzkFSNECf75XmqWWCgMITgEzsT6ZYoMQ8KEnUnS8keY7tlR88k5rLuzSub2PRpeoELn4udPm1Zyi3S/gbLEqsx0MU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853601; c=relaxed/simple; bh=lrwNQNbX+WXy0lfMMpmVqKt2xS86UNsIcJDE0QsIpSg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bsHtSD2wgzyNaGflqjNOlMoVHw8woM7cXtst2La57l2tofgycVqALNhMEkaRdbmTMJ15o74LW30debpgfBlU8nfofdUhcMOwHr+sGwe71nSJhbttrzZs6RTGjXq9Qn0bdHNCRfnLTRlnEyZdFf7Jqp8XwrXpVxP5D/Fx7B9nvyw= 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=Xry1VKBd; arc=none smtp.client-ip=198.175.65.16 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=1710853600; x=1742389600; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lrwNQNbX+WXy0lfMMpmVqKt2xS86UNsIcJDE0QsIpSg=; b=Xry1VKBdT5ERuirZ9Gnfp2/TnOeXqvzUOEVkDWaa2SbrmRJT3ckuJe6x erV6Mp+1Q+72p5BZh26OzQlCA367LjxAxjD/mioIg0swSzyC+A7iEKw71 h0xy2atUsoQf1BzF76iQ/8ln+dNfRZ7pD/MMV047e8r/FFzgOPmYlZuM0 7td7FIOCrPa8k8EIBvCCl5FgforcrWrwalA5jokAytE1MhjfqaftBP6Uu hmbWWB+mE0PXLcVjLP+4MaDPqUUIvj3VnNHpqioGFeZf6WVPWGz6Ot894 UChGQe6DmOHhIsfFI10kuRA55W5fymuTGL+btNKC7cqHPwYsSlfeWVoGB Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11017"; a="5843003" X-IronPort-AV: E=Sophos;i="6.07,137,1708416000"; d="scan'208";a="5843003" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2024 06:06:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,137,1708416000"; d="scan'208";a="44883235" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa001.fm.intel.com with ESMTP; 19 Mar 2024 06:06:31 -0700 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, basavaraj.goudar@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v5 06/11] ALSA: hda: remove convert_art_to_tsc() Date: Tue, 19 Mar 2024 18:35:42 +0530 Message-Id: <20240319130547.4195-7-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240319130547.4195-1-lakshmi.sowjanya.d@intel.com> References: <20240319130547.4195-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 Content-Transfer-Encoding: 8bit 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 206306a0eb82..6f648fae7a7b 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -463,7 +463,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; } -- 2.35.3