[haiku-commits] Re: r34664 - haiku/trunk/src/add-ons/kernel/drivers/audio/hda

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 16 Dec 2009 21:41:32 +0100

On 2009-12-16 at 19:03:30 [+0100], Fredrik Holmqvist 
<fredrik.holmqvist@xxxxxxxxx> wrote:
> 2009/12/15 Jérôme Duval <korli@xxxxxxxxxxxxxxxx>:
> > Maybe you can add such a line to the end of your
> > stream_handle_interrupt() function and see what happens.
> > dprintf("hda: stream (id:%ld) position: %ld, lpib: %ld, cycle: %ld,
> > framesProcessed: %ld\n",
> >        stream->id, dmaPosition, stream->Read32(HDAC_STREAM_POSITION),
> > stream->buffer_cycle, framesProcessed);
> 
> No sound with r34681.  It repeats this:
> KERN: hda: stream (id:2) position: 4, lpib: 2688, cycle: 0,
> framesProcessed: 10240
> KERN: hda: stream (id:1) position: 0, lpib: 80896, cycle: 0,
> framesProcessed: 10240
> KERN: hda: stream (id:2) position: 3, lpib: 84608, cycle: 0,
> framesProcessed: 10240
> KERN: hda: stream (id:1) position: 0, lpib: 162816, cycle: 0,
> framesProcessed: 10240
> KERN: hda: stream (id:2) position: 3, lpib: 2688, cycle: 0,
> framesProcessed: 10240
> 
> (position varies a bit between 0-5)

I've added a work-around for this situation in r34684. Please give it a 
whirl.

CU, Ingo

Other related posts: