Anyone can help me with my idea...

I'm working on a raspberry pi gameboy sp pcb

And I want to add headphone jack with this adapter

Sp headphone jack


And i have a few questions

i want the speaker working without the

headphone jack adapter plugged.

And if I plug the adapter shut speaker off and the headphone jack working

can I make it with normal wiring?


I do my researches and that what I found

Cbt3244a bus chip

its work as I want, but it’s manual switch with push button

I want that chip work automatically.

Any ideas?

Can someone help me with that and sorry for my bad English

Thanks in advance.