Sampling Frequency identification

I take in audio through the S/PDIF input for processing and sends the processed audio to the DAC's.

The recovered clock from the S/PDIF input is used to drive the Clock and Frame sync's of SPORT's and the DAC's.

I would like to know, if it is possible to determine the current sampling frequency of the S/PDIF input in some way so that I can initialize certain coefficients correctly according to the sampling frequency and also configure the DAC correctly.

Also, is it possible to detect if there is a change in the sampling frequency of the S/PDIF input so that I can re-configure the DAC's and the re-initialize the coefficients.

Can I accomplish the above using the SRC or the PCG or some other modules?

One way could be to use a timer in "Pulse Width Count and Capture Mode". The recovered LRCLK by the SPDIF receiver can be brought out at a DAI pin which can be then connected externllay to a DPI pin which is routed to the timer input signal.