audience: Warn when we cannot handle the output device
authorChristopher N. Hesse <raymanfx@gmail.com>
Sun, 2 Apr 2017 11:19:36 +0000 (13:19 +0200)
committerChristopher N. Hesse <raymanfx@gmail.com>
Sun, 2 Apr 2017 12:07:46 +0000 (14:07 +0200)
Change-Id: I0cddd94f22c5e912436682d713a1ae441723cfee

audio/audience.c

index afd7fa27f4531b545485ffad03ada504d986564f..2bf0d9b9c89d75839fc4076967edf3351f766f6f 100644 (file)
@@ -125,6 +125,8 @@ static long es_device_to_route(struct voice_session *session)
             break;
         default:
             /* if output device isn't supported, use earpiece by default */
+            ALOGE("%s: unknown output device: %d, defaulting to earpiece", __func__,
+                    session->out_device);
             nb_route = Call_CT_NB;
             wb_route = Call_CT_WB;
             break;