From 5914c4f4f750f1e2be31baeb99e4a66ad90f0209 Mon Sep 17 00:00:00 2001 From: Rohit Consul Date: Thu, 27 Aug 2015 16:16:04 -0700 Subject: [PATCH] v_vcresampler: API updated to align with vprocss Updated API name to load external coefficients to align with vprocss update. Signed-off-by: Rohit Consul Acked-by: Andrei-Liviu Simion --- .../drivers/v_vcresampler/src/xv_vcresampler_l2.c | 8 ++++++-- .../drivers/v_vcresampler/src/xv_vcresampler_l2.h | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.c b/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.c index 191fa33d..85170ca5 100644 --- a/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.c +++ b/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.c @@ -153,10 +153,14 @@ void XV_VCrsmplLoadDefaultCoeff(XV_vcresampler *InstancePtr, return; } - XV_VCrsmplrLoadUsrCoeff(InstancePtr, + /* Use external filter load API */ + XV_VCrsmplrLoadExtCoeff(InstancePtr, pVcrsmplL2Data, numTaps, coeff); + + /* Disable use of external coefficients */ + pVcrsmplL2Data->UseExtCoeff = FALSE; } /*****************************************************************************/ @@ -172,7 +176,7 @@ void XV_VCrsmplLoadDefaultCoeff(XV_vcresampler *InstancePtr, * @return None * ******************************************************************************/ -void XV_VCrsmplrLoadUsrCoeff(XV_vcresampler *InstancePtr, +void XV_VCrsmplrLoadExtCoeff(XV_vcresampler *InstancePtr, XV_vcresampler_l2 *pVcrsmplL2Data, u16 num_taps, const short *Coeff) diff --git a/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.h b/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.h index f508cc35..07f929ed 100644 --- a/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.h +++ b/XilinxProcessorIPLib/drivers/v_vcresampler/src/xv_vcresampler_l2.h @@ -164,7 +164,7 @@ void XV_VCrsmplStart(XV_vcresampler *InstancePtr); void XV_VCrsmplStop(XV_vcresampler *InstancePtr); void XV_VCrsmplLoadDefaultCoeff(XV_vcresampler *InstancePtr, XV_vcresampler_l2 *pVcrsmplL2Data); -void XV_VCrsmplrLoadUsrCoeff(XV_vcresampler *InstancePtr, +void XV_VCrsmplrLoadExtCoeff(XV_vcresampler *InstancePtr, XV_vcresampler_l2 *pVcrsmplL2Data, u16 num_taps, const short *Coeff);