9 May
2016
9 May
'16
6:38 a.m.
On Sun, May 08, 2016 at 11:45:50AM +0200, Takashi Iwai wrote:
+/* wait for cmd dmas till they are stopped */ +static void hdac_wait_for_cmd_dmas(struct hdac_bus *bus) +{
- unsigned long timeout;
- timeout = jiffies + msecs_to_jiffies(100);
- while ((snd_hdac_chip_readb(bus, RIRBCTL) & AZX_RBCTL_DMA_EN)
&& time_before(jiffies, timeout))
udelay(10);
- timeout = jiffies + msecs_to_jiffies(100);
- while ((snd_hdac_chip_readb(bus, CORBCTL) & AZX_CORBCTL_RUN)
&& time_before(jiffies, timeout))
udelay(10);
This will end up with doubled timeout. But it doesn't matter so much in practice. So I applied the patch as is.
Thanks Takashi
--
~Vinod