diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-08-30 00:50:23 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-08-30 00:50:23 +0000 |
commit | 734b3f84c1e48f241bf1004e57a86fa898d083a5 (patch) | |
tree | f5e33730668ab011c0c85ff54aa0ca2859d1428c /audio | |
parent | 4183300934043b1038c84652848c271a235bc5df (diff) |
Prefer 44.1kHz over 48kHz
Diffstat (limited to 'audio')
-rw-r--r-- | audio/a2dp.c | 6 |
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) |