forked from PAWPAW-Mirror/lib_xua
Added dsd_support.h
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#ifndef _CODEC_H_
|
||||
#define _CODEC_H_
|
||||
|
||||
#include "dsd.h"
|
||||
|
||||
/* These functions must be implemented for the CODEC/ADC/DAC arrangement of a specific design */
|
||||
|
||||
/* TODO Are the channel args required? */
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#define SET_CHAN_COUNT_OUT 6
|
||||
#define SET_DSD_MODE 7
|
||||
|
||||
#include "dsd.h"
|
||||
#include "dsd_support.h"
|
||||
|
||||
|
||||
|
||||
|
||||
16
module_usb_audio/dsd_support.h
Normal file
16
module_usb_audio/dsd_support.h
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#ifndef _DSD_H_
|
||||
#define _DSD_H_
|
||||
|
||||
#define DSD_MODE_OFF 0
|
||||
#define DSD_MODE_DOP 1
|
||||
#define DSD_MODE_NATIVE 2
|
||||
|
||||
/* DoP defines */
|
||||
#define DSD_MARKER_1 0xFA
|
||||
#define DSD_MARKER_2 0x05
|
||||
#define DSD_MARKER_XOR 0xFF
|
||||
#define DSD_EN_THRESH 32 /* Number of consecutive DSD markers before switching to DSD mode */
|
||||
#define DSD_MASK(x) ((x >> 24) & 0xff)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user