From owner-freebsd-multimedia@FreeBSD.ORG Tue Jul 27 18:02:57 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from miki (localhost [IPv6:::1]) by hub.freebsd.org (Postfix) with SMTP id A3BCE106566B; Tue, 27 Jul 2010 18:02:56 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Wed, 28 Jul 2010 02:02:52 +0800 From: Ariff Abdullah To: Hans Petter Selasky Message-Id: <20100728020252.5166f0df.ariff@FreeBSD.org> In-Reply-To: <201007271914.38228.hselasky@c2i.net> References: <201007271804.23993.hselasky@c2i.net> <20100728010405.0b85b13d.ariff@FreeBSD.org> <201007271914.38228.hselasky@c2i.net> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__28_Jul_2010_02_02_52_+0800_TrFItUOulAY3JcG0" 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 18:02:57 -0000 --Signature=_Wed__28_Jul_2010_02_02_52_+0800_TrFItUOulAY3JcG0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 27 Jul 2010 19:14:38 +0200 Hans Petter Selasky wrote: > On Tuesday 27 July 2010 19:04:05 Ariff Abdullah wrote: > > On Tue, 27 Jul 2010 18:04:23 +0200 > >=20 > > Hans Petter Selasky wrote: > > > Hi, > > >=20 > > > 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 :-) > > >=20 > > > 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. > >=20 > > How about make the driver advertise the opposite sign or endian as > > supported formats? > >=20 > >=20 >=20 > Sounds OK. Then I would just add the opposite sign like OR'ing a > flag into the snd_fmt value? >=20 There's no way to correlate those by simple bit fiddling. Perhaps you should define another uaudio_formats[] so it can be fed into format probing logic in uaudio.c . -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ ... Going with the standard and orthodox is the death of intellect .............. --Signature=_Wed__28_Jul_2010_02_02_52_+0800_TrFItUOulAY3JcG0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkxPH0wACgkQlr+deMUwTNoKdgCfTMORWV1hdHFJmkiyn5RfdgJl rfMAn3NtsM4qtJaJBYZkkcLTKk+3dWZL =Pq/E -----END PGP SIGNATURE----- --Signature=_Wed__28_Jul_2010_02_02_52_+0800_TrFItUOulAY3JcG0--