audio: asrc: prevent compilation error when CONFIG_ZEPHYR_NATIVE_DRIVERS is not set

Use 2 separate signatures when CONFIG_ZEPHYR_NATIVE_DRIVERS is set vs
not set.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2023-11-16 19:53:40 -08:00 committed by Kai Vehmanen
parent a8b027f7d4
commit a8b2b86c9e
1 changed files with 5 additions and 0 deletions

View File

@ -651,8 +651,13 @@ static int asrc_dai_stop_timestamp(struct comp_data *cd)
return -EINVAL;
}
#if CONFIG_ZEPHYR_NATIVE_DRIVERS
static int asrc_dai_get_timestamp(struct comp_data *cd,
struct dai_ts_data *tsd)
#else
static int asrc_dai_get_timestamp(struct comp_data *cd,
struct timestamp_data *tsd)
#endif
{
if (cd->dai_dev) {
struct processing_module *mod = comp_get_drvdata(cd->dai_dev);