lkml.org 
[lkml]   [2021]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ALSA: intel8x0: div by zero in snd_intel8x0_update()
On (21/05/16 17:30), Sergey Senozhatsky wrote:
> On (21/05/14 20:16), Sergey Senozhatsky wrote:
> > > --- a/sound/pci/intel8x0.c
> > > +++ b/sound/pci/intel8x0.c
> > > @@ -691,6 +691,9 @@ static inline void snd_intel8x0_update(struct intel8x0 *chip, struct ichdev *ich
> > > int status, civ, i, step;
> > > int ack = 0;
> > >
> > > + if (!ichdev->substream || ichdev->suspended)
> > > + return;
> > > +
> > > spin_lock_irqsave(&chip->reg_lock, flags);
> > > status = igetbyte(chip, port + ichdev->roff_sr);
> > > civ = igetbyte(chip, port + ICH_REG_OFF_CIV);
>
> This does the problem for me.

^^^ does fix

\
 
 \ /
  Last update: 2021-05-16 10:32    [W:0.114 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site