Skip to contentSkip to conversation

AC97 touchscreen support

DISCUSSION Manuel Lauss 3 participants 6 messages Feb 1, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

Is it possible for the ALSA AC97 layer to support a AC97 touchscreen (such as the Wolfson 97xx series or the ucb1400) in a generic way? I.e. can I access certain registers in the codec from a "platform" driver which uses the ac97 bus instead of the platform bus? (Is there something like a "struct ac97_driver" which works like the "struct platform_driver"? )

Thanks!

Signature · 7 lines
 ml.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
#1 lore raw

At Thu, 1 Feb 2007 14:32:56 +0100,

Quoted 10 lines · Manuel Lauss

Hello,

Is it possible for the ALSA AC97 layer to support a AC97 touchscreen (such as the Wolfson 97xx series or the ucb1400) in a generic way? I.e. can I access certain registers in the codec from a "platform" driver which uses the ac97 bus instead of the platform bus? (Is there something like a "struct ac97_driver" which works like the "struct platform_driver"? )

That's not planned so far. Currently, ac97 codec codes are no individual drivers but a sub-system that belongs to the real driver (usually bound to a controller chip). Changing this structure is not so trivial, I guess.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#2 lore raw
In reply to Manuel Lauss
Quoted 9 lines · Manuel Lauss

Hello,

Is it possible for the ALSA AC97 layer to support a AC97 touchscreen (such as the Wolfson 97xx series or the ucb1400) in a generic way? I.e. can I access certain registers in the codec from a "platform" driver which uses the ac97 bus instead of the platform bus? (Is there something like a "struct ac97_driver" which works like the "struct platform_driver"? )

I can only comment on the wm97xx drivers here as I'm the author.

The wm97xx touch driver is pretty much arch independent and uses the ac97 bus device for access to the codec. Alsa audio works as normal.

Fwiw, wm9705, wm9712 and wm9713 drivers are here :-

http://opensource.wolfsonmicro.com/~lg/wm97xx/

I assume your trying to read back an AUX adc or similar for some board specific purpose. In this case I've added an wm97xx bus device that can grant access to codec IO and other misc common functions (and can be used from your platform driver). However, it's not truly generic as it does require the wm97xx core.

HTH

Liam

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#3 lore raw

Hi Liam,

Quoted 18 lines · Liam Girdwood
Quoted 9 lines · Manuel Lauss

Hello,

Is it possible for the ALSA AC97 layer to support a AC97 touchscreen (such as the Wolfson 97xx series or the ucb1400) in a generic way? I.e. can I access certain registers in the codec from a "platform" driver which uses the ac97 bus instead of the platform bus? (Is there something like a "struct ac97_driver" which works like the "struct platform_driver"? )

I can only comment on the wm97xx drivers here as I'm the author.

The wm97xx touch driver is pretty much arch independent and uses the ac97 bus device for access to the codec. Alsa audio works as normal.

Fwiw, wm9705, wm9712 and wm9713 drivers are here :-

Quoted 7 lines

http://opensource.wolfsonmicro.com/~lg/wm97xx/

I assume your trying to read back an AUX adc or similar for some board specific purpose. In this case I've added an wm97xx bus device that can grant access to codec IO and other misc common functions (and can be used from your platform driver). However, it's not truly generic as it does require the wm97xx core.

Does this also work with your SoC layer (which is very nice, btw)? (My targets are Au1200 and some SuperH SoCs)

I looked through the alsa code a bit, can I not use the snd_ac97_write/read() functions to read the ADC registers of the codec once the ac97 bus has been created?

Signature · 7 lines
 ml.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
#4 lore raw
Quoted 23 lines · Manuel Lauss

Hi Liam,

Quoted 20 lines · Liam Girdwood
Quoted 9 lines · Manuel Lauss

Hello,

Is it possible for the ALSA AC97 layer to support a AC97 touchscreen (such as the Wolfson 97xx series or the ucb1400) in a generic way? I.e. can I access certain registers in the codec from a "platform" driver which uses the ac97 bus instead of the platform bus? (Is there something like a "struct ac97_driver" which works like the "struct platform_driver"? )

I can only comment on the wm97xx drivers here as I'm the author.

The wm97xx touch driver is pretty much arch independent and uses the ac97 bus device for access to the codec. Alsa audio works as normal.

Fwiw, wm9705, wm9712 and wm9713 drivers are here :-

http://opensource.wolfsonmicro.com/~lg/wm97xx/

Quoted 7 lines
Quoted 5 lines

I assume your trying to read back an AUX adc or similar for some board specific purpose. In this case I've added an wm97xx bus device that can grant access to codec IO and other misc common functions (and can be used from your platform driver). However, it's not truly generic as it does require the wm97xx core.

Does this also work with your SoC layer (which is very nice, btw)?

It does. :)

Quoted 2 lines

(My targets are Au1200 and some SuperH SoCs)

We unfortunately don't have support for either SoC yet. A platform driver (DMA and AC97) would need to be implemented before audio/touch would work.

Quoted 3 lines

I looked through the alsa code a bit, can I not use the snd_ac97_write/read() functions to read the ADC registers of the codec once the ac97 bus has been created?

It may work, although I've never tried. You will need to make sure that the AC97 link is running first otherwise all IO will fail (ac97 codec driver does this for you).

Liam

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#5 lore raw
Quoted 30 lines · Liam Girdwood
Quoted 29 lines · Manuel Lauss

Hi Liam,

Quoted 25 lines · Liam Girdwood
Quoted 9 lines · Manuel Lauss

Hello,

Is it possible for the ALSA AC97 layer to support a AC97 touchscreen (such as the Wolfson 97xx series or the ucb1400) in a generic way? I.e. can I access certain registers in the codec from a "platform" driver which uses the ac97 bus instead of the platform bus? (Is there something like a "struct ac97_driver" which works like the "struct platform_driver"? )

I can only comment on the wm97xx drivers here as I'm the author.

The wm97xx touch driver is pretty much arch independent and uses the ac97 bus device for access to the codec. Alsa audio works as normal.

Fwiw, wm9705, wm9712 and wm9713 drivers are here :-

http://opensource.wolfsonmicro.com/~lg/wm97xx/

I assume your trying to read back an AUX adc or similar for some board specific purpose. In this case I've added an wm97xx bus device that can grant access to codec IO and other misc common functions (and can be used from your platform driver). However, it's not truly generic as it does require the wm97xx core.

Quoted 3 lines
Quoted 1 line

Does this also work with your SoC layer (which is very nice, btw)?

It does. :)

great!

Quoted 6 lines
Quoted 2 lines

(My targets are Au1200 and some SuperH SoCs)

We unfortunately don't have support for either SoC yet. A platform driver (DMA and AC97) would need to be implemented before audio/touch would work.

That's okay, I'll write them if need be. I already have a working (but ugly) AC97 driver for SH7760 (not for the SoC code yet).

Thanks again!

Signature · 9 lines
 ml.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642