mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
V4L/DVB (4723): Bugfix: Select the correct cx8802_dev when enumerating by CX88_MPEG_type
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
6c5be74c86
commit
7343826370
1 changed files with 2 additions and 0 deletions
|
@ -572,6 +572,8 @@ struct cx8802_driver * cx8802_get_driver(struct cx8802_dev *dev, enum cx88_board
|
||||||
|
|
||||||
list_for_each(list,&cx8802_devlist) {
|
list_for_each(list,&cx8802_devlist) {
|
||||||
h = list_entry(list, struct cx8802_dev, devlist);
|
h = list_entry(list, struct cx8802_dev, devlist);
|
||||||
|
if (h != dev)
|
||||||
|
continue;
|
||||||
|
|
||||||
list_for_each(list2, &h->drvlist.devlist) {
|
list_for_each(list2, &h->drvlist.devlist) {
|
||||||
d = list_entry(list2, struct cx8802_driver, devlist);
|
d = list_entry(list2, struct cx8802_driver, devlist);
|
||||||
|
|
Loading…
Reference in a new issue