Switching clock when changing frequency of playback

Hello all,

I am currently working on a project where I have a switching clock on my MCASP input. This is both a ~11.9Mhz clock and 24.5MHZ so i can both play 48Khz and 44.1Khz playback.

Now the problem: I have to switch a GPIO to change this clock, and change the MCASP clock. This already works correctly. However, my inital idea was to disable resampling in userspace ALSA. And than checking what the current frequency is in kernel. So I checked some functions to see if i can find the playbacked bitrate of audio. Unfortunately i did not manage to succeed. Is there someone who might have an idea how to do this?