Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Dooks <ben@trinity.fluff.org>
To: Jassi Brar <jassi.brar@samsung.com>
Cc: alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com,
	ben-linux@fluff.org
Subject: Re: [PATCHv2 5/7] S3C AUDIO: Added platform data header
Date: Wed, 18 Nov 2009 00:02:47 +0000	[thread overview]
Message-ID: <20091118000247.GA23772@trinity.fluff.org> (raw)
In-Reply-To: <1258444430-24118-1-git-send-email-jassi.brar@samsung.com>

On Tue, Nov 17, 2009 at 04:53:50PM +0900, Jassi Brar wrote:
> Many SoCs have their I2S pins MUXed with other functions. So we need
> to pass a callback for driver to configure the pins appropriately.
> Hence, the need of platform data and this header.
> 
> As and when needed new callbacks and structure pointers maybe added to this
> header.
> 
> Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
> ---
>  arch/arm/plat-s3c/include/plat/audio.h |   17 +++++++++++++++++
>  1 files changed, 17 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/plat-s3c/include/plat/audio.h
> 
> diff --git a/arch/arm/plat-s3c/include/plat/audio.h b/arch/arm/plat-s3c/include/plat/audio.h
> new file mode 100644
> index 0000000..f22d23b
> --- /dev/null
> +++ b/arch/arm/plat-s3c/include/plat/audio.h
> @@ -0,0 +1,17 @@
> +/* arch/arm/plat-s3c/include/plat/audio.h
> + *
> + * Copyright (c) 2009 Samsung Electronics Co. Ltd
> + * Author: Jaswinder Singh <jassi.brar@samsung.com>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +/**
> + * struct s3c_audio_pdata - common platform data for audio device drivers
> + * @cfg_gpio: Callback function to setup mux'ed pins in I2S/PCM/AC97 mode
> + */
> +struct s3c_audio_pdata {
> +	int (*cfg_gpio)(struct platform_device *);
> +};
> -- 
> 1.6.2.5
> 

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

      reply	other threads:[~2009-11-18  0:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-17  7:53 [PATCHv2 5/7] S3C AUDIO: Added platform data header Jassi Brar
2009-11-18  0:02 ` Ben Dooks [this message]

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=20091118000247.GA23772@trinity.fluff.org \
    --to=ben@trinity.fluff.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=ben-linux@fluff.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=jassi.brar@samsung.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox