-
Notifications
You must be signed in to change notification settings - Fork 4
/
i-sabre-codec.h
42 lines (38 loc) · 1.47 KB
/
i-sabre-codec.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Driver for I-Sabre Q2M
*
* Author: Satoru Kawase
* Modified by: Xiao Qingyong
* Copyright 2018 Audiophonics
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*/
#ifndef _SND_SOC_ISABRECODEC
#define _SND_SOC_ISABRECODEC
/* ISABRECODEC Register Address */
#define ISABRECODEC_REG_01 0x01 /* Virtual Device ID : 0x01 = es9038q2m */
#define ISABRECODEC_REG_02 0x02 /* API revision : 0x01 = Revision 01 */
#define ISABRECODEC_REG_10 0x10 /* 0x01 = above 192kHz, 0x00 = otherwise */
#define ISABRECODEC_REG_20 0x20 /* 0 - 100 (decimal value, 0 = min., 100 = max.) */
#define ISABRECODEC_REG_21 0x21 /* 0x00 = Mute OFF, 0x01 = Mute ON */
#define ISABRECODEC_REG_22 0x22
/*
0x00 = brick wall,
0x01 = corrected minimum phase fast,
0x02 = minimum phase slow,
0x03 = minimum phase fast,
0x04 = linear phase slow,
0x05 = linear phase fast,
0x06 = apodizing fast,
*/
//#define ISABRECODEC_REG_23 0x23 /* reserved */
#define ISABRECODEC_REG_24 0x24 /* 0x00 = I2S, 0x01 = SPDIF */
#define ISABRECODEC_MAX_REG 0x24 /* Maximum Register Number */
#endif /* _SND_SOC_ISABRECODEC */