From 734b3f84c1e48f241bf1004e57a86fa898d083a5 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 30 Aug 2007 00:50:23 +0000 Subject: Prefer 44.1kHz over 48kHz --- audio/a2dp.c | 6 +++--- 1 file 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) -- cgit