From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (crystal.sipsolutions.net [195.210.38.204]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 3826A67B70 for ; Thu, 8 Jun 2006 01:42:18 +1000 (EST) Subject: Re: [RFC 07/12] snd-aoa: add tas codec From: Johannes Berg To: alsa-devel@alsa-project.org In-Reply-To: <20060607130914.735290000@sipsolutions.net> References: <20060607130909.584205000@sipsolutions.net> <20060607130914.735290000@sipsolutions.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-qAsHBdp2bbyUDSGfVa8p" Date: Wed, 07 Jun 2006 17:42:07 +0200 Message-Id: <1149694927.3925.4.camel@johannes> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, netstar@gatheringofgray.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-qAsHBdp2bbyUDSGfVa8p Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > + /* older machines have no 'codec' node with a 'compatible' > + * property that says 'tas3004', they just have a 'deq' > + * node without any such property... */ > + if (strcmp(dev->name, "deq") =3D=3D 0) { > + u32 *addr; > + printk(KERN_DEBUG PFX "found 'deq' node\n"); > + addr =3D (u32 *) get_property(dev, "i2c-address", NULL); > + if (!addr) > + continue; > + /* now, if the address doesn't match any of the two > + * that a tas3004 can have, we cannot handle this. > + * I doubt it ever happens but hey. */ > + if (*addr !=3D 0x34 && *addr !=3D 0x35) And I fixed the obvious bug here now. johannes --=-qAsHBdp2bbyUDSGfVa8p Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIVAwUARIbzy6Vg1VMiehFYAQKmAg//c/bHTg4/yEP/rubtOv/h+Q7vT/J42/Wv 2D2mk7cXd0Z5NT9hvueG/4eizhJVcrqp4xTLTrzoZcTL4fmjPvpudpanMucOzgDO /nqsuN2s+sArwUhXMVWnden0XtNe1ABpAHMo9qJJuUK4v0A3yPZVhpIyxNZBsxFA PzDzfEq39b/TvYSOhCX947g3GQeYgxpe3cXxLIUePu1MwIcdNeGYIq6U6M+A0wAT cKtDYTHvbWU2I6gTTL+IRzI+3QTWTmc8kAECRsLMz3ySbppQNQGhB8QMSLWwZ9/s RMyDwaQMKXGtzCYDsXiu4npHB8UlR9upl47Jl2cUel7vjMAn1aZ0hhhFVpQ10hUX A6Kts7WV4j8DHdTsC/gG9guNNbYh2w+Px9XqOh4QSjMhQQvJmo/4KLOqn0XLTLJW oNbi7rkVjbxrnHr+RsqvQWhyLM2Ah8S1x8GalwOLFkDG7jyMlPohsaTgZQbkZtyR 1DcbFyCxYdCEme9ALE9Y9EiMk0hUt++gPHaUPwz9l00PeSISfMdMnxbzRXJd0yfm QGoPWYX5CigE85H/rXlVwgyX23ynpIDKBlLBZaf6sgEEyL8iNghxREnrHm9WyIFE KfAcr95aXCIqbKKvA+NdExNw4tEXAE6UtetffzbTyHiyP9nS2xtW5P7i2urget8t vdyZgt6+hvw= =uV6g -----END PGP SIGNATURE----- --=-qAsHBdp2bbyUDSGfVa8p--