Fix problem with reloading config of new capture devices

with same card/device numbers.

Bug: 17012657
Change-Id: I7cb50aedc538d8c648e7f66c8e153cf47ce12577
This commit is contained in:
Paul McLean 2014-08-13 15:32:34 -07:00 committed by Glenn Kasten
parent af5187efbd
commit 93d4e0db0e

View 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;