testbench: Fix build error

There was missing argument in file_get_hw_params, what breaks compilation.

Fixes: 2b84838 ("Testbench: Instantiate file component as host")
Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-02-27 08:47:39 +01:00 committed by Daniel Baluta
parent 109450e6fd
commit 51a3234458
1 changed files with 2 additions and 1 deletions

View File

@ -743,11 +743,12 @@ static int file_reset(struct comp_dev *dev)
}
static int file_get_hw_params(struct comp_dev *dev,
struct sof_ipc_stream_params *params)
struct sof_ipc_stream_params *params, int dir)
{
struct file_comp_data *cd = comp_get_drvdata(dev);
comp_info(dev, "file_hw_params()");
params->direction = dir;
params->rate = cd->rate;
params->channels = cd->channels;
params->buffer_fmt = 0;