Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/tiwai/sound

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (549 commits)
  ALSA: hda - Fix ADC input-amp handling for Cx20549 codec
  ALSA: hda - Keep EAPD turned on for old Conexant chips
  ALSA: hda/realtek - Fix missing volume controls with ALC260
  ASoC: wm8940: Properly set codec->dapm.bias_level
  ALSA: hda - Fix pin-config for ASUS W90V
  ALSA: hda - Fix surround/CLFE headphone and speaker pins order
  ALSA: hda - Fix typo
  ALSA: Update the sound git tree URL
  ALSA: HDA: Add new revision for ALC662
  ASoC: max98095: Convert codec->hw_write to snd_soc_write
  ASoC: keep pointer to resource so it can be freed
  ASoC: sgtl5000: Fix wrong mask in some snd_soc_update_bits calls
  ASoC: wm8996: Fix wrong mask for setting WM8996_AIF_CLOCKING_2
  ASoC: da7210: Add support for line out and DAC
  ASoC: da7210: Add support for DAPM
  ALSA: hda/realtek - Fix DAC assignments of multiple speakers
  ASoC: Use SGTL5000_LINREG_VDDD_MASK instead of hardcoded mask value
  ASoC: Set sgtl5000->ldo in ldo_regulator_register
  ASoC: wm8996: Use SND_SOC_DAPM_AIF_OUT for AIF2 Capture
  ASoC: wm8994: Use SND_SOC_DAPM_AIF_OUT for AIF3 Capture
  ...
  • Loading branch information
torvalds committed Oct 28, 2011
2 parents 0e59e7e + 8128c9f commit 68d99b2
Show file tree
Hide file tree
Showing 389 changed files with 25,743 additions and 12,185 deletions.
36 changes: 21 additions & 15 deletions Documentation/DocBook/writing-an-alsa-driver.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4288,7 +4288,7 @@ struct _snd_pcm_runtime {
<![CDATA[
struct snd_rawmidi *rmidi;
snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port, info_flags,
irq, irq_flags, &rmidi);
irq, &rmidi);
]]>
</programlisting>
</informalexample>
Expand Down Expand Up @@ -4343,6 +4343,13 @@ struct _snd_pcm_runtime {
by itself to start processing the output stream in the irq handler.
</para>

<para>
If the MPU-401 interface shares its interrupt with the other logical
devices on the card, set <constant>MPU401_INFO_IRQ_HOOK</constant>
(see <link linkend="midi-interface-interrupt-handler"><citetitle>
below</citetitle></link>).
</para>

<para>
Usually, the port address corresponds to the command port and
port + 1 corresponds to the data port. If not, you may change
Expand Down Expand Up @@ -4375,27 +4382,26 @@ struct _snd_pcm_runtime {
</para>

<para>
The 6th argument specifies the irq number for UART. If the irq
is already allocated, pass 0 to the 7th argument
(<parameter>irq_flags</parameter>). Otherwise, pass the flags
for irq allocation
(<constant>SA_XXX</constant> bits) to it, and the irq will be
reserved by the mpu401-uart layer. If the card doesn't generate
UART interrupts, pass -1 as the irq number. Then a timer
interrupt will be invoked for polling.
The 6th argument specifies the ISA irq number that will be
allocated. If no interrupt is to be allocated (because your
code is already allocating a shared interrupt, or because the
device does not use interrupts), pass -1 instead.
For a MPU-401 device without an interrupt, a polling timer
will be used instead.
</para>
</section>

<section id="midi-interface-interrupt-handler">
<title>Interrupt Handler</title>
<para>
When the interrupt is allocated in
<function>snd_mpu401_uart_new()</function>, the private
interrupt handler is used, hence you don't have anything else to do
than creating the mpu401 stuff. Otherwise, you have to call
<function>snd_mpu401_uart_interrupt()</function> explicitly when
a UART interrupt is invoked and checked in your own interrupt
handler.
<function>snd_mpu401_uart_new()</function>, an exclusive ISA
interrupt handler is automatically used, hence you don't have
anything else to do than creating the mpu401 stuff. Otherwise, you
have to set <constant>MPU401_INFO_IRQ_HOOK</constant>, and call
<function>snd_mpu401_uart_interrupt()</function> explicitly from your
own interrupt handler when it has determined that a UART interrupt
has occurred.
</para>

<para>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* Freescale SGTL5000 Stereo Codec

Required properties:
- compatible : "fsl,sgtl5000".

Example:

codec: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8510.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8510 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8510"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8510@1a {
compatible = "wlf,wm8510";
reg = <0x1a>;
};
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8523.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
WM8523 audio CODEC

This device supports I2C only.

Required properties:

- compatible : "wlf,wm8523"

- reg : the I2C address of the device.

Example:

codec: wm8523@1a {
compatible = "wlf,wm8523";
reg = <0x1a>;
};
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8580.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
WM8580 audio CODEC

This device supports I2C only.

Required properties:

- compatible : "wlf,wm8580"

- reg : the I2C address of the device.

Example:

codec: wm8580@1a {
compatible = "wlf,wm8580";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8711.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8711 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8711"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8711@1a {
compatible = "wlf,wm8711";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8728.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8728 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8728"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8728@1a {
compatible = "wlf,wm8728";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8731.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8731 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8731"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8731@1a {
compatible = "wlf,wm8731";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8737.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8737 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8737"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8737@1a {
compatible = "wlf,wm8737";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8741.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8741 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8741"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8741@1a {
compatible = "wlf,wm8741";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8750.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8750 and WM8987 audio CODECs

These devices support both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8750" or "wlf,wm8987"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8750@1a {
compatible = "wlf,wm8750";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8753.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8753 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8753"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8737@1a {
compatible = "wlf,wm8753";
reg = <0x1a>;
};
16 changes: 16 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8770.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
WM8770 audio CODEC

This device supports SPI.

Required properties:

- compatible : "wlf,wm8770"

- reg : the chip select number.

Example:

codec: wm8770@1 {
compatible = "wlf,wm8770";
reg = <1>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8776.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8776 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8776"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8776@1a {
compatible = "wlf,wm8776";
reg = <0x1a>;
};
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/sound/wm8804.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
WM8804 audio CODEC

This device supports both I2C and SPI (configured with pin strapping
on the board).

Required properties:

- compatible : "wlf,wm8804"

- reg : the I2C address of the device for I2C, the chip select
number for SPI.

Example:

codec: wm8804@1a {
compatible = "wlf,wm8804";
reg = <0x1a>;
};
6 changes: 6 additions & 0 deletions Documentation/sound/alsa/ALSA-Configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,12 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
disable)
power_save_controller - Reset HD-audio controller in power-saving mode
(default = on)
align_buffer_size - Force rounding of buffer/period sizes to multiples
of 128 bytes. This is more efficient in terms of memory
access but isn't required by the HDA spec and prevents
users from specifying exact period/buffer sizes.
(default = on)
snoop - Enable/disable snooping (default = on)

This module supports multiple cards and autoprobe.

Expand Down
16 changes: 16 additions & 0 deletions Documentation/sound/alsa/HD-Audio-Controls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,19 @@ Conexant codecs

* Auto-Mute Mode
See Reatek codecs.


Analog codecs
--------------

* Channel Mode
This is an enum control to change the surround-channel setup,
appears only when the surround channels are available.
It gives the number of channels to be used, "2ch", "4ch" and "6ch".
According to the configuration, this also controls the
jack-retasking of multi-I/O jacks.

* Independent HP
When this enum control is enabled, the headphone output is routed
from an individual stream (the third PCM such as hw:0,2) instead of
the primary stream.
Loading

0 comments on commit 68d99b2

Please sign in to comment.