Why has noise when i use the asrc of fskl?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why has noise when i use the asrc of fskl?

338 Views
851931531
Contributor I

The following code:

 

unsigned int rate = params_rate(params);
unsigned int channel = params_channels(params);
struct imx_pcm_runtime_data *iprtd =
substream->runtime->private_data;
struct asrc_config config = {0};
int ret = 0;

if ((channel != 2) && (channel != 4) && (channel != 6))
return -EINVAL;

//iprtd->asrc_index = 1;
ret = iprtd->asrc_pcm_p2p_ops_ko->
asrc_p2p_req_pair(channel, &iprtd->asrc_index);
if (ret < 0) {
pr_err("Fail to request asrc pair\n");
return -EINVAL;
}
printk("request asrc pair: asrc_index = %d\n",iprtd->asrc_index);
//iprtd->asrc_index = 1;
config.input_word_width = get_asrc_input_width(params);
config.output_word_width = iprtd->p2p->p2p_width;
config.pair = iprtd->asrc_index;
//config.channel_num = channel;
config.channel_num = 1;
//config.input_sample_rate = rate;
config.input_sample_rate = 44100;
config.output_sample_rate = iprtd->p2p->p2p_rate;
config.inclk = INCLK_NONE;

0 Kudos
1 Reply

283 Views
igorpadykov
NXP Employee
NXP Employee

Hi

to narrow down issue please check with mxc_asrc_test included in

imx-test/..mxc_asrc_test

www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.4.tar.gz

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos