lkml.org 
[lkml]   [2017]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 23/25] ALSA/dummy: Replace tasklet with softirq hrtimer
From
Date
Hi,

On Sep 2 2017 10:19, Takashi Sakamoto wrote:
> Well, in sound subsystem, there're a few drivers which uses hrtimer:
> - snd-pcsp
> - snd-sh-dac-audio
> - snd-soc-imx-pcm-fiq
>
> As a quick glance, 'snd-sh-dac-audio' includes the same bug, too.
> Additionally, 'snd-soc-imx-pcm-fiq' maintains hrtimer with loose manner
> in a point of state of PCM substream and it shall gain the same bug if
> improved. Later, I posted some patches for them.

After reading code thoroughly, I conclude that no need to fix these two
drivers. They're programmed with own protections. The former
(snd-sh-dac-audio) has 'struct snd_sh_dac.empty' and the latter
(snd-soc-imx-pcm-fiq) has 'struct imx_pcm_runtime_data.playing' and
'.capturing', to avoid cancellation of hrtimer on hrtimer callback.

These ways are not necessarily efficient but actually have no trouble.
I leave them as is.


Regards

Takashi Sakamoto

\
 
 \ /
  Last update: 2017-09-04 14:46    [W:0.113 / U:1.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site