how to connect pre-amp

That usually means it has a driver or other software package to switch between the different services. This is not crazy-talk. There are soundcards that do this pretty well. If there is no sound management or other driver package, then you have a microphone input and you can’t easily do what you want with the existing hardware.

So you can add (buy) hardware.

https://forum.audacityteam.org/t/sound-card-reviews/8375/1

Microphone level and Line level are very different. You can’t make one box that will handle both without some fuss. For no other good reason, Microphone connections are usually Mono and Line is Stereo.

I keep trying to generate a good real-world concept example. If Line Level was the electrical power in the neighborhood power lines over your house, then Microphone Level would be the size of a flashlight battery. The two voltages are reeeeely different and the same equipment will not manage both.

Koz