mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
ASoC: tas571x: New driver for TI TAS571x power amplifiers
Introduce a new codec driver for the Texas Instruments TAS5711/TAS5717/TAS5719 power amplifier chips. These chips are typically used to take an I2S digital audio input and drive 10-20W into a pair of speakers. Signed-off-by: Kevin Cernekee <cernekee@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
ee5d4df729
commit
3fd6e7d9a1
@@ -104,6 +104,7 @@ config SND_SOC_ALL_CODECS
|
||||
select SND_SOC_STAC9766 if SND_SOC_AC97_BUS
|
||||
select SND_SOC_TAS2552 if I2C
|
||||
select SND_SOC_TAS5086 if I2C
|
||||
select SND_SOC_TAS571X if I2C
|
||||
select SND_SOC_TFA9879 if I2C
|
||||
select SND_SOC_TLV320AIC23_I2C if I2C
|
||||
select SND_SOC_TLV320AIC23_SPI if SPI_MASTER
|
||||
@@ -611,6 +612,10 @@ config SND_SOC_TAS5086
|
||||
tristate "Texas Instruments TAS5086 speaker amplifier"
|
||||
depends on I2C
|
||||
|
||||
config SND_SOC_TAS571X
|
||||
tristate "Texas Instruments TAS5711/TAS5717/TAS5719 power amplifiers"
|
||||
depends on I2C
|
||||
|
||||
config SND_SOC_TFA9879
|
||||
tristate "NXP Semiconductors TFA9879 amplifier"
|
||||
depends on I2C
|
||||
|
||||
@@ -106,6 +106,7 @@ snd-soc-sta350-objs := sta350.o
|
||||
snd-soc-sta529-objs := sta529.o
|
||||
snd-soc-stac9766-objs := stac9766.o
|
||||
snd-soc-tas5086-objs := tas5086.o
|
||||
snd-soc-tas571x-objs := tas571x.o
|
||||
snd-soc-tfa9879-objs := tfa9879.o
|
||||
snd-soc-tlv320aic23-objs := tlv320aic23.o
|
||||
snd-soc-tlv320aic23-i2c-objs := tlv320aic23-i2c.o
|
||||
@@ -288,6 +289,7 @@ obj-$(CONFIG_SND_SOC_STA529) += snd-soc-sta529.o
|
||||
obj-$(CONFIG_SND_SOC_STAC9766) += snd-soc-stac9766.o
|
||||
obj-$(CONFIG_SND_SOC_TAS2552) += snd-soc-tas2552.o
|
||||
obj-$(CONFIG_SND_SOC_TAS5086) += snd-soc-tas5086.o
|
||||
obj-$(CONFIG_SND_SOC_TAS571X) += snd-soc-tas571x.o
|
||||
obj-$(CONFIG_SND_SOC_TFA9879) += snd-soc-tfa9879.o
|
||||
obj-$(CONFIG_SND_SOC_TLV320AIC23) += snd-soc-tlv320aic23.o
|
||||
obj-$(CONFIG_SND_SOC_TLV320AIC23_I2C) += snd-soc-tlv320aic23-i2c.o
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* TAS571x amplifier audio driver
|
||||
*
|
||||
* Copyright (C) 2015 Google, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _TAS571X_H
|
||||
#define _TAS571X_H
|
||||
|
||||
/* device registers */
|
||||
#define TAS571X_SDI_REG 0x04
|
||||
#define TAS571X_SDI_FMT_MASK 0x0f
|
||||
|
||||
#define TAS571X_SYS_CTRL_2_REG 0x05
|
||||
#define TAS571X_SYS_CTRL_2_SDN_MASK 0x40
|
||||
|
||||
#define TAS571X_SOFT_MUTE_REG 0x06
|
||||
#define TAS571X_SOFT_MUTE_CH1_SHIFT 0
|
||||
#define TAS571X_SOFT_MUTE_CH2_SHIFT 1
|
||||
#define TAS571X_SOFT_MUTE_CH3_SHIFT 2
|
||||
|
||||
#define TAS571X_MVOL_REG 0x07
|
||||
#define TAS571X_CH1_VOL_REG 0x08
|
||||
#define TAS571X_CH2_VOL_REG 0x09
|
||||
|
||||
#define TAS571X_OSC_TRIM_REG 0x1b
|
||||
|
||||
#endif /* _TAS571X_H */
|
||||
Reference in New Issue
Block a user