OSDN Git Service

Fix problem with reloading config of new devices with same card/device numbers.
authorPaul McLean <pmclean@google.com>
Tue, 12 Aug 2014 20:57:10 +0000 (13:57 -0700)
committerPaul McLean <pmclean@google.com>
Tue, 12 Aug 2014 20:57:10 +0000 (13:57 -0700)
Bug 16981885

Change-Id: I65c6c418ee0d0f42c87379b614f64302d27f8e77

modules/usbaudio/alsa_device_proxy.c
modules/usbaudio/audio_hw.c

index b887d1d..63a27e7 100644 (file)
@@ -48,7 +48,7 @@ void proxy_prepare(alsa_device_proxy * proxy, alsa_device_profile* profile,
 
     proxy->profile = profile;
 
-#if LOG_PCM_PARAMS
+#ifdef LOG_PCM_PARAMS
     log_pcm_config(config, "proxy_setup()");
 #endif
 
index 22d5e0f..594f4bc 100644 (file)
@@ -328,8 +328,7 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
     if (param_val >= 0)
         device = atoi(value);
 
-    if ((card >= 0) && (card != out->profile->card) &&
-            (device >= 0) && (device != out->profile->device)) {
+    if (card >= 0 && device >= 0) {
         /* cannot read pcm device info if playback is active */
         if (!out->standby)
             ret_value = -ENOSYS;