[alsa-devel] [PATCH] ASoC: mediatek: Use current HW pointer for pointer callback
Takashi Iwai
tiwai at suse.de
Thu Dec 3 12:07:26 CET 2015
On Thu, 03 Dec 2015 12:01:58 +0100,
Mark Brown wrote:
>
> On Thu, Dec 03, 2015 at 10:41:38AM +0100, Takashi Iwai wrote:
>
> > While reading this patch, I wondered how regmap can be used safely in
> > an irq-disabled context. Mark, do we have any API for that?
>
> We can use user supplied locks or spin_lock_irqsave().
I meant how to guarantee to make regmap_read() working in an already
spin-locked context, typically in an irq handler? regmap_read()
involves with the regcache and it may invoke kmalloc().
Takashi
More information about the Alsa-devel
mailing list