28 Apr, 2009
1 commit
-
Added SNDRV_PCM_INFO_BATCH flag to PCM info field of some drivers that
really don't give the precise pointer value.Signed-off-by: Takashi Iwai
27 Apr, 2009
2 commits
-
* fix/caiaq:
ALSA: snd-usb-caiaq: fix reported elapsed periods -
Reset the internal period position counter upon stream startup. This
fixes initial aplay underruns and problems related to latency picky
applications such as pulseaudio.Bumped the version number to 1.3.14.
Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai
21 Apr, 2009
1 commit
-
* fix/usx2y:
ALSA: us122l: add snd_us122l_free()
ALSA: us122l: Fix signedness in comparisions
20 Apr, 2009
1 commit
-
Use it to clean up snd_us122l_card_used[].
Without patch unplugging of an US122L soundcard didn't reset the
corresponding element of snd_us122l_card_used[] to 0.
The (SNDRV_CARDS + 1)th plugging in did not result in creating the soundcard
device anymore.
Index values supplied with the modprobe command line were not used correctly
anymore after the first unplugging of an US122L.Signed-off-by: Karsten Wiese
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai
17 Apr, 2009
1 commit
-
Within 2.6.30's mergewindow, struct urb's transfer_buffer_length has become
unsigned. This changed an "int > int" comparision to an "unsigned > int" one
in snd_usb_122l.
Fix this by using a local int variable instead of urb->transfer_buffer_length
in comparisions.Shorten playback_prep_freqn() a bit and tweak error-paths in
usb_stream_prepare_playback().Signed-off-by: Karsten Wiese
Signed-off-by: Takashi Iwai
15 Apr, 2009
1 commit
-
* topic/memdup_user:
ALSA: sound/pci: use memdup_user()
ALSA: sound/usb: use memdup_user()
ALSA: sound/isa: use memdup_user()
ALSA: sound/core: use memdup_user()
14 Apr, 2009
3 commits
-
Cleanup only, no functional change.
Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Remove open-coded memdup_user().
Signed-off-by: Li Zefan
Signed-off-by: Takashi Iwai
07 Apr, 2009
4 commits
-
To enable periods shorter than 1 ms, we have to make sure that short
periods are only available for alternate settings that have a small
enough data packet interval. Furthermore, the code that aligns URBs to
USB frames is now superfluous.Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai -
The data packet interval needs to be available in the audioformat
structure, together with the other audio format parameters, so that it
can be used to influence ALSA hardware parameters.Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai -
This removes the check_hw_params_convention() function because
1) it is not necessary, as the hw_rule_* functions also work correctly
(i.e., as no-ops) when the device supports all combinations of the
audio format parameters; and
2) it would become too complex when adding a fourth altsetting-dependent
hardware parameter, as this would require another three loops to
check dependecies with rate/channels/format.Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai -
When listing the device's sample formats in the stream? proc file, the
sample format number itself is rather obscure, so we better show the
format width, too.Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai
24 Mar, 2009
5 commits
18 Mar, 2009
3 commits
-
Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Drop inbound packets that are smaller than expected. This has been
observed at the very beginning of the streaming transaction.And when the hardware is in panic mode (which can only very rarely
happen in case of massive EMI chaos), mute the input channels.Signed-off-by: Daniel Mack
Tested-by: Mark Hills
Signed-off-by: Takashi Iwai -
Limit the number of printed warnings to one in case of streaming errors.
printk() happens to be expensive, especially in code called as often as
here.Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai
02 Mar, 2009
2 commits
-
When checking for the maximum queue length, we have to take into account
that MAX_QUEUE is measured in milliseconds (i.e., frames) while the unit
of urb_packs is whatever data packet interval the device uses (possibly
less than one frame when using high speed devices).Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai -
When storing the channel numbers used by a format, and if the device
happens to support 32 channels, the code would try to store 1<<<
Signed-off-by: Takashi Iwai
26 Feb, 2009
2 commits
-
Fix this sparse warning:
sound/usb/usx2y/usbusx2y.c:231:33: warning: do-while statement is not a compound statementSigned-off-by: Hannes Eder
Signed-off-by: Takashi Iwai -
Impact: Move declaration to header file.
Fix this sparse warning:
sound/usb/usx2y/usx2yhwdeppcm.c:739:5: warning: symbol 'usX2Y_hwdep_pcm_new' was not declared. Should it be static?Signed-off-by: Hannes Eder
Signed-off-by: Takashi Iwai
20 Feb, 2009
1 commit
-
Remove the MIN_PACKS_URB symbol because other limits can force the
number of packets down to one, regardless of the value of this symbol,
and nobody has ever changed it anyway.Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai
17 Feb, 2009
2 commits
-
The CM6207 incorrectly advertises its 96 kHz playback setting as 48 kHz
in its USB device descriptor. This patch extends an existing workaround
in usbaudio.c to also cover the CM6207.This resolves issue 0004249 in the ALSA bug tracker.
Signed-off-by: Joris van Rantwijk
Cc:
Signed-off-by: Takashi Iwai -
The detection of non-continuous rates (given via rate tables) isn't
processed properly (e.g. for type II).This patch fixes and simplifies the detection code.
Tested-by: Joris van Rantwijk
Cc:
Signed-off-by: Takashi Iwai
16 Feb, 2009
1 commit
-
Fix the snd_usbmidi_create_endpoints_midiman() function, which forgot to
set the out_interval member of the endpoint info structure for Midiman/
M-Audio devices. Since kernel 2.6.24, any non-zero value makes the
driver use interrupt transfers instead of bulk transfers. With EHCI
controllers, these random interval values result in unbearably large
latencies for output MIDI transfers.Signed-off-by: Clemens Ladisch
Reported-by: David
Tested-by: David
Cc:
Signed-off-by: Takashi Iwai
06 Feb, 2009
1 commit
-
For audio devices that do not have proper audio descriptors (e.g.,
Edirol UA-20), we use hardcoded parameters from our quirks list.
However, we must still read the maximum packet size from the standard
endpoint descriptor; otherwise, we might use packets that are too big
and therefore rejected by the USB core.Signed-off-by: Clemens Ladisch
Cc:
Signed-off-by: Takashi Iwai
05 Feb, 2009
7 commits
-
Signed-off-by: Takashi Iwai
-
Indicates fixes affecting control messages and switching of input mode
on Audio 8 DJ and Audio 4 DJ.Signed-off-by: Mark Hills
Acked-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Remove a duplicate control which causes an error when it is registered,
and causes later controls to not be registered. The device does not have
a fourth ground lift control.Signed-off-by: Mark Hills
Acked-by: Daniel Mack
Signed-off-by: Takashi Iwai -
In the context of the Audio 4 DJ (when compared to Audio 8 DJ), hardware
input mode 0 is not used. Expose modes 1 (line) and 2 (phono) to the user
as modes 0 and 1 respectively.Signed-off-by: Mark Hills
Acked-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Do not start the device with input mode undefined. Mimic the behaviour of
the Audio 8 DJ and start in phono input mode.Signed-off-by: Mark Hills
Acked-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Fixes a bug where an incorrect command was sent which had no effect on the
device.Signed-off-by: Mark Hills
Acked-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Remove NOP hwdep ops in sound drivers.
Signed-off-by: Takashi Iwai
27 Jan, 2009
2 commits
-
Rather use printf format instead of hardcoding prefix like 0x.
A next step would be to predefine certain formats.Signed-off-by: Andreas Bergmeier
Signed-off-by: Takashi Iwai -
Distribute the packets evenly among the URBs, instead of making all URBs
except the last one to have the maximum size. This makes the timing of
pointer updates more regular and removes some special cases from the
code.Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai