OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af5187e
)
Fix problem with reloading config of new capture devices
author
Paul McLean
<pmclean@google.com>
Wed, 13 Aug 2014 22:32:34 +0000
(15:32 -0700)
committer
Glenn Kasten
<gkasten@google.com>
Wed, 13 Aug 2014 23:08:41 +0000
(23:08 +0000)
with same card/device numbers.
Bug:
17012657
Change-Id: I7cb50aedc538d8c648e7f66c8e153cf47ce12577
modules/usbaudio/audio_hw.c
patch
|
blob
|
history
diff --git
a/modules/usbaudio/audio_hw.c
b/modules/usbaudio/audio_hw.c
index
594f4bc
..
7e65ab5
100644
(file)
--- a/
modules/usbaudio/audio_hw.c
+++ b/
modules/usbaudio/audio_hw.c
@@
-714,8
+714,7
@@
static int in_set_parameters(struct audio_stream *stream, const char *kvpairs)
if (param_val >= 0)
device = atoi(value);
- if ((card >= 0) && (card != in->profile->card) &&
- (device >= 0) && (device != in->profile->device)) {
+ if (card >= 0 && device >= 0) {
/* cannot read pcm device info if playback is active */
if (!in->standby)
ret_value = -ENOSYS;