summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/a2dp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index dafb608a..aea7224a 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -185,10 +185,10 @@ static gboolean select_sbc_params(struct sbc_codec_cap *cap,
cap->cap.media_type = AVDTP_MEDIA_TYPE_AUDIO;
cap->cap.media_codec_type = A2DP_CODEC_SBC;
- if (supported->frequency & A2DP_SAMPLING_FREQ_48000)
- cap->frequency = A2DP_SAMPLING_FREQ_48000;
- else if (supported->frequency & A2DP_SAMPLING_FREQ_44100)
+ if (supported->frequency & A2DP_SAMPLING_FREQ_44100)
cap->frequency = A2DP_SAMPLING_FREQ_44100;
+ else if (supported->frequency & A2DP_SAMPLING_FREQ_48000)
+ cap->frequency = A2DP_SAMPLING_FREQ_48000;
else if (supported->frequency & A2DP_SAMPLING_FREQ_32000)
cap->frequency = A2DP_SAMPLING_FREQ_32000;
else if (supported->frequency & A2DP_SAMPLING_FREQ_16000)