[media] gspca_pac7311: Set register page at start of init
authorHans de Goede <hdegoede@redhat.com>
Thu, 10 May 2012 15:10:56 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:45:00 +0000 (09:45 -0300)
commit42f85d0a9612b559dc3110cc0d468050ac22cf77
tree84b1e61691b016e4a5963cd0fe91c4ebaf597a9c
parent43f52bf2e0eded5908052fd403ca45c5cecc78c7
[media] gspca_pac7311: Set register page at start of init

Our init sequence was not setting the register page to point to bank 1
before setting what should be the control reg. This causes the camera to
sometimes have its LED on after init. First selecting register bank 1,
rather then assuming the current register bank is bank 1, fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/pac7311.c