deliverable/linux.git
10 years agoALSA: echoaudio: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 15:43:02 +0000 (16:43 +0100)] 
ALSA: echoaudio: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: cs46xx: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 15:36:51 +0000 (16:36 +0100)] 
ALSA: cs46xx: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: cs5535audio: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 15:10:25 +0000 (16:10 +0100)] 
ALSA: cs5535audio: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: ca0106: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 15:04:05 +0000 (16:04 +0100)] 
ALSA: ca0106: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
A couple of prints are difficult to convert with dev_err() so they are
converted to pr_err() at least.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: aw2: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 14:54:30 +0000 (15:54 +0100)] 
ALSA: aw2: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
A couple of prints are difficult to convert with dev_err() so they are
converted to pr_err() at least.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: ali5451: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 14:48:50 +0000 (15:48 +0100)] 
ALSA: ali5451: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
Some debug prints are replaced with dev_dbg(), too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: ac97: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 14:37:50 +0000 (15:37 +0100)] 
ALSA: ac97: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: via82xx_modem: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 14:25:50 +0000 (15:25 +0100)] 
ALSA: via82xx_modem: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: via82xx: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 14:21:56 +0000 (15:21 +0100)] 
ALSA: via82xx: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: sonicvibes: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 14:16:04 +0000 (15:16 +0100)] 
ALSA: sonicvibes: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
The debug prints are also reformatted to suit with dev_dbg().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: rme96: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 14:03:18 +0000 (15:03 +0100)] 
ALSA: rme96: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: rme32: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:57:03 +0000 (14:57 +0100)] 
ALSA: rme32: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: maestro3: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:43:41 +0000 (14:43 +0100)] 
ALSA: maestro3: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: intel8x0m: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:40:45 +0000 (14:40 +0100)] 
ALSA: intel8x0m: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: intel8x0: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:37:14 +0000 (14:37 +0100)] 
ALSA: intel8x0: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: fm801: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:31:35 +0000 (14:31 +0100)] 
ALSA: fm801: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: es1968: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:29:55 +0000 (14:29 +0100)] 
ALSA: es1968: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: es1938: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:21:18 +0000 (14:21 +0100)] 
ALSA: es1938: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
Some debug prints are replaced with dev_dbg(), too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: ens137x: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:16:53 +0000 (14:16 +0100)] 
ALSA: ens137x: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: cs5530: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:13:16 +0000 (14:13 +0100)] 
ALSA: cs5530: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: cs4281: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:11:14 +0000 (14:11 +0100)] 
ALSA: cs4281: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: cmipci: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 11:39:30 +0000 (12:39 +0100)] 
ALSA: cmipci: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
Some commented debug prints are also enabled as dev_dbg().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: bt87x: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:08:22 +0000 (14:08 +0100)] 
ALSA: bt87x: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: azt3328: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 13:04:46 +0000 (14:04 +0100)] 
ALSA: azt3328: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
All debug print macros have been replaced with dev_dbg(), too.
Also, added the missing definition of snd_azf3328_ctrl_inw().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: azt3328: Remove function debug prints
Takashi Iwai [Tue, 25 Feb 2014 11:59:05 +0000 (12:59 +0100)] 
ALSA: azt3328: Remove function debug prints

We have a better infrastructure in general, so let's reduce the
home-baked debug macros.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: atiixp-modem: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 11:56:40 +0000 (12:56 +0100)] 
ALSA: atiixp-modem: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: atiixp: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 11:54:24 +0000 (12:54 +0100)] 
ALSA: atiixp: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: als4000: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 11:51:05 +0000 (12:51 +0100)] 
ALSA: als4000: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: als300: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 11:48:27 +0000 (12:48 +0100)] 
ALSA: als300: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.
Also, correct the printk level appropriately.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: als300: Remove function debug prints
Takashi Iwai [Tue, 25 Feb 2014 11:46:10 +0000 (12:46 +0100)] 
ALSA: als300: Remove function debug prints

We have a better infrastructure in general, so let's reduce the
home-baked debug macros.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: ad1889: Use standard printk helpers
Takashi Iwai [Tue, 25 Feb 2014 11:43:13 +0000 (12:43 +0100)] 
ALSA: ad1889: Use standard printk helpers

Convert with dev_err() and co from snd_printk(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: rme96: Convert to the new pm_ops
Takashi Iwai [Tue, 25 Feb 2014 14:01:15 +0000 (15:01 +0100)] 
ALSA: rme96: Convert to the new pm_ops

This driver slipped from the last rewrite.  Just convert to the new
standard pm ops.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Avoid codec D3 for keeping mute LED up on Lenovo Yxx0
Takashi Iwai [Mon, 13 Jan 2014 15:18:25 +0000 (16:18 +0100)] 
ALSA: hda - Avoid codec D3 for keeping mute LED up on Lenovo Yxx0

The GPIO line used for the mute LED control on Lenovo Yxx0 laptops is
cleared unexpectedly when the codec goes to D3, typically by
power-saving.  For avoiding it, add a power filter in the fixup.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16373
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: rawmidi: remove undefined functions.
Takashi Sakamoto [Fri, 21 Feb 2014 02:18:57 +0000 (11:18 +0900)] 
ALSA: rawmidi: remove undefined functions.

'snd_rawmidi_transmit_reset()' and 'snd_rawmidi_receive_reset()' are declared
but not defined.

This state has been continue over 10 years. So let us remove them.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: core: Fix missing card sysfs contents
Takashi Iwai [Wed, 19 Feb 2014 10:18:10 +0000 (11:18 +0100)] 
ALSA: core: Fix missing card sysfs contents

While moving the card device into struct snd_card, the reference to
the assigned card in sysfs show/store callbacks were forgotten to be
refreshed, still accessing to the no longer used drvdata.  Fix these
places to refer correctly via container_of().

Also, remove the superfluous NULL checks since it's guaranteed to be
non-NULL now.

Fixes: 8bfb181c17d2 ('ALSA: Embed card device into struct snd_card')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Add QEMU codec vendor ID
Takashi Iwai [Wed, 19 Feb 2014 10:11:20 +0000 (11:11 +0100)] 
ALSA: hda - Add QEMU codec vendor ID

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: usx2y: Don't peep the card internal object
Takashi Iwai [Fri, 14 Feb 2014 08:05:47 +0000 (09:05 +0100)] 
ALSA: usx2y: Don't peep the card internal object

Avoid traversing the device object list of the card instance just for
checking the PCM streams.  The driver's private object already
contains the array of substream pointers, so it can be simply looked
through.  The card internal may be restructured in future, thus better
not to rely on it.

Also, this fixes the possible deadlocks in PCM mutex.  Instead of
taking multiple PCM mutexes, just take the common mutex in all
places.  Along with it, rename prepare_mutex as pcm_mutex.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Remove superfluous inclusion of linux/pci.h
Takashi Iwai [Sat, 15 Feb 2014 09:12:12 +0000 (10:12 +0100)] 
ALSA: hda - Remove superfluous inclusion of linux/pci.h

Some codec drivers still have it since using PCI_VENDOR_ID_*.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda/realtek - Allow NULL bus->pci
Takashi Iwai [Sat, 15 Feb 2014 09:03:19 +0000 (10:03 +0100)] 
ALSA: hda/realtek - Allow NULL bus->pci

Realtek codec driver contains some codes referring to the PCI
subdevice IDs, but most of them are optional, typically for checking
the codec name variants.  Add NULL checks appropriately so that it can
work without PCI assignment.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Remove dependency on bus->pci in hda_beep.c
Takashi Iwai [Sat, 15 Feb 2014 09:01:40 +0000 (10:01 +0100)] 
ALSA: hda - Remove dependency on bus->pci in hda_beep.c

The default parent device can be obtained directly via card object, so
we don't need to rely on pci->dev.parent.  Since there is no access to
pci_dev, we can reduce the inclusion of linux/pci.h, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: ak4117: Do not free priv until timer handler hasn't actually stopped using it
Kirill Tkhai [Fri, 14 Feb 2014 11:47:57 +0000 (15:47 +0400)] 
ALSA: ak4117: Do not free priv until timer handler hasn't actually stopped using it

Function del_timer() does not guarantee that timer was really deleted.
If the timer handler is beeing executed at the moment, the function
does nothing. So, it's possible to use already freed memory in the handler:

[ref: Documentation/DocBook/kernel-locking.tmpl]

This was found using grep and compile-tested only.

Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Drop __bitwise and typedefs for snd_device attributes
Takashi Iwai [Wed, 29 Jan 2014 14:13:33 +0000 (15:13 +0100)] 
ALSA: Drop __bitwise and typedefs for snd_device attributes

Using __bitwise and typedefs for the attributes of snd_device struct
isn't so useful, and rather it worsens the readability.  Let's drop
them and use the straightforward enum.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: i2c/ak413x: Use SNDRV_DEV_CODEC for ak413x codec objects
Takashi Iwai [Tue, 4 Feb 2014 10:18:23 +0000 (11:18 +0100)] 
ALSA: i2c/ak413x: Use SNDRV_DEV_CODEC for ak413x codec objects

... instead of SNDRV_DEV_LOWLEVEL.
No functional change at this point.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: aoa: Use SNDRV_DEV_CODEC for AOA codec objects
Takashi Iwai [Tue, 4 Feb 2014 10:16:31 +0000 (11:16 +0100)] 
ALSA: aoa: Use SNDRV_DEV_CODEC for AOA codec objects

... instead of SNDRV_DEV_LOWLEVEL.
No functional change at this point.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: usb-audio: Use SNDRV_DEV_CODEC for mixer objects
Takashi Iwai [Tue, 4 Feb 2014 10:15:31 +0000 (11:15 +0100)] 
ALSA: usb-audio: Use SNDRV_DEV_CODEC for mixer objects

Instead of SNDRV_DEV_LOWLEVEL, use SNDRV_DEV_CODEC type for mixer
objects so that they are managed in a proper release order.
No functional change at this point.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: seq_oss: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:24:04 +0000 (18:24 +0100)] 
ALSA: seq_oss: Use standard printk helpers

Use the standard pr_xxx() helpers instead of home-baked snd_print*().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: seq: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:24:34 +0000 (18:24 +0100)] 
ALSA: seq: Use standard printk helpers

Use the standard pr_xxx() helpers instead of home-baked snd_print*().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: timer: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:22:39 +0000 (18:22 +0100)] 
ALSA: timer: Use standard printk helpers

Use the standard pr_xxx() helpers instead of home-baked snd_print*().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: oss: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:22:11 +0000 (18:22 +0100)] 
ALSA: oss: Use standard printk helpers

Use dev_err() & co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hwdep: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:21:54 +0000 (18:21 +0100)] 
ALSA: hwdep: Use standard printk helpers

Use dev_err() & co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: rawmidi: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:21:39 +0000 (18:21 +0100)] 
ALSA: rawmidi: Use standard printk helpers

Use dev_err() & co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: core: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:21:03 +0000 (18:21 +0100)] 
ALSA: core: Use standard printk helpers

Use dev_err() & co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: pcm: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:19:48 +0000 (18:19 +0100)] 
ALSA: pcm: Use standard printk helpers

Use dev_err() & co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

For simplicity, introduce new helpers for pcm stream, pcm_err(), etc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: control: Use standard printk helpers
Takashi Iwai [Tue, 4 Feb 2014 17:18:16 +0000 (18:18 +0100)] 
ALSA: control: Use standard printk helpers

Use dev_err() & co as much as possible.  If not available (no device
assigned at the calling point), use pr_xxx() helpers instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: seq_oss: Drop debug prints
Takashi Iwai [Tue, 4 Feb 2014 17:04:49 +0000 (18:04 +0100)] 
ALSA: seq_oss: Drop debug prints

The debug prints in snd-seq-oss module are rather useless.
Let's clean up before further modifications.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Use standard device refcount for card accounting
Takashi Iwai [Wed, 29 Jan 2014 11:13:43 +0000 (12:13 +0100)] 
ALSA: Use standard device refcount for card accounting

Drop the own refcount but use the standard device refcounting via
get_device() and put_device().  Introduce a new completion to snd_card
instead of the wait queue for syncing the last release, which is used
in snd_card_free().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Use static groups for id and number card sysfs attr files
Takashi Iwai [Wed, 29 Jan 2014 10:54:10 +0000 (11:54 +0100)] 
ALSA: Use static groups for id and number card sysfs attr files

... instead of calling device_create_file() manually.
No functional change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Embed card device into struct snd_card
Takashi Iwai [Wed, 29 Jan 2014 10:46:11 +0000 (11:46 +0100)] 
ALSA: Embed card device into struct snd_card

As prepared in the previous patch, we are ready to create a device
struct for the card object in snd_card_create() now.  This patch
changes the scheme from the old style to:

- embed a device struct for the card object into snd_card struct,
- initialize the card device in snd_card_create() (but not register),
- registration is done in snd_card_register() via device_add()

The actual card device is stored in card->card_dev.  The card->dev
pointer is kept unchanged and pointing to the parent device as before
for compatibility reason.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agousb: gadget: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 14:04:31 +0000 (15:04 +0100)] 
usb: gadget: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agostaging/media: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 14:03:37 +0000 (15:03 +0100)] 
staging/media: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agostaging/line6: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 14:02:40 +0000 (15:02 +0100)] 
staging/line6: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agothinkpad_acpi: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 14:01:27 +0000 (15:01 +0100)] 
thinkpad_acpi: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years ago[media] Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:48:43 +0000 (14:48 +0100)] 
[media] Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoHID: prodikeys: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:46:08 +0000 (14:46 +0100)] 
HID: prodikeys: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoASoC: core: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:42:55 +0000 (14:42 +0100)] 
ASoC: core: Convert to snd_card_new() with a device pointer

Also remove superfluous card->dev assignment.

Reviewed-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: spi: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:41:58 +0000 (14:41 +0100)] 
ALSA: spi: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: sparc: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:41:09 +0000 (14:41 +0100)] 
ALSA: sparc: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: sh: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:40:03 +0000 (14:40 +0100)] 
ALSA: sh: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: ppc: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:38:59 +0000 (14:38 +0100)] 
ALSA: ppc: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: pcmcia: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:37:20 +0000 (14:37 +0100)] 
ALSA: pcmcia: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: parisc: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:35:40 +0000 (14:35 +0100)] 
ALSA: parisc: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: mips: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:34:47 +0000 (14:34 +0100)] 
ALSA: mips: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: au1x00: convert to platform device
Manuel Lauss [Sun, 29 Mar 2009 09:47:06 +0000 (11:47 +0200)] 
ALSA: au1x00: convert to platform device

Make sound/mips/au1x00.c a proper platform_driver.

[minor coding style fixes, cleanup and forward-ported by tiwai]

Cc: Charles Eidsness <charles@cooper-street.com>
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: atmel: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:26:22 +0000 (14:26 +0100)] 
ALSA: atmel: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: arm: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:25:18 +0000 (14:25 +0100)] 
ALSA: arm: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: firewire: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:23:55 +0000 (14:23 +0100)] 
ALSA: firewire: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: usb: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:22:20 +0000 (14:22 +0100)] 
ALSA: usb: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: pci: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 13:20:19 +0000 (14:20 +0100)] 
ALSA: pci: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: isa: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 12:03:56 +0000 (13:03 +0100)] 
ALSA: isa: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: drivers: Convert to snd_card_new() with a device pointer
Takashi Iwai [Wed, 29 Jan 2014 11:59:08 +0000 (12:59 +0100)] 
ALSA: drivers: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Mandate to pass a device pointer at card creation time
Takashi Iwai [Wed, 29 Jan 2014 11:51:12 +0000 (12:51 +0100)] 
ALSA: Mandate to pass a device pointer at card creation time

This is a part of preliminary works for modernizing the ALSA device
structure.  So far, we set card->dev at later point after the object
creation.  Because of this, the core layer doesn't always know which
device is being handled before it's actually registered, and it makes
impossible to show the device in error messages, for example.  The
first goal is to achieve a proper struct device initialization at the
very beginning of probing.

As a first step, this patch introduces snd_card_new() function (yes
there was the same named function in the very past), in order to
receive the parent device pointer from the very beginning.
snd_card_create() is marked as deprecated.

At this point, there is no functional change other than that.  The
actual change of the device creation scheme will follow later.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Drop unused name argument in snd_register_oss_device()
Takashi Iwai [Tue, 4 Feb 2014 12:51:45 +0000 (13:51 +0100)] 
ALSA: Drop unused name argument in snd_register_oss_device()

The last argument, name, of snd_oss_register_device() is nowhere
referred in the function in the current code.  Let's drop it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoMerge branch 'for-linus' into for-next
Takashi Iwai [Wed, 12 Feb 2014 09:34:27 +0000 (10:34 +0100)] 
Merge branch 'for-linus' into for-next

10 years agoALSA: hda - Make snd_hda_gen_spec_free() static
Takashi Iwai [Mon, 10 Feb 2014 17:23:57 +0000 (18:23 +0100)] 
ALSA: hda - Make snd_hda_gen_spec_free() static

The last user of snd_hda_gen_spec_free() is patch_via.c, and we can
rewrite it safely with snd_hda_gen_free(), so that
snd_hda_gen_spec_free() can be a local function in hda_generic.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Disable static quirks for C-Media codecs
Takashi Iwai [Mon, 10 Feb 2014 17:18:17 +0000 (18:18 +0100)] 
ALSA: hda - Disable static quirks for C-Media codecs

According to alsa-info.sh outputs, all three entries with static
quirks have the correct pin configs, so it's safe to remove static
quirks.  For now, turn the static quirks off via ifdef.  The dead
codes will be removed in later release.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Move HDA_FIXUP_ACT_FREE call in snd_hda_gen_free()
Takashi Iwai [Mon, 10 Feb 2014 17:09:45 +0000 (18:09 +0100)] 
ALSA: hda - Move HDA_FIXUP_ACT_FREE call in snd_hda_gen_free()

Now Realtek and Conexant codec parsers just call snd_hda_gen_free().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Fix undefined symbol due to builtin/module mixup
Takashi Iwai [Mon, 10 Feb 2014 10:43:41 +0000 (11:43 +0100)] 
ALSA: hda - Fix undefined symbol due to builtin/module mixup

Even after the fix for leftover kconfig handling (commit f8f1becf),
the current code still doesn't handle properly the builtin/module
mixup case between the core snd-hda-codec and other codec drivers.
For example, when CONFIG_SND_HDA_INTEL=y and
CONFIG_SND_HDA_CODEC_HDMI=m, it'll end up with an unresolved symbol
snd_hda_parse_hdmi_codec.  This patch fixes the issue.

Now codec->parser points to the parser object *only* when a module
(either generic or HDMI parser) is loaded and bound.  When a builtin
symbol is used, codec->parser still points to NULL.  This is the
difference from the previous versions.

Fixes: f8f1becfa4ac ('ALSA: hda - Fix leftover ifdef checks after modularization')
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Replace with IS_ENABLED()
Takashi Iwai [Mon, 10 Feb 2014 08:48:47 +0000 (09:48 +0100)] 
ALSA: Replace with IS_ENABLED()

Replace the lengthy #if defined(XXX) || defined(XXX_MODULE) with the
new IS_ENABLED() macro.

The patch still doesn't cover all ifdefs.  For example, the dependency
on CONFIG_GAMEPORT is still open-coded because this also has an extra
dependency on MODULE.  Similarly, an open-coded ifdef in pcm_oss.c and
some sequencer-related stuff are left untouched.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: Fix typos in alsa-driver-api.xml
Masanari Iida [Sat, 8 Feb 2014 15:47:36 +0000 (00:47 +0900)] 
ALSA: Fix typos in alsa-driver-api.xml

This patch fixed 2 typos in DocBook/alsa-driver-api.xml.
It is because this file is generated by make xmldocs,
I have to fix typos within source files.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agosound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c
Rashika Kheria [Fri, 7 Feb 2014 16:46:31 +0000 (22:16 +0530)] 
sound: Move prototype declaration to header file oss/pas2.h from oss/pas2_card.c

Move prototype declaration of function to header file oss/pas2.h
from oss/pas2_card.c because it is used by more than one file.

This eliminates the following warnings in oss/pas2_mixer.c:
sound/oss/pas2_mixer.c:62:1: warning: no previous prototype for ‘mix_write’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: lx6464es: Remove unused function in pci/lx6464es/lx_core.c
Rashika Kheria [Fri, 7 Feb 2014 16:44:03 +0000 (22:14 +0530)] 
ALSA: lx6464es: Remove unused function in pci/lx6464es/lx_core.c

Remove unused function in pci/lx6464es/lx_core.c.

This eliminates the following warning in pci/lx6464es/lx_core.c:
sound/pci/lx6464es/lx_core.c:144:5: warning: no previous prototype for ‘lx_plx_mbox_read’ [-Wmissing-prototypes]
sound/pci/lx6464es/lx_core.c:172:5: warning: no previous prototype for ‘lx_plx_mbox_write’ [-Wmissing-prototypes]
sound/pci/lx6464es/lx_core.c:494:5: warning: no previous prototype for ‘lx_dsp_es_check_pipeline’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: pcsp: Include appropriate header file in pcsp/pcsp_input.c
Rashika Kheria [Fri, 7 Feb 2014 16:41:53 +0000 (22:11 +0530)] 
ALSA: pcsp: Include appropriate header file in pcsp/pcsp_input.c

Include appropriate header file in drivers/pcsp/pcsp_input.c because it
defines function whose prototype definitions are present in
drivers/pcsp/pcsp_input.h.

This eliminates the following warning in drivers/pcsp/pcsp_input.c:
sound/drivers/pcsp/pcsp_input.c:42:6: warning: no previous prototype for ‘pcspkr_stop_sound’ [-Wmissing-prototypes]
sound/drivers/pcsp/pcsp_input.c:80:5: warning: no previous prototype for ‘pcspkr_input_init’ [-Wmissing-prototypes]
sound/drivers/pcsp/pcsp_input.c:110:5: warning: no previous prototype for ‘pcspkr_input_remove’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Add subwoofer quirks for Asus UX51VZH and N55SF
David Henningsson [Fri, 7 Feb 2014 08:31:08 +0000 (09:31 +0100)] 
ALSA: hda - Add subwoofer quirks for Asus UX51VZH and N55SF

Bug reporter report that the -mode4 makes the subwoofer work.
I have simplified the quirk a bit to avoid possible regressions
with the microphones.

BugLink: https://bugs.launchpad.net/bugs/871808
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Rename ASUS subwoofer quirks
David Henningsson [Fri, 7 Feb 2014 08:31:07 +0000 (09:31 +0100)] 
ALSA: hda - Rename ASUS subwoofer quirks

Just a small refactoring to make the next patch slightly simpler.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Fix mic capture on Sony VAIO Pro 11
Takashi Iwai [Fri, 7 Feb 2014 11:07:59 +0000 (12:07 +0100)] 
ALSA: hda - Fix mic capture on Sony VAIO Pro 11

The very same fixup is needed to make the mic on Sony VAIO Pro 11
working as well as VAIO Pro 13 model.

Reported-and-tested-by: Hendrik-Jan Heins <hjheins@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Add a headset quirk for Dell XPS 13
David Henningsson [Fri, 7 Feb 2014 10:00:16 +0000 (11:00 +0100)] 
ALSA: hda - Add a headset quirk for Dell XPS 13

This quirk is needed for the headset microphone to work.

Alsa-info at http://www.alsa-project.org/db/?f=8c7dfe857ceff462ca2de133e67023c0f68de9cb

Cc: stable@vger.kernel.org (3.10+)
Reported-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Fix inconsistent Mic mute LED
Takashi Iwai [Thu, 30 Jan 2014 16:59:02 +0000 (17:59 +0100)] 
ALSA: hda - Fix inconsistent Mic mute LED

The current code for controlling mic mute LED in patch_sigmatel.c
blindly assumes that there is a single capture switch.  But, there can
be multiple multiple ones, and each of them flips the state, ended up
in an inconsistent state.

For fixing this problem, this patch adds kcontrol to be passed to the
hook function so that the callee can check which switch is being
accessed.  In stac_capture_led_hook(), the state is checked as a
bitmask, and turns on the LED when all capture switches are off.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Fix leftover ifdef checks after modularization
Takashi Iwai [Thu, 6 Feb 2014 17:14:03 +0000 (18:14 +0100)] 
ALSA: hda - Fix leftover ifdef checks after modularization

Since the commit [595fe1b702c3: ALSA: hda - Make
CONFIG_SND_HDA_CODEC_* tristate], the kconfig variables for the
generic parser and codec drivers can be "m" instead of boolean, but
some codes are left unchanged to check only #ifdef
CONFIG_SND_HDA_CODEC_XXX, which is no longer true for modules.
This patch fixes them by replacing with IS_ENABLED() macros.

Fixes: 595fe1b702c3 ('ALSA: hda - Make CONFIG_SND_HDA_CODEC_* tristate')
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=70161
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Improve loopback path lookups for AD1983
Takashi Iwai [Wed, 5 Feb 2014 07:49:41 +0000 (08:49 +0100)] 
ALSA: hda - Improve loopback path lookups for AD1983

AD1983 has flexible loopback routes and the generic parser would take
wrong path confusingly instead of taking individual paths via NID 0x0c
and 0x0d.  For avoiding it, limit the connections at these widgets so
that the parser can think more straightforwardly.  This fixes the
regression of the missing line-in loopback on Dell machine.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=70011
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
10 years agoALSA: hda - Fix missing VREF setup for Mac Pro 1,1
Takashi Iwai [Mon, 3 Feb 2014 10:02:10 +0000 (11:02 +0100)] 
ALSA: hda - Fix missing VREF setup for Mac Pro 1,1

Mac Pro 1,1 with ALC889A codec needs the VREF setup on NID 0x18 to
VREF50, in order to make the speaker working.  The same fixup was
already needed for MacBook Air 1,1, so we can reuse it.

Reported-by: Nicolai Beuermann <mail@nico-beuermann.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This page took 0.041913 seconds and 5 git commands to generate.