audio: remove AUDIO_DEVICE_OUT_ALL_SCO from switch case
authorivanmeler <i_ivan@windowslive.com>
Thu, 7 Oct 2021 10:44:25 +0000 (10:44 +0000)
committerJan Altensen <info@stricted.net>
Sun, 17 Apr 2022 04:56:42 +0000 (06:56 +0200)
Fixes this error
hardware/samsung/audio/voice.c:346:14:
error: case value not in enumerated type 'audio_devices_t'
[-Werror,-Wswitch]
        case AUDIO_DEVICE_OUT_ALL_SCO:

Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
Change-Id: I4902b463acf15994ccb9d5a0a4968ac81fc0905c

audio/voice.c

index 6d5e613037d00cabbf19320f913c8b3260335cff..e239298e12d4fc545a961e58cfbac40472eb17c9 100644 (file)
@@ -343,7 +343,6 @@ void set_voice_session_volume(struct voice_session *session, float volume)
         case AUDIO_DEVICE_OUT_BLUETOOTH_SCO:
         case AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET:
         case AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT:
-        case AUDIO_DEVICE_OUT_ALL_SCO:
             sound_type = SOUND_TYPE_BTVOICE;
             break;
         default: