diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2024-05-13 16:08:07 +0530 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-06-03 11:18:50 +0200 |
commit | b3266ed85f77047a9674100f0da8058750e5bc62 (patch) | |
tree | 00a74c6b2ab4e6e1e7ca41d76ee4dcfb9ac5cb5b | |
parent | f5e1d0db3f02b11a0d1ef433da1fa2c869176c82 (diff) | |
download | lwn-b3266ed85f77047a9674100f0da8058750e5bc62.tar.gz lwn-b3266ed85f77047a9674100f0da8058750e5bc62.zip |
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
-rw-r--r-- | sound/pci/hda/hda_controller.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index 766734dc5be2..5d86e5a9c814 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; } |