]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: hda: Remove convert_art_to_tsc()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 13 May 2024 10:38:07 +0000 (16:08 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 3 Jun 2024 09:18:50 +0000 (11:18 +0200)
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 <tglx@linutronix.de>
Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240513103813.5666-7-lakshmi.sowjanya.d@intel.com
sound/pci/hda/hda_controller.c

index 766734dc5be27e3a99248ffdc00a60eda7676239..5d86e5a9c814a51248c8d57f5c7e740cd6ebb4d6 100644 (file)
@@ -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;
 }