Skip to content

Commit e57ccca

Browse files
committed
Merge tag 'sound-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound updates from Takashi Iwai: "The most significant changes at this cycle are the Sound Open Firmware support from Intel for the common DSP framework along with its support for Intel platforms. It's a door opened to a real "free" firmware (in the sense of FOSS), and other parties show interests in it. In addition to SOF, we've got a bunch of updates and fixes as usual. Some highlights are below. ALSA core: - Cleanups and fixes in ALSA timer code to cover some races spotted by syzkaller - Cleanups and fixes in ALSA sequencer code to cover some races, again unsurprisingly, spotted by syzkaller - Optimize the common page allocation helper with alloc_pages_exact() ASoC: - Add SOF core support, as well as Intel SOF platform support - Generic card driver improvements: support for MCLK/sample rate ratio and pin switches - A big set of improvements to TLV320AIC32x4 drivers - New drivers for Freescale audio mixers, several Intel machines, several Mediatek machines, Meson G12A, Spreadtrum compressed audio and DMA devices HD-audio: - A few Realtek codec fixes for reducing pop noises - Quirks for Chromebooks - Workaround for faulty connection report on AMD/Nvidia HDMI Others: - A quirk for Focusrite Scarlett Solo USB-audio - Add support for MOTU 8pre FireWire - 24bit sample format support in aloop - GUS patch format support (finally, over a decade) in native emux synth code" * tag 'sound-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (375 commits) ASoC: SOF: Fix unused variable warnings ALSA: line6: toneport: Fix broken usage of timer for delayed execution ALSA: aica: Fix a long-time build breakage ALSA: hda/realtek - Support low power consumption for ALC256 ASoC: stm32: i2s: update pcm hardware constraints ASoC: codec: hdac_hdmi: no checking monitor in hw_params ASoC: mediatek: mt6358: save PGA for mixer control ASoC: mediatek: mt6358: save output volume for mixer controls ASoC: mediatek: mt6358: initialize setting when ramping volume ASoC: SOF: core: fix undefined nocodec reference ASoC: SOF: xtensa: fix undefined references ASoC: SOF: Propagate sof_get_ctrl_copy_params() error properly ALSA: hdea/realtek - Headset fixup for System76 Gazelle (gaze14) ALSA: hda/intel: add CometLake PCI IDs ALSA: hda/realtek - Support low power consumption for ALC295 ASoC: rockchip: Fix an uninitialized variable compile warning ASoC: SOF: Fix a compile warning with CONFIG_PCI=n ASoC: da7219: Fix a compile warning at CONFIG_COMMON_CLK=n ASoC: sound/soc/sof/: fix kconfig dependency warning ASoC: stm32: spdifrx: change trace level on iec control ...
2 parents a2d635d + ed97c98 commit e57ccca

321 files changed

Lines changed: 30072 additions & 3180 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/sound/adi,axi-i2s.txt‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
ADI AXI-I2S controller
22

3+
The core can be generated with transmit (playback), only receive
4+
(capture) or both directions enabled.
5+
36
Required properties:
47
- compatible : Must be "adi,axi-i2s-1.00.a"
58
- reg : Must contain I2S core's registers location and length
@@ -9,8 +12,8 @@ Required properties:
912
- clock-names : "axi" for the clock to the AXI interface, "ref" for the sample
1013
rate reference clock.
1114
- dmas: Pairs of phandle and specifier for the DMA channels that are used by
12-
the core. The core expects two dma channels, one for transmit and one for
13-
receive.
15+
the core. The core expects two dma channels if both transmit and receive are
16+
enabled, one channel otherwise.
1417
- dma-names : "tx" for the transmit channel, "rx" for the receive channel.
1518

1619
For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties

‎Documentation/devicetree/bindings/sound/amlogic,axg-fifo.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Required properties:
44
- compatible: 'amlogic,axg-toddr' or
5-
'amlogic,axg-frddr'
5+
'amlogic,axg-toddr' or
6+
'amlogic,g12a-frddr' or
7+
'amlogic,g12a-toddr'
68
- reg: physical base address of the controller and length of memory
79
mapped region.
810
- interrupts: interrupt specifier for the fifo.

‎Documentation/devicetree/bindings/sound/amlogic,axg-pdm.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
* Amlogic Audio PDM input
22

33
Required properties:
4-
- compatible: 'amlogic,axg-pdm'
4+
- compatible: 'amlogic,axg-pdm' or
5+
'amlogic,g12a-pdm'
56
- reg: physical base address of the controller and length of memory
67
mapped region.
78
- clocks: list of clock phandle, one for each entry clock-names.

‎Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
* Amlogic Audio SPDIF Input
22

33
Required properties:
4-
- compatible: 'amlogic,axg-spdifin'
4+
- compatible: 'amlogic,axg-spdifin' or
5+
'amlogic,g12a-spdifin'
56
- interrupts: interrupt specifier for the spdif input.
67
- clocks: list of clock phandle, one for each entry clock-names.
78
- clock-names: should contain the following:

‎Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
* Amlogic Audio SPDIF Output
22

33
Required properties:
4-
- compatible: 'amlogic,axg-spdifout'
4+
- compatible: 'amlogic,axg-spdifout' or
5+
'amlogic,g12a-spdifout'
56
- clocks: list of clock phandle, one for each entry clock-names.
67
- clock-names: should contain the following:
78
* "pclk" : peripheral clock.

‎Documentation/devicetree/bindings/sound/amlogic,axg-tdm-formatters.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Required properties:
44
- compatible: 'amlogic,axg-tdmin' or
5-
'amlogic,axg-tdmout'
5+
'amlogic,axg-tdmout' or
6+
'amlogic,g12a-tdmin' or
7+
'amlogic,g12a-tdmout'
68
- reg: physical base address of the controller and length of memory
79
mapped region.
810
- clocks: list of clock phandle, one for each entry clock-names.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Cirrus Logic Lochnagar Audio Development Board
2+
3+
Lochnagar is an evaluation and development board for Cirrus Logic
4+
Smart CODEC and Amp devices. It allows the connection of most Cirrus
5+
Logic devices on mini-cards, as well as allowing connection of
6+
various application processor systems to provide a full evaluation
7+
platform. Audio system topology, clocking and power can all be
8+
controlled through the Lochnagar, allowing the device under test
9+
to be used in a variety of possible use cases.
10+
11+
This binding document describes the binding for the audio portion
12+
of the driver.
13+
14+
This binding must be part of the Lochnagar MFD binding:
15+
[4] ../mfd/cirrus,lochnagar.txt
16+
17+
Required properties:
18+
19+
- compatible : One of the following strings:
20+
"cirrus,lochnagar2-soundcard"
21+
22+
- #sound-dai-cells : Must be set to 1.
23+
24+
- clocks : Contains an entry for each entry in clock-names.
25+
- clock-names : Must include the following clocks:
26+
"mclk" Master clock source for the sound card, should normally
27+
be set to LOCHNAGAR_SOUNDCARD_MCLK provided by the Lochnagar
28+
clock driver.
29+
30+
Example:
31+
32+
lochnagar-sc {
33+
compatible = "cirrus,lochnagar2-soundcard";
34+
35+
#sound-dai-cells = <1>;
36+
37+
clocks = <&lochnagar_clk LOCHNAGAR_SOUNDCARD_MCLK>;
38+
clock-names = "mclk";
39+
};

‎Documentation/devicetree/bindings/sound/cs42l51.txt‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
CS42L51 audio CODEC
22

3+
Required properties:
4+
5+
- compatible : "cirrus,cs42l51"
6+
7+
- reg : the I2C address of the device for I2C.
8+
39
Optional properties:
10+
- VL-supply, VD-supply, VA-supply, VAHP-supply: power supplies for the device,
11+
as covered in Documentation/devicetree/bindings/regulator/regulator.txt.
12+
13+
- reset-gpios : GPIO specification for the reset pin. If specified, it will be
14+
deasserted before starting the communication with the codec.
415

516
- clocks : a list of phandles + clock-specifiers, one for each entry in
617
clock-names
@@ -14,4 +25,9 @@ cs42l51: cs42l51@4a {
1425
reg = <0x4a>;
1526
clocks = <&mclk_prov>;
1627
clock-names = "MCLK";
28+
VL-supply = <&reg_audio>;
29+
VD-supply = <&reg_audio>;
30+
VA-supply = <&reg_audio>;
31+
VAHP-supply = <&reg_audio>;
32+
reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
1733
};

‎Documentation/devicetree/bindings/sound/da7219.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Optional properties:
2323
interrupt is to be used to wake system, otherwise "irq" should be used.
2424
- wakeup-source: Flag to indicate this device can wake system (suspend/resume).
2525

26-
- #clock-cells : Should be set to '<0>', only one clock source provided;
27-
- clock-output-names : Name given for DAI clocks output;
26+
- #clock-cells : Should be set to '<1>', two clock sources provided;
27+
- clock-output-names : Names given for DAI clock outputs (WCLK & BCLK);
2828

2929
- clocks : phandle and clock specifier for codec MCLK.
3030
- clock-names : Clock name string for 'clocks' attribute, should be "mclk".
@@ -84,8 +84,8 @@ Example:
8484
VDDMIC-supply = <&reg_audio>;
8585
VDDIO-supply = <&reg_audio>;
8686

87-
#clock-cells = <0>;
88-
clock-output-names = "dai-clks";
87+
#clock-cells = <1>;
88+
clock-output-names = "dai-wclk", "dai-bclk";
8989

9090
clocks = <&clks 201>;
9191
clock-names = "mclk";
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
NXP Audio Mixer (AUDMIX).
2+
3+
The Audio Mixer is a on-chip functional module that allows mixing of two
4+
audio streams into a single audio stream. Audio Mixer has two input serial
5+
audio interfaces. These are driven by two Synchronous Audio interface
6+
modules (SAI). Each input serial interface carries 8 audio channels in its
7+
frame in TDM manner. Mixer mixes audio samples of corresponding channels
8+
from two interfaces into a single sample. Before mixing, audio samples of
9+
two inputs can be attenuated based on configuration. The output of the
10+
Audio Mixer is also a serial audio interface. Like input interfaces it has
11+
the same TDM frame format. This output is used to drive the serial DAC TDM
12+
interface of audio codec and also sent to the external pins along with the
13+
receive path of normal audio SAI module for readback by the CPU.
14+
15+
The output of Audio Mixer can be selected from any of the three streams
16+
- serial audio input 1
17+
- serial audio input 2
18+
- mixed audio
19+
20+
Mixing operation is independent of audio sample rate but the two audio
21+
input streams must have same audio sample rate with same number of channels
22+
in TDM frame to be eligible for mixing.
23+
24+
Device driver required properties:
25+
=================================
26+
- compatible : Compatible list, contains "fsl,imx8qm-audmix"
27+
28+
- reg : Offset and length of the register set for the device.
29+
30+
- clocks : Must contain an entry for each entry in clock-names.
31+
32+
- clock-names : Must include the "ipg" for register access.
33+
34+
- power-domains : Must contain the phandle to AUDMIX power domain node
35+
36+
- dais : Must contain a list of phandles to AUDMIX connected
37+
DAIs. The current implementation requires two phandles
38+
to SAI interfaces to be provided, the first SAI in the
39+
list being used to route the AUDMIX output.
40+
41+
Device driver configuration example:
42+
======================================
43+
audmix: audmix@59840000 {
44+
compatible = "fsl,imx8qm-audmix";
45+
reg = <0x0 0x59840000 0x0 0x10000>;
46+
clocks = <&clk IMX8QXP_AUD_AUDMIX_IPG>;
47+
clock-names = "ipg";
48+
power-domains = <&pd_audmix>;
49+
dais = <&sai4>, <&sai5>;
50+
};

0 commit comments

Comments
 (0)