Ask both departments if you can transfer. Be open about your reasons, but obviously without being dismissive about the course you're currently on or the people who teach that course. If the university wishes you to stay on your current course, maybe give it a bit longer with a positive attitude to see if the course engages your interest.