udpate pids

This commit is contained in:
Steven Dan
2026-05-15 12:10:18 +08:00
parent 917def34d9
commit 2172775553
5 changed files with 121 additions and 63 deletions

View File

@@ -182,7 +182,7 @@ set(APP_COMPILER_FLAGS_fps_uac2 ${SW_USB_AUDIO_FLAGS} -DXUA_SPD
-DHID_CONTROLS=1
-DDNR_50MS=1
-ldnr_50ms
#-DDEBUG_MEMORY_LOG_ENABLED=1
-DDEBUG_MEMORY_LOG_ENABLED=1
-DNO_LOG_TIMESTAPS=0
-DI2S_CHANS_ADC=2)
@@ -220,7 +220,7 @@ set(APP_COMPILER_FLAGS_br_uac2 ${SW_USB_A
-DEQ_EN=1
-DDNR_50MS=1
-ldnr_50ms
#-DDEBUG_MEMORY_LOG_ENABLED=1
-DDEBUG_MEMORY_LOG_ENABLED=1
-DNO_LOG_TIMESTAPS=0
-DI2S_CHANS_ADC=2)

View File

@@ -117,17 +117,14 @@
#define MCLK_48 (1024*48000) /* 48, 96 etc */
#endif
/* Maximum frequency device runs at */
#ifndef MAX_FREQ
#define MAX_FREQ (768000)
#endif
/* Minumum sample frequency device runs at */
#ifndef MIN_FREQ
#define MIN_FREQ (44100)
#define MIN_FREQ (48000) //(44100)
#endif
#ifndef DEFAULT_FREQ
#define DEFAULT_FREQ (48000)
/* Maximum sample frequency device runs at */
#ifndef MAX_FREQ
#define MAX_FREQ (48000)
#endif
/*** Defines relating to feature placement regarding tiles ***/
@@ -142,16 +139,39 @@
/*** Defines relating to USB descriptor strings and ID's ***/
#define VENDOR_ID (0x152A) /* XMOS VID */
#ifndef PID_AUDIO_2
#if XMOS_FPS_EN==1
#define PID_AUDIO_2 (0x889E)
#else
#define PID_AUDIO_2 (0x889C)
#if defined(FPS_UAC2)
#define PID_AUDIO_2 (0x899E)
#endif
#if defined(BYPASS_UAC2)
#define PID_AUDIO_2 (0x899C)
#endif
#if defined(BR_UAC2)
#define PID_AUDIO_2 (0x899A)
#endif
#if defined(V71_UAC2)
#define PID_AUDIO_2 (0x899F)
#endif
#if defined(FPS_UAC1)
#define PID_AUDIO_1 (0x889A)
#endif
#if defined(V71_UAC1)
#define PID_AUDIO_1 (0x889B)
#endif
#ifndef PID_AUDIO_2
#define PID_AUDIO_2 (0x889C)
#endif
#ifndef PID_AUDIO_1
#define PID_AUDIO_1 (0x889D)
#endif
#define PRODUCT_STR_A2 "Fosi Audio C1"
#define PRODUCT_STR_A1 "Fosi Audio C1"

View File

@@ -117,17 +117,14 @@
#define MCLK_48 (1024*48000) /* 48, 96 etc */
#endif
/* Maximum frequency device runs at */
#ifndef MAX_FREQ
#define MAX_FREQ (768000)
#endif
/* Minumum sample frequency device runs at */
#ifndef MIN_FREQ
#define MIN_FREQ (44100)
#define MIN_FREQ (48000) //(44100)
#endif
#ifndef DEFAULT_FREQ
#define DEFAULT_FREQ (48000)
/* Maximum sample frequency device runs at */
#ifndef MAX_FREQ
#define MAX_FREQ (48000)
#endif
/*** Defines relating to feature placement regarding tiles ***/
@@ -142,16 +139,39 @@
/*** Defines relating to USB descriptor strings and ID's ***/
#define VENDOR_ID (0x152A) /* XMOS VID */
#ifndef PID_AUDIO_2
#if XMOS_FPS_EN==1
#define PID_AUDIO_2 (0x889E)
#else
#define PID_AUDIO_2 (0x889C)
#if defined(FPS_UAC2)
#define PID_AUDIO_2 (0x899E)
#endif
#if defined(BYPASS_UAC2)
#define PID_AUDIO_2 (0x899C)
#endif
#if defined(BR_UAC2)
#define PID_AUDIO_2 (0x899A)
#endif
#if defined(V71_UAC2)
#define PID_AUDIO_2 (0x899F)
#endif
#if defined(FPS_UAC1)
#define PID_AUDIO_1 (0x889A)
#endif
#if defined(V71_UAC1)
#define PID_AUDIO_1 (0x889B)
#endif
#ifndef PID_AUDIO_2
#define PID_AUDIO_2 (0x889C)
#endif
#ifndef PID_AUDIO_1
#define PID_AUDIO_1 (0x889D)
#endif
#define PRODUCT_STR_A2 "Fosi Audio C1"
#define PRODUCT_STR_A1 "Fosi Audio C1"

View File

@@ -53,6 +53,7 @@ set(APP_COMPILER_FLAGS_v71_uac2 ${SW_USB_AUDIO_FLAGS} -DI2S_CHANS_DAC=2
-ldnr_50ms
-llib_ex3d_all
-DEQ_EN=0
-DV71_UAC2=1
#-DDNR_ENABLE=1
-DSTREAM_FORMAT_OUTPUT_1_RESOLUTION_BITS=16
-DSTREAM_FORMAT_INPUT_1_RESOLUTION_BITS=16
@@ -85,6 +86,7 @@ set(APP_COMPILER_FLAGS_v71_uac1 ${SW_USB_AUDIO_FLAGS} -DI2S_CHANS_DAC=2
-ldnr_50ms
-llib_ex3d_all
-DEQ_EN=0
-DV71_UAC1=1
#-DDNR_ENABLE=1
-DSTREAM_FORMAT_OUTPUT_1_RESOLUTION_BITS=32
-DSTREAM_FORMAT_INPUT_1_RESOLUTION_BITS=32

View File

@@ -135,44 +135,46 @@
#define MIDI_TILE (1)
/*** Defines relating to USB descriptor strings and ID's ***/
/* SY102 PID assignment (per product spec mode.png):
* F1 Music UAC2 Windows PID 0x2000
* F3/F4 FPS UAC2 Windows PID 0x2001 (F2/F3/F4 share, mode key distinguishes)
* F5 Music UAC1 Non-Windows PID 0x2002
* F6/F7 FPS UAC1 Non-Windows PID 0x2003 (F6/F7 share, mode key distinguishes)
* VID 0x20B1 across all modes
*/
#define VENDOR_ID (0x20B1)
#define VENDOR_ID (0x152A) /* XMOS VID */
#ifndef PID_AUDIO_2
#if defined(F1_MUSIC_UAC2)
#define PID_AUDIO_2 (0x2000) /* F1: Music, UAC2, Windows */
#elif defined(F3_F4_FPS_UAC2)
#define PID_AUDIO_2 (0x2001) /* F3/F4: FPS/AI7.1, UAC2, Windows */
#else
#define PID_AUDIO_2 (0x2000)
#endif
#endif
#if defined(FPS_UAC2)
#define PID_AUDIO_2 (0x899E)
#endif
#ifndef PID_AUDIO_1
#if defined(F5_MUSIC_UAC1)
#define PID_AUDIO_1 (0x2002) /* F5: Music, UAC1, Non-Windows */
#elif defined(F6_F7_FPS_UAC1)
#define PID_AUDIO_1 (0x2003) /* F6/F7: FPS/AI7.1, UAC1, Non-Windows */
#else
#define PID_AUDIO_1 (0x2002)
#endif
#endif
#if defined(BYPASS_UAC2)
#define PID_AUDIO_2 (0x899C)
#endif
#if defined(F1_MUSIC_UAC2) || defined(F5_MUSIC_UAC1)
#define PRODUCT_STR_A2 "SY102 Music"
#define PRODUCT_STR_A1 "SY102 Music"
#elif defined(F3_F4_FPS_UAC2) || defined(F6_F7_FPS_UAC1)
#define PRODUCT_STR_A2 "SY102 AI Game"
#define PRODUCT_STR_A1 "SY102 AI Game"
#else
#define PRODUCT_STR_A2 "SY102"
#define PRODUCT_STR_A1 "SY102"
#if defined(BR_UAC2)
#define PID_AUDIO_2 (0x899A)
#endif
#if defined(V71_UAC2)
#define PID_AUDIO_2 (0x899F)
#endif
#if defined(FPS_UAC1)
#define PID_AUDIO_1 (0x889A)
#endif
#if defined(V71_UAC1)
#define PID_AUDIO_1 (0x889B)
#endif
#ifndef PID_AUDIO_2
#define PID_AUDIO_2 (0x889C)
#endif
#ifndef PID_AUDIO_1
#define PID_AUDIO_1 (0x889D)
#endif
#define PRODUCT_STR_A2 "Fosi Audio C1"
#define PRODUCT_STR_A1 "Fosi Audio C1"
#ifndef AUDIO_CLASS_FALLBACK
#define AUDIO_CLASS_FALLBACK (1)
#endif
/* Board power source - Default is bus-powered */
@@ -189,6 +191,20 @@
#define HID_CONTROLS (0)
#endif
#ifndef OUTPUT_VOLUME_CONTROL
#define OUTPUT_VOLUME_CONTROL (0)
#endif
#ifndef INPUT_VOLUME_CONTROL
#define INPUT_VOLUME_CONTROL (0)
#endif
#ifndef OUT_VOLUME_IN_MIXER
#define OUT_VOLUME_IN_MIXER (0)
#endif
#ifndef IN_VOLUME_IN_MIXER
#define IN_VOLUME_IN_MIXER (0)
#endif
#define EXCLUDE_USB_AUDIO_MAIN (1)
/*
* New spispec for QF60 board