Skip to content

Commit 0280d1a

Browse files
committed
Merge tag 'sound-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound updates from Takashi Iwai: "Here is the first batch of updates for sound system on 4.4-rc1. Again at this time, the update looks fairly calm; no big changes in either ALSA core or ASoC infrastructures, rather all small cleanups, in addition to the new stuff as usual. The biggest changes are about Firewire sound devices. It gained lots of new device support, and MIDI functionality. Also there are updates for a few still working-in-progress stuff (topology API and ASoC skylake), too. But overall, this update should give no big surprise. Some highlights are below: Core: - A few more Kconfig items for tinification; it's marked as EXPERT, so normal user should't be bothered :) - Refactoring with a new PCM hw_constraint helper - Removal of unused transfer_ack_{begin,end} PCM callbacks Firewire: - Restructuring of code subtree, lots of refactoring - Support AMDTP variants - New driver for Digidesign 002/003 family - Adds support for TASCAM FireOne to ALSA OXFW driver - Add MIDI support to TASCAM and Digi00x devices HD-Audio: - Automated modalias generation for codec drivers, finally - Improvement on heuristics for setting mixer name - A few fixes for longstanding bugs on Creative CA0132 cards - Addition of audio rate callback with i915 communication - Fix suspend issue on recent Dell XPS - Intel Lewisburg controller support ASoC: - Updates to the topology userspace interface - Big updates to the Renesas support (rcar) - More updates for supporting Intel Sky Lake systems - New drivers for Asahi Kasei Microdevices AK4613, Allwinnner A10, Cirrus Logic WM8998, Dialog DA7219, Nuvoton NAU8825, Rockchip S/PDIF, and Atmel class D amplifier USB-Audio: - A fix for newer Roland MIDI devices - Quirks and workarounds for Zoom R16/24 device Misc: - A few fixes for some old Cirrus CS46xx PCI sound boards - Yet another fixes for some old ESS Maestro3 PCI sound boards" * tag 'sound-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (330 commits) ALSA: hda - Add Intel Lewisburg device IDs Audio ALSA: hda - Apply pin fixup for HP ProBook 6550b ALSA: hda - Fix lost 4k BDL boundary workaround ALSA: maestro3: Fix Allegro mute until master volume/mute is touched ALSA: maestro3: Enable docking support for Dell Latitude C810 ALSA: firewire-digi00x: add another rawmidi character device for MIDI control ports ALSA: firewire-digi00x: add MIDI operations for MIDI control port ALSA: firewire-digi00x: rename identifiers of MIDI operation for physical ports ALSA: cs46xx: Fix suspend for all channels ALSA: cs46xx: Fix Duplicate front for CS4294 and CS4298 codecs ALSA: DocBook: Add soc-ops.c and soc-compress.c ALSA: hda - Add / fix kernel doc comments ALSA: Constify ratden/ratnum constraints ALSA: hda - Disable 64bit address for Creative HDA controllers ALSA: hda/realtek - Dell XPS one ALC3260 speaker no sound after resume back ALSA: hda/ca0132 - Convert leftover pr_info() and pr_err() ASoC: fsl: Use #ifdef instead of #if for CONFIG_PM_SLEEP ASoC: rt5645: Sort the order for register bit defines ASoC: dwc: add check for master/slave format ASoC: rt5645: Add the HWEQ for the speaker output ...
2 parents 5bc23a0 + 5cf92c8 commit 0280d1a

307 files changed

Lines changed: 21221 additions & 3293 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/DocBook/alsa-driver-api.tmpl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
!Esound/soc/soc-devres.c
113113
!Esound/soc/soc-io.c
114114
!Esound/soc/soc-pcm.c
115+
!Esound/soc/soc-ops.c
116+
!Esound/soc/soc-compress.c
115117
</sect1>
116118
<sect1><title>ASoC DAPM API</title>
117119
!Esound/soc/soc-dapm.c

‎Documentation/DocBook/writing-an-alsa-driver.tmpl‎

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,10 +2181,6 @@ struct _snd_pcm_runtime {
21812181
struct snd_pcm_hardware hw;
21822182
struct snd_pcm_hw_constraints hw_constraints;
21832183

2184-
/* -- interrupt callbacks -- */
2185-
void (*transfer_ack_begin)(struct snd_pcm_substream *substream);
2186-
void (*transfer_ack_end)(struct snd_pcm_substream *substream);
2187-
21882184
/* -- timer -- */
21892185
unsigned int timer_resolution; /* timer resolution */
21902186

@@ -2209,9 +2205,8 @@ struct _snd_pcm_runtime {
22092205
For the operators (callbacks) of each sound driver, most of
22102206
these records are supposed to be read-only. Only the PCM
22112207
middle-layer changes / updates them. The exceptions are
2212-
the hardware description (hw), interrupt callbacks
2213-
(transfer_ack_xxx), DMA buffer information, and the private
2214-
data. Besides, if you use the standard buffer allocation
2208+
the hardware description (hw) DMA buffer information and the
2209+
private data. Besides, if you use the standard buffer allocation
22152210
method via <function>snd_pcm_lib_malloc_pages()</function>,
22162211
you don't need to set the DMA buffer information by yourself.
22172212
</para>
@@ -2538,16 +2533,6 @@ struct _snd_pcm_runtime {
25382533
</para>
25392534
</section>
25402535

2541-
<section id="pcm-interface-runtime-intr">
2542-
<title>Interrupt Callbacks</title>
2543-
<para>
2544-
The field <structfield>transfer_ack_begin</structfield> and
2545-
<structfield>transfer_ack_end</structfield> are called at
2546-
the beginning and at the end of
2547-
<function>snd_pcm_period_elapsed()</function>, respectively.
2548-
</para>
2549-
</section>
2550-
25512536
</section>
25522537

25532538
<section id="pcm-interface-operators">
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
AK4613 I2C transmitter
2+
3+
This device supports I2C mode only.
4+
5+
Required properties:
6+
7+
- compatible : "asahi-kasei,ak4613"
8+
- reg : The chip select number on the I2C bus
9+
10+
Example:
11+
12+
&i2c {
13+
ak4613: ak4613@0x10 {
14+
compatible = "asahi-kasei,ak4613";
15+
reg = <0x10>;
16+
};
17+
};

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,31 @@ Required properties:
77
- compatible : "asahi-kasei,ak4642" or "asahi-kasei,ak4643" or "asahi-kasei,ak4648"
88
- reg : The chip select number on the I2C bus
99

10-
Example:
10+
Optional properties:
11+
12+
- #clock-cells : common clock binding; shall be set to 0
13+
- clocks : common clock binding; MCKI clock
14+
- clock-frequency : common clock binding; frequency of MCKO
15+
- clock-output-names : common clock binding; MCKO clock name
16+
17+
Example 1:
1118

1219
&i2c {
1320
ak4648: ak4648@0x12 {
1421
compatible = "asahi-kasei,ak4642";
1522
reg = <0x12>;
1623
};
1724
};
25+
26+
Example 2:
27+
28+
&i2c {
29+
ak4643: codec@12 {
30+
compatible = "asahi-kasei,ak4643";
31+
reg = <0x12>;
32+
#clock-cells = <0>;
33+
clocks = <&audio_clock>;
34+
clock-frequency = <12288000>;
35+
clock-output-names = "ak4643_mcko";
36+
};
37+
};
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
* Atmel ClassD driver under ALSA SoC architecture
2+
3+
Required properties:
4+
- compatible
5+
Should be "atmel,sama5d2-classd".
6+
- reg
7+
Should contain ClassD registers location and length.
8+
- interrupts
9+
Should contain the IRQ line for the ClassD.
10+
- dmas
11+
One DMA specifiers as described in atmel-dma.txt and dma.txt files.
12+
- dma-names
13+
Must be "tx".
14+
- clock-names
15+
Tuple listing input clock names.
16+
Required elements: "pclk", "gclk" and "aclk".
17+
- clocks
18+
Please refer to clock-bindings.txt.
19+
20+
Optional properties:
21+
- pinctrl-names, pinctrl-0
22+
Please refer to pinctrl-bindings.txt.
23+
- atmel,model
24+
The user-visible name of this sound complex.
25+
The default value is "CLASSD".
26+
- atmel,pwm-type
27+
PWM modulation type, "single" or "diff".
28+
The default value is "single".
29+
- atmel,non-overlap-time
30+
Set non-overlapping time, the unit is nanosecond(ns).
31+
There are four values,
32+
<5>, <10>, <15>, <20>, the default value is <10>.
33+
Non-overlapping will be disabled if not specified.
34+
35+
Example:
36+
classd: classd@fc048000 {
37+
compatible = "atmel,sama5d2-classd";
38+
reg = <0xfc048000 0x100>;
39+
interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>;
40+
dmas = <&dma0
41+
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
42+
| AT91_XDMAC_DT_PERID(47))>;
43+
dma-names = "tx";
44+
clocks = <&classd_clk>, <&classd_gclk>, <&audio_pll_pmc>;
45+
clock-names = "pclk", "gclk", "aclk";
46+
47+
pinctrl-names = "default";
48+
pinctrl-0 = <&pinctrl_classd_default>;
49+
atmel,model = "classd @ SAMA5D2-Xplained";
50+
atmel,pwm-type = "diff";
51+
atmel,non-overlap-time = <10>;
52+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Dialog Semiconductor DA7213 Audio Codec bindings
2+
3+
======
4+
5+
Required properties:
6+
- compatible : Should be "dlg,da7213"
7+
- reg: Specifies the I2C slave address
8+
9+
Optional properties:
10+
- clocks : phandle and clock specifier for codec MCLK.
11+
- clock-names : Clock name string for 'clocks' attribute, should be "mclk".
12+
13+
- dlg,micbias1-lvl : Voltage (mV) for Mic Bias 1
14+
[<1600>, <2200>, <2500>, <3000>]
15+
- dlg,micbias2-lvl : Voltage (mV) for Mic Bias 2
16+
[<1600>, <2200>, <2500>, <3000>]
17+
- dlg,dmic-data-sel : DMIC channel select based on clock edge.
18+
["lrise_rfall", "lfall_rrise"]
19+
- dlg,dmic-samplephase : When to sample audio from DMIC.
20+
["on_clkedge", "between_clkedge"]
21+
- dlg,dmic-clkrate : DMIC clock frequency (Hz).
22+
[<1500000>, <3000000>]
23+
24+
======
25+
26+
Example:
27+
28+
codec_i2c: da7213@1a {
29+
compatible = "dlg,da7213";
30+
reg = <0x1a>;
31+
32+
clocks = <&clks 201>;
33+
clock-names = "mclk";
34+
35+
dlg,micbias1-lvl = <2500>;
36+
dlg,micbias2-lvl = <2500>;
37+
38+
dlg,dmic-data-sel = "lrise_rfall";
39+
dlg,dmic-samplephase = "between_clkedge";
40+
dlg,dmic-clkrate = <3000000>;
41+
};
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Dialog Semiconductor DA7219 Audio Codec bindings
2+
3+
DA7219 is an audio codec with advanced accessory detect features.
4+
5+
======
6+
7+
Required properties:
8+
- compatible : Should be "dlg,da7219"
9+
- reg: Specifies the I2C slave address
10+
11+
- interrupt-parent : Specifies the phandle of the interrupt controller to which
12+
the IRQs from DA7219 are delivered to.
13+
- interrupts : IRQ line info for DA7219.
14+
(See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
15+
further information relating to interrupt properties)
16+
17+
- VDD-supply: VDD power supply for the device
18+
- VDDMIC-supply: VDDMIC power supply for the device
19+
- VDDIO-supply: VDDIO power supply for the device
20+
(See Documentation/devicetree/bindings/regulator/regulator.txt for further
21+
information relating to regulators)
22+
23+
Optional properties:
24+
- interrupt-names : Name associated with interrupt line. Should be "wakeup" if
25+
interrupt is to be used to wake system, otherwise "irq" should be used.
26+
- wakeup-source: Flag to indicate this device can wake system (suspend/resume).
27+
28+
- clocks : phandle and clock specifier for codec MCLK.
29+
- clock-names : Clock name string for 'clocks' attribute, should be "mclk".
30+
31+
- dlg,ldo-lvl : Required internal LDO voltage (mV) level for digital engine
32+
[<1050>, <1100>, <1200>, <1400>]
33+
- dlg,micbias-lvl : Voltage (mV) for Mic Bias
34+
[<1800>, <2000>, <2200>, <2400>, <2600>]
35+
- dlg,mic-amp-in-sel : Mic input source type
36+
["diff", "se_p", "se_n"]
37+
38+
======
39+
40+
Child node - 'da7219_aad':
41+
42+
Optional properties:
43+
- dlg,micbias-pulse-lvl : Mic bias higher voltage pulse level (mV).
44+
[<2800>, <2900>]
45+
- dlg,micbias-pulse-time : Mic bias higher voltage pulse duration (ms)
46+
- dlg,btn-cfg : Periodic button press measurements for 4-pole jack (ms)
47+
[<2>, <5>, <10>, <50>, <100>, <200>, <500>]
48+
- dlg,mic-det-thr : Impedance threshold for mic detection measurement (Ohms)
49+
[<200>, <500>, <750>, <1000>]
50+
- dlg,jack-ins-deb : Debounce time for jack insertion (ms)
51+
[<5>, <10>, <20>, <50>, <100>, <200>, <500>, <1000>]
52+
- dlg,jack-det-rate: Jack type detection latency (3/4 pole)
53+
["32ms_64ms", "64ms_128ms", "128ms_256ms", "256ms_512ms"]
54+
- dlg,jack-rem-deb : Debounce time for jack removal (ms)
55+
[<1>, <5>, <10>, <20>]
56+
- dlg,a-d-btn-thr : Impedance threshold between buttons A and D
57+
[0x0 - 0xFF]
58+
- dlg,d-b-btn-thr : Impedance threshold between buttons D and B
59+
[0x0 - 0xFF]
60+
- dlg,b-c-btn-thr : Impedance threshold between buttons B and C
61+
[0x0 - 0xFF]
62+
- dlg,c-mic-btn-thr : Impedance threshold between button C and Mic
63+
[0x0 - 0xFF]
64+
- dlg,btn-avg : Number of 8-bit readings for averaged button measurement
65+
[<1>, <2>, <4>, <8>]
66+
- dlg,adc-1bit-rpt : Repeat count for 1-bit button measurement
67+
[<1>, <2>, <4>, <8>]
68+
69+
======
70+
71+
Example:
72+
73+
codec: da7219@1a {
74+
compatible = "dlg,da7219";
75+
reg = <0x1a>;
76+
77+
interrupt-parent = <&gpio6>;
78+
interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
79+
80+
VDD-supply = <&reg_audio>;
81+
VDDMIC-supply = <&reg_audio>;
82+
VDDIO-supply = <&reg_audio>;
83+
84+
clocks = <&clks 201>;
85+
clock-names = "mclk";
86+
87+
dlg,ldo-lvl = <1200>;
88+
dlg,micbias-lvl = <2600>;
89+
dlg,mic-amp-in-sel = "diff";
90+
91+
da7219_aad {
92+
dlg,btn-cfg = <50>;
93+
dlg,mic-det-thr = <500>;
94+
dlg,jack-ins-deb = <20>;
95+
dlg,jack-det-rate = "32ms_64ms";
96+
dlg,jack-rem-deb = <1>;
97+
98+
dlg,a-d-btn-thr = <0xa>;
99+
dlg,d-b-btn-thr = <0x16>;
100+
dlg,b-c-btn-thr = <0x21>;
101+
dlg,c-mic-btn-thr = <0x3E>;
102+
103+
dlg,btn-avg = <4>;
104+
dlg,adc-1bit-rpt = <1>;
105+
};
106+
};

‎Documentation/devicetree/bindings/sound/fsl-asoc-card.txt‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ So having this generic sound card allows all Freescale SoC users to benefit
1313
from the simplification of a new card support and the capability of the wide
1414
sample rates support through ASRC.
1515

16-
Note: The card is initially designed for those sound cards who use I2S and
17-
PCM DAI formats. However, it'll be also possible to support those non
18-
I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as long
19-
as the driver has been properly upgraded.
16+
Note: The card is initially designed for those sound cards who use AC'97, I2S
17+
and PCM DAI formats. However, it'll be also possible to support those non
18+
AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as
19+
long as the driver has been properly upgraded.
2020

2121

2222
The compatible list for this generic sound card currently:
23+
"fsl,imx-audio-ac97"
24+
2325
"fsl,imx-audio-cs42888"
2426

2527
"fsl,imx-audio-wm8962"

0 commit comments

Comments
 (0)