Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347431
b: refs/heads/master
c: a3adb14
h: refs/heads/master
i:
  347429: 129d9b8
  347427: 4a5b6a4
  347423: d6abf63
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Dec 10, 2012
1 parent 40d2c18 commit 2d8671f
Show file tree
Hide file tree
Showing 616 changed files with 8,607 additions and 16,390 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df68f106436b684520212494a5ce0e3823b485da
refs/heads/master: a3adb1432d7a3ad86bb17a1638e44414537e4118
85 changes: 57 additions & 28 deletions trunk/Documentation/DocBook/writing-an-alsa-driver.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@
/* chip-specific constructor
* (see "Management of Cards and Components")
*/
static int snd_mychip_create(struct snd_card *card,
struct pci_dev *pci,
struct mychip **rchip)
static int __devinit snd_mychip_create(struct snd_card *card,
struct pci_dev *pci,
struct mychip **rchip)
{
struct mychip *chip;
int err;
Expand Down Expand Up @@ -475,8 +475,8 @@
}
/* constructor -- see "Constructor" sub-section */
static int snd_mychip_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
static int __devinit snd_mychip_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
static int dev;
struct snd_card *card;
Expand Down Expand Up @@ -526,7 +526,7 @@
}
/* destructor -- see the "Destructor" sub-section */
static void snd_mychip_remove(struct pci_dev *pci)
static void __devexit snd_mychip_remove(struct pci_dev *pci)
{
snd_card_free(pci_get_drvdata(pci));
pci_set_drvdata(pci, NULL);
Expand All @@ -542,8 +542,9 @@
<para>
The real constructor of PCI drivers is the <function>probe</function> callback.
The <function>probe</function> callback and other component-constructors which are called
from the <function>probe</function> callback cannot be used with
the <parameter>__init</parameter> prefix
from the <function>probe</function> callback should be defined with
the <parameter>__devinit</parameter> prefix. You
cannot use the <parameter>__init</parameter> prefix for them,
because any PCI device could be a hotplug device.
</para>

Expand Down Expand Up @@ -727,7 +728,7 @@
<informalexample>
<programlisting>
<![CDATA[
static void snd_mychip_remove(struct pci_dev *pci)
static void __devexit snd_mychip_remove(struct pci_dev *pci)
{
snd_card_free(pci_get_drvdata(pci));
pci_set_drvdata(pci, NULL);
Expand Down Expand Up @@ -1057,6 +1058,14 @@
components are released automatically by this call.
</para>

<para>
As further notes, the destructors (both
<function>snd_mychip_dev_free</function> and
<function>snd_mychip_free</function>) cannot be defined with
the <parameter>__devexit</parameter> prefix, because they may be
called from the constructor, too, at the false path.
</para>

<para>
For a device which allows hotplugging, you can use
<function>snd_card_free_when_closed</function>. This one will
Expand Down Expand Up @@ -1111,9 +1120,9 @@
}
/* chip-specific constructor */
static int snd_mychip_create(struct snd_card *card,
struct pci_dev *pci,
struct mychip **rchip)
static int __devinit snd_mychip_create(struct snd_card *card,
struct pci_dev *pci,
struct mychip **rchip)
{
struct mychip *chip;
int err;
Expand Down Expand Up @@ -1191,7 +1200,7 @@
.name = KBUILD_MODNAME,
.id_table = snd_mychip_ids,
.probe = snd_mychip_probe,
.remove = snd_mychip_remove,
.remove = __devexit_p(snd_mychip_remove),
};
/* module initialization */
Expand Down Expand Up @@ -1455,6 +1464,11 @@
</informalexample>
</para>

<para>
Again, remember that you cannot
use the <parameter>__devexit</parameter> prefix for this destructor.
</para>

<para>
We didn't implement the hardware disabling part in the above.
If you need to do this, please note that the destructor may be
Expand Down Expand Up @@ -1605,7 +1619,7 @@
.name = KBUILD_MODNAME,
.id_table = snd_mychip_ids,
.probe = snd_mychip_probe,
.remove = snd_mychip_remove,
.remove = __devexit_p(snd_mychip_remove),
};
]]>
</programlisting>
Expand All @@ -1616,7 +1630,11 @@
The <structfield>probe</structfield> and
<structfield>remove</structfield> functions have already
been defined in the previous sections.
The <structfield>name</structfield>
The <structfield>remove</structfield> function should
be defined with the
<function>__devexit_p()</function> macro, so that it's not
defined for built-in (and non-hot-pluggable) case. The
<structfield>name</structfield>
field is the name string of this device. Note that you must not
use a slash <quote>/</quote> in this string.
</para>
Expand Down Expand Up @@ -1647,7 +1665,9 @@
<para>
Note that these module entries are tagged with
<parameter>__init</parameter> and
<parameter>__exit</parameter> prefixes.
<parameter>__exit</parameter> prefixes, not
<parameter>__devinit</parameter> nor
<parameter>__devexit</parameter>.
</para>

<para>
Expand Down Expand Up @@ -1898,7 +1918,7 @@
*/
/* create a pcm device */
static int snd_mychip_new_pcm(struct mychip *chip)
static int __devinit snd_mychip_new_pcm(struct mychip *chip)
{
struct snd_pcm *pcm;
int err;
Expand Down Expand Up @@ -1937,7 +1957,7 @@
<informalexample>
<programlisting>
<![CDATA[
static int snd_mychip_new_pcm(struct mychip *chip)
static int __devinit snd_mychip_new_pcm(struct mychip *chip)
{
struct snd_pcm *pcm;
int err;
Expand Down Expand Up @@ -2104,7 +2124,7 @@
....
}
static int snd_mychip_new_pcm(struct mychip *chip)
static int __devinit snd_mychip_new_pcm(struct mychip *chip)
{
struct snd_pcm *pcm;
....
Expand Down Expand Up @@ -3379,7 +3399,7 @@ struct _snd_pcm_runtime {
<title>Definition of a Control</title>
<programlisting>
<![CDATA[
static struct snd_kcontrol_new my_control = {
static struct snd_kcontrol_new my_control __devinitdata = {
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
.name = "PCM Playback Switch",
.index = 0,
Expand All @@ -3394,6 +3414,13 @@ struct _snd_pcm_runtime {
</example>
</para>

<para>
Most likely the control is created via
<function>snd_ctl_new1()</function>, and in such a case, you can
add the <parameter>__devinitdata</parameter> prefix to the
definition as above.
</para>

<para>
The <structfield>iface</structfield> field specifies the control
type, <constant>SNDRV_CTL_ELEM_IFACE_XXX</constant>, which
Expand Down Expand Up @@ -3820,8 +3847,10 @@ struct _snd_pcm_runtime {

<para>
<function>snd_ctl_new1()</function> allocates a new
<structname>snd_kcontrol</structname> instance,
and <function>snd_ctl_add</function> assigns the given
<structname>snd_kcontrol</structname> instance (that's why the definition
of <parameter>my_control</parameter> can be with
the <parameter>__devinitdata</parameter>
prefix), and <function>snd_ctl_add</function> assigns the given
control component to the card.
</para>
</section>
Expand Down Expand Up @@ -3867,7 +3896,7 @@ struct _snd_pcm_runtime {
<![CDATA[
static DECLARE_TLV_DB_SCALE(db_scale_my_control, -4050, 150, 0);
static struct snd_kcontrol_new my_control = {
static struct snd_kcontrol_new my_control __devinitdata = {
...
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE |
SNDRV_CTL_ELEM_ACCESS_TLV_READ,
Expand Down Expand Up @@ -5732,8 +5761,8 @@ struct _snd_pcm_runtime {
<informalexample>
<programlisting>
<![CDATA[
static int snd_mychip_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
static int __devinit snd_mychip_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
....
struct snd_card *card;
Expand All @@ -5758,8 +5787,8 @@ struct _snd_pcm_runtime {
<informalexample>
<programlisting>
<![CDATA[
static int snd_mychip_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
static int __devinit snd_mychip_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
....
struct snd_card *card;
Expand Down Expand Up @@ -5796,7 +5825,7 @@ struct _snd_pcm_runtime {
.name = KBUILD_MODNAME,
.id_table = snd_my_ids,
.probe = snd_my_probe,
.remove = snd_my_remove,
.remove = __devexit_p(snd_my_remove),
#ifdef CONFIG_PM
.suspend = snd_my_suspend,
.resume = snd_my_resume,
Expand Down
15 changes: 0 additions & 15 deletions trunk/Documentation/devicetree/bindings/misc/atmel-ssc.txt

This file was deleted.

22 changes: 0 additions & 22 deletions trunk/Documentation/devicetree/bindings/sound/ak4104.txt

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions trunk/Documentation/devicetree/bindings/sound/cs4271.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Optional properties:

- reset-gpio: a GPIO spec to define which pin is connected to the chip's
!RESET pin
- cirrus,amuteb-eq-bmutec: When given, the Codec's AMUTEB=BMUTEC flag
is enabled.

Examples:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Required properties:

Optional properties:
- ti,dmic: phandle for the OMAP dmic node if the machine have it connected
- ti,jack_detection: Need to be present if the board capable to detect jack
- ti,jack_detection: Need to be set to <1> if the board capable to detect jack
insertion, removal.

Available audio endpoints for the audio-routing table:
Expand Down Expand Up @@ -59,7 +59,7 @@ sound {
compatible = "ti,abe-twl6040";
ti,model = "SDP4430";

ti,jack-detection;
ti,jack-detection = <1>;
ti,mclk-freq = <38400000>;

ti,mcpdm = <&mcpdm>;
Expand Down
3 changes: 3 additions & 0 deletions trunk/Documentation/sound/alsa/ALSA-Configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
vid - Vendor ID for the device (optional)
pid - Product ID for the device (optional)
nrpacks - Max. number of packets per URB (default: 8)
async_unlink - Use async unlink mode (default: yes)
device_setup - Device specific magic number (optional)
- Influence depends on the device
- Default: 0x0000
Expand All @@ -1916,6 +1917,8 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
NB: nrpacks parameter can be modified dynamically via sysfs.
Don't put the value over 20. Changing via sysfs has no sanity
check.
NB: async_unlink=0 would cause Oops. It remains just for
debugging purpose (if any).
NB: ignore_ctl_error=1 may help when you get an error at accessing
the mixer element such as URB error -22. This happens on some
buggy USB device or the controller.
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/arm/boot/dts/at91sam9260.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
tcb0 = &tcb0;
tcb1 = &tcb1;
i2c0 = &i2c0;
ssc0 = &ssc0;
};
cpus {
cpu@0 {
Expand Down Expand Up @@ -213,13 +212,6 @@
status = "disabled";
};

ssc0: ssc@fffbc000 {
compatible = "atmel,at91rm9200-ssc";
reg = <0xfffbc000 0x4000>;
interrupts = <14 4 5>;
status = "disable";
};

adc0: adc@fffe0000 {
compatible = "atmel,at91sam9260-adc";
reg = <0xfffe0000 0x100>;
Expand Down
Loading

0 comments on commit 2d8671f

Please sign in to comment.