[media] bttv: Use btv->has_radio rather then the card info when registering the tuner
authorHans de Goede <hdegoede@redhat.com>
Sun, 20 May 2012 11:11:04 +0000 (08:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Jun 2012 19:04:49 +0000 (16:04 -0300)
commit5c164646e25a5a073875c6ca346efa0d5afb6934
tree6ac1d18a7bcb64bc6283963944f28662d94ac7e4
parent40e006aea811afb15e56164383b914cff7a078c7
[media] bttv: Use btv->has_radio rather then the card info when registering the tuner

bttv_init_card2() sets btv->has_audio to a *default* value from the tvcards
array and then may update it by reading a card specific eeprom or gpio
detection.

After bttv_init_card2(), bttv_init_tuner() gets called, and it should clearly
use the updated, dynamic has_radio value from btv->has_radio, rather then
the const value in the tvcards array.

This fixes the radio not working on my Hauppauge WinTV.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/bt8xx/bttv-cards.c