public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* em28xx mode switching
@ 2009-10-12 22:12 Devin Heitmueller
  2009-10-12 22:31 ` Antti Palosaari
  2009-10-12 23:33 ` em28xx mode switching hermann pitton
  0 siblings, 2 replies; 9+ messages in thread
From: Devin Heitmueller @ 2009-10-12 22:12 UTC (permalink / raw)
  To: Linux Media Mailing List

I was debugging an issue on a user's hybrid board, when I realized
that we are switching the em28xx mode whenever we start and stop dvb
streaming.  We already have the ts_bus_ctrl callback implemented which
puts the device into digital mode and puts it back into suspend
whenever the frontend is opened/closed.

This call seems redundant, and in fact can cause problems if the
dvb_gpio definition strobes the reset pin, as it can put the driver
out of sync with the demodulator's state (in fact this is what I ran
into with the zl10353 - the reset pin got strobed when the streaming
was started but the demod driver's init() routine was not being run
because it already ran when the frontend was originally opened).

The only case I can think of where toggling the device mode when
starting/stopping dvb streaming might be useful is if we wanted to
support being able to do an analog tune while the dvb frontend was
still open but not streaming.  However, this seems like this could
expose all sorts of bugs, and I think the locking would have to be
significantly reworked if this were a design goal.

Thoughts anybody?

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-10-24 22:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 22:12 em28xx mode switching Devin Heitmueller
2009-10-12 22:31 ` Antti Palosaari
2009-10-12 23:04   ` Devin Heitmueller
2009-10-13  7:55     ` Alain Perrot
2009-10-13 18:27     ` xwang1976
2009-10-13 18:33       ` Devin Heitmueller
2009-10-13 18:52         ` xwang1976
2009-10-24 22:01         ` Dikom DK-300 xwang1976
2009-10-12 23:33 ` em28xx mode switching hermann pitton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox