--- zzzz-none-000/linux-5.4.213/sound/core/pcm_timer.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/sound/core/pcm_timer.c 2024-08-14 09:02:15.000000000 +0000 @@ -52,9 +52,23 @@ static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) { struct snd_pcm_substream *substream; +#ifdef CONFIG_AUDIO_QGKI + unsigned long ret = 0, flags = 0; +#endif substream = timer->private_data; +#ifdef CONFIG_AUDIO_QGKI + spin_lock_irqsave(&substream->runtime_lock, flags); + if (substream->runtime) + ret = substream->runtime->timer_resolution; + else + ret = 0; + spin_unlock_irqrestore(&substream->runtime_lock, flags); + + return ret; +#else return substream->runtime ? substream->runtime->timer_resolution : 0; +#endif } static int snd_pcm_timer_start(struct snd_timer * timer)