Return-Path: MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 14 Mar 2012 13:53:59 +0100 Message-ID: Subject: Re: A2DP quality (bluetooth-alsa) From: qduaty To: linux-bluetooth@vger.kernel.org Content-Type: multipart/mixed; boundary=0023545300901f404804bb33782e Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --0023545300901f404804bb33782e Content-Type: text/plain; charset=ISO-8859-1 2012/3/13 Siarhei Siamashka : > Are you now comparing streaming of A2DP audio from your phone to your > PC (using bluez A2DP sink) and to your bluetooth headset? I assume that the phone streams data to the headset (whose session is hard to dump on Windows mobile) with bitpool = 112, ie. the same it fails to set in Bluez and I'm saying it gives good results in terms of perceiveable quality, from which Bluez cannot take advantage due to its inherent bitpool=53 limitation. Anyway, I did some additional listening tests (by listening to Bluez SBC on an A2DP headset). SBC_HIGH_PRECISION alone (without your hack) only slightly improves quality. Also I finally managed to force higher bitpool in ALSA (patch attached). This makes further improvement in quality, at least on headsets that do not choke on higher bitpools. Regards -- Sebastian Olter --0023545300901f404804bb33782e Content-Type: application/octet-stream; name="pcm_bluetooth.c.diff" Content-Disposition: attachment; filename="pcm_bluetooth.c.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gzsctyd60 KioqIHBjbV9ibHVldG9vdGguYwkyMDExLTEyLTIxIDIzOjUzOjU0LjAwMDAwMDAwMCArMDEwMAot LS0gL3Vzci9zcmMvYmx1ZXotNC45OS9hdWRpby9wY21fYmx1ZXRvb3RoLmMJMjAxMi0wMy0xNCAx Mjo1MjozNC4yOTkxNzM2ODQgKzAxMDAKKioqKioqKioqKioqKioqCioqKiA2ODAsNjkwICoqKioK ICAJY2FzZSBCVF9BMkRQX0JMT0NLX0xFTkdUSF8xNjoKICAJCWEyZHAtPnNiYy5ibG9ja3MgPSBT QkNfQkxLXzE2OwogIAkJYnJlYWs7CiAgCX0KICAKISAJYTJkcC0+c2JjLmJpdHBvb2wgPSBhY3Rp dmVfY2FwYWJpbGl0aWVzLm1heF9iaXRwb29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