diff options
author | Paul McLean <pmclean@google.com> | 2014-08-12 13:57:10 -0700 |
---|---|---|
committer | Paul McLean <pmclean@google.com> | 2014-08-12 13:57:10 -0700 |
commit | af5187efbddfe7d47238ed28e48b13ca4b96b9fe (patch) | |
tree | 0f4e0e7e1e675096c8239dd0aa85dbf8ab85cffe /modules/usbaudio/audio_hw.c | |
parent | 9605e80e18c5361d867d70b6c4ee8efd22dee058 (diff) | |
download | hardware_libhardware-af5187efbddfe7d47238ed28e48b13ca4b96b9fe.zip hardware_libhardware-af5187efbddfe7d47238ed28e48b13ca4b96b9fe.tar.gz hardware_libhardware-af5187efbddfe7d47238ed28e48b13ca4b96b9fe.tar.bz2 |
Fix problem with reloading config of new devices with same card/device numbers.
Bug 16981885
Change-Id: I65c6c418ee0d0f42c87379b614f64302d27f8e77
Diffstat (limited to 'modules/usbaudio/audio_hw.c')
-rw-r--r-- | modules/usbaudio/audio_hw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/usbaudio/audio_hw.c b/modules/usbaudio/audio_hw.c index 22d5e0f..594f4bc 100644 --- a/modules/usbaudio/audio_hw.c +++ b/modules/usbaudio/audio_hw.c @@ -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; |