Re: [PATCH 4/9] ASoC: Blackfin: DMA Driver for AC97 sound chip
From: Mark Brown
Date: Thu Sep 04 2008 - 08:38:27 EST
On Thu, Sep 04, 2008 at 04:22:03PM +0800, Bryan Wu wrote:
> From: Cliff Cai <cliff.cai@xxxxxxxxxx>
>
> Signed-off-by: Bryan Wu <cooloney@xxxxxxxxxx>
> Signed-off-by: Cliff Cai <cliff.cai@xxxxxxxxxx>
Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/