All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: add SuperH DAC audio driver for ALSA
Date: Mon, 19 Oct 2009 07:01:41 +0000	[thread overview]
Message-ID: <20091019070141.GA18597@linux-sh.org> (raw)
In-Reply-To: <20091008013423.GA26059@rafazurita.homelinux.net>

On Fri, Oct 16, 2009 at 12:22:36PM -0300, Rafael Ignacio Zurita wrote:
> Regarding platform bits, let me show you just the current idea to 
> put the platform bits in the proper place : 
> 
>  arch/sh/boards/mach-hp6xx/setup.c        |   58 ++++
>  include/sound/dac_audio.h                |   21 ++
>  sound/sh/snd_sh_dac_audio.c              |  471 ++++++++++++++++++++++++++++++
> 
> diff --git a/arch/sh/boards/mach-hp6xx/setup.c b/arch/sh/boards/mach-hp6xx/setup.c
> index 8f305b3..826a499 100644
> --- a/arch/sh/boards/mach-hp6xx/setup.c
> +++ b/arch/sh/boards/mach-hp6xx/setup.c
> @@ -13,6 +13,7 @@
>  #include <linux/init.h>
>  #include <linux/platform_device.h>
>  #include <linux/irq.h>
> +#include <sound/dac_audio.h>
>  #include <asm/hd64461.h>
>  #include <asm/io.h>
>  #include <mach/hp6xx.h>
> @@ -51,9 +52,66 @@ static struct platform_device jornadakbd_device = {
>  	.id		= -1,
>  };
>  
> +static void dac_audio_start(struct dac_audio_pdata *pdata);
> +static void dac_audio_stop(struct dac_audio_pdata *pdata);
> +
> +static struct dac_audio_pdata dac_audio_platform_data = {
> +	.buffer_size		= 64000,
> +	.channel		= 1,
> +	.start			= dac_audio_start,
> +	.stop			= dac_audio_stop,
> +};
> +
You don't need the prototype definitions, just move the platform data
definition further down.

> Is that idea better for the platform device? The new include/sound/dac_audio.h
> file has the struct for the platform data. Perhaps another platform would like
> to use the same struct, if it needs to use the driver (it should set the values
> for the members in its board code).
> 
Yes, that looks fine.

  parent reply	other threads:[~2009-10-19  7:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08  1:34 [PATCH] sh: add SuperH DAC audio driver for ALSA Rafael Ignacio Zurita
2009-10-08  8:38 ` Kristoffer Ericson
2009-10-09  1:22 ` Paul Mundt
2009-10-16 15:22 ` Rafael Ignacio Zurita
2009-10-19  7:01 ` Paul Mundt [this message]
2009-10-21  1:38 ` [PATCH] sh: add SuperH DAC audio driver for ALSA V2 Rafael Ignacio Zurita
2009-10-22  1:56 ` Paul Mundt
  -- strict thread matches above, loose matches on Subject: below --
2009-10-22 20:25 [PATCH] sh: add SuperH DAC audio driver for ALSA V3 Rafael Ignacio Zurita
2009-10-22 20:25 ` Rafael Ignacio Zurita
2009-10-26  0:31 ` Paul Mundt
2009-10-26  0:31   ` Paul Mundt
2009-10-30 11:24 ` Takashi Iwai
2009-10-30 11:59   ` Paul Mundt
2009-11-02 17:03     ` Rafael Ignacio Zurita
2009-11-03  6:01       ` Takashi Iwai
2009-11-03 20:16 [PATCH] sh: add SuperH DAC audio driver for ALSA V4 Rafael Ignacio Zurita
2009-11-03 20:16 ` Rafael Ignacio Zurita
2009-11-04  3:13 ` Paul Mundt
2009-11-04  3:13   ` Paul Mundt
2009-11-04  8:19 ` [alsa-devel] " Takashi Iwai
2009-11-04  8:19   ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091019070141.GA18597@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.