Skip to content

Commit b2094ef

Browse files
committed
Merge tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull updates of sound stuff from Takashi Iwai: "Here is the first big update chunk of sound stuff for 3.4-rc1. In the common sound infrastructure, there are a few changes for dynamic PCM support (used in ASoC) and a few clean-ups. Majority of changes are found, as usual, in HD-audio and ASoC. Some highlights of HD-audio changes: - All the long-standing static quirk codes for Realtek codec were finally removed by fixing and extending the Realtek auto-parser. - The mute-LED control is standardized over all HD-audio codec drivers using the extended vmaster hook. - The vmaster slave mixer elements are initialized to 0dB as default so that the user won't be annoyed by the silent output after updates, e.g. due to the additions of new elements. - Other many fix-ups for the misc HD-audio devices. In the ASoC side, this is a very active release, including a quite a few framework enhancements. Some highlights: - Support for widgets not associated with a CODEC, an important part of the dynamic PCM framework. - A library factoring out the common code shared by dmaengine based DMA drivers contributed by Lars-Peter Clausen. This will save a lot of code and make it much easier to deploy enhancements to dmaengine. - Support for binary controls, used for providing runtime configuration of algorithm coefficients. - A new DAPM widget type for regulator supplies allowing drivers for devices that can power down unused supplies while active to do without any per-driver code. - DAPM widgets for DAIs, initially giving a speed boost for playback startup and shutdown and also the basis for CODEC<->CODEC DAI link support. - Support for specifying the number of significant bits on audio interfaces, useful for allowing applications to know how much effort to put into generating data for a larger sample format. - Conversion of the FSI driver used on some SH processors to DMAEngine. - Conversion of EP93xx drivers to DMAEngine. - New CODEC drivers for Maxim MAX9768 and Wolfson Microelectronics WM2200. - Move audmux driver from arc/arm to sound/soc - McBSP move from arch/ to sound/ and updates Also, a few small updates and fixes for other drivers like au88x0, ymfpci, USB 6fire, USB usx2yaudio are included." * tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (446 commits) ASoC: wm8994: Provide VMID mode control and fix default sequence ASoC: wm8994: Add missing break in resume ASoC: wm_hubs: Don't actively manage LINEOUT_VMID_BUF ASoC: pxa-ssp: atomically set stream active masks ASoC: fsl: p1022ds: tell the WM8776 codec driver that it's the master ASoC: Samsung: Added to support mono recording ALSA: hda - Fix build with CONFIG_PM=n ALSA: au88x0 - Avoid possible Oops at unbinding ALSA: usb-audio - Fix build error by consitification of rate list ASoC: core: Fix obscure leak of runtime array ALSA: pcm - Avoid GFP_ATOMIC in snd_pcm_link() ALSA: pcm: Constify the list in snd_pcm_hw_constraint_list ASoC: wm8996: Add 44.1kHz support ALSA: hda - Fix build of patch_sigmatel.c without CONFIG_SND_HDA_POWER_SAVE ASoC: mx27vis-aic32x4: Convert it to platform driver ALSA: hda - fix printing of high HDMI sample rates ALSA: ymfpci - Fix legacy registers on S3/S4 resume ALSA: control - Fixe a trailing white space error ALSA: hda - Add expose_enum_ctl flag to snd_hda_add_vmaster_hook() ALSA: hda - Add "Mute-LED Mode" enum control ...
2 parents 424a6f6 + 6681bc0 commit b2094ef

288 files changed

Lines changed: 17122 additions & 12449 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.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ALC5632 audio CODEC
2+
3+
This device supports I2C only.
4+
5+
Required properties:
6+
7+
- compatible : "realtek,alc5632"
8+
9+
- reg : the I2C address of the device.
10+
11+
- gpio-controller : Indicates this device is a GPIO controller.
12+
13+
- #gpio-cells : Should be two. The first cell is the pin number and the
14+
second cell is used to specify optional parameters (currently unused).
15+
16+
Example:
17+
18+
alc5632: alc5632@1e {
19+
compatible = "realtek,alc5632";
20+
reg = <0x1a>;
21+
22+
gpio-controller;
23+
#gpio-cells = <2>;
24+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Freescale Digital Audio Mux (AUDMUX) device
2+
3+
Required properties:
4+
- compatible : "fsl,imx21-audmux" for AUDMUX version firstly used on i.MX21,
5+
or "fsl,imx31-audmux" for the version firstly used on i.MX31.
6+
- reg : Should contain AUDMUX registers location and length
7+
8+
Example:
9+
10+
audmux@021d8000 {
11+
compatible = "fsl,imx6q-audmux", "fsl,imx31-audmux";
12+
reg = <0x021d8000 0x4000>;
13+
};

Documentation/devicetree/bindings/sound/soc/codecs/fsl-sgtl5000.txt renamed to Documentation/devicetree/bindings/sound/sgtl5000.txt

File renamed without changes.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
NVIDIA Tegra audio complex
2+
3+
Required properties:
4+
- compatible : "nvidia,tegra-audio-alc5632"
5+
- nvidia,model : The user-visible name of this sound complex.
6+
- nvidia,audio-routing : A list of the connections between audio components.
7+
Each entry is a pair of strings, the first being the connection's sink,
8+
the second being the connection's source. Valid names for sources and
9+
sinks are the ALC5632's pins:
10+
11+
ALC5632 pins:
12+
13+
* SPK_OUTP
14+
* SPK_OUTN
15+
* HP_OUT_L
16+
* HP_OUT_R
17+
* AUX_OUT_P
18+
* AUX_OUT_N
19+
* LINE_IN_L
20+
* LINE_IN_R
21+
* PHONE_P
22+
* PHONE_N
23+
* MIC1_P
24+
* MIC1_N
25+
* MIC2_P
26+
* MIC2_N
27+
* MICBIAS1
28+
* DMICDAT
29+
30+
Board connectors:
31+
32+
* Headset Stereophone
33+
* Int Spk
34+
* Headset Mic
35+
* Digital Mic
36+
37+
- nvidia,i2s-controller : The phandle of the Tegra I2S controller
38+
- nvidia,audio-codec : The phandle of the ALC5632 audio codec
39+
40+
Example:
41+
42+
sound {
43+
compatible = "nvidia,tegra-audio-alc5632-paz00",
44+
"nvidia,tegra-audio-alc5632";
45+
46+
nvidia,model = "Compal PAZ00";
47+
48+
nvidia,audio-routing =
49+
"Int Spk", "SPK_OUTP",
50+
"Int Spk", "SPK_OUTN",
51+
"Headset Mic","MICBIAS1",
52+
"MIC1_N", "Headset Mic",
53+
"MIC1_P", "Headset Mic",
54+
"Headset Stereophone", "HP_OUT_R",
55+
"Headset Stereophone", "HP_OUT_L";
56+
57+
nvidia,i2s-controller = <&tegra_i2s1>;
58+
nvidia,audio-codec = <&alc5632>;
59+
};

‎Documentation/devicetree/bindings/vendor-prefixes.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ picochip Picochip Ltd
3434
powervr Imagination Technologies
3535
qcom Qualcomm, Inc.
3636
ramtron Ramtron International
37+
realtek Realtek Semiconductor Corp.
3738
samsung Samsung Semiconductor
3839
sbs Smart Battery System
3940
schindler Schindler

‎Documentation/sound/alsa/ALSA-Configuration.txt‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,8 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
860860

861861
[Multiple options for each card instance]
862862
model - force the model name
863-
position_fix - Fix DMA pointer (0 = auto, 1 = use LPIB, 2 = POSBUF)
863+
position_fix - Fix DMA pointer (0 = auto, 1 = use LPIB, 2 = POSBUF,
864+
3 = VIACOMBO, 4 = COMBO)
864865
probe_mask - Bitmask to probe codecs (default = -1, meaning all slots)
865866
When the bit 8 (0x100) is set, the lower 8 bits are used
866867
as the "fixed" codec slots; i.e. the driver probes the
@@ -925,6 +926,11 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
925926
(Usually SD_LPIB register is more accurate than the
926927
position buffer.)
927928

929+
position_fix=3 is specific to VIA devices. The position
930+
of the capture stream is checked from both LPIB and POSBUF
931+
values. position_fix=4 is a combination mode, using LPIB
932+
for playback and POSBUF for capture.
933+
928934
NB: If you get many "azx_get_response timeout" messages at
929935
loading, it's likely a problem of interrupts (e.g. ACPI irq
930936
routing). Try to boot with options like "pci=noacpi". Also, you

‎Documentation/sound/alsa/HD-Audio-Models.txt‎

Lines changed: 2 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,10 @@ ALC880
88
5stack-digout 5-jack in back, 2-jack in front, a SPDIF out
99
6stack 6-jack in back, 2-jack in front
1010
6stack-digout 6-jack with a SPDIF out
11-
w810 3-jack
12-
z71v 3-jack (HP shared SPDIF)
13-
asus 3-jack (ASUS Mobo)
14-
asus-w1v ASUS W1V
15-
asus-dig ASUS with SPDIF out
16-
asus-dig2 ASUS with SPDIF out (using GPIO2)
17-
uniwill 3-jack
18-
fujitsu Fujitsu Laptops (Pi1536)
19-
F1734 2-jack
20-
lg LG laptop (m1 express dual)
21-
lg-lw LG LW20/LW25 laptop
22-
tcl TCL S700
23-
clevo Clevo laptops (m520G, m665n)
24-
medion Medion Rim 2150
25-
test for testing/debugging purpose, almost all controls can be
26-
adjusted. Appearing only when compiled with
27-
$CONFIG_SND_DEBUG=y
28-
auto auto-config reading BIOS (default)
2911

3012
ALC260
3113
======
32-
fujitsu Fujitsu S7020
33-
acer Acer TravelMate
34-
will Will laptops (PB V7900)
35-
replacer Replacer 672V
36-
favorit100 Maxdata Favorit 100XS
37-
basic fixed pin assignment (old default model)
38-
test for testing/debugging purpose, almost all controls can
39-
adjusted. Appearing only when compiled with
40-
$CONFIG_SND_DEBUG=y
41-
auto auto-config reading BIOS (default)
14+
N/A
4215

4316
ALC262
4417
======
@@ -70,55 +43,7 @@ ALC680
7043

7144
ALC882/883/885/888/889
7245
======================
73-
3stack-dig 3-jack with SPDIF I/O
74-
6stack-dig 6-jack digital with SPDIF I/O
75-
arima Arima W820Di1
76-
targa Targa T8, MSI-1049 T8
77-
asus-a7j ASUS A7J
78-
asus-a7m ASUS A7M
79-
macpro MacPro support
80-
mb5 Macbook 5,1
81-
macmini3 Macmini 3,1
82-
mba21 Macbook Air 2,1
83-
mbp3 Macbook Pro rev3
84-
imac24 iMac 24'' with jack detection
85-
imac91 iMac 9,1
86-
w2jc ASUS W2JC
87-
3stack-2ch-dig 3-jack with SPDIF I/O (ALC883)
88-
alc883-6stack-dig 6-jack digital with SPDIF I/O (ALC883)
89-
3stack-6ch 3-jack 6-channel
90-
3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
91-
6stack-dig-demo 6-jack digital for Intel demo board
92-
acer Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
93-
acer-aspire Acer Aspire 9810
94-
acer-aspire-4930g Acer Aspire 4930G
95-
acer-aspire-6530g Acer Aspire 6530G
96-
acer-aspire-7730g Acer Aspire 7730G
97-
acer-aspire-8930g Acer Aspire 8930G
98-
medion Medion Laptops
99-
targa-dig Targa/MSI
100-
targa-2ch-dig Targa/MSI with 2-channel
101-
targa-8ch-dig Targa/MSI with 8-channel (MSI GX620)
102-
laptop-eapd 3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
103-
lenovo-101e Lenovo 101E
104-
lenovo-nb0763 Lenovo NB0763
105-
lenovo-ms7195-dig Lenovo MS7195
106-
lenovo-sky Lenovo Sky
107-
haier-w66 Haier W66
108-
3stack-hp HP machines with 3stack (Lucknow, Samba boards)
109-
6stack-dell Dell machines with 6stack (Inspiron 530)
110-
mitac Mitac 8252D
111-
clevo-m540r Clevo M540R (6ch + digital)
112-
clevo-m720 Clevo M720 laptop series
113-
fujitsu-pi2515 Fujitsu AMILO Pi2515
114-
fujitsu-xa3530 Fujitsu AMILO XA3530
115-
3stack-6ch-intel Intel DG33* boards
116-
intel-alc889a Intel IbexPeak with ALC889A
117-
intel-x58 Intel DX58 with ALC889
118-
asus-p5q ASUS P5Q-EM boards
119-
mb31 MacBook 3,1
120-
sony-vaio-tt Sony VAIO TT
121-
auto auto-config reading BIOS (default)
46+
N/A
12247

12348
ALC861/660
12449
==========

‎Documentation/sound/alsa/HD-Audio.txt‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ a case, you can change the default method via `position_fix` option.
5959
`position_fix=1` means to use LPIB method explicitly.
6060
`position_fix=2` means to use the position-buffer.
6161
`position_fix=3` means to use a combination of both methods, needed
62-
for some VIA and ATI controllers. 0 is the default value for all other
62+
for some VIA controllers. The capture stream position is corrected
63+
by comparing both LPIB and position-buffer values.
64+
`position_fix=4` is another combination available for all controllers,
65+
and uses LPIB for the playback and the position-buffer for the capture
66+
streams.
67+
0 is the default value for all other
6368
controllers, the automatic check and fallback to LPIB as described in
6469
the above. If you get a problem of repeated sounds, this option might
6570
help.

‎arch/arm/mach-ep93xx/core.c‎

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -817,23 +817,12 @@ void __init ep93xx_register_i2s(void)
817817
#define EP93XX_I2SCLKDIV_MASK (EP93XX_SYSCON_I2SCLKDIV_ORIDE | \
818818
EP93XX_SYSCON_I2SCLKDIV_SPOL)
819819

820-
int ep93xx_i2s_acquire(unsigned i2s_pins, unsigned i2s_config)
820+
int ep93xx_i2s_acquire(void)
821821
{
822822
unsigned val;
823823

824-
/* Sanity check */
825-
if (i2s_pins & ~EP93XX_SYSCON_DEVCFG_I2S_MASK)
826-
return -EINVAL;
827-
if (i2s_config & ~EP93XX_I2SCLKDIV_MASK)
828-
return -EINVAL;
829-
830-
/* Must have only one of I2SONSSP/I2SONAC97 set */
831-
if ((i2s_pins & EP93XX_SYSCON_DEVCFG_I2SONSSP) ==
832-
(i2s_pins & EP93XX_SYSCON_DEVCFG_I2SONAC97))
833-
return -EINVAL;
834-
835-
ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_I2S_MASK);
836-
ep93xx_devcfg_set_bits(i2s_pins);
824+
ep93xx_devcfg_set_clear(EP93XX_SYSCON_DEVCFG_I2SONAC97,
825+
EP93XX_SYSCON_DEVCFG_I2S_MASK);
837826

838827
/*
839828
* This is potentially racy with the clock api for i2s_mclk, sclk and
@@ -843,7 +832,7 @@ int ep93xx_i2s_acquire(unsigned i2s_pins, unsigned i2s_config)
843832
*/
844833
val = __raw_readl(EP93XX_SYSCON_I2SCLKDIV);
845834
val &= ~EP93XX_I2SCLKDIV_MASK;
846-
val |= i2s_config;
835+
val |= EP93XX_SYSCON_I2SCLKDIV_ORIDE | EP93XX_SYSCON_I2SCLKDIV_SPOL;
847836
ep93xx_syscon_swlocked_write(val, EP93XX_SYSCON_I2SCLKDIV);
848837

849838
return 0;

‎arch/arm/mach-ep93xx/include/mach/platform.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void ep93xx_register_keypad(struct ep93xx_keypad_platform_data *data);
5959
int ep93xx_keypad_acquire_gpio(struct platform_device *pdev);
6060
void ep93xx_keypad_release_gpio(struct platform_device *pdev);
6161
void ep93xx_register_i2s(void);
62-
int ep93xx_i2s_acquire(unsigned i2s_pins, unsigned i2s_config);
62+
int ep93xx_i2s_acquire(void);
6363
void ep93xx_i2s_release(void);
6464
void ep93xx_register_ac97(void);
6565

0 commit comments

Comments
 (0)