]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
[media] au0828: improve firmware loading & locking
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 11 Mar 2013 19:22:13 +0000 (16:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Mar 2013 18:10:37 +0000 (15:10 -0300)
commitea86968fb91471493ccac7d8f2a65bc65db6803b
treeb2943f4370336f337e7653f21503cd4540474904
parent56230d1e292acad1367ae15f7a7dce70ee30f483
[media] au0828: improve firmware loading & locking

- open/close/read and poll need to take the core lock as well.
- when the tuner goes to sleep we should set std_set_in_tuner_core
  to 0 since the tuner loses the firmware at that time.
- initialize the tuner if std_set_in_tuner_core == 0 whenever:
  1) g/s_tuner, s_std or s_frequency is called
  2) read or poll is called
  3) streamon is called

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/au0828/au0828-video.c