28 Nov
2011
28 Nov
'11
1:44 p.m.
On Mon, Nov 28, 2011 at 09:49:19AM +0200, Péter Ujfalusi wrote:
On Sunday 27 November 2011 19:50:41 Mark Brown wrote:
So what happens if the user starts recording at 192kHz then goes back to 96kHz? This all feels a bit clunky and fragile.
I expect another HW param calls. The stream is stopped, and I reconfigure the divider for 96KHz (I will not change the divider here, since the stream is 96KHz). I don't see any issue here.
Only if the user is using the same machine driver as you. If the user wants a fixed clock rate for the DMIC and sets it on init rather than resetting it every time hw_params() is called then this will break.