On Tuesday 27 January 2009 18:06:47 pHilipp Zabel wrote:
Could you show the code? On magician I'm just powering up uda1380 when the driver is loaded, but I wouldn't mind saving some power :) There are two GPIOs involved - one connected to the uda1380's RESET line and one to control the power. The last one doesn't have anything to do with uda1380, really. It's an external power switch in a PMIC (or CPLD, on magican) so it would be nice if this code could live in the machine specific drivers.
regards Philipp
Yep, of course, here's machine driver (originally created by Denis Grigoriev) and modified codec driver.
Btw, on rx1950 there're 4 gpio pins involved: GPJ0 controls codec power GPA1 controls amplifier power GPG12 is jack sense pin, it's value depends whether headphone jack is inserted or not, and GPD0 is connected to uda1380 reset.