-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'asoc-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/broonie/sound into for-next ASoC: Updates for v3.7 Lots and lots of driver specific cleanups and enhancements but the only substantial framework feature this time round is the compressed API binding: - Addition of ASoC bindings for the compressed API, used by the mid-x86 drivers. - Lots of cleanups and API refreshes for CODEC drivers and DaVinci. - Conversion of OMAP to dmaengine. - New machine driver for Wolfson Microelectronics Bells. - New CODEC driver for Wolfson Microelectronics WM0010.
- Loading branch information
Showing
726 changed files
with
10,130 additions
and
5,448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Texas Instruments TWL family (twl4030) audio module | ||
|
||
The audio module inside the TWL family consist of an audio codec and a vibra | ||
driver. | ||
|
||
Required properties: | ||
- compatible : must be "ti,twl4030-audio" | ||
|
||
Optional properties, nodes: | ||
|
||
Audio functionality: | ||
- codec { }: Need to be present if the audio functionality is used. Within this | ||
section the following options can be used: | ||
- ti,digimic_delay: Delay need after enabling the digimic to reduce artifacts | ||
from the start of the recorded sample (in ms) | ||
-ti,ramp_delay_value: HS ramp delay configuration to reduce pop noise | ||
-ti,hs_extmute: Use external mute for HS pop reduction | ||
-ti,hs_extmute_gpio: Use external GPIO to control the external mute | ||
-ti,offset_cncl_path: Offset cancellation path selection, refer to TRM for the | ||
valid values. | ||
|
||
Vibra functionality | ||
- ti,enable-vibra: Need to be set to <1> if the vibra functionality is used. if | ||
missing or it is 0, the vibra functionality is disabled. | ||
|
||
Example: | ||
&i2c1 { | ||
clock-frequency = <2600000>; | ||
|
||
twl: twl@48 { | ||
reg = <0x48>; | ||
interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | ||
interrupt-parent = <&intc>; | ||
|
||
twl_audio: audio { | ||
compatible = "ti,twl4030-audio"; | ||
|
||
ti,enable-vibra = <1>; | ||
|
||
codec { | ||
ti,ramp_delay_value = <3>; | ||
}; | ||
|
||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CS4270 audio CODEC | ||
|
||
The driver for this device currently only supports I2C. | ||
|
||
Required properties: | ||
|
||
- compatible : "cirrus,cs4270" | ||
|
||
- reg : the I2C address of the device for I2C | ||
|
||
Optional properties: | ||
|
||
- reset-gpio : a GPIO spec for the reset pin. If specified, it will be | ||
deasserted before communication to the codec starts. | ||
|
||
Example: | ||
|
||
codec: cs4270@48 { | ||
compatible = "cirrus,cs4270"; | ||
reg = <0x48>; | ||
}; |
45 changes: 45 additions & 0 deletions
45
Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Texas Instruments McASP controller | ||
|
||
Required properties: | ||
- compatible : | ||
"ti,dm646x-mcasp-audio" : for DM646x platforms | ||
"ti,da830-mcasp-audio" : for both DA830 & DA850 platforms | ||
"ti,omap2-mcasp-audio" : for OMAP2 platforms (TI81xx, AM33xx) | ||
|
||
- reg : Should contain McASP registers offset and length | ||
- interrupts : Interrupt number for McASP | ||
- op-mode : I2S/DIT ops mode. | ||
- tdm-slots : Slots for TDM operation. | ||
- num-serializer : Serializers used by McASP. | ||
- serial-dir : A list of serializer pin mode. The list number should be equal | ||
to "num-serializer" parameter. Each entry is a number indication | ||
serializer pin direction. (0 - INACTIVE, 1 - TX, 2 - RX) | ||
|
||
|
||
Optional properties: | ||
|
||
- ti,hwmods : Must be "mcasp<n>", n is controller instance starting 0 | ||
- tx-num-evt : FIFO levels. | ||
- rx-num-evt : FIFO levels. | ||
- sram-size-playback : size of sram to be allocated during playback | ||
- sram-size-capture : size of sram to be allocated during capture | ||
|
||
Example: | ||
|
||
mcasp0: mcasp0@1d00000 { | ||
compatible = "ti,da830-mcasp-audio"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0x100000 0x3000>; | ||
interrupts = <82 83>; | ||
op-mode = <0>; /* MCASP_IIS_MODE */ | ||
tdm-slots = <2>; | ||
num-serializer = <16>; | ||
serial-dir = < | ||
0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */ | ||
0 0 0 0 | ||
0 0 0 1 | ||
2 0 0 0 >; | ||
tx-num-evt = <1>; | ||
rx-num-evt = <1>; | ||
}; |
91 changes: 91 additions & 0 deletions
91
Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
* Texas Instruments OMAP4+ and twl6040 based audio setups | ||
|
||
Required properties: | ||
- compatible: "ti,abe-twl6040" | ||
- ti,model: Name of the sound card ( for example "SDP4430") | ||
- ti,mclk-freq: MCLK frequency for HPPLL operation | ||
- ti,mcpdm: phandle for the McPDM node | ||
- ti,twl6040: phandle for the twl6040 core node | ||
- ti,audio-routing: List of connections between audio components. | ||
Each entry is a pair of strings, the first being the connection's sink, | ||
the second being the connection's source. | ||
|
||
Optional properties: | ||
- ti,dmic: phandle for the OMAP dmic node if the machine have it connected | ||
- ti,jack_detection: Need to be set to <1> if the board capable to detect jack | ||
insertion, removal. | ||
|
||
Available audio endpoints for the audio-routing table: | ||
|
||
Board connectors: | ||
* Headset Stereophone | ||
* Earphone Spk | ||
* Ext Spk | ||
* Line Out | ||
* Vibrator | ||
* Headset Mic | ||
* Main Handset Mic | ||
* Sub Handset Mic | ||
* Line In | ||
* Digital Mic | ||
|
||
twl6040 pins: | ||
* HSOL | ||
* HSOR | ||
* EP | ||
* HFL | ||
* HFR | ||
* AUXL | ||
* AUXR | ||
* VIBRAL | ||
* VIBRAR | ||
* HSMIC | ||
* MAINMIC | ||
* SUBMIC | ||
* AFML | ||
* AFMR | ||
|
||
* Headset Mic Bias | ||
* Main Mic Bias | ||
* Digital Mic1 Bias | ||
* Digital Mic2 Bias | ||
|
||
Digital mic pins: | ||
* DMic | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "ti,abe-twl6040"; | ||
ti,model = "SDP4430"; | ||
|
||
ti,jack-detection = <1>; | ||
ti,mclk-freq = <38400000>; | ||
|
||
ti,mcpdm = <&mcpdm>; | ||
ti,dmic = <&dmic>; | ||
|
||
ti,twl6040 = <&twl6040>; | ||
|
||
/* Audio routing */ | ||
ti,audio-routing = | ||
"Headset Stereophone", "HSOL", | ||
"Headset Stereophone", "HSOR", | ||
"Earphone Spk", "EP", | ||
"Ext Spk", "HFL", | ||
"Ext Spk", "HFR", | ||
"Line Out", "AUXL", | ||
"Line Out", "AUXR", | ||
"Vibrator", "VIBRAL", | ||
"Vibrator", "VIBRAR", | ||
"HSMIC", "Headset Mic", | ||
"Headset Mic", "Headset Mic Bias", | ||
"MAINMIC", "Main Handset Mic", | ||
"Main Handset Mic", "Main Mic Bias", | ||
"SUBMIC", "Sub Handset Mic", | ||
"Sub Handset Mic", "Main Mic Bias", | ||
"AFML", "Line In", | ||
"AFMR", "Line In", | ||
"DMic", "Digital Mic", | ||
"Digital Mic", "Digital Mic1 Bias"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
* Texas Instruments OMAP2+ McBSP module | ||
|
||
Required properties: | ||
- compatible: "ti,omap2420-mcbsp" for McBSP on OMAP2420 | ||
"ti,omap2430-mcbsp" for McBSP on OMAP2430 | ||
"ti,omap3-mcbsp" for McBSP on OMAP3 | ||
"ti,omap4-mcbsp" for McBSP on OMAP4 and newer SoC | ||
- reg: Register location and size, for OMAP4+ as an array: | ||
<MPU access base address, size>, | ||
<L3 interconnect address, size>; | ||
- reg-names: Array of strings associated with the address space | ||
- interrupts: Interrupt numbers for the McBSP port, as an array in case the | ||
McBSP IP have more interrupt lines: | ||
<OCP compliant irq>, | ||
<TX irq>, | ||
<RX irq>; | ||
- interrupt-names: Array of strings associated with the interrupt numbers | ||
- interrupt-parent: The parent interrupt controller | ||
- ti,buffer-size: Size of the FIFO on the port (OMAP2430 and newer SoC) | ||
- ti,hwmods: Name of the hwmod associated to the McBSP port | ||
|
||
Example: | ||
|
||
mcbsp2: mcbsp@49022000 { | ||
compatible = "ti,omap3-mcbsp"; | ||
reg = <0x49022000 0xff>, | ||
<0x49028000 0xff>; | ||
reg-names = "mpu", "sidetone"; | ||
interrupts = <0 17 0x4>, /* OCP compliant interrupt */ | ||
<0 62 0x4>, /* TX interrupt */ | ||
<0 63 0x4>, /* RX interrupt */ | ||
<0 4 0x4>; /* Sidetone */ | ||
interrupt-names = "common", "tx", "rx", "sidetone"; | ||
interrupt-parent = <&intc>; | ||
ti,buffer-size = <1280>; | ||
ti,hwmods = "mcbsp2"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
* Texas Instruments SoC with twl4030 based audio setups | ||
|
||
Required properties: | ||
- compatible: "ti,omap-twl4030" | ||
- ti,model: Name of the sound card (for example "omap3beagle") | ||
- ti,mcbsp: phandle for the McBSP node | ||
- ti,codec: phandle for the twl4030 audio node | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "ti,omap-twl4030"; | ||
ti,model = "omap3beagle"; | ||
|
||
ti,mcbsp = <&mcbsp2>; | ||
ti,codec = <&twl_audio>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Texas Instruments - tlv320aic3x Codec module | ||
|
||
The tlv320aic3x serial control bus communicates through I2C protocols | ||
|
||
Required properties: | ||
- compatible - "string" - "ti,tlv320aic3x" | ||
- reg - <int> - I2C slave address | ||
|
||
|
||
Optional properties: | ||
|
||
- gpio-reset - gpio pin number used for codec reset | ||
- ai3x-gpio-func - <array of 2 int> - AIC3X_GPIO1 & AIC3X_GPIO2 Functionality | ||
|
||
Example: | ||
|
||
tlv320aic3x: tlv320aic3x@1b { | ||
compatible = "ti,tlv320aic3x"; | ||
reg = <0x1b>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.