audio: Allow playback on earpiece too
authorFevax <fer.vonarx@gmail.com>
Wed, 8 Feb 2017 08:52:12 +0000 (09:52 +0100)
committerChristopher N. Hesse <raymanfx@gmail.com>
Wed, 8 Feb 2017 10:19:23 +0000 (10:19 +0000)
For VoIP we need to have output on the earpiece.

Change-Id: I5c5488a184b3efe4f95a2d0602ad286b1eba7780

audio/audio_hw.c

index 149ef1c9d48eb12bd1673ca41ea41e60aae8d5b6..cfe301319b4a62060f078fa566c74c55d6260164 100644 (file)
@@ -69,7 +69,7 @@ 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_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE,
 };
 
 static struct pcm_device_profile pcm_device_deep_buffer = {
@@ -87,7 +87,7 @@ 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_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE,
 };
 
 static struct pcm_device_profile pcm_device_capture = {