Commit graph

4 commits

Author SHA1 Message Date
Paul McLean
2c6196f20c Fix problem with dropouts with multiple USB audio streams.
Bug 17136569

Change-Id: I94bdbe037533a3fd77f249fdd42f4d828d3bf87f
2014-08-28 07:59:03 -07:00
Mike Lockwood
7de76b2d4d Quick hack fix for USB accessory audio support
tinyalsa fails to retrieve the correct value for the period count
from the f_audio_source driver and tries to use zero instead.
This wasn't a problem before because the usb audio HAL used hard coded values
that were compatible with the driver.

Bug: 16799652
Change-Id: I6f5b907a0699c58b071e9f419ed8e053a7d9dc77
2014-08-21 14:51:29 +00:00
Paul McLean
af5187efbd Fix problem with reloading config of new devices with same card/device numbers.
Bug 16981885

Change-Id: I65c6c418ee0d0f42c87379b614f64302d27f8e77
2014-08-12 13:57:10 -07:00
Paul McLean
c88e6ae584 Refactor USB HAL (audio_hw.c)
Refactoring alsa device attributes to alsa_device_profile.h/.c
Refactoring alsa device state to alsa_device_proxy.h/.c
Refactoring format functions into format.h/.c
Refactoring logging functions into logging.h/.c
Sundry (and extensive) code cleanup
Reworked locking on out_write() and in_read() to allow
  simultaneous input/output

Bug: 15986827, 15856702, 12833166

Change-Id: I82c8d0ef252b2f95ee23f263dc175f4c883bfd64
2014-07-25 12:48:51 -07:00