Loading hal/audio_hw.c +2 −1 Original line number Diff line number Diff line Loading @@ -1544,7 +1544,8 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs) * Avoid this by routing audio to speaker until standby. */ if ((out->devices == AUDIO_DEVICE_OUT_AUX_DIGITAL || out->devices == AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET) && out->devices == AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET || out->devices == AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET) && val == AUDIO_DEVICE_NONE) { val = AUDIO_DEVICE_OUT_SPEAKER; } Loading hal/msm8974/platform.c +3 −1 Original line number Diff line number Diff line Loading @@ -1035,7 +1035,9 @@ snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devi } else if (devices == (AUDIO_DEVICE_OUT_AUX_DIGITAL | AUDIO_DEVICE_OUT_SPEAKER)) { snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI; } else if (devices == (AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET | } else if ((devices == (AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET | AUDIO_DEVICE_OUT_SPEAKER)) || devices == (AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET | AUDIO_DEVICE_OUT_SPEAKER)) { snd_device = SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET; } else { Loading Loading
hal/audio_hw.c +2 −1 Original line number Diff line number Diff line Loading @@ -1544,7 +1544,8 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs) * Avoid this by routing audio to speaker until standby. */ if ((out->devices == AUDIO_DEVICE_OUT_AUX_DIGITAL || out->devices == AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET) && out->devices == AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET || out->devices == AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET) && val == AUDIO_DEVICE_NONE) { val = AUDIO_DEVICE_OUT_SPEAKER; } Loading
hal/msm8974/platform.c +3 −1 Original line number Diff line number Diff line Loading @@ -1035,7 +1035,9 @@ snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devi } else if (devices == (AUDIO_DEVICE_OUT_AUX_DIGITAL | AUDIO_DEVICE_OUT_SPEAKER)) { snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI; } else if (devices == (AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET | } else if ((devices == (AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET | AUDIO_DEVICE_OUT_SPEAKER)) || devices == (AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET | AUDIO_DEVICE_OUT_SPEAKER)) { snd_device = SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET; } else { Loading