Certainly there are sockets that will do what you ask. Here is the data sheet for the UAC3552A.
http://www.datasheetcatalog.com/datashe ... 552A.shtml Page 27 of 29 shows the sch for a typical setup. It shows how the 3.5mm socket is wired to switch from digital to analogue when a jack is plugged into the socket.
There are more than one reason i mentioned using a switch.
1- Using a switch allows the addition of more than one analogue source. One switch (perhaps toggle) would select analogue / digital
and then a rotary switch to select different analogue sources. (Comp, CD, TV, Tape, etc)
2- I have not had much luck with the selection of 3.5mm sockets in the market. There are many different types/styles sold but only a few really stand the test of time. When they start going bad having the dig/anlog switching as part of it's function is just an added pain.
3- Having the switching done automatically when a source is plugged into the socket is cool and all but i just prefer to have control over what is going on myself. (Call me old fashioned)
4- Using a switch allows for more than one type of socket to be used for the source input. 3.5mm is common now days but so is RCA, and 1/4" phone jacks.
Have a look on some of the bigger company's sights for 3.5mm jacks and sockets. They come in many configurations from no switches to 1, 2 and sometimes 3 or 4 switches engaging when the plug is inserted. Companies like Digi-Key, Mouser, have a good selection of these at reasonable prices.
It's all just personal preference.