mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
media: dvb-frontends/stid135: Improved auto max LLR rate setup.
This commit is contained in:
@@ -11599,7 +11599,7 @@ fe_lla_error_t get_current_llr(fe_stid135_handle_t handle,enum fe_stid135_demod
|
|||||||
struct fe_stid135_internal_param *pParams;
|
struct fe_stid135_internal_param *pParams;
|
||||||
pParams = (struct fe_stid135_internal_param *) handle;
|
pParams = (struct fe_stid135_internal_param *) handle;
|
||||||
|
|
||||||
//printk("Symbol rate = %d\n", pParams->demod_results[demod_path-1].symbol_rate);
|
printk("Symbol rate = %d Ks\n", pParams->demod_results[demod_path-1].symbol_rate/1000);
|
||||||
*current_llr = pParams->demod_results[demod_path-1].symbol_rate;
|
*current_llr = pParams->demod_results[demod_path-1].symbol_rate;
|
||||||
switch(pParams->demod_results[demod_path-1].modulation)
|
switch(pParams->demod_results[demod_path-1].modulation)
|
||||||
{
|
{
|
||||||
@@ -11633,8 +11633,9 @@ fe_lla_error_t get_current_llr(fe_stid135_handle_t handle,enum fe_stid135_demod
|
|||||||
*current_llr *= 10;
|
*current_llr *= 10;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*current_llr *= 3;
|
*current_llr *= 3;
|
||||||
}
|
}
|
||||||
|
*current_llr += 1000000;
|
||||||
|
|
||||||
if(*current_llr != 0)
|
if(*current_llr != 0)
|
||||||
printk("Current LLR = %d MLLR/s\n", *current_llr/1000000);
|
printk("Current LLR = %d MLLR/s\n", *current_llr/1000000);
|
||||||
@@ -11643,9 +11644,9 @@ fe_lla_error_t get_current_llr(fe_stid135_handle_t handle,enum fe_stid135_demod
|
|||||||
|
|
||||||
if((*current_llr/1000)<90000)
|
if((*current_llr/1000)<90000)
|
||||||
fe_stid135_set_maxllr_rate(handle,demod_path,90);
|
fe_stid135_set_maxllr_rate(handle,demod_path,90);
|
||||||
else if(((*current_llr/1000)>=90000)&&((*current_llr/1000)<129000))
|
else if((*current_llr/1000)<129000)
|
||||||
fe_stid135_set_maxllr_rate(handle,demod_path,129);
|
fe_stid135_set_maxllr_rate(handle,demod_path,129);
|
||||||
else if(((*current_llr/1000)>=129000)&&((*current_llr/1000)<180000))
|
else if((*current_llr/1000)<180000)
|
||||||
fe_stid135_set_maxllr_rate(handle,demod_path,180);
|
fe_stid135_set_maxllr_rate(handle,demod_path,180);
|
||||||
else
|
else
|
||||||
fe_stid135_set_maxllr_rate(handle,demod_path,250);
|
fe_stid135_set_maxllr_rate(handle,demod_path,250);
|
||||||
|
Reference in New Issue
Block a user