···3333 before the last samples are sent to the codec and so things are done in
3434 parallel (as much as possible) with sending-out data. */
35353636-static unsigned int mixer_sampr = HW_SAMPR_DEFAULT;
3636+static unsigned int mixer_sampr = -1UL;
3737static unsigned int mix_frame_size = MIX_FRAME_SAMPLES*4;
38383939/* Define this to nonzero to add a marker pulse at each frame start */
···266266#endif
267267268268 /* Requires a shared global sample rate for all channels */
269269- pcm_set_frequency(mixer_sampr);
269269+ if (mixer_sampr == -1UL)
270270+ mixer_sampr = pcm_get_frequency();
271271+ else
272272+ pcm_set_frequency(mixer_sampr);
270273271274 /* Prepare initial frames and set up the double buffer */
272275 mixer_buffer_callback(PCM_DMAST_STARTED);