Android Stuck on boot after flashing the kernel I built (Waiting for service ‘media.audio_policy’ on ‘/dev/binder’… in logcat)

I have built the Kernel for my Samsung Android device. But after flashing it and booting the device it gets stuck on the Samsung Logo.

Device : SM-M015G
Kernel was obtained from Samsung Opensource
Android 10 (Since the kernel version is meant for Android 10)

When observing logcat the following message are being output for ever in a loop. (Sometimes with other logcat messages too)

06-11 22:36:45.844  1326  1692 I chatty  : uid=1000(system) AudioService identical 4 lines
06-11 22:36:45.944  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:45.976   803   803 W ServiceManagement: Waited one second for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
06-11 22:36:45.976   803   803 I ServiceManagement: getService: Trying again for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0...
06-11 22:36:46.044  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.245  1326  1692 I chatty  : uid=1000(system) AudioService identical 2 lines
06-11 22:36:46.345  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.346  1774  1774 D audio_hw_utils: audio_extn_utils_open_snd_mixer: retry, retry_num 10
06-11 22:36:46.445  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.746  1326  1692 I chatty  : uid=1000(system) AudioService identical 3 lines
06-11 22:36:46.846  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...
06-11 22:36:46.947  1326  1692 W ServiceManager: Service media.audio_policy didn't start. Returning NULL
06-11 22:36:46.947  1326  1692 W AudioSystem: AudioPolicyService not published, waiting...
06-11 22:36:46.976   803   803 W ServiceManagement: Waited one second for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
06-11 22:36:46.977   803   803 I ServiceManagement: getService: Trying again for android.hardware.camera.provider@2.4::ICameraProvider/legacy/0...
06-11 22:36:47.346  1774  1774 D audio_hw_utils: audio_extn_utils_open_snd_mixer: retry, retry_num 11
06-11 22:36:47.447  1326  1692 I ServiceManager: Waiting for service 'media.audio_policy' on '/dev/binder'...

Does anybody have any ideas to fix this?
Thanks.