From: Thomas Gleixner Date: Mon, 13 May 2024 10:38:07 +0000 (+0530) Subject: ALSA: hda: Remove convert_art_to_tsc() X-Git-Tag: v6.11-rc1~228^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3266ed85f77047a9674100f0da8058750e5bc62;p=thirdparty%2Fkernel%2Flinux.git ALSA: hda: Remove convert_art_to_tsc() The core code now provides a mechanism to convert the ART base clock to the corresponding TSC value without requiring an architecture specific function. Replace the direct conversion by filling in the required data. No functional change intended. Signed-off-by: Thomas Gleixner Signed-off-by: Lakshmi Sowjanya D Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240513103813.5666-7-lakshmi.sowjanya.d@intel.com --- diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index 766734dc5be27..5d86e5a9c814a 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; }