win3x
« High Definition Audio »

Welcome Guest. Please Login or Register.
Feb 18th, 2018, 02:54am



« Previous Topic | Next Topic »
Pages: 1 ... 5 6 7 8 9  ...  12 Reply Notify Send Topic Print
 veryhotthread  Author  Topic: High Definition Audio  (Read 2610 times)
watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #90 on: Nov 14th, 2017, 1:36pm »
Quote

Since all my hardware is working, I visited my cousin and made his Dell Dimension E310 play sound.

All I had to do was add these lines to hdaicout.hda:
$20B3907f; Dell E310 Master volume R (B80=read)
$20B3A07f; Dell E310 Master volume L (BA0=read)
$20E70760; Dell E310 Pin control in/out enable
$2013B07F; AFG Unmute/Set Volume

Many thanks to the support at Dell,IDT and Intel. smiley
User IP Logged

deomsh
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 106
xx Re: High Definition Audio
« Reply #91 on: Nov 14th, 2017, 6:09pm »
Quote

Here is the output of Widget Capabilities I found with help of HDAICOUT.HDA for my ALC0662. I identified them with Windows High Definition Audio Utility v3.3, including their properties (I only took the "TRUE" ones). Do you have the same values for your Realtek 662?

$002F0009 $0000001D00000000 DAC; Two channel; Out Amp Present; Amp Param Overide; Format Overide; Delay=0; Type: Audio Output;
$003F0009 $0000001D00000000 DAC; Two channel; Out Amp Present; Amp Param Overide; Format Overide; Delay=0; Type: Audio Output;
$004F0009 $0000001D00000000 DAC; Two channel; Out Amp Present; Amp Param Overide; Format Overide; Delay=0; Type: Audio Output;
$005F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$006F0009 $0000021100000000 DAC; Two channel; Format Overide; Digital; Delay=0; Type: Audio Output;
$007F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$008F0009 $0010011B00000000 ADC; Two channel; In Amp Present; Amp Param Overide; Format Overide; Connection List; Delay=0; Type: Audio Input;
$009F0009 $0010011B00000000 ADC; Two channel; In Amp Present; Amp Param Overide; Format Overide; Connection List; Delay=0; Type: Audio Input;
$00AF0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$00BF0009 $0020010B00000000 Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$00CF0009 $0020010B00000000 Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$00DF0009 $0020010B00000000 Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$00EF0009 $0020010B00000000 Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$00FF0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$010F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$011F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$012F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$013F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$014F0009 $0040018D00000000 Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$015F0009 $0040018D00000000 Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$016F0009 $0040018D00000000 Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$017F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$018F0009 $0040018F00000000 Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$019F0009 $0040018F00000000 Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$01AF0009 $0040018D00000000 Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$01BF0009 $0040018F00000000 Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$01CF0009 $0040000100000000 Pin; Two channel; Type: Pin Complex;
$01DF0009 $0040000000000000 Pin; One channel; Type: Pin Complex;
$01EF0009 $0040030000000000 Pin; One channel; Connection List; Digital; Type: Pin Complex;
$01FF0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$020F0009 $00F0004000000000 Vendor_Defined; Mono; Delay=0;
$021F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$022F0009 $0020010B00000000 Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$023F0009 $0020010B00000000 Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$024F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$025F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;
$026F0009 $00F0000000000000 Vendor_Defined; Mono; Delay=0;

I tested HDA2 driver version 98D: there is some noise / soft humming when used without HDAICOUT.HDA smiley smiley smiley
Playing different WAV-files gave higher or lower pitch cool

HDACFG.INI gives correct information this time tongue

[ALLHDA]
$00A2=$43831002

[HDA]
TSR=TSR Found
PCI_VID=$1002
PCI_DID=$4383
cardmemregistersLO=$4000
cardmemregistersHI=$F7FF

[BUSMASTER]
myPCIHI=$0031
myPCILO=$0000
myPCImem=$00310000

[HDA_43831002,76621849]
wait1=$100
wait2=$100
PCI_BUS=$00
PCI_DEVICE=$14
PCI_FUNCTION=$2
GCAP=$4401
VMIN=$00
VMAJ=$01
GCTL=$0001
CODEC BITMAP=00000001
CODEC Index=$0
CODEC_VID=$10EC
CODEC_DID=$0662
CODEC_REV=$100101
CODEC_NODEINFO=$010001
CODEC_AFG_GPIO_CAP=$40000002
CODEC_AFG_SUBSYSTEM_ID=$18497662
CODEC_AFG_PM_SUPPORT=$0F
CODEC_AFG_PCM_DEFINITION=$E0160
CODEC_AFG_F000B=$01
SleepingWidget=$02
VolumeWidget=$14
OutputWidget=$02

With use of HDAICOUT.HDA there is nothing to hear anymore. I did some first tests with SET-verbs, and at least I got the noise/humming back, but without pitch variances when playing different WAV-files.

HDAICIN.TXT:
sent $001F7700; got $00000000 ticks=00000000
sent $001F7700; got $00000000 ticks=00000000
sent $01470760; got $00000000 ticks=00000000
sent $0143903F; got $00000000 ticks=00000000

Maybe you can give me some clue to enable the Beep Generator. undecided
« Last Edit: Nov 14th, 2017, 6:13pm by deomsh » User IP Logged

watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #92 on: Nov 14th, 2017, 8:09pm »
Quote

Is that the AMD/ATI board?
Which audio ports produce noise?

If you can hear anything at all, you should be able to adjust its volume.
A few of the settings in hdacfg.ini require manual adjustment.

If I recall properly, the settings I use with my 0662 are:
SleepingWidget=$02
VolumeWidget=$02
OutputWidget=$02

Values $03 and $04 work also, but may produce sound from different ports.
The same settings that produce Headphone output on one motherboard produce Line Out output on another.

Did you investigate AHDA17I.zip? (Reply #85)
With jacksense, finding the right port should no longer be like a game of pin the tail on the donkey.

I think that the beep generator is always on.
Try using AHDA17I to ask your CODEC if it has a beep control widget.


Why not have ASROCK,Realtek or AMD point you in the right direction so that you might beat the piņata ?

« Last Edit: Nov 14th, 2017, 8:22pm by watler » User IP Logged

deomsh
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 106
xx Re: High Definition Audio
« Reply #93 on: Nov 15th, 2017, 5:32pm »
Quote

Yes, I ment the ATI/AMD Board.

I experimented today with HDACFG.INI only and the three widgets you ment. And I have a question: What is the meaning of the "SleepingWidget", I have red today all earlier posts, but couldn't find a clue.

With "$OutputWidget=02" noise comes always from the rear green jack. According to the electric Block-diagram in the ALC662 specs the green jack belongs to pin-widget with NID 14 (sorry, "10" was a typo), getting signal from mixer-widget with NID 0C, fed by ADC-widget with NID 02. The Get-values I earlier retrieved seems to agree with the electric Block-diagram.

Sent HDAICOUT.HDA Got HDAICIN.TXT Meaning: Windows 7/10 High Definition Audio Utility v3.3
$002F0009 $0000001D DAC; Two channel; Out Amp Present; Amp Param Overide; Format Overide; Delay=0; Type: Audio Output;
$002F000A $000E0160 DAC:Supports 24/20/16-bit; 44.1/48.0/96.0kHz;
$002F000B $00000001 PCM
$002F0012 $00034040 Offset: 0x40; Num Steps: 0x40; Step Size 0x3, NoMute;
$003F0009 $0000001D DAC; Two channel; Out Amp Present; Amp Param Overide; Format Overide; Delay=0; Type: Audio Output;
$003F000A $000E0160 DAC:Supports 24/20/16-bit; 44.1/48.0/96.0kHz;
$003F000B $00000001 PCM
$003F0012 $00034040 Offset: 0x40; Num Steps: 0x40; Step Size 0x3, NoMute;
$004F0009 $0000001D DAC; Two channel; Out Amp Present; Amp Param Overide; Format Overide; Delay=0; Type: Audio Output;
$004F000A $000E0160 DAC:Supports 24/20/16-bit; 44.1/48.0/96.0kHz;
$004F000B $00000001 PCM
$004F0012 $00034040 Offset: 0x40; Num Steps: 0x40; Step Size 0x3, NoMute;
$00CF0009 $0020010B Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$00CF000D $80000000 Offset: 0x0; Num Steps: 0x0; Step Size 0x0, Mute;
$00CF000E $00000002 List Length: 0x2; No Long Form;
$00DF0009 $0020010B Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$00DF000D $80000000 Offset: 0x0; Num Steps: 0x0; Step Size 0x0, Mute;
$00DF000E $00000002 List Length: 0x2; No Long Form;
$00EF0009 $0020010B Mixer; Two channel; In Amp Present; Amp Param Overide; Connection List; Delay=0; Type: Audio Mixer;
$00EF000D $80000000 Offset: 0x0; Num Steps: 0x0; Step Size 0x0, Mute;
$00EF000E $00000002 List Length: 0x2; No Long Form;
$014F0009 $0040018D Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$014F000C $0001003C Presence Detect; Headphone Drive; Output; Input;
$014F000E $00000001 List Length: 0x1; No Long Form;
$014F0012 $80000000 Offset: 0x0; Num Steps: 0x0; Step Size 0x0, Mute;
$014F1C00 $01014010 Default: Green; 1/8" stereo/mono; Line Out; Rear;External; Jack;
$015F0009 $0040018D Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$015F000C $00010034 Presence Detect; Output; Input;
$015F000E $00000001 List Length: 0x1; No Long Form;
$015F0012 $80000000 Offset: 0x0; Num Steps: 0x0; Step Size 0x0, Mute;
$015F1C00 $411111F0 Presesence Detect Overide; Default: Black; 1/8" stereo/mono; Speaker; Rear;External; No Physical Port;
$016F0009 $0040018D Pin; Two channel; Out Amp Present; Amp Param Overide; UnSol Capable; Connection List; Delay=0; Type: Pin Complex;
$016F000C $00000034 Presence Detect; Output; Input;
$016F000E $00000001 List Length: 0x1; No Long Form;
$016F0012 $80000000 Offset: 0x0; Num Steps: 0x0; Step Size 0x0, Mute;
$016F1C00 $411111F0 Presesence Detect Overide; Default: Black; 1/8" stereo/mono; Speaker; Rear;External; No Physical Port;

I think (for now) that widget with NID 14 must be the default rear headphone output.

Further on I will concentrate on these three widgets with help of AHDA17I and I will report my findings wink
« Last Edit: Nov 19th, 2017, 07:40am by deomsh » User IP Logged

watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #94 on: Nov 15th, 2017, 7:19pm »
Quote

Power management allows for several power states.
Temporarily powered down is often referred to as sleeping.
The powerless widget must be empowered:The sleeping widget must be wakened.

If it can be made to work with your PC, AHDA might save you some time with data collection.

« Last Edit: Nov 15th, 2017, 7:19pm by watler » User IP Logged

watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #95 on: Nov 16th, 2017, 3:56pm »
Quote

Adjusted CORB/RIRB:
http://turkeys4me.byethost4.com/files/AHDA17J.7z

Changed hdaicout.hda:
http://turkeys4me.byethost4.com/files/HDADRV9E.zip
User IP Logged

deomsh
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 106
xx Re: High Definition Audio
« Reply #96 on: Nov 16th, 2017, 6:01pm »
Quote

First experiments with AHDA17I were succesfull when enabling CORB for verbs, but CORB reset between commands is still necessary. Is that by default?

I experimented with the value below, which I ment you said who will gave the codec longer time to respond? Even maximum value 99999999 made no difference. Or am I wrong?

My most succesfull experiment was disabling and enabling noise I can hear in the headphones with verb 0143B08F for disable and 0143B07F for enable noise again. Same for Right/Left channel with A or 9 instead of B. cool

IC still not working.

I will test soon new versions, but next days I don't have any spare time to test. cry
« Last Edit: Nov 16th, 2017, 6:13pm by deomsh » User IP Logged

watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #97 on: Nov 16th, 2017, 7:24pm »
Quote

I would think that 99999999 would take some time to complete.
Does it return instantly?

You have the only AMD/ATI hardware available.
Feel free to share your findings when you have time.

Have a happy Thanksgiving. grin
User IP Logged

deomsh
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 106
xx Re: High Definition Audio
« Reply #98 on: Nov 17th, 2017, 01:44am »
Quote

No, return is always instantly. By the way: button "Processlist" returns only (many times) $FFFFFFFF.
User IP Logged

watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #99 on: Nov 19th, 2017, 5:24pm »
Quote

Changed "Get 1" timing:
http://turkeys4me.byethost4.com/files/AHDA17K.7z
User IP Logged

deomsh
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 106
xx Re: High Definition Audio
« Reply #100 on: Nov 19th, 2017, 5:44pm »
Quote

I just finished a test of AHDA17J without HDA2.DLL. I see there is already a new version shocked

IC is not working with AHDA17J, only CORB for verbs, this version without delays. CORB reset between commands is still necessary.

My idea was to test the output of ALC662 only, using the BIOS-settings. My first goal was to enable the BEEP Generator. After lengthy manipulations of the rear headphone output (green, widget 14), the two channel mixer (widget 0C) that is hardwired to headphone output, and the nine-channel mixer (widget 0B) that can give a connection between the two channel mixer and the BEEP Generator (widget 1D).

I found the Realtek datasheet realy hard to understand, but with parallel reading of a Cirrus Logic HDA-codec datasheet and many tests I finally succeeded to get some nice low sound. cheesy

Verbs I used:
;TOTAL_TEST_PCBEEP
$0017FF00;CODEC_RESET
$01D70720;SET_PCBEEP_IN_ENABLE
$00170A5A;SET_PCBEEP_DIVISOR (48kHz:4X90)
$00B3757F;SET_AMP_GAIN_IN (CH5_MAX)
$00C3717F;SET_AMP_GAIN_IN (CH1_MAX)
$014707C0;SET_PIN_WIDGET_CONTROL (Head Phone&OUT)
$0143B07F;SET_AMP_GAIN_OUT (MAX)
END

Watch your ears! cool
« Last Edit: Nov 19th, 2017, 6:40pm by deomsh » User IP Logged

watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #101 on: Nov 19th, 2017, 7:55pm »
Quote

Sounds like monotoneous work. rolleyes

The CORB page checkbox still had no effect on the widget page?
Since you have the PDF files, I guess you don't really need AHDA.

Is HDADRV9E.zip/hdaicout.hda still silent?
What wait1 and wait2 values work best for you?
User IP Logged

deomsh
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 106
xx Re: High Definition Audio
« Reply #102 on: Nov 20th, 2017, 6:03pm »
Quote

No, the Widget page is still the same, nothing works.
In AHDA17J the CORB-commands are working great, I really enjoyed it. smiley

Today I took a look at AHDA17K, CORB is the same. In this version it is again possible to give wait values. This time I had to wait for output, especially around the max value of 32000 and a bit. cheesy Minimum value for my system was 132, below output's were only zero's (or first lines) 200 looks safe.
Reset between each command is still necessary. On the Widget page I couldn't start the codec anymore, after the first output-line: "HDA_SDO0CTL" , the program seemed to freeze. I will test next time again.

I also tried HDA2.DLL version 98E. Same results as 98D.
The DMA-value in the Setup tab is this (first!) time the same as the one in HDACFG.INI (although the HDA codec description is still the dull "ICH10/NFMCP61", tongue which is not really important of cause). I shall test different wait1/2-values next time.

HDACFG.INI:
[ALLHDA]
$00A2=$43831002

[HDA]
TSR=TSR Found
PCI_VID=$1002
PCI_DID=$4383

[BUSMASTER]
myPCIHI=$0032
myPCILO=$0000
myPCI=$00320000
aPCIHI=$0031
aPCILO=$0000
aPCI=$00310000

[HDA_43831002,76621849]
cardmemregistersLO=$4000
cardmemregistersHI=$F7FF
Verbinterface=$1
wait1=$100
wait2=$100
PCI_BUS=$00
PCI_DEVICE=$14
PCI_FUNCTION=$2
GCAP=$4401
VMIN=$00
VMAJ=$01
GCTL=$0001
CODEC BITMAP=00000001
CODEC Index=$0
CODEC_VID=$10EC
CODEC_DID=$0662
CODEC_REV=$100101
CODEC_NODEINFO=$010001
CODEC_AFG_GPIO_CAP=$40000002
CODEC_AFG_SUBSYSTEM_ID=$18497662
CODEC_AFG_PM_SUPPORT=$0F
CODEC_AFG_PCM_DEFINITION=$E0160
CODEC_AFG_F000B=$01
SleepingWidget=$02
VolumeWidget=$02
OutputWidget=$02

I also tried some verbs HDAICOUT.HDA to (extra) enable relevant widgets, without succes so far.

HDAICIN.TXT:
sent $0017FF00; got $00000000 ticks=00000000
sent $0017FF00; got $00000000 ticks=00000000
sent $014707C0; got $00000000 ticks=00000000
sent $0143B07F; got $00000000 ticks=00000000
sent $00C3707F; got $00000000 ticks=00000000
sent $0023B040; got $00000000 ticks=00000037
sent $002B8000; got $00000040 ticks=00000000

Enabling the BEEP Generator with following HDAICOUT.HDA works great.
;TEST_BEEP
$0017FF00;CODEC_RESET
$0017FF00;CODEC_RESET
$014707C0;SET_PIN_WIDGET_CONTROL_HP&OUT
$0143B07F;SET_AMP_GAIN_OUT_MAX
$00C3717F;SET_AMP_GAIN_IN_CH1_MAX
$00B3751F;SET_AMP_GAIN_IN_CH5_MAX
$00170A5A;SET_PCBEEP_DIVISOR
;$01D70720;SET_PCBEEP_IN_ENABLE (enabled by default, you were right) kiss
end
« Last Edit: Nov 20th, 2017, 6:05pm by deomsh » User IP Logged

watler
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 161
xx Re: High Definition Audio
« Reply #103 on: Nov 21st, 2017, 11:31am »
Quote

As an example, my Nforce Realtek 883 is very simple.

Edit the volume widget in hdacfg.ini :
VolumeWidget=$0C

Create HDAICOUT.HDA:
BEGIN first line
$014707F0
$0143B000
END last line

After that, you can play wave files.
(Just make shure that your batch files do not erase hdacfg.ini after that.)

http://turkeys4me.byethost4.com/files/AHDA17L.7z

Did you try the new hdaicout.hda included with 9E?
User IP Logged

deomsh
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 106
xx Re: High Definition Audio
« Reply #104 on: Nov 21st, 2017, 6:24pm »
Quote

Thanks for the tips.

To me it seems the problem is not in a pin widget, I can manipulatie output and mixers with BEEP.

I tested wait1 and wait2 up to 800, loading is very slow, but no difference, except that playing a 48000-file after 44100 took FOUR seconds of waiting time. Reverse the same. No waiting between different sound files of same (PCM)-frequency. The 48000 gives slightly higher sound/noise. Maybe there is a problem with the DAC, or with the HDA-link. Is that possible?

What is the meaning of verbinterface=$1 in HDACFG.INI?

I played a bit with new HDAICOUT.HDA, really nice, but no difference. I shall post HDAICIN.TXT later, including GET-verbs after ever SET.
User IP Logged

Pages: 1 ... 5 6 7 8 9  ...  12 Reply Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls