linux_dsm_epyc7002/sound/isa/sb
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
..
emu8000_callback.c sound: Remove unnecessary semicolon 2012-10-06 16:47:53 +02:00
emu8000_local.h [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
emu8000_patch.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
emu8000_pcm.c ALSA: sb: remove needless evaluation in implementation for copy callback 2017-05-24 23:49:38 +02:00
emu8000_synth.c ALSA: seq: Define driver object in each driver 2015-02-12 14:15:54 +01:00
emu8000.c ALSA: sb: Use IS_REACHABLE() 2017-05-17 07:13:06 +02:00
jazz16.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
Makefile ALSA: Merge es1688 and es968 drivers 2010-05-10 09:49:30 +02:00
sb8_main.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sb8_midi.c ALSA: isa: Constify snd_rawmidi_ops 2017-01-12 12:50:16 +01:00
sb8.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sb16_csp.c ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00
sb16_main.c ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00
sb16.c ALSA: sb: Use IS_REACHABLE() 2017-05-17 07:13:06 +02:00
sb_common.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sb_mixer.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sbawe.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00