crazii / SBEMU

legacy sound blaster emulation for DOS
GNU General Public License v2.0
624 stars 33 forks source link

Intel PCH support? #1

Open sparky4 opened 1 year ago

sparky4 commented 1 year ago

My current laptop has a 00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)

HDA Intel PCH

will you add support for this card?

also this is an amazing program! <3

crazii commented 1 year ago

MPXPlay has PCH support, it's a subset of HDA. but might not work for all PCs. have you test it? It doesn't have Cannon Lake as PCH, but as SKL. Here's a part of MPXPlay's device list {"Intel PCH (Panther Point)", 0x8086, 0x1e20, AZX_DRIVER_PCH }, {"Intel PCH (Lynx Point)", 0x8086, 0x8c20, AZX_DRIVER_PCH }, {"Intel PCH (9 Series)", 0x8086, 0x8ca0, AZX_DRIVER_PCH }, {"Intel PCH (Wellsburg)", 0x8086, 0x8d20, AZX_DRIVER_PCH }, {"Intel PCH (Wellsburg)", 0x8086, 0x8d21, AZX_DRIVER_PCH }, {"Intel PCH (Lewisburg)", 0x8086, 0xa1f0, AZX_DRIVER_PCH }, {"Intel PCH (Lewisburg)", 0x8086, 0xa270, AZX_DRIVER_PCH }, {"Intel PCH (Lynx Point-LP)", 0x8086, 0x9c20, AZX_DRIVER_PCH }, {"Intel PCH (Lynx Point-LP)", 0x8086, 0x9c21, AZX_DRIVER_PCH }, {"Intel PCH (Wildcat Point-LP)",0x8086, 0x9ca0, AZX_DRIVER_PCH }, {"Intel SKL (Cannonlake)", 0x8086, 0x9dc8, AZX_DRIVER_SKL },

sparky4 commented 1 year ago

Yes i tested it on my thinkpad p53 No sound at all

sparky4 commented 1 year ago

okay got the new version confirmed crashing

sparky4 commented 1 year ago

still crashing . lmk if you need testing! <3

sparky4 commented 1 year ago

20230406_163125 The crash

crazii commented 1 year ago

Please wait that I need a real hardware to debug. I have a Lenovo T540p which is working. - don't know differences between the two. possibly all HDA sounds.

sparky4 commented 1 year ago

ah okay

sparky4 commented 1 year ago

okay disabling the touchpad in a different os fixes the crash xinput --disable "Elan Touchpad" there is no sound out of this laptop when i use the driver

Torinde commented 10 months ago

The website focused on Win3.1 drivers has some HDA materials:

I think there is source code in that - potentially useful to improve the DOS implementation? But I may be mistaken.

sparky4 commented 10 months ago

cant seem to link the objects together to make sbemu.exe latest version from pull. there is a bunch of undefined references trying to compile in dos with rhide

sparky4 commented 9 months ago

ah it compiles now... the proram gets stuck at switching to pio

crazii commented 9 months ago

ah it compiles now... the proram gets stuck at switching to pio

Sorry for that. we might need more investigation on PIO. the PIO mode works for @jiyunomegami 's PCs.

EDIT: can you perform a debug build with make DEBUG=1 to check the output logs?

sparky4 commented 9 months ago

will do! :D

sparky4 commented 9 months ago

image cant compile at latest pull

sparky4 commented 9 months ago

image

crazii commented 9 months ago

plz wait a moment, I'll update the RHIDE project file.

crazii commented 9 months ago

updated, plz also uncomment the line 18 in sc_inthd.c //#define MPXPLAY_USE_DEBUGF 1 so that there'll be more info.

sparky4 commented 9 months ago

okay will do

sparky4 commented 9 months ago

image

crazii commented 9 months ago

sorry, that file is just removed. can you run the menu "windows" -> "project" then in the project window, find test.c (pres 't' 'e' then it will be located) and delete it (press delete and confirm yes) I'll update the project file later.

sparky4 commented 9 months ago

ah i did :D 20240205_135348

crazii commented 9 months ago

Thanks, I think the PIO check still needs to be performed anyway. You'll be informed when there's improvements.

sparky4 commented 9 months ago

ah i can provide more screen shots 20240205_135352

crazii commented 9 months ago

Hi, the PIO checking code is added, you can confirm if it is working by using the latest zip, if it isn't, then the RHIDE project file is also update, you can still get debug log/infos using the same way above.

sparky4 commented 9 months ago

okay let me pull and compile g

sparky4 commented 9 months ago

20240206_092217 20240206_092208 20240206_092019 20240206_092207

crazii commented 9 months ago

It seems the CORB/RIRB and PIO both failed. I'll check the code later, thanks

sparky4 commented 9 months ago

np

crazii commented 9 months ago

Hi, there's an additional fix for the CORB/RIRB and PIO problem, you can test with the latest build: https://github.com/crazii/SBEMU/releases/tag/UserBuild_2024.02.09_01-59

plz make sure that the HDPMI32i.exe is also used from this zip, because it's updated too.

sparky4 commented 9 months ago

no sound still... imma enable debug

sparky4 commented 9 months ago

Screenshot_2024-02-17_10-12-34 cant compile latest version

jiyunomegami commented 9 months ago

@sparky4 Add {} to the end of that line 468, so it looks like this: err_out_auinit:{}

sparky4 commented 8 months ago

image

crazii commented 8 months ago

wait a sec and I'll update the project file, and there's some more changes in the proejct config too.

crazii commented 8 months ago

project files updated.

crazii commented 8 months ago

alternatively you can use the makefile to perform build, the makefile will enumerate all files on current dir so it doesn't need to be updated. you can use make -f makefile.dos to build and make -f makefile.dos clean to clean, on dos command line.

sparky4 commented 6 months ago

okay i cant compile latest version.. and the latest release dose not have support for the specific sound card i use

crazii commented 6 months ago

is it the same sound card you tested before? so it could detect your card before (not working) but now fails to detect it?

crazii commented 6 months ago

can you use this zip directly to post the logs? you can run SBEMU > log.txt to save it. and other files (JEMMEX HDPMI) can be obtained from the latest build. sbemu_HDALOG.zip

about the build error, there're many few files added and I'll figure out a time tomorrow to fix it.

crazii commented 6 months ago

BTW you can try build it in WSL or MinGW, with make -j4 or -j8 to boost the build process by build it in parallel, because with the source code bloating, it's not suitable to compile in under DOS anymore - it takes too long.

sparky4 commented 5 months ago

ill test soon

sparky4 commented 5 months ago

20240607_131256 20240607_131248 20240607_131302 here is the screen shots!

sparky4 commented 5 months ago

i can test more now

sparky4 commented 4 months ago

any changes?

sparky4 commented 1 month ago

i has a spare laptop i can let you borrow it! :D

volkertb commented 4 weeks ago

@sparky4 Community testing is absolutely welcome! :slightly_smiling_face: Is there anything specific that you need @crazii for here, with your tests? He's not always available to work on this project.

I also haven't always been quick to respond lately. But if you think I can help, please let me know.

volkertb commented 4 weeks ago

By the way, I've been working on an automated CI/CD test, but for some reason, the built executable doesn't seem to be outputting sound int he QEMU VM that I spin up in the test. Not sure if it's related to the compatibility issues people have been reporting on GitHub. Any help is welcome there. This is my PR for this.