au0828: Fix DVB resume when streaming 18/25818/1
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 01:28:58 +0000 (22:28 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 10 Aug 2014 02:32:58 +0000 (23:32 -0300)
commit9d2ab405da668b5eca6267211ed18d5df87858ff
treec4d694c06f7d93bd5bc5bdda6631c84a3fb567c5
parent447698f6860746a279c8fd07344d67062f3533ef
au0828: Fix DVB resume when streaming

When DVB is streaming and suspend is called, it will call
au0828_stop_transport(), with will clean the streaming flag.

Due to that, stop_urb_transfer() will be called twice,
causing an oops.

So, we need another flag to be used at resume, telling it
to restart DVB.

While here, add a logic at stop_urb_transfer() to prevent
it of being called twice, and convert the usb_streaming
flag into boolean.

Change-Id: I69a1096d1fae3230675ed5f452d2afdde793548b
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/au0828/au0828-dvb.c
drivers/media/usb/au0828/au0828.h