From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 01/10] ASoc: mxs: add mxs-pcm driver Date: Sat, 9 Jul 2011 03:33:58 +0100 Message-ID: <20110709023358.GB26900@sirena.org.uk> References: <1310140790-2132-1-git-send-email-b29396@freescale.com> <1310140790-2132-2-git-send-email-b29396@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1310140790-2132-2-git-send-email-b29396@freescale.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Dong Aisheng Cc: alsa-devel@alsa-project.org, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org, lrg@ti.com List-Id: alsa-devel@alsa-project.org On Fri, Jul 08, 2011 at 11:59:41PM +0800, Dong Aisheng wrote: > Signed-off-by: Dong Aisheng *Always* CC maintainers on patches. > + * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved. > + * > + * Refer to sound/soc/imx/imx-pcm-dma-mx2.c Why? > + iprtd->buf = (unsigned int *)substream->dma_buffer.area; This cast looks incredibly suspicious... > +static int snd_mxs_pcm_prepare(struct snd_pcm_substream *substream) > +{ > + return 0; > +} > + Remove empty functions. > +static int snd_mxs_pcm_trigger(struct snd_pcm_substream *substream, int cmd) > +{ > + struct snd_pcm_runtime *runtime = substream->runtime; > + struct mxs_pcm_runtime_data *iprtd = runtime->private_data; > + > + switch (cmd) { > + case SNDRV_PCM_TRIGGER_START: > + case SNDRV_PCM_TRIGGER_RESUME: > + case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: > + dmaengine_submit(iprtd->desc); > + > + break; > + Why the random blank line? > +static struct platform_driver mxs_pcm_driver = { > + .driver = { > + .name = "mxs-pcm-audio", > + .owner = THIS_MODULE, Indentation here is very odd... From mboxrd@z Thu Jan 1 00:00:00 1970 From: broonie@opensource.wolfsonmicro.com (Mark Brown) Date: Sat, 9 Jul 2011 03:33:58 +0100 Subject: [PATCH 01/10] ASoc: mxs: add mxs-pcm driver In-Reply-To: <1310140790-2132-2-git-send-email-b29396@freescale.com> References: <1310140790-2132-1-git-send-email-b29396@freescale.com> <1310140790-2132-2-git-send-email-b29396@freescale.com> Message-ID: <20110709023358.GB26900@sirena.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Jul 08, 2011 at 11:59:41PM +0800, Dong Aisheng wrote: > Signed-off-by: Dong Aisheng *Always* CC maintainers on patches. > + * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved. > + * > + * Refer to sound/soc/imx/imx-pcm-dma-mx2.c Why? > + iprtd->buf = (unsigned int *)substream->dma_buffer.area; This cast looks incredibly suspicious... > +static int snd_mxs_pcm_prepare(struct snd_pcm_substream *substream) > +{ > + return 0; > +} > + Remove empty functions. > +static int snd_mxs_pcm_trigger(struct snd_pcm_substream *substream, int cmd) > +{ > + struct snd_pcm_runtime *runtime = substream->runtime; > + struct mxs_pcm_runtime_data *iprtd = runtime->private_data; > + > + switch (cmd) { > + case SNDRV_PCM_TRIGGER_START: > + case SNDRV_PCM_TRIGGER_RESUME: > + case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: > + dmaengine_submit(iprtd->desc); > + > + break; > + Why the random blank line? > +static struct platform_driver mxs_pcm_driver = { > + .driver = { > + .name = "mxs-pcm-audio", > + .owner = THIS_MODULE, Indentation here is very odd...