Return-Path: From: Mikel Astiz To: Marcel Holtmann CC: Luiz Augusto von Dentz , Mikel Astiz , "linux-bluetooth@vger.kernel.org" Date: Thu, 12 Apr 2012 07:58:01 +0200 Subject: RE: [PATCH v0 4/6] Bluetooth: Simplify outgoing SCO scheduling code Message-ID: <66BD268F973E3544A665E5F503FB38B71AFB764678@DC01.bmw-carit.intra> References: <1334126932-27327-1-git-send-email-mikel.astiz.oss@gmail.com> <1334126932-27327-5-git-send-email-mikel.astiz.oss@gmail.com> <1334136286.16897.98.camel@aeonflux> <66BD268F973E3544A665E5F503FB38B71AFB76466C@DC01.bmw-carit.intra> <1334158493.16897.115.camel@aeonflux> In-Reply-To: <1334158493.16897.115.camel@aeonflux> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 List-ID: SGkgTWFyY2VsLA0KDQo+IA0KPiBIaSBNaWtlbCwNCj4gDQo+ID4gPiA+PiBBbGwgZGF0YSBwcm9k dWNlZCBieSB1c2Vyc3BhY2UgaXMgc2VudCB0byB0aGUgY29udHJvbGxlciB3aXRob3V0DQo+ID4g PiA+PiBhbnkgZmxvdyBjb250cm9sLiBUaGlzIHdhcyBhbHNvIHRoZSBjYXNlIGJlZm9yZSB0aGlz IHBhdGNoLCBidXQNCj4gPiA+ID4+IG5vdyBpdCdzIG1vcmUgb2J2aW91cyBhbmQgcmVhZGFibGUu DQo+ID4gPiA+DQo+ID4gPiA+IGFzIGluIHRoZSBwcmV2aW91cyBwYXRjaC4gWW91IGNhbiBvbmx5 IGRvIHRoaXMgaWYgeW91IG1ha2Ugc3VyZQ0KPiA+ID4gPiB0aGF0IHRoZSBjb250cm9sbGVyIGRv ZXMgbm90IGhhdmUgZmxvdyBjb250cm9sIGVuYWJsZWQuIFlvdSBuZWVkDQo+ID4gPiA+IGFub3Ro ZXIgYmFzaWMgY2hlY2sgaGVyZSB0byBlbnN1cmUgdGhpcyBmaXJzdC4gT3RoZXJ3aXNlIGEgbG90 IG9mDQo+ID4gPiA+IHRoaW5ncw0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