OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14587b6
)
More fixes...
author
Jaroslav Kysela
<perex@perex.cz>
Sun, 14 Nov 1999 20:24:46 +0000
(20:24 +0000)
committer
Jaroslav Kysela
<perex@perex.cz>
Sun, 14 Nov 1999 20:24:46 +0000
(20:24 +0000)
src/pcm/plugin/linear.c
patch
|
blob
|
history
diff --git
a/src/pcm/plugin/linear.c
b/src/pcm/plugin/linear.c
index
456418a
..
0852fb8
100644
(file)
--- a/
src/pcm/plugin/linear.c
+++ b/
src/pcm/plugin/linear.c
@@
-165,6
+165,7
@@
static ssize_t linear_transfer(snd_pcm_plugin_t *plugin,
case _16BIT_8BIT:
if (dst_size < (src_size >> 1))
return -EINVAL;
+ src_size >>= 1;
switch (data->endian) {
case NONE:
linear_conv_16bit_8bit((short *)src_ptr, dst_ptr, src_size);
@@
-181,7
+182,7
@@
static ssize_t linear_transfer(snd_pcm_plugin_t *plugin,
default:
return -EINVAL;
}
- return src_size
>> 1
;
+ return src_size;
default:
return -EIO;
}