How to input hardware audio to vcv rack

How to input hardware audio to vcv rack, do I need two external sound cards, one for input and one for output?

If you have a soundcard with inputs, e.g. a Steinberg UR22mk2 with two inputs, these are mapped on the VCV Audio-8 module under “from Device”, see screenshot

Thanks for replay so do u use the one UR22mk2 for both?I mean to device and from device.

Yes, for inputs and outputs, as shown in the screenshot. I don’t think it can be done any other way. You can only use the “Audio-8” interface once per patch. There are interfaces with more outputs and inputs, but you can use only one soundcard interface at a time.

Thanks!problem solved.