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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +		/* 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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux