diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-26 12:34:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 06:39:16 -0500 |
commit | 38d945e05c20d29aa01f1bb3806281a4d2bd3a36 (patch) | |
tree | 56bad879c953aa33978c2ea1588a614d4b1c1b38 /drivers | |
parent | 45f4a8ea5222288e265932d6643108e3000454f4 (diff) |
[media] stv900: 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: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/stv0900_core.c | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c index df4665417c9a..3f7e62f1c823 100644 --- a/drivers/media/dvb/frontends/stv0900_core.c +++ b/drivers/media/dvb/frontends/stv0900_core.c | |||
@@ -973,31 +973,6 @@ static enum dvbfe_algo stv0900_frontend_algo(struct dvb_frontend *fe) | |||
973 | return DVBFE_ALGO_CUSTOM; | 973 | return DVBFE_ALGO_CUSTOM; |
974 | } | 974 | } |
975 | 975 | ||
976 | static int stb0900_set_property(struct dvb_frontend *fe, | ||
977 | struct dtv_property *tvp) | ||
978 | { | ||
979 | dprintk("%s(..)\n", __func__); | ||
980 | |||
981 | return 0; | ||
982 | } | ||
983 | |||
984 | static int stb0900_get_property(struct dvb_frontend *fe, | ||
985 | struct dtv_property *tvp) | ||
986 | { | ||
987 | dprintk("%s(..)\n", __func__); | ||
988 | switch (tvp->cmd) { | ||
989 | case DTV_ENUM_DELSYS: | ||
990 | tvp->u.buffer.data[0] = SYS_DSS; | ||
991 | tvp->u.buffer.data[1] = SYS_DVBS; | ||
992 | tvp->u.buffer.data[2] = SYS_DVBS2; | ||
993 | tvp->u.buffer.len = 3; | ||
994 | break; | ||
995 | default: | ||
996 | break; | ||
997 | } | ||
998 | return 0; | ||
999 | } | ||
1000 | |||
1001 | void stv0900_start_search(struct stv0900_internal *intp, | 976 | void stv0900_start_search(struct stv0900_internal *intp, |
1002 | enum fe_stv0900_demod_num demod) | 977 | enum fe_stv0900_demod_num demod) |
1003 | { | 978 | { |
@@ -1876,7 +1851,7 @@ static int stv0900_sleep(struct dvb_frontend *fe) | |||
1876 | } | 1851 | } |
1877 | 1852 | ||
1878 | static int stv0900_get_frontend(struct dvb_frontend *fe, | 1853 | static int stv0900_get_frontend(struct dvb_frontend *fe, |
1879 | struct dvb_frontend_parameters *p) | 1854 | struct dtv_frontend_properties *p) |
1880 | { | 1855 | { |
1881 | struct stv0900_state *state = fe->demodulator_priv; | 1856 | struct stv0900_state *state = fe->demodulator_priv; |
1882 | struct stv0900_internal *intp = state->internal; | 1857 | struct stv0900_internal *intp = state->internal; |
@@ -1884,12 +1859,12 @@ static int stv0900_get_frontend(struct dvb_frontend *fe, | |||
1884 | struct stv0900_signal_info p_result = intp->result[demod]; | 1859 | struct stv0900_signal_info p_result = intp->result[demod]; |
1885 | 1860 | ||
1886 | p->frequency = p_result.locked ? p_result.frequency : 0; | 1861 | p->frequency = p_result.locked ? p_result.frequency : 0; |
1887 | p->u.qpsk.symbol_rate = p_result.locked ? p_result.symbol_rate : 0; | 1862 | p->symbol_rate = p_result.locked ? p_result.symbol_rate : 0; |
1888 | return 0; | 1863 | return 0; |
1889 | } | 1864 | } |
1890 | 1865 | ||
1891 | static struct dvb_frontend_ops stv0900_ops = { | 1866 | static struct dvb_frontend_ops stv0900_ops = { |
1892 | 1867 | .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS }, | |
1893 | .info = { | 1868 | .info = { |
1894 | .name = "STV0900 frontend", | 1869 | .name = "STV0900 frontend", |
1895 | .type = FE_QPSK, | 1870 | .type = FE_QPSK, |
@@ -1908,7 +1883,7 @@ static struct dvb_frontend_ops stv0900_ops = { | |||
1908 | }, | 1883 | }, |
1909 | .release = stv0900_release, | 1884 | .release = stv0900_release, |
1910 | .init = stv0900_init, | 1885 | .init = stv0900_init, |
1911 | .get_frontend_legacy = stv0900_get_frontend, | 1886 | .get_frontend = stv0900_get_frontend, |
1912 | .sleep = stv0900_sleep, | 1887 | .sleep = stv0900_sleep, |
1913 | .get_frontend_algo = stv0900_frontend_algo, | 1888 | .get_frontend_algo = stv0900_frontend_algo, |
1914 | .i2c_gate_ctrl = stv0900_i2c_gate_ctrl, | 1889 | .i2c_gate_ctrl = stv0900_i2c_gate_ctrl, |
@@ -1916,8 +1891,6 @@ static struct dvb_frontend_ops stv0900_ops = { | |||
1916 | .diseqc_send_burst = stv0900_send_burst, | 1891 | .diseqc_send_burst = stv0900_send_burst, |
1917 | .diseqc_recv_slave_reply = stv0900_recv_slave_reply, | 1892 | .diseqc_recv_slave_reply = stv0900_recv_slave_reply, |
1918 | .set_tone = stv0900_set_tone, | 1893 | .set_tone = stv0900_set_tone, |
1919 | .set_property = stb0900_set_property, | ||
1920 | .get_property = stb0900_get_property, | ||
1921 | .search = stv0900_search, | 1894 | .search = stv0900_search, |
1922 | .track = stv0900_track, | 1895 | .track = stv0900_track, |
1923 | .read_status = stv0900_read_status, | 1896 | .read_status = stv0900_read_status, |