HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Bug Reports


Reply
 
Thread Tools
Old May 8, 2006, 01:22 PM   #1
DriverHeaven Newbie
 
Join Date: Nov 2005
Posts: 2
Rep Power: 0
Gunars is on a distinguished road

Sad (not bug) reset EMU10K2 analog pins

How to fire Reset signal on pin 87, which is conected to analog cards ADC and DAC?
Hopefully it should be possible by using ksdriver advanced microcode editor, or I am not right. Essentially I need driver routine for delayed reset, which could fire 87 pin and recallibrate ADC zerro offset.

see attached picture [color=#0000ff]
[/color]www.hardwareheaven.com/attachment.php?attachmentid=62&stc=1

Is that possible? If there is need for more discussion, my private e-mail is:
targen59@hotmail.com. You are the only hope.

Dear moderator, please excuse me for posting this message here.
But myself I could't locate beter place for EMU10K2 chipset itself, so please forward/remove message afterwards.
Attached Thumbnails
(not bug) reset EMU10K2 analog pins-e-dsp.jpg  

Last edited by Gunars; May 8, 2006 at 01:37 PM.
Gunars is offline   Reply With Quote


Old Apr 2, 2009, 02:29 AM   #2
HardwareHeaven Newbie
 
Join Date: Feb 2009
Posts: 11
Rep Power: 0
chipwizme is on a distinguished road

Re: (not bug) reset EMU10K2 analog pins

I'm not 100% positive, but from the ALSA source code, it looks like you can just repeat the initialization routines. What are you trying to accomplish? Why do you need to do this?


Quote:
static int snd_emu10k1_ecard_init(struct snd_emu10k1 *emu)
{
unsigned int hc_value;

/* Set up the initial settings */
emu->ecard_ctrl = EC_RAW_RUN_MODE |
EC_SPDIF0_SELECT(EC_DEFAULT_SPDIF0_SEL) |
EC_SPDIF1_SELECT(EC_DEFAULT_SPDIF1_SEL);

/* Step 0: Set the codec type in the hardware control register
* and enable audio output */
hc_value = inl(emu->port + HCFG);
outl(hc_value | HCFG_AUDIOENABLE | HCFG_CODECFORMAT_I2S, emu->port + HCFG);
inl(emu->port + HCFG);

/* Step 1: Turn off the led and deassert TRIM_CS */
snd_emu10k1_ecard_write(emu, EC_ADCCAL | EC_LEDN | EC_TRIM_CSN);

/* Step 2: Calibrate the ADC and DAC */
snd_emu10k1_ecard_write(emu, EC_DACCAL | EC_LEDN | EC_TRIM_CSN);

/* Step 3: Wait for awhile; XXX We can't get away with this
* under a real operating system; we'll need to block and wait that
* way. */
snd_emu10k1_wait(emu, 48000);

/* Step 4: Switch off the DAC and ADC calibration. Note
* That ADC_CAL is actually an inverted signal, so we assert
* it here to stop calibration. */
snd_emu10k1_ecard_write(emu, EC_ADCCAL | EC_LEDN | EC_TRIM_CSN);

/* Step 4: Switch into run mode */
snd_emu10k1_ecard_write(emu, emu->ecard_ctrl);

/* Step 5: Set the analog input gain */
snd_emu10k1_ecard_setadcgain(emu, EC_DEFAULT_ADC_GAIN);

return 0;
}
where:
Quote:
#define EC_ADCCAL 0x0400L
#define EC_ADCRSTN 0x0800L
#define EC_DACCAL 0x1000L
chipwizme is offline   Reply With Quote
Old Apr 2, 2009, 05:51 AM   #3
Alternative Audioproductions
 
TravelRec.'s Avatar
 
Join Date: Sep 2003
Location: Germany / Sachsen-Anhalt
Posts: 1,710
Rep Power: 0
TravelRec. will become famous soon enoughTravelRec. will become famous soon enough

Re: (not bug) reset EMU10K2 analog pins

I would suggest, you write an e-Mail to Eugene, go to Official kX Project Site -- News -> contact
__________________
Always take a look behind.

TravelRec. is offline   Reply With Quote
Reply

Thread Tools