Re: SAA7146 glitch on cold boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 04 July 2006 19:21, Oliver Endriss wrote:
> Andrew de Quincey wrote:
> > On Tuesday 04 July 2006 07:46, Oliver Endriss wrote:
> > > Andrew de Quincey wrote:
> > > > Also, I've noticed that the only card I can reliably reproduce this
> > > > on is an old l64781 based budget card.
> > > >
> > > > It does happen occasionally on my new tda10046 based budget-ci card,
> > > > but only very infrequently.
>
> Does the driver report different revisions of the saa7146 chip for
> both cards?

Yup. both are revision 1.

> > > I'm not very happy with this hack. I would rather fix the real cause of
> > > the problem than applying some magic. :-(
> > >
> > > Could you please try if enabling master reset during boot would fix the
> > > problem for you? See saa7146_core.c, line 353.
> >
> > Nope, this does not fix the problem. I even added a printk to be 100%
> > sure it was using the correct driver
> >
> > I did spend quite a long time going through the saa7146 documentation and
> > trying things before opting on this patch - I don't like it much either,
> > but it was the only thing that worked 100% reliably for me. I'm happy to
> > try stuff again to double check though...
>
> You might try the following:
> Copy the code of stop_ts_capture and start_ts_capture into your
> budget_fix_feed routine, replacing the calls to stop_ts_capture and
> start_ts_capture.
>
> Then disable lines of the copied code until you can identify the lines
> which are essential to fix the problem.
>
> That should give us a hint what is going on here.

Sure, I reduced it to:

saa7146_write(budget->dev, MC1, MASK_20);	// DMA3 off
saa7146_write(budget->dev, MC1, (MASK_04 | MASK_20));	/* DMA3 on */

> > BTW, one of  the things I checked was the various saa7146 error report
> > registers; nothing was ever reported when this problem occurs.
>
> Anything unusual in the interrupt status and interrupt enable registers?
> I know, debugging the saa7146 is a pain...

Nope - it all looked fine.

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux