volume: fix get_processing_function for IPC4

Since volume component uses the module interface, vol_data should be
accessed module_get_private_data() instead of comp_get_drvdata().

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2022-07-06 18:12:21 -07:00 committed by Liam Girdwood
parent 68345fb168
commit 419ee3e9ec
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ static inline vol_scale_func vol_get_processing_function(struct comp_dev *dev,
static inline vol_scale_func vol_get_processing_function(struct comp_dev *dev,
struct comp_buffer __sparse_cache *sinkb)
{
struct vol_data *cd = comp_get_drvdata(dev);
struct processing_module *mod = comp_get_drvdata(dev);
struct vol_data *cd = module_get_private_data(mod);
switch (cd->base.audio_fmt.depth) {
case IPC4_DEPTH_16BIT: