Hi,
On Tuesday 01 June 2010 14:18:24 Ujfalusi Peter (Nokia-D/Tampere) wrote:
...
> +static int omap_mcbsp_hwrule_min_buffersize(struct snd_pcm_hw_params
> *params, + struct snd_pcm_hw_rule *rule)
> +{
> + struct snd_interval *buffer_size = hw_param_interval(params,
> + SNDRV_PCM_HW_PARAM_BUFFER_SIZE);
> + struct snd_interval *channels = hw_param_interval(params,
> + SNDRV_PCM_HW_PARAM_CHANNELS);
> + struct omap_mcbsp_data *mcbsp_data = rule->private;
> + struct snd_interval frames;
> + int size;
> +
> + snd_interval_any(&frames);
> + size = omap_mcbsp_get_fifo_size(mcbsp_data->bus_id);
> +
> + frames.min = size / channels->min;
> + frames.integer = 1;
> + return snd_interval_refine(buffer_size, &frames);
> +
> +}
Just noticed this extra line after the return...
Should I resend?
--
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html