projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d513202
)
[ALSA] sb8: fix SB 1.0 capture DMA programming
author
Clemens Ladisch
<clemens@ladisch.de>
Mon, 25 Feb 2008 10:04:41 +0000
(11:04 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 29 Feb 2008 10:28:15 +0000
(11:28 +0100)
Fix a wrong version check that would cause an invalid command to be sent
to SB 1.0 chips.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/sb8_main.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/isa/sb/sb8_main.c
b/sound/isa/sb/sb8_main.c
index 6304c3a89ba0650b5a644c555f81dfded2cd2620..fe03bb820532beed11afd25dbfe8c67959ead1fa 100644
(file)
--- a/
sound/isa/sb/sb8_main.c
+++ b/
sound/isa/sb/sb8_main.c
@@
-277,7
+277,7
@@
static int snd_sb8_capture_prepare(struct snd_pcm_substream *substream)
} else {
snd_sbdsp_command(chip, 256 - runtime->rate_den);
}
- if (chip->capture_format != SB_DSP_
OUT
PUT) {
+ if (chip->capture_format != SB_DSP_
IN
PUT) {
count--;
snd_sbdsp_command(chip, SB_DSP_BLOCK_SIZE);
snd_sbdsp_command(chip, count & 0xff);