Added dsd_support.h

This commit is contained in:
Ross Owen
2013-10-24 11:19:17 +01:00
parent 84c267bac8
commit eb95a1532c
3 changed files with 17 additions and 3 deletions

View File

@@ -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? */

View File

@@ -27,7 +27,7 @@
#define SET_CHAN_COUNT_OUT 6
#define SET_DSD_MODE 7
#include "dsd.h"
#include "dsd_support.h"

View 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