Commit c1f814f4 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] dibx000: convert set_fontend to use DVBv5 parameters

Instead of using dvb_frontend_parameters struct, that were
designed for a subset of the supported standards, use the DVBv5
cache information.

Also, fill the supported delivery systems at dvb_frontend_ops
struct.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a73efc05
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -146,14 +146,8 @@ enum dibx000_adc_states { ...@@ -146,14 +146,8 @@ enum dibx000_adc_states {
DIBX000_VBG_DISABLE, DIBX000_VBG_DISABLE,
}; };
#define BANDWIDTH_TO_KHZ(v) ((v) == BANDWIDTH_8_MHZ ? 8000 : \ #define BANDWIDTH_TO_KHZ(v) ((v) / 1000)
(v) == BANDWIDTH_7_MHZ ? 7000 : \ #define BANDWIDTH_TO_HZ(v) ((v) * 1000)
(v) == BANDWIDTH_6_MHZ ? 6000 : 8000)
#define BANDWIDTH_TO_INDEX(v) ( \
(v) == 8000 ? BANDWIDTH_8_MHZ : \
(v) == 7000 ? BANDWIDTH_7_MHZ : \
(v) == 6000 ? BANDWIDTH_6_MHZ : BANDWIDTH_8_MHZ )
/* Chip output mode. */ /* Chip output mode. */
#define OUTMODE_HIGH_Z 0 #define OUTMODE_HIGH_Z 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment