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:
75911f8
)
Fixed mono conversion
author
Jaroslav Kysela
<perex@perex.cz>
Sat, 8 Dec 2001 09:32:50 +0000
(09:32 +0000)
committer
Jaroslav Kysela
<perex@perex.cz>
Sat, 8 Dec 2001 09:32:50 +0000
(09:32 +0000)
src/pcm/pcm_plug.c
patch
|
blob
|
history
diff --git
a/src/pcm/pcm_plug.c
b/src/pcm/pcm_plug.c
index
0ceb94b
..
656c742
100644
(file)
--- a/
src/pcm/pcm_plug.c
+++ b/
src/pcm/pcm_plug.c
@@
-320,9
+320,8
@@
static int snd_pcm_plug_change_channels(snd_pcm_t *pcm, snd_pcm_t **new, snd_pcm
ttable[k] = 0;
if (rpolicy == PLUG_ROUTE_POLICY_DEFAULT) {
rpolicy = PLUG_ROUTE_POLICY_COPY;
- if (pcm->stream == SND_PCM_STREAM_CAPTURE && clt->channels == 1)
- rpolicy = PLUG_ROUTE_POLICY_AVERAGE;
- if (pcm->stream == SND_PCM_STREAM_PLAYBACK && slv->channels == 1)
+ /* it's hack for mono conversion */
+ if (clt->channels == 1 || slv->channels == 1)
rpolicy = PLUG_ROUTE_POLICY_AVERAGE;
}
switch (rpolicy) {