diff options
author | Eddi De Pieri <eddi@depieri.net> | 2011-11-19 09:37:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-20 08:24:20 -0500 |
commit | 82e7dbbd4a16274b0a7038978734fc11bbf9f4b6 (patch) | |
tree | 34ff839a8bb00c75d319c9b0f0216fb7c766783b /drivers/media/common/tuners/xc5000.c | |
parent | 35621030c0bd5cb4f1a345cf2b4a97e290bc244a (diff) |
[media] em28xx: initial support for HAUPPAUGE HVR-930C again
With this patch I try again to add initial support for HVR930C.
Tested only DVB-T, since in Italy Analog service is stopped.
Actually "scan -a0 -f1", find only about 50 channel while 400 should
be available.
[mchehab@redhat.com: Tested with DVB-C and fixed a few whitespace issues]
Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/xc5000.c')
-rw-r--r-- | drivers/media/common/tuners/xc5000.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c index ecd1f95726e2..048f48944aa1 100644 --- a/drivers/media/common/tuners/xc5000.c +++ b/drivers/media/common/tuners/xc5000.c | |||
@@ -1004,6 +1004,8 @@ static int xc_load_fw_and_init_tuner(struct dvb_frontend *fe) | |||
1004 | struct xc5000_priv *priv = fe->tuner_priv; | 1004 | struct xc5000_priv *priv = fe->tuner_priv; |
1005 | int ret = 0; | 1005 | int ret = 0; |
1006 | 1006 | ||
1007 | mutex_lock(&xc5000_list_mutex); | ||
1008 | |||
1007 | if (xc5000_is_firmware_loaded(fe) != XC_RESULT_SUCCESS) { | 1009 | if (xc5000_is_firmware_loaded(fe) != XC_RESULT_SUCCESS) { |
1008 | ret = xc5000_fwupload(fe); | 1010 | ret = xc5000_fwupload(fe); |
1009 | if (ret != XC_RESULT_SUCCESS) | 1011 | if (ret != XC_RESULT_SUCCESS) |
@@ -1023,6 +1025,8 @@ static int xc_load_fw_and_init_tuner(struct dvb_frontend *fe) | |||
1023 | /* Default to "CABLE" mode */ | 1025 | /* Default to "CABLE" mode */ |
1024 | ret |= xc_write_reg(priv, XREG_SIGNALSOURCE, XC_RF_MODE_CABLE); | 1026 | ret |= xc_write_reg(priv, XREG_SIGNALSOURCE, XC_RF_MODE_CABLE); |
1025 | 1027 | ||
1028 | mutex_unlock(&xc5000_list_mutex); | ||
1029 | |||
1026 | return ret; | 1030 | return ret; |
1027 | } | 1031 | } |
1028 | 1032 | ||