diff options
author | stenkinevgeniy <stenkinevgeniy@gmail.com> | 2018-05-20 14:18:53 +0000 |
---|---|---|
committer | Basil Gello <vasek.gello@gmail.com> | 2018-05-24 14:56:48 +0300 |
commit | 92d3dd426e6c60492fda5a296619bea5627bcfe9 (patch) | |
tree | 64b3d4f4c092ceaa649a1ca72ed616fe373ddfdd | |
parent | e825e5b84b4b4ab87214d34d837d8e20801e8b86 (diff) | |
download | android_hardware_samsung-92d3dd426e6c60492fda5a296619bea5627bcfe9.tar.gz android_hardware_samsung-92d3dd426e6c60492fda5a296619bea5627bcfe9.tar.bz2 android_hardware_samsung-92d3dd426e6c60492fda5a296619bea5627bcfe9.zip |
Audio: remove separated bt_sco playback profile
Myabe this related to htc flounder hw but this
not needed for samsung and this cause bug when
hal trying open bt pcm device for system sounds
while voice call active on sco and bt pcm device
opened with start_voice_session_bt_sco.
Change-Id: I75482dad42feccae5e8ca9df2623ef4693a7bdb0
-rw-r--r-- | audio/audio_hw.c | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 761d567..f449103 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -72,7 +72,9 @@ static struct pcm_device_profile pcm_device_playback = { .id = SOUND_PLAYBACK_DEVICE, .type = PCM_PLAYBACK, .devices = AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE| - AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE, + AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE| + AUDIO_DEVICE_OUT_BLUETOOTH_SCO|AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET| + AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT, }; static struct pcm_device_profile pcm_device_deep_buffer = { @@ -90,7 +92,9 @@ static struct pcm_device_profile pcm_device_deep_buffer = { .id = SOUND_DEEP_BUFFER_DEVICE, .type = PCM_PLAYBACK, .devices = AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE| - AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE, + AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE| + AUDIO_DEVICE_OUT_BLUETOOTH_SCO|AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET| + AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT, }; static struct pcm_device_profile pcm_device_capture = { @@ -149,26 +153,6 @@ static struct pcm_device_profile pcm_device_capture_loopback_aec = { }; #endif -static struct pcm_device_profile pcm_device_playback_sco = { - .config = { - .channels = SCO_DEFAULT_CHANNEL_COUNT, - .rate = SCO_DEFAULT_SAMPLING_RATE, - .period_size = SCO_PERIOD_SIZE, - .period_count = SCO_PERIOD_COUNT, - .format = PCM_FORMAT_S16_LE, - .start_threshold = SCO_START_THRESHOLD, - .stop_threshold = SCO_STOP_THRESHOLD, - .silence_threshold = 0, - .avail_min = SCO_AVAILABLE_MIN, - }, - .card = SOUND_CARD, - .id = SOUND_PLAYBACK_SCO_DEVICE, - .type = PCM_PLAYBACK, - .devices = - AUDIO_DEVICE_OUT_BLUETOOTH_SCO|AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET| - AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT, -}; - static struct pcm_device_profile pcm_device_capture_sco = { .config = { .channels = SCO_DEFAULT_CHANNEL_COUNT, @@ -191,7 +175,6 @@ static struct pcm_device_profile * const pcm_devices[] = { &pcm_device_playback, &pcm_device_capture, &pcm_device_capture_low_latency, - &pcm_device_playback_sco, &pcm_device_capture_sco, #ifdef SOUND_CAPTURE_LOOPBACK_AEC_DEVICE &pcm_device_capture_loopback_aec, |