--- zzzz-none-000/linux-5.4.213/sound/core/pcm_timer.c 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/sound/core/pcm_timer.c 2024-05-29 11:20:02.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)