Install virtual sound card

Hi,

I am trying to start a virtual sound automatic on boot but without any success so far.

When I am using

insmod testsoundcard.ko

it is recognized normally. But when i put the .ko file in

/lib/modules/"custom_kernel"/drivers

and after that using

depmod

and reboot is not working.

Tried on DietPI VMWare image on x86_64
On original Debian 11 x86_64 (VMWare tested also) working flawless with the above solution.

Any help would be appreciated.

Regards.