linux/sound/isa
Takashi Sakamoto 6dbaf8b913 ALSA: sb: remove needless evaluation in implementation for copy callback
In design of ALSA pcm core, 'struct snd_pcm_ops.copy' is expected to
copy PCM frames, according to frame alignment on intermediate buffer for
userspace and dedicated buffer for data transmission. In this callback,
value of 'channel' argument depends on the frame alignment, which drivers
registers to runtime of PCM substream. When target devices can handle
non-interleaved buffer, this value has positive value, otherwise negative.

ALSA driver for PCM component of EMU8000 chip is programmed with local
macro to switch the frame alignment. The 'copy' operation in
non-interleaved side has evaluation of the 'channel' argument (actually
it's 'voice' argument). This is useless.

This commit remove the evaluation.

[tiwai: the negative channel argument was the inheritance from the old
 code where -1 was meant for interleaved mode.  The mix-up was dropped
 meanwhile, thus it's correct to assume that we receive no longer -1
 there, and it's safe to cleanup the relevant code.

 Also, voice=0 for channel==1 is trivial, and it can be dropped, too.]

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-05-24 23:49:38 +02:00
..
ad1816a ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
ad1848 Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
cs423x Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
es1688 Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
galaxy Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
gus ALSA: gus: remove unused local flag 2017-05-24 23:47:42 +02:00
msnd Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
opti9xx Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sb ALSA: sb: remove needless evaluation in implementation for copy callback 2017-05-24 23:49:38 +02:00
wavefront Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
wss ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
adlib.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
als100.c ASoC: sb16: Simplify snd_sb16dsp_pcm() 2015-01-02 16:28:35 +01:00
azt2320.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
cmi8328.c ALSA: cmi8238: Use IS_ENABLED() 2017-05-17 07:13:05 +02:00
cmi8330.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
es18xx.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
Kconfig ALSA: Add missing dependency on CONFIG_SND_TIMER 2016-01-27 07:10:38 +01:00
Makefile ALSA: introduce snd-cmi8328: C-Media CMI8328 driver 2012-08-21 07:30:46 +02:00
opl3sa2.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sc6000.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sscape.c ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00