driver core: bus: use to_subsys_private and to_device_private_bus
[linux/fpc-iii.git] / sound / soc / codecs / tas571x.h
blob0aee471232cdffe490ff5a32cee09f15d9756b2d
1 /*
2 * TAS571x amplifier audio driver
4 * Copyright (C) 2015 Google, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
12 #ifndef _TAS571X_H
13 #define _TAS571X_H
15 /* device registers */
16 #define TAS571X_SDI_REG 0x04
17 #define TAS571X_SDI_FMT_MASK 0x0f
19 #define TAS571X_SYS_CTRL_2_REG 0x05
20 #define TAS571X_SYS_CTRL_2_SDN_MASK 0x40
22 #define TAS571X_SOFT_MUTE_REG 0x06
23 #define TAS571X_SOFT_MUTE_CH1_SHIFT 0
24 #define TAS571X_SOFT_MUTE_CH2_SHIFT 1
25 #define TAS571X_SOFT_MUTE_CH3_SHIFT 2
27 #define TAS571X_MVOL_REG 0x07
28 #define TAS571X_CH1_VOL_REG 0x08
29 #define TAS571X_CH2_VOL_REG 0x09
31 #define TAS571X_OSC_TRIM_REG 0x1b
33 #endif /* _TAS571X_H */