Fix problem with reloading config of new capture devices
with same card/device numbers. Bug: 17012657 Change-Id: I7cb50aedc538d8c648e7f66c8e153cf47ce12577
This commit is contained in:
parent
af5187efbd
commit
93d4e0db0e
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue