maestro3 hardware volume control
Hi,
the maestro3 runs fine on my compaq evo n400c (ES1988). Just one thing remains unsolved - the 2 nice volume control buttons that seem to be wired directly to the ES1988 won't work until now.
I'm relatively new to linux and not a driver programmer, but scrolling through the documentation of the chip & the driver source quickly revealed that the volume can be controlled directly by two buttons, but the driver doesn't seem make use of that.
Can anybody give me a hint how to use/enable the hardware volume control on that chip? Is a major rewrite of the driver required? Maybe some other driver could do that? The es1968 seems to support hw vol, might that driver run also on the ES1988?
Thanks & best regards, Ruediger
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
At Mon, 18 Apr 2005 15:22:58 +0200,
Quoted 12 lines · rwd
Hi,
the maestro3 runs fine on my compaq evo n400c (ES1988). Just one thing remains unsolved - the 2 nice volume control buttons that seem to be wired directly to the ES1988 won't work until now.
I'm relatively new to linux and not a driver programmer, but scrolling through the documentation of the chip & the driver source quickly revealed that the volume can be controlled directly by two buttons, but the driver doesn't seem make use of that.
Quoted 4 lines
Can anybody give me a hint how to use/enable the hardware volume control on that chip? Is a major rewrite of the driver required? Maybe some other driver could do that? The es1968 seems to support hw vol, might that driver run also on the ES1988?
The problem is -- we don't know. We have no proper datasheet for this chip...
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728
Quoted 28 lines
Von: Takashi Iwai
Gesendet: Dienstag, 19. April 2005 11:50
Betreff: Re: [Alsa-devel] maestro3 hardware volume controlAt Mon, 18 Apr 2005 15:22:58 +0200,
Quoted 4 lines · rwd
Hi,
the maestro3 runs fine on my compaq evo n400c (ES1988).
Just one thing
Quoted 1 line
remains unsolved - the 2 nice volume control buttons that
seem to be wired
Quoted 3 lines
directly to the ES1988 won't work until now.
I'm relatively new to linux and not a driver programmer,
but scrolling
Quoted 1 line
through the documentation of the chip & the driver source
quickly revealed
Quoted 1 line
that the volume can be controlled directly by two buttons,
but the driver
Quoted 3 lines
doesn't seem make use of that.
Can anybody give me a hint how to use/enable the hardware
volume control on
Quoted 1 line
that chip? Is a major rewrite of the driver required? Maybe
some other
Quoted 1 line
driver could do that? The es1968 seems to support hw vol,
Quoted 8 lines
might that driver
Quoted 1 line
run also on the ES1988?
The problem is -- we don't know. We have no proper datasheet for this chip...
Takashi
Hi,
Sorry, don't understand:
the driver es1968.c enables and uses
#define HWV_CONFB 0x0080
w |= HWV_CONFB; /* HWV on */pci_write_config_word(pci, ESM_CONFIG_B, w);
and handles the irq. The es1968.c driver handles the Maestro-2, does it?
http://www.alsa-project.org/alsa/ftp/manuals/ess/DSMaestro2.pdf
Same registers as described in the datasheet for the ES1988/Allegro/Maestro-3
http://www.alsa-project.org/alsa/ftp/manuals/ess/ds1988.pdf
What info is missing?
Ruediger
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728
At Tue, 19 Apr 2005 12:55:00 +0200,
Quoted 47 lines · Rüdiger Dabelow
Quoted 29 lines
Von: Takashi Iwai
Gesendet: Dienstag, 19. April 2005 11:50
Betreff: Re: [Alsa-devel] maestro3 hardware volume controlAt Mon, 18 Apr 2005 15:22:58 +0200,
Quoted 4 lines · rwd
Hi,
the maestro3 runs fine on my compaq evo n400c (ES1988).
Just one thing
Quoted 1 line
remains unsolved - the 2 nice volume control buttons that
seem to be wired
Quoted 3 lines
directly to the ES1988 won't work until now.
I'm relatively new to linux and not a driver programmer,
but scrolling
Quoted 1 line
through the documentation of the chip & the driver source
quickly revealed
Quoted 1 line
that the volume can be controlled directly by two buttons,
but the driver
Quoted 3 lines
doesn't seem make use of that.
Can anybody give me a hint how to use/enable the hardware
volume control on
Quoted 1 line
that chip? Is a major rewrite of the driver required? Maybe
some other
Quoted 1 line
driver could do that? The es1968 seems to support hw vol,
Quoted 8 lines
might that driver
Quoted 1 line
run also on the ES1988?
The problem is -- we don't know. We have no proper datasheet for this chip...
Takashi
Hi,
Sorry, don't understand:the driver
es1968.cenables and uses#define
HWV_CONFB0x0080
w |=HWV_CONFB; /* HWV on */pci_write_config_word(pci, ESM_CONFIG_B, w);
Quoted 8 lines
and handles the irq. The
es1968.cdriver handles the Maestro-2, does it?
http://www.alsa-project.org/alsa/ftp/manuals/ess/DSMaestro2.pdfSame registers as described in the datasheet for the ES1988/Allegro/Maestro-3
http://www.alsa-project.org/alsa/ftp/manuals/ess/ds1988.pdfWhat info is missing?
The registers above didn't work at the last time we tried. Feel free to debug it :)
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728
Quoted 10 lines
Von: [email protected]
von Takashi Iwai
Gesendet: Dienstag, 19. April 2005 14:00The registers above didn't work at the last time we tried. Feel free to debug it :)
Takashi
Hi,
I tried to :)
Some findings:
I configured the PCI_ALLEGRO_CONFIG with additional HV_CTRL_ENABLE | HV_BUTTON_FROM_GD
to enable the HV according to the wiring of the buttons in my box.
snd_m3_interrupt constantly comes up with status 0x04 !?! What's that? Bad docu - no info, as you said, any idea?
When i press a HV button, status changes to 0x44 -> HV interrupt pending! Also you can see the HV registers SHADOW_MIX_REG_VOICE 0x1C etc. changing when the buttons are pressed.
Looks like i'm almost there??
Still some questions:
- I tried to apply HV_INT_ENABLE to the HOST_INT_CTRL register. Box freezes when i press a button - obviously an interrupt is fired & not handled correctly - no idea how to do it. Is it required anyway? Buttons respond even without HV_INT_ENABLE.
- status from snd_m3_interrupt is stuck to 0x44. Any way to clear/ack the pending interrupts?
- now that i can read the buttons - what's the right way to change the master/mixer/whatever volume (oops, i admit i'm a rookie...:) ?
Thanks, Ruediger
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728
Quoted 5 lines · rwd
Hi,
the maestro3 runs fine on my compaq evo n400c (ES1988). Just one thing remains unsolved - the 2 nice volume control buttons that seem to be wired directly to the ES1988 won't work until now.
I just sent three patches that make the buttons work on my HP OmniBook 500 and 6000 laptops.
Signature · 10 lines
Ville Syrjälä [email protected] http://www.sci.fi/~syrjala/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click