Goldfish64 / AudioPkg

Audio stack for UEFI. Currently supports HD audio controllers/codecs. WIP
54 stars 10 forks source link

select codec to dump #2

Closed roddy20 closed 5 years ago

roddy20 commented 5 years ago

HdaCodecDump start Codec: NVIDIA (Unknown) AFG Function Id: 0x1 (unsol 0) Vendor ID: 0x10DE0042 Revision ID: 0x100100 Default PCM: N/A Default Amp-In caps: N/A Default Amp-Out caps: N/A ....... it works but I need a dump of Analog Codec, not HDMI how to fix that?

roddy20 commented 5 years ago

HdaCodecHandles[1] works Codec: Analog Devices AD1988B AFG Function Id: 0x1 (unsol 0) Vendor ID: 0x11D4198B Revision ID: 0x100400 Default PCM: rates [0x7FF]: 8000 11025 16000 22050 32000 44100 48000 88200 96000 176400 192000 bits [0xE]: 16 20 24 formats [0x1]: PCM Default Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x mute=0 Default Amp-Out caps: ofs=0x27, nsteps=0x27, stepsize=0x mute=5 Node 0x02 [Audio Output] wcaps 0x30311: Stereo Digital

roddy20 commented 5 years ago

for (UINTN i = 0; i < HdaCodecHandleCount; i++) { ..... } return EFI_SUCCESS; }

Goldfish64 commented 5 years ago

Yeah that application's code is still mostly test code from earlier in development. I'll get around to cleaning it up in time

roddy20 commented 5 years ago

after this change it works OK both with Codec and HDMI it is a great idea to make HDAdump independent of Linux, Windows, Codec Commander, VoodooHDA etc Thanks and happy holidays!