From d5167b1221bb89c0241fa9f435a676d5a475e585 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 3 Oct 2020 15:57:38 -0400 Subject: coldfire: Allow building when 88KHz audio is disabled Change-Id: Ieeacf591ad4233428dca99c347043e61abae1d1f --- firmware/drivers/audio/uda1380.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'firmware/drivers/audio/uda1380.c') diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c index 156eb822b6..079175d966 100644 --- a/firmware/drivers/audio/uda1380.c +++ b/firmware/drivers/audio/uda1380.c @@ -227,11 +227,11 @@ void audiohw_set_frequency(int fsel) MIX_CTL_SEL_NS, WSPLL_25_50 | SYSCLK_256FS }, - [HW_FREQ_88] = + HW_HAVE_88_([HW_FREQ_88] = { MIX_CTL_SEL_NS, WSPLL_50_100 | SYSCLK_256FS - }, + },) }; const unsigned short *ent; @@ -243,6 +243,7 @@ void audiohw_set_frequency(int fsel) #ifdef USE_WSPLL /* Enable WSPLL if needed (for Iriver H100 and H300 series) */ +HW_HAVE_88_( if (fsel == HW_FREQ_88) { /* Only at this case we need use WSPLL on DAC part for Iriver H100 and H300 series, because Coldfire work @@ -251,6 +252,7 @@ void audiohw_set_frequency(int fsel) if (!wspll_enable) wspll_on(true); } else +) { /* At this case WSPLL clock and SYSCLK has same value and we don't use WSPLL to avoid WSPLL errors */ if (wspll_enable) wspll_on(false); -- cgit v1.2.3