How to correctly add audio line in / Audio Amplifier Board

Hi guys ,

I have added a line-in and it works for music reaction …etc . without a mic .However once I connect line-in I hear minor static on my headphone which means I am doing something wrong

I want to add audio line-in as per the wiki but do not want to add too many resistors and capacitors .
Does adding PAM8403 solve the issue ? PAM8406 is not available locally but does it also work ?
Appreciate if you can help with wiring for the same

https://www.amazon.com/HiLetgo®-PAM8403-Digital-Amplifier-2-5-5V/dp/B00LODGV64/ref=sr_1_1?crid=1ULR6497BCABC&keywords=PAM8403&qid=1642326851&sprefix=pam8403%2Caps%2C190&sr=8-1

[Edit: I found the static issue is due to bad audio cable . Also I think the above boards are not what I am looking for as they are meant to amplify the sound to speakers , any recommendation or help is still appreciated ]

I like the new diagram though it is a bit bright lol.

PCB_NEW_PCB_2022-01-16