diff options
author | Paul McLean <pmclean@google.com> | 2014-08-20 16:50:25 -0700 |
---|---|---|
committer | Paul McLean <pmclean@google.com> | 2014-08-28 07:59:03 -0700 |
commit | 2c6196f20c2ca25f6e7f8e0f752c2cbc00113538 (patch) | |
tree | 3b83224400d36d9e89ce87a4f4456d98b86d2af7 /modules/usbaudio/alsa_device_profile.c | |
parent | 6edd4d605f1c4a5b53d18382ff01c24225e94b01 (diff) | |
download | hardware_libhardware-2c6196f20c2ca25f6e7f8e0f752c2cbc00113538.zip hardware_libhardware-2c6196f20c2ca25f6e7f8e0f752c2cbc00113538.tar.gz hardware_libhardware-2c6196f20c2ca25f6e7f8e0f752c2cbc00113538.tar.bz2 |
Fix problem with dropouts with multiple USB audio streams.
Bug 17136569
Change-Id: I94bdbe037533a3fd77f249fdd42f4d828d3bf87f
Diffstat (limited to 'modules/usbaudio/alsa_device_profile.c')
-rw-r--r-- | modules/usbaudio/alsa_device_profile.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/usbaudio/alsa_device_profile.c b/modules/usbaudio/alsa_device_profile.c index f214eab..8c34b84 100644 --- a/modules/usbaudio/alsa_device_profile.c +++ b/modules/usbaudio/alsa_device_profile.c @@ -92,6 +92,14 @@ bool profile_is_valid(alsa_device_profile* profile) { return profile->is_valid; } +bool profile_is_cached_for(alsa_device_profile* profile, int card, int device) { + return card == profile->card && device == profile->device; +} + +void profile_decache(alsa_device_profile* profile) { + profile->card = profile->device = -1; +} + /* * Returns the supplied value rounded up to the next even multiple of 16 */ |