forked from torvalds/linux
-
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 'sound-4.3-rc1' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/tiwai/sound Pull sound updates from Takashi Iwai: "There are little changes in core part, but lots of development are found in drivers, especially ASoC. The diffstat shows regmap-related changes for a slight API additions / changes, and that's all. Looking at the code size statistics, the most significant addition is for Intel Skylake. (Note that SKL support is still underway, the codec driver is missing.) Also STI controller driver is a major addition as well as a few new codec drivers. In HD-audio side, there are fewer changes than the past. The noticeable change is the support of ELD notification from i915 graphics driver. Thus this pull request carries a few changes in drm/i915. Other than that, USB-audio got a rewrite of runtime PM code. It was initiated by lockdep warning, but resulted in a good cleanup in the end. Below are the highlights: Common: - Factoring out of AC'97 reset code from ASoC into the core helper - A few regmap API extensions (in case it's not pulled yet) ASoC: - New drivers for Cirrus CS4349, GTM601, InvenSense ICS43432, Realtek RT298 and ST STI controllers - Machine drivers for Rockchip systems with MAX98090 and RT5645 and RT5650 - Initial driver support for Intel Skylake devices - Lots of rsnd cleanup and enhancements - A few DAPM fixes and cleanups - A large number of cleanups in various drivers (conversion and standardized to regmap, component) mostly by Lars-Peter and Axel HD-audio: - Extended HD-audio core for Intel Skylake controller support - Quirks for Dell headsets, Alienware 15 - Clean up of pin-based quirk tables for Realtek codecs - ELD notifier implenetation for Intel HDMI/DP USB-audio: - Refactor runtime PM code to make lockdep happier" * tag 'sound-4.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (411 commits) drm/i915: Add locks around audio component bind/unbind drm/i915: Drop port_mst_index parameter from pin/eld callback ALSA: hda - Fix missing inline for dummy snd_hdac_set_codec_wakeup() ALSA: hda - Wake the codec up on pin/ELD notify events ALSA: hda - allow codecs to access the i915 pin/ELD callback drm/i915: Call audio pin/ELD notify function drm/i915: Add audio pin sense / ELD callback ASoC: zx296702-i2s: Fix resource leak when unload module ASoC: sti_uniperif: Ensure component is unregistered when unload module ASoC: au1x: psc-i2s: Convert to use devm_ioremap_resource ASoC: sh: dma-sh7760: Convert to devm_snd_soc_register_platform ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak ALSA: fireworks/bebob/dice/oxfw: fix substreams counting at vmalloc failure ASoC: Clean up docbook warnings ASoC: txx9: Convert to devm_snd_soc_register_platform ASoC: pxa: Convert to devm_snd_soc_register_platform ASoC: nuc900: Convert to devm_snd_soc_register_platform ASoC: blackfin: Convert to devm_snd_soc_register_platform ASoC: au1x: Convert to devm_snd_soc_register_platform ASoC: qcom: Constify asoc_qcom_lpass_cpu_dai_ops ...
- Loading branch information
Showing
368 changed files
with
17,063 additions
and
4,617 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,19 @@ | ||
CS4349 audio CODEC | ||
|
||
Required properties: | ||
|
||
- compatible : "cirrus,cs4349" | ||
|
||
- reg : the I2C address of the device for I2C | ||
|
||
Optional properties: | ||
|
||
- reset-gpios : a GPIO spec for the reset pin. | ||
|
||
Example: | ||
|
||
codec: cs4349@48 { | ||
compatible = "cirrus,cs4349"; | ||
reg = <0x48>; | ||
reset-gpios = <&gpio 54 0>; | ||
}; |
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 @@ | ||
Invensense ICS-43432 MEMS microphone with I2S output. | ||
|
||
There are no software configuration options for this device, indeed, the only | ||
host connection is the I2S interface. Apart from requirements on clock | ||
frequency (460 kHz to 3.379 MHz according to the data sheet) there must be | ||
64 clock cycles in each stereo output frame; 24 of the 32 available bits | ||
contain audio data. A hardware pin determines if the device outputs data | ||
on the left or right channel of the I2S frame. | ||
|
||
Required properties: | ||
- compatible : Must be "invensense,ics43432" | ||
|
||
Example: | ||
|
||
ics43432: ics43432 { | ||
compatible = "invensense,ics43432"; | ||
}; |
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
19 changes: 19 additions & 0 deletions
19
Documentation/devicetree/bindings/sound/rockchip-max98090.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,19 @@ | ||
ROCKCHIP with MAX98090 CODEC | ||
|
||
Required properties: | ||
- compatible: "rockchip,rockchip-audio-max98090" | ||
- rockchip,model: The user-visible name of this sound complex | ||
- rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's | ||
connected to the CODEC | ||
- rockchip,audio-codec: The phandle of the MAX98090 audio codec | ||
- rockchip,headset-codec: The phandle of Ext chip for jack detection | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "rockchip,rockchip-audio-max98090"; | ||
rockchip,model = "ROCKCHIP-I2S"; | ||
rockchip,i2s-controller = <&i2s>; | ||
rockchip,audio-codec = <&max98090>; | ||
rockchip,headset-codec = <&headsetcodec>; | ||
}; |
17 changes: 17 additions & 0 deletions
17
Documentation/devicetree/bindings/sound/rockchip-rt5645.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,17 @@ | ||
ROCKCHIP with RT5645/RT5650 CODECS | ||
|
||
Required properties: | ||
- compatible: "rockchip,rockchip-audio-rt5645" | ||
- rockchip,model: The user-visible name of this sound complex | ||
- rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's | ||
connected to the CODEC | ||
- rockchip,audio-codec: The phandle of the RT5645/RT5650 audio codec | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "rockchip,rockchip-audio-rt5645"; | ||
rockchip,model = "ROCKCHIP-I2S"; | ||
rockchip,i2s-controller = <&i2s>; | ||
rockchip,audio-codec = <&rt5645>; | ||
}; |
155 changes: 155 additions & 0 deletions
155
Documentation/devicetree/bindings/sound/st,sti-asoc-card.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,155 @@ | ||
STMicroelectronics sti ASoC cards | ||
|
||
The sti ASoC Sound Card can be used, for all sti SoCs using internal sti-sas | ||
codec or external codecs. | ||
|
||
sti sound drivers allows to expose sti SoC audio interface through the | ||
generic ASoC simple card. For details about sound card declaration please refer to | ||
Documentation/devicetree/bindings/sound/simple-card.txt. | ||
|
||
1) sti-uniperiph-dai: audio dai device. | ||
--------------------------------------- | ||
|
||
Required properties: | ||
- compatible: "st,sti-uni-player" or "st,sti-uni-reader" | ||
|
||
- st,syscfg: phandle to boot-device system configuration registers | ||
|
||
- clock-names: name of the clocks listed in clocks property in the same order | ||
|
||
- reg: CPU DAI IP Base address and size entries, listed in same | ||
order than the CPU_DAI properties. | ||
|
||
- reg-names: names of the mapped memory regions listed in regs property in | ||
the same order. | ||
|
||
- interrupts: CPU_DAI interrupt line, listed in the same order than the | ||
CPU_DAI properties. | ||
|
||
- dma: CPU_DAI DMA controller phandle and DMA request line, listed in the same | ||
order than the CPU_DAI properties. | ||
|
||
- dma-names: identifier string for each DMA request line in the dmas property. | ||
"tx" for "st,sti-uni-player" compatibility | ||
"rx" for "st,sti-uni-reader" compatibility | ||
|
||
- version: IP version integrated in SOC. | ||
|
||
- dai-name: DAI name that describes the IP. | ||
|
||
Required properties ("st,sti-uni-player" compatibility only): | ||
- clocks: CPU_DAI IP clock source, listed in the same order than the | ||
CPU_DAI properties. | ||
|
||
- uniperiph-id: internal SOC IP instance ID. | ||
|
||
- IP mode: IP working mode depending on associated codec. | ||
"HDMI" connected to HDMI codec IP and IEC HDMI formats. | ||
"SPDIF"connected to SPDIF codec and support SPDIF formats. | ||
"PCM" PCM standard mode for I2S or TDM bus. | ||
|
||
Optional properties: | ||
- pinctrl-0: defined for CPU_DAI@1 and CPU_DAI@4 to describe I2S PIOs for | ||
external codecs connection. | ||
|
||
- pinctrl-names: should contain only one value - "default". | ||
|
||
Example: | ||
|
||
sti_uni_player2: sti-uni-player@2 { | ||
compatible = "st,sti-uni-player"; | ||
status = "okay"; | ||
#sound-dai-cells = <0>; | ||
st,syscfg = <&syscfg_core>; | ||
clocks = <&clk_s_d0_flexgen CLK_PCM_2>; | ||
reg = <0x8D82000 0x158>; | ||
interrupts = <GIC_SPI 86 IRQ_TYPE_NONE>; | ||
dmas = <&fdma0 4 0 1>; | ||
dai-name = "Uni Player #1 (DAC)"; | ||
dma-names = "tx"; | ||
uniperiph-id = <2>; | ||
version = <5>; | ||
mode = "PCM"; | ||
}; | ||
|
||
sti_uni_player3: sti-uni-player@3 { | ||
compatible = "st,sti-uni-player"; | ||
status = "okay"; | ||
#sound-dai-cells = <0>; | ||
st,syscfg = <&syscfg_core>; | ||
clocks = <&clk_s_d0_flexgen CLK_SPDIFF>; | ||
reg = <0x8D85000 0x158>; | ||
interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; | ||
dmas = <&fdma0 7 0 1>; | ||
dma-names = "tx"; | ||
dai-name = "Uni Player #1 (PIO)"; | ||
uniperiph-id = <3>; | ||
version = <5>; | ||
mode = "SPDIF"; | ||
}; | ||
|
||
sti_uni_reader1: sti-uni-reader@1 { | ||
compatible = "st,sti-uni-reader"; | ||
status = "disabled"; | ||
#sound-dai-cells = <0>; | ||
st,syscfg = <&syscfg_core>; | ||
reg = <0x8D84000 0x158>; | ||
interrupts = <GIC_SPI 88 IRQ_TYPE_NONE>; | ||
dmas = <&fdma0 6 0 1>; | ||
dma-names = "rx"; | ||
dai-name = "Uni Reader #1 (HDMI RX)"; | ||
version = <3>; | ||
}; | ||
|
||
2) sti-sas-codec: internal audio codec IPs driver | ||
------------------------------------------------- | ||
|
||
Required properties: | ||
- compatible: "st,sti<chip>-sas-codec" . | ||
Should be chip "st,stih416-sas-codec" or "st,stih407-sas-codec" | ||
|
||
- st,syscfg: phandle to boot-device system configuration registers. | ||
|
||
- pinctrl-0: SPDIF PIO description. | ||
|
||
- pinctrl-names: should contain only one value - "default". | ||
|
||
Example: | ||
sti_sas_codec: sti-sas-codec { | ||
compatible = "st,stih407-sas-codec"; | ||
#sound-dai-cells = <1>; | ||
st,reg_audio = <&syscfg_core>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_spdif_out >; | ||
}; | ||
|
||
Example of audio card declaration: | ||
sound { | ||
compatible = "simple-audio-card"; | ||
simple-audio-card,name = "sti audio card"; | ||
status = "okay"; | ||
|
||
simple-audio-card,dai-link@0 { | ||
/* DAC */ | ||
format = "i2s"; | ||
dai-tdm-slot-width = <32>; | ||
cpu { | ||
sound-dai = <&sti_uni_player2>; | ||
}; | ||
|
||
codec { | ||
sound-dai = <&sti_sasg_codec 1>; | ||
}; | ||
}; | ||
simple-audio-card,dai-link@1 { | ||
/* SPDIF */ | ||
format = "left_j"; | ||
cpu { | ||
sound-dai = <&sti_uni_player3>; | ||
}; | ||
|
||
codec { | ||
sound-dai = <&sti_sasg_codec 0>; | ||
}; | ||
}; | ||
}; |
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.