Skip to content

Commit 9639d2d

Browse files
committed
qcom-caf: audio: Fix compilation errors on V.
device/xiaomi/rova/qcom-caf/audio/hal/audio_extn/a2dp.c:1357:34: error: comparison of different enumeration types ('codec_t' and 'audio_format_t') [-Werror,-Wenum-compare] 1357 | (a2dp.bt_decoder_format == AUDIO_FORMAT_AAC) || | ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ Signed-off-by: iusmac <iusico.maxim@libero.it>
1 parent 66e6095 commit 9639d2d

File tree

1 file changed

+1
-1
lines changed
  • qcom-caf/audio/hal/audio_extn

1 file changed

+1
-1
lines changed

qcom-caf/audio/hal/audio_extn/a2dp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ static bool a2dp_set_backend_cfg(uint8_t direction)
13541354
*/
13551355
if (((a2dp.bt_encoder_format == CODEC_TYPE_LDAC) ||
13561356
(a2dp.bt_decoder_format == CODEC_TYPE_SBC) ||
1357-
(a2dp.bt_decoder_format == AUDIO_FORMAT_AAC) ||
1357+
(a2dp.bt_decoder_format == CODEC_TYPE_AAC) ||
13581358
(a2dp.bt_encoder_format == CODEC_TYPE_APTX_AD)) &&
13591359
(sampling_rate == 48000 || sampling_rate == 44100 )) {
13601360
sampling_rate = sampling_rate *2;

0 commit comments

Comments
 (0)