OSDN Git Service

Fix problem with reloading config of new capture devices
authorPaul McLean <pmclean@google.com>
Wed, 13 Aug 2014 22:32:34 +0000 (15:32 -0700)
committerGlenn 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

index 594f4bc..7e65ab5 100644 (file)
@@ -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;