Skip to content

Commit b3266ed

Browse files
committed
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 <[email protected]> Signed-off-by: Lakshmi Sowjanya D <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f5e1d0d commit b3266ed

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)