- Ensure all the mutex locks are initialized before using them,
to avoid native crashes.
Change-Id: I7b6253f1d08a36a24d366d69004ce969d73c13e1
CRs-Fixed: 654375
Some USB headsets start at 0 volume because of this even
if the Media Player volume is maximum cannot hear any audio.
Initialize device volume before starting the playback.
Change-Id: Ie6940fae6fd7946ce0a90a142aaf110d829eea8f
CRs-Fixed: 639168
- Adding buffer of one byte for the strstr usecase to make
the passed string is NULL terminated.
Change-Id: Ief8531e149b05f4020cb1338110bbfad4a74f7d0
Crs-fixed: 607454
- HAL always assumed SOUND_CARD/MIXER_CARD
number to be zero. This could cause HAL
not to load when some other card is
detected earlier to HAL.
- Fix by removing these Macro(s) and reading
correct sound card number runtime while loading
- Corrected its use cases across HAL replacing it
with appropriate platform API
CRs-fixed: 580226
Change-Id: I4512e4a2f7f81d8415c3ba8ec393c96867e6d69a
- Start music playback on USB headset. The playback is stopped
after 3sec.
- A touch tone is played through low latency output path, while
selecting the song in the music app. This output goes to standy
after 3sec. So the disable_snd_device() is called to reduce the
ref count on usb headset device by 1. At this point the music
playback (deep-buffer path) is still active. But the current
implementation has uncondtionally calls usb_stop_playback()
which results music playback to stop.
- Fix by ensuring the usb_stop_playback is called only when the
device ref count goes to 0.
- Fix related minor stabilty issues
Change-Id: I979423458738e68da45973751cd918d4c1a924ea
CRs-Fixed: 572048