]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: Fix DVB-C maxsize for em2884
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 28 Jul 2011 18:42:00 +0000 (15:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 28 Jul 2011 20:09:54 +0000 (17:09 -0300)
commit1b8d386f0c011af3085df71e460caf7b76fcecba
tree49c602a4b5224f0872903c02c4c30436ff4437e4
parentb84c2c34490f6f64b5fb94e7790e56a372a2627c
[media] em28xx: Fix DVB-C maxsize for em2884

The logic at em28xx_isoc_dvb_max_packetsize() sucks, at least for newer
the needed packet size. Yet, it is better than nothing.

Rewrite the code in order to change the default to 752 for em2884 and
newer chips and provide a better way to handle per-chipset specifics.

For em2874, the current default should be enough, as the only em2874
board is currently a 1-seg ISDB-T board, so, it needs only a limited
amount of bandwidth.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx-dvb.c