On Feb 26, 2007, at 11:44 AM, Arnar Birgisson wrote:
> On 2/26/07, Craig Hughes <craig@...> wrote:
>> On Feb 25, 2007, at 3:55 PM, Arnar Birgisson wrote:
>>> Can anyone point me to examples on how to read/write the UCB1400
>>> GPIOs and ADCs?
>> For the GPIOs, you should see /proc/gpio contains some UCB* files
>> after loading the snd-pxa2xx-ac97 driver. I think there's currently
>> a bug in the code where if you have both the proc_gpio and the snd-
>> pxa2xx-ac97 drivers loaded, they kind of clobber each others' /proc/
>> gpio directories.... I'll work on fixing that so that they only
>> create the /proc/gpio directory if it's not already there.... (I
>> thought I had done that at some point, but the code doesn't seem to
>> be in there...)
> Great, thanks.
> What about the ADCs?
For the ADCs, it should be pretty straightforward to extend the stuff
in sound/pci/ac97/ac97_patch.c which sets up those nodes under /proc
to also read the ADC registers on the UCB1400, per its datasheet.