Skip to content

Commit

Permalink
audio: asrc: prevent compilation error when CONFIG_ZEPHYR_NATIVE_DRIV…
Browse files Browse the repository at this point in the history
…ERS 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>
  • Loading branch information
ranj063 authored and kv2019i committed Nov 22, 2023
1 parent a8b027f commit a8b2b86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/audio/asrc/asrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a8b2b86

Please sign in to comment.