14 Feb, 2014
1 commit
-
Also remove superfluous snd_card_set_dev() calls.
Reviewed-by: Takashi Sakamoto
Signed-off-by: Takashi Iwai
29 Nov, 2013
1 commit
-
The array limits are supposed to be in units of u32 instead of in bytes.
The current code has a potential array overflow.Fixes: c614475b0ea9 ('ALSA: dice: add a proc file to show device information')
Signed-off-by: Dan Carpenter
Acked-by: Clemens Ladisch
Signed-off-by: Takashi Iwai
27 Nov, 2013
1 commit
23 Nov, 2013
1 commit
-
Pull second set of sound fixes from Takashi Iwai:
"A collection of small fixes in HD-audio quirks and runtime PM, ASoC
rcar, abs8500 and other codecs. Most of commits are for stable
kernels, too"* tag 'sound-fix2-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ALSA: hda - Set current_headset_type to ALC_HEADSET_TYPE_ENUM (janitorial)
ALSA: hda - Provide missing pin configs for VAIO with ALC260
ALSA: hda - Add headset quirk for Dell Inspiron 3135
ALSA: hda - Fix the headphone jack detection on Sony VAIO TX
ALSA: hda - Fix missing bass speaker on ASUS N550
ALSA: hda - Fix unbalanced runtime PM notification at resume
ASoC: arizona: Set FLL to free-run before disabling
ALSA: hda - A casual Dell Headset quirk
ASoC: rcar: fixup dma_async_issue_pending() timing
ASoC: rcar: off by one in rsnd_scu_set_route()
ASoC: wm5110: Add post SYSCLK register patch for rev D chip
ASoC: ab8500: Revert to using custom I/O functions
ALSA: hda - Also enable mute/micmute LED control for "Lenovo dock" fixup
ALSA: firewire-lib: include sound/asound.h to refer to snd_pcm_format_t
ALSA: hda - Select FW_LOADER from CONFIG_SND_HDA_CODEC_CA0132_DSP
ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Realtek codec
ASoC: rcar: fixup mod access before checking
22 Nov, 2013
1 commit
-
This commit fix out of specification about the value of FDF field in out packet
with 'no data'. This affects blocking mode.According to IEC 61883-6, there is two way to generate AMDTP packets include no
data in blocking mode.Way 1. an empty packet defined in IEC 61883-1
- Size of packet is 2 quadlets.
- The value of FDF is sfc.
- The packet includes only CIP headersWay 2. a special non-empty packet defined in IEC 61883-6
- Size of packet is following to blocking mode
- The value of FDF is 0xff. This value is 'NO-DATA'. This means 'The receiver'
must ignore all the data in a CIP with this FDF code'.
- The packet includes dummy data.But current implementation is a combination of them.
- Size of packet is 2 (way 1)
- FDF = 0xff (way 2)
This causes BeBoB chipset cannot sound.This patch applies Way 1.
Signed-off-by: Takashi Sakamoto
Cc: Acked-by: Clemens Ladisch
Signed-off-by: Takashi Iwai
19 Nov, 2013
1 commit
-
'snd_pcm_format_t' is used by amdtp_out_stream_set_pcm_format().
Currently, when just including amdtp.h, compiler cannot find this type because
this type is defined in uapi/sound/asound.h and this header is not included by
amdtp.h.Signed-off-by: Takashi Sakamoto
Signed-off-by: Takashi Iwai
15 Nov, 2013
1 commit
-
Use this new function to make code more comprehensible, since we are
reinitialzing the completion, not initializing.[akpm@linux-foundation.org: linux-next resyncs]
Signed-off-by: Wolfram Sang
Acked-by: Linus Walleij (personally at LCE13)
Cc: Ingo Molnar
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
22 Oct, 2013
1 commit
21 Oct, 2013
28 commits
-
At the moment, this driver supports only playback, while FFADO supports
(only) full-duplex devices. So, prevent conflicts by not claiming
devices that would be better handled by FFADO.Signed-off-by: Clemens Ladisch
-
While most DICE devices keep TCAT's default category ID of 0x04, Weiss
devices identify themselves with 0x00.Reported-by: Rolf Anderegg
Signed-off-by: Clemens Ladisch -
Remove a wrong typecast that resulted from a copy-and-paste error.
Signed-off-by: Clemens Ladisch
-
Doing accesses without quadlet alignment is a bad idea because the
firmware's byte-swapping would garble the data; clarify this in the
documentation.Signed-off-by: Clemens Ladisch
-
For easier debugging, add a proc file to show the device's capabilities
and current status.Signed-off-by: Clemens Ladisch
-
Output a warning if the wait for the clock change notification times
out.Signed-off-by: Clemens Ladisch
-
Instead of relying of some control panel application to configure some
fixed sample rate, allow applications to set it automatically.Signed-off-by: Clemens Ladisch
-
In preparation for sample rate selection support, read the stream
parameters that might change when running at different sample rates.Signed-off-by: Clemens Ladisch
-
Reorganize the initialization order so that the driver can receive
notifications earlier.Signed-off-by: Clemens Ladisch
-
In preparation for sample rate selection support, ensure that the driver
knows about the device's clock capabilities.Signed-off-by: Clemens Ladisch
-
Signed-off-by: Clemens Ladisch
-
Avoid a lock inversion between dice->mutex and pcm->open_mutex.
Signed-off-by: Stefan Richter
Signed-off-by: Clemens Ladisch -
The pcm field was not actually used.
Signed-off-by: Clemens Ladisch
-
Since commit f2b3614cefb6 (Don't check DMA time-out too shortly), we
need no longer to restrict the period length to less than 10 s.Signed-off-by: Clemens Ladisch
-
When a bus reset happens, the enable register is automatically cleared,
so we do not need to clear it manually when stopping the stream.Signed-off-by: Clemens Ladisch
-
Add a flag to snd_fw_transaction() to allow it to abort when a bus reset
happens. This removes most of the duplicated error handling loops that
were required around calls to the low-level fw_run_transaction().Also add a flag to suppress error messages; errors are expected when we
attempt to clean up after the device was unplugged.Signed-off-by: Clemens Ladisch
-
Instead of reading two consecutive register with two quadlet requests,
use one block read request.Signed-off-by: Clemens Ladisch
-
Change the AMDTP streaming code to handle the non-standard stream format
that DICE devices use at sample rates greater than 96 kHz.Signed-off-by: Clemens Ladisch
-
DICE devices do not have a unique specifier ID in their unit directory
(it's always the same as the device vendor's ID), so rely on just the
version ID for driver loading, and use a heuristic in the probe callback
to detect actual DICE devices.Signed-off-by: Clemens Ladisch
-
Move the DICE interface symbols into a separate header file, and add
more documentation.Signed-off-by: Clemens Ladisch
-
Introduce the helper function amdtp_out_stream_running(). This makes
many checks in amdtp.c clearer and frees the device drivers from having
to track this with a separate variable.Signed-off-by: Clemens Ladisch
-
Ensure that misbehaving or aborted userspace programs do not
accidentally keep the lock.Signed-off-by: Clemens Ladisch
-
Implement the hwdep locking and notification mechanisms.
Signed-off-by: Clemens Ladisch
-
When aborting a PCM stream, the xrun is signaled only if the stream is
running. When disconnecting a PCM stream, calling snd_card_disconnect()
too early would change the stream into a non-running state and thus
prevent the xrun from being noticed by user space.To prevent this, move the snd_card_disconnect() call after the xrun.
Signed-off-by: Clemens Ladisch
-
Allow AMDTP output streams to use blocking mode.
Use it for DICE devices, because the old DICE-II chip will in some cases
not be able to lock to non-blocking streams (erratum E7).Signed-off-by: Clemens Ladisch
-
The notification bits are not of general interest; log them only when
debugging.Signed-off-by: Clemens Ladisch
-
Instead of forcing a constant 44.1 kHz, read the current sample rate
from the device when opening the PCM device.Actually changing the sample rate requires some separate controller
application.Signed-off-by: Clemens Ladisch
-
After a bus reset, do not stop the stream completely to avoid having to
reconfigure the device when restarting the stream.Signed-off-by: Clemens Ladisch
18 Oct, 2013
1 commit
-
As a start point for further development, this is an incomplete driver
for DICE devices:
- only playback (so no clock source except the bus clock)
- only 44.1 kHz
- no MIDI
- recovery after bus reset is slow
- hwdep device is created, but not actually implementedContains compilation fixes by Stefan Richter.
Signed-off-by: Clemens Ladisch
26 Sep, 2013
1 commit
-
Calculating frame bytes can be replaced with inline function in
include/sound/pcm.h.Signed-off-by: Takashi Sakamoto
Signed-off-by: Takashi Iwai
15 Jul, 2013
1 commit
11 Jul, 2013
1 commit
-
Pull firewire updates from Stefan Richter:
"Make struct ieee1394_device_id.driver_data actually avaliable to 1394
protocol drivers. This is especially useful to 1394 audio drivers for
model-specific parameters and methods"* tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
firewire: remove support of fw_driver.driver.probe and .remove methods
firewire: introduce fw_driver.probe and .remove methods