From 90b17ed8abc2910c1dd34be0c08b6bb8a93c3803 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Thu, 10 Apr 2014 12:00:33 +0100 Subject: [PATCH] Decouple now sents out sample res to audio core. SET_DSD_MODE removed and replaced with SET_STREAM_FORMAT_OUT --- module_usb_audio/usb_buffer/decouple.xc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/usb_buffer/decouple.xc b/module_usb_audio/usb_buffer/decouple.xc index 93590fc1..130f7205 100644 --- a/module_usb_audio/usb_buffer/decouple.xc +++ b/module_usb_audio/usb_buffer/decouple.xc @@ -73,9 +73,11 @@ unsigned g_aud_from_host_info; unsigned g_freqChange_flag = 0; unsigned g_freqChange_sampFreq; +/* Global vars for sharing stream format change between buffer and decouple (save a channel) */ unsigned g_formatChange_SubSlot; unsigned g_formatChange_DataFormat; unsigned g_formatChange_NumChans; +unsigned g_formatChange_SampRes; int speedRem = 0; @@ -878,8 +880,9 @@ void decouple(chanend c_mix_out, /* Wait for the audio code to request samples and respond with command */ inuint(c_mix_out); - outct(c_mix_out, SET_DSD_MODE); + outct(c_mix_out, SET_STREAM_FORMAT_OUT); outuint(c_mix_out, dsdMode); + outuint(c_mix_out, sampRes); /* Wait for handshake back */ chkct(c_mix_out, XS1_CT_END);