Lines Matching full:fec
198 {0x0e, 0x03}, /* Default non-inverted, FEC 3/4 (default) */
199 {0x0f, 0xfe}, /* FEC search mask (all supported codes) */
325 static int cx24123_set_fec(struct cx24123_state *state, enum fe_code_rate fec) in cx24123_set_fec() argument
329 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO)) in cx24123_set_fec()
330 fec = FEC_AUTO; in cx24123_set_fec()
333 if (fec == FEC_1_2) in cx24123_set_fec()
340 switch (fec) { in cx24123_set_fec()
342 dprintk("set FEC to 1/2\n"); in cx24123_set_fec()
347 dprintk("set FEC to 2/3\n"); in cx24123_set_fec()
352 dprintk("set FEC to 3/4\n"); in cx24123_set_fec()
357 dprintk("set FEC to 4/5\n"); in cx24123_set_fec()
362 dprintk("set FEC to 5/6\n"); in cx24123_set_fec()
367 dprintk("set FEC to 6/7\n"); in cx24123_set_fec()
372 dprintk("set FEC to 7/8\n"); in cx24123_set_fec()
377 dprintk("set FEC to auto\n"); in cx24123_set_fec()
387 static int cx24123_get_fec(struct cx24123_state *state, enum fe_code_rate *fec) in cx24123_get_fec() argument
398 *fec = FEC_1_2; in cx24123_get_fec()
401 *fec = FEC_2_3; in cx24123_get_fec()
404 *fec = FEC_3_4; in cx24123_get_fec()
407 *fec = FEC_4_5; in cx24123_get_fec()
410 *fec = FEC_5_6; in cx24123_get_fec()
413 *fec = FEC_6_7; in cx24123_get_fec()
416 *fec = FEC_7_8; in cx24123_get_fec()
420 *fec = FEC_NONE; in cx24123_get_fec()
947 err("%s: Failed to get fec status\n", __func__); in cx24123_get_frontend()