From owner-freebsd-multimedia@FreeBSD.ORG Tue Jul 27 17:17:45 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27CA21065689 for ; Tue, 27 Jul 2010 17:17:45 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id AE3598FC22 for ; Tue, 27 Jul 2010 17:17:44 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=SLL6iUR4mT0wNXVHW9RxQHy4+MdEWXaI2PxhqtT+/BA= c=1 sm=1 a=W2x8mva4nbUA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=0bwE_BgbS3vv69T1ZOwA:9 a=DeOB1ugR65EQ06qLOmSV7JHBWaYA:4 a=PUjeQqilurYA:10 a=9aOQ2cSd83gA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 2001131; Tue, 27 Jul 2010 19:17:34 +0200 From: Hans Petter Selasky To: Ariff Abdullah Date: Tue, 27 Jul 2010 19:14:38 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201007271804.23993.hselasky@c2i.net> <20100728010405.0b85b13d.ariff@FreeBSD.org> In-Reply-To: <20100728010405.0b85b13d.ariff@FreeBSD.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201007271914.38228.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: Audio phase inversion quirk? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2010 17:17:45 -0000 On Tuesday 27 July 2010 19:04:05 Ariff Abdullah wrote: > On Tue, 27 Jul 2010 18:04:23 +0200 > > Hans Petter Selasky wrote: > > Hi, > > > > I've discovered using my qecholo tool that many USB audio devices > > have switched the polarity of the audio signal. I guess not so many > > people are checking this, but I'm one of them :-) > > > > There is currently a quirk for switching left and right channels. Is > > there a sound stack quirk in FreeBSD for correcting the phase? This > > is just a matter of negating the samples before passing along to > > the application. > > How about make the driver advertise the opposite sign or endian as > supported formats? > > Sounds OK. Then I would just add the opposite sign like OR'ing a flag into the snd_fmt value? --HPS