diff options
author | Mike Isely <isely@pobox.com> | 2009-03-06 21:05:00 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2009-03-06 21:05:00 -0600 |
commit | 9fee9b0bdc0b84b220c18ef30cfc7b107966424b (patch) | |
tree | 9424f74aad7cecc53037e5a608a5f9607ec2c3e0 /linux/drivers | |
parent | 86556cd81c5ddb910d85f1635729255eaa4da504 (diff) | |
download | mediapointer-dvb-s2-9fee9b0bdc0b84b220c18ef30cfc7b107966424b.tar.gz mediapointer-dvb-s2-9fee9b0bdc0b84b220c18ef30cfc7b107966424b.tar.bz2 |
pvrusb2: Tie in debug register access to sub-devices
From: Mike Isely <isely@pobox.com>
Implement tie-in for v4l2 debug register access such that the
appropriate attached sub-device is handled.
Priority: normal
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 1f9e62111..975d56825 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -5064,7 +5064,10 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw, req.match = *match; req.reg = reg_id; if (setFl) req.val = *val_ptr; - mutex_lock(&hdw->i2c_list_lock); do { + /* It would be nice to know if a sub-device answered the request */ + v4l2_device_call_all(&hdw->v4l2_dev, 0, core, g_register, &req); + if (!setFl) *val_ptr = req.val; + if (!okFl) mutex_lock(&hdw->i2c_list_lock); do { list_for_each_entry(cp, &hdw->i2c_clients, list) { if (!v4l2_chip_match_i2c_client( cp->client, |