[alsa-devel] [PATCH 4/9] ASoC: Blackfin: DMA Driver for AC97 sound chip
Mark Brown
broonie at opensource.wolfsonmicro.com
Thu Sep 4 14:37:41 CEST 2008
On Thu, Sep 04, 2008 at 04:22:03PM +0800, Bryan Wu wrote:
> From: Cliff Cai <cliff.cai at analog.com>
>
> Signed-off-by: Bryan Wu <cooloney at kernel.org>
> Signed-off-by: Cliff Cai <cliff.cai at analog.com>
Acked-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
A couple of coding standards nits below but please fix these as an
incremental patch to save on reviewing.
> + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
> + curr = sport_curr_offset_tx(sport) / sizeof(struct ac97_frame);
> + else {
> + curr = sport_curr_offset_rx(sport) / sizeof(struct ac97_frame);
> +
> + }
Don't need the { }.
> + ret = snd_pcm_hw_constraint_integer(runtime, \
> + SNDRV_PCM_HW_PARAM_PERIODS);
> + if (ret < 0)
> + goto out;
No need for the line continuation here.
More information about the Alsa-devel
mailing list