Thread (41 messages) flat view 41 messages, 5 authors, 2006-07-07

Re: [RFC 07/12] snd-aoa: add tas codec

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2006-06-07 15:42:18
Also in: alsa-devel

+		/* 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") == 0) {
+			u32 *addr;
+			printk(KERN_DEBUG PFX "found 'deq' node\n");
+			addr = (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 != 0x34 && *addr != 0x35)
And I fixed the obvious bug here now.

johannes

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help