From beff2feaf1abd057660cc7bcd7f343fc0934b257 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Sat, 11 Jan 2014 17:45:35 +0000 Subject: [PATCH] initial value for g_curSampFreqMultiplier now fixed (#15141). Causes issue if no SF rate change from host and the DEFAULT_FREQ is used. --- module_usb_audio/endpoint0/audiorequests.xc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_usb_audio/endpoint0/audiorequests.xc b/module_usb_audio/endpoint0/audiorequests.xc index 2d4cc817..1cd3fbf1 100644 --- a/module_usb_audio/endpoint0/audiorequests.xc +++ b/module_usb_audio/endpoint0/audiorequests.xc @@ -51,7 +51,7 @@ extern unsigned char mixSel[MIX_INPUTS]; /* Global var for current frequency, set to default freq */ unsigned int g_curSamFreq = DEFAULT_FREQ; unsigned int g_curSamFreq48000Family = DEFAULT_FREQ % 48000 == 0; -unsigned int g_curSamFreqMultiplier = DEFAULT_FREQ / 48000; +unsigned int g_curSamFreqMultiplier = DEFAULT_FREQ / (DEFAULT_MCLK_FREQ / 512); /* Store an int into a char array: Note this allows non-word aligned access unlike reinerpret cast */ static void storeInt(unsigned char buffer[], int index, int val)