Skip to content

Commit d12e214

Browse files
committed
ALSA: hda: Remove convert_art_to_tsc()
JIRA: https://issues.redhat.com/browse/RHEL-61639 commit b3266ed Author: Thomas Gleixner <tglx@linutronix.de> Date: Mon May 13 16:08:07 2024 +0530 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 <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 Signed-off-by: Ivan Vecera <ivecera@redhat.com>
1 parent 4d65620 commit d12e214

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/pci/hda/hda_controller.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@ static int azx_get_sync_time(ktime_t *device,
463463
*device = ktime_add_ns(*device, (wallclk_cycles * NSEC_PER_SEC) /
464464
((HDA_MAX_CYCLE_VALUE + 1) * runtime->rate));
465465

466-
*system = convert_art_to_tsc(tsc_counter);
466+
system->cycles = tsc_counter;
467+
system->cs_id = CSID_X86_ART;
467468

468469
return 0;
469470
}

0 commit comments

Comments
 (0)