forked from PAWPAW-Mirror/lib_xua
Tidy up clockcmds header
This commit is contained in:
33
module_usb_audio/commands.h
Normal file
33
module_usb_audio/commands.h
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
#include "devicedefines.h"
|
||||
|
||||
/* Clocking commands - c_clk_ctl */
|
||||
#define GET_SEL 0 /* Get value of clock selector */
|
||||
#define SET_SEL 1 /* Set value of clock selector */
|
||||
#define GET_FREQ 2 /* Get current freq */
|
||||
#define GET_VALID 3 /* Get current validity */
|
||||
|
||||
#define CLOCK_INTERNAL 1
|
||||
#define CLOCK_SPDIF 2
|
||||
#ifdef SPDIF_RX
|
||||
#define CLOCK_ADAT 3
|
||||
#else
|
||||
#define CLOCK_ADAT 2
|
||||
#endif
|
||||
|
||||
#define CLOCK_INTERNAL_INDEX (CLOCK_INTERNAL - 1)
|
||||
#define CLOCK_ADAT_INDEX (CLOCK_ADAT - 1)
|
||||
#define CLOCK_SPDIF_INDEX (CLOCK_SPDIF - 1)
|
||||
|
||||
#define SET_SMUX 7
|
||||
|
||||
/* c_audioControl */
|
||||
#define SET_SAMPLE_FREQ 4
|
||||
#define SET_CHAN_COUNT_IN 5
|
||||
#define SET_CHAN_COUNT_OUT 6
|
||||
#define SET_DSD_MODE 7
|
||||
|
||||
#include "dsd.h"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user