summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-mpeg.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2006-10-05 20:28:24 -0400
committerSteven Toth <stoth@hauppauge.com>2006-10-05 20:28:24 -0400
commit76b45eba0f18fc3bbab85301894fa5dc41985feb (patch)
tree0656385cd070b0cd7ec3a4ebae01a8fbb981b337 /linux/drivers/media/video/cx88/cx88-mpeg.c
parent9f41faf13997e37c5dd0ea09e234527add3e431e (diff)
downloadmediapointer-dvb-s2-76b45eba0f18fc3bbab85301894fa5dc41985feb.tar.gz
mediapointer-dvb-s2-76b45eba0f18fc3bbab85301894fa5dc41985feb.tar.bz2
Bugfix: Select the correct cx8802_dev when enumerating by CX88_MPEG_type
From: Steven Toth <stoth@hauppauge.com> A bug in cx8802_get_driver() meant that in multiboard environments, when testing frontends on the non primary board, the incorrect device was returned resulting in "Unsupported value in .mpeg.." messages. Depending on the electrical design of the hardware (serial, parallel, rising/falling edge detect), transport would still be delivered and the problem went unnoticed. This patch ensures the correct instance of cx8802_dev is returned. Signed-off-by: Steven Toth <stoth@hauppauge.com>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-mpeg.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-mpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-mpeg.c b/linux/drivers/media/video/cx88/cx88-mpeg.c
index e36a9dccf..f2afc1cdc 100644
--- a/linux/drivers/media/video/cx88/cx88-mpeg.c
+++ b/linux/drivers/media/video/cx88/cx88-mpeg.c
@@ -613,6 +613,8 @@ struct cx8802_driver * cx8802_get_driver(struct cx8802_dev *dev, enum cx88_board
list_for_each(list,&cx8802_devlist) {
h = list_entry(list, struct cx8802_dev, devlist);
+ if (h != dev)
+ continue;
list_for_each(list2, &h->drvlist.devlist) {
d = list_entry(list2, struct cx8802_driver, devlist);