On Thu, Jul 24, 2014 at 07:08:19PM -0700, Kuninori Morimoto wrote:
48kHz ---> 48kHz 44.1kHz ---> [SRC] ---> [codec] 96kHz --->
This is something which really should be implemented using the frameworks (DPCM mainly in this case as previously discussed for this and other bits of the hardware) rather than with something custom to the driver - we already have a way of forcing a DAI link into a single configuration, we should be using it.
If my understand is correct, current upstream code doesn't have above feature at this point, and, I can update DPCM feature for it ?
If yes, and if I want to exchange rate from 96kHz -> 48kHz, I can use be->dai_link->be_hw_params_fixup() for 48kHz settings ?
That's the idea, yes.
Then, FE side want to know this result (= BE want to use 48kHz). I can add something new method for it ?
Let's have a look at the code - it might be easier to do it within the driver but a framework feature is also OK.
Or does current upstream code already have something this feature ?
No, just the fixup functions.