Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel PCH support? #1

Open
sparky4 opened this issue Mar 6, 2023 · 49 comments
Open

Intel PCH support? #1

sparky4 opened this issue Mar 6, 2023 · 49 comments
Labels

Comments

@sparky4
Copy link

sparky4 commented Mar 6, 2023

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
Copy link
Owner

crazii commented Mar 8, 2023

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
Copy link
Author

sparky4 commented Mar 9, 2023

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

@sparky4
Copy link
Author

sparky4 commented Mar 22, 2023

okay got the new version confirmed crashing

@sparky4
Copy link
Author

sparky4 commented Mar 30, 2023

still crashing . lmk if you need testing! <3

@sparky4
Copy link
Author

sparky4 commented Apr 10, 2023

20230406_163125
The crash

@crazii
Copy link
Owner

crazii commented Apr 21, 2023

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
Copy link
Author

sparky4 commented Jun 1, 2023

ah okay

@sparky4
Copy link
Author

sparky4 commented Nov 14, 2023

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
Copy link
Contributor

Torinde commented Dec 30, 2023

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
Copy link
Author

sparky4 commented Jan 10, 2024

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
Copy link
Author

sparky4 commented Jan 31, 2024

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

@crazii
Copy link
Owner

crazii commented Jan 31, 2024

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
Copy link
Author

sparky4 commented Feb 4, 2024

will do! :D

@sparky4
Copy link
Author

sparky4 commented Feb 4, 2024

image
cant compile at latest pull

@sparky4
Copy link
Author

sparky4 commented Feb 4, 2024

image

@crazii
Copy link
Owner

crazii commented Feb 5, 2024

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

@crazii
Copy link
Owner

crazii commented Feb 5, 2024

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

@sparky4
Copy link
Author

sparky4 commented Feb 5, 2024

okay will do

@sparky4
Copy link
Author

sparky4 commented Feb 5, 2024

image

@crazii
Copy link
Owner

crazii commented Feb 5, 2024

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
Copy link
Author

sparky4 commented Feb 5, 2024

ah i did :D
20240205_135348

@crazii
Copy link
Owner

crazii commented Feb 5, 2024

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

@sparky4
Copy link
Author

sparky4 commented Feb 5, 2024

ah i can provide more screen shots
20240205_135352

@crazii
Copy link
Owner

crazii commented Feb 6, 2024

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
Copy link
Author

sparky4 commented Feb 6, 2024

okay let me pull and compile
g

@sparky4
Copy link
Author

sparky4 commented Feb 6, 2024

20240206_092217
20240206_092208
20240206_092019
20240206_092207

@crazii
Copy link
Owner

crazii commented Feb 6, 2024

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

@sparky4
Copy link
Author

sparky4 commented Feb 7, 2024

np

@crazii
Copy link
Owner

crazii commented Feb 9, 2024

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.

@crazii crazii added the drivers label Feb 15, 2024
@sparky4
Copy link
Author

sparky4 commented Feb 17, 2024

no sound still... imma enable debug

@sparky4
Copy link
Author

sparky4 commented Feb 17, 2024

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

@jiyunomegami
Copy link
Contributor

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

@sparky4
Copy link
Author

sparky4 commented Feb 24, 2024

image

@crazii
Copy link
Owner

crazii commented Feb 27, 2024

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

@crazii
Copy link
Owner

crazii commented Feb 27, 2024

project files updated.

@crazii
Copy link
Owner

crazii commented Feb 27, 2024

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
Copy link
Author

sparky4 commented Apr 26, 2024

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

@crazii
Copy link
Owner

crazii commented Apr 27, 2024

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
Copy link
Owner

crazii commented Apr 27, 2024

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
Copy link
Owner

crazii commented Apr 27, 2024

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
Copy link
Author

sparky4 commented May 27, 2024

ill test soon

@sparky4
Copy link
Author

sparky4 commented Jun 7, 2024

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

@sparky4
Copy link
Author

sparky4 commented Jun 7, 2024

i can test more now

@sparky4
Copy link
Author

sparky4 commented Jul 12, 2024

any changes?

@sparky4
Copy link
Author

sparky4 commented Sep 21, 2024

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

@volkertb
Copy link
Collaborator

@sparky4 Community testing is absolutely welcome! 🙂 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
Copy link
Collaborator

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.

@sparky4
Copy link
Author

sparky4 commented Jan 7, 2025

@volkertb yeah lets work on this driver! <3 i just been extreamly busy with life because i finished school. but i have very little time to work on this atm but i can test soon

@sparky4
Copy link
Author

sparky4 commented Feb 17, 2025

i am free again! so lets get to it! <3 send me an EXE (i forgot how to compile this ... xD)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants