Sound format for I2S2

I want to use S24_LE or S32_LE sound format to record sound. How will I modify codes ? I will use I2S2.