Commit 5c6cb4e2 authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

V4L/DVB (11195): pvrusb2: Issue required core init broadcast to all sub-devices

The v4l2-subdev infrastructure requires that an initialization call
must be issued to all attached sub-devices before normal operation can
start.  This change satisfies that requirement.
Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 27764726
...@@ -2208,6 +2208,8 @@ static void pvr2_hdw_setup_low(struct pvr2_hdw *hdw) ...@@ -2208,6 +2208,8 @@ static void pvr2_hdw_setup_low(struct pvr2_hdw *hdw)
pvr2_hdw_load_modules(hdw); pvr2_hdw_load_modules(hdw);
if (!pvr2_hdw_dev_ok(hdw)) return; if (!pvr2_hdw_dev_ok(hdw)) return;
v4l2_device_call_all(&hdw->v4l2_dev, 0, core, init, 0);
for (idx = 0; idx < CTRLDEF_COUNT; idx++) { for (idx = 0; idx < CTRLDEF_COUNT; idx++) {
cptr = hdw->controls + idx; cptr = hdw->controls + idx;
if (cptr->info->skip_init) continue; if (cptr->info->skip_init) continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment