Remove sparse check for normal users
ALSA: pcm: Add snd_pcm_stop_xrun() helper

Add a new helper function snd_pcm_stop_xrun() to the standard sequnce
lock/snd_pcm_stop(XRUN)/unlock by a single call, and replace the
existing open codes with this helper.

The function checks the PCM running state to prevent setting the wrong
state, too, for more safety.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
[PATCH] ALSA: firewire-lib: fix kerneldoc errors

Complete missing parameters, correct wrong reference, and add an explaination
about the differences between the latest specification and our implementation.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
ALSA: firewire-lib: remove rx_blocks_for_midi quirk

There are several devices that expect to receive MIDI data only in the
first eight data blocks of a packet.  If the driver restricts the data
rate to the allowed rate (as mandated by the specification, but not yet
implemented by this driver), this happens naturally.  Therefore, there
is no reason to ever try to use more data packets with any device.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
ALSA: firewire-lib: limit the MIDI data rate

Do no send MIDI bytes at the full rate at which FireWire packets happen
to be sent, but restrict them to the actual rate of a real MIDI port.
This is required by the specification, and prevents data loss when the
device's buffer overruns.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
oxfw: improve codes according to maintainer's advices

[alsa-devel] [PATCH 25/29] ALSA: oxfw: Add support for Behringer/Mackie devices
http://mailman.alsa-project.org/pipermail/alsa-devel/2014-November/084174.html

[alsa-devel] [PATCH 26/29] ALSA: oxfw: Add support AMDTP in-stream
http://mailman.alsa-project.org/pipermail/alsa-devel/2014-November/084175.html
dice: obsolete atomic_t for reference counter

Dice driver uses atomic_t for reference counter of substreams (MIDI/PCM)
and mutex for operation of streams.

Originally, I added atomic_t to enclose larger critical sections inner
functions of -stream.c. But it's cumbersome that this driver uses some
mutual exclusive primitives for streams.

This commit obsoletes atomic_t and use mutex only.
oxfw: obsolete atomic_t for reference counter

OXFW driver uses atomic_t for reference counter of substreams (MIDI/PCM)
and mutex for operation of streams.

Originally, I added atomic_t to enclose larger critical sections inner
functions of -stream.c. But it's cumbersome that this driver uses some
mutual exclusive primitives for streams.

This commit obsoletes atomic_t and use mutex only.
sync to patch candidates.

[alsa-devel] [PATCH 00/30 v3] ALSA: Enhancement for existed FireWire drivers
http://mailman.alsa-project.org/pipermail/alsa-devel/2014-November/084791.html
fireworks: obsolete atomic_t for reference counter

Fireworks driver uses atomic_t for reference counter of substreams
(MIDI/PCM) and mutex for operation of streams.

Originally, I added atomic_t to enclose larger critical sections inner
functions of -stream.c. But it's cumbersome that this driver uses some
mutual exclusive primitives for streams.

This commit obsoletes atomic_t and use mutex only.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>