linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Liam Girdwood <lrg@ti.com>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Shawn Guo <shawn.guo@linaro.org>,
	Javier Martin <javier.martin@vista-silicon.com>,
	Mauro Carvalho Chehab <mchehab@redhat.com>
Subject: linux-next: manual merge of the sound-asoc tree with the v4l-dvb tree
Date: Tue, 18 Sep 2012 12:26:04 +1000	[thread overview]
Message-ID: <20120918122604.be2d46aa6616f308f756ef4d@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]

Hi all,

Today's linux-next merge of the sound-asoc tree got a conflict in
arch/arm/mach-imx/mach-imx27_visstrim_m10.c between commit b6c14dc29757
("[media] Visstrim M10: Add support for Coda") from the v4l-dvb tree and
commit d41789b2660e ("ASoC: mx27vis: retrieve gpio numbers from
platform_data") from the sound-asoc tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc arch/arm/mach-imx/mach-imx27_visstrim_m10.c
index 821d6aa,5627229..0000000
--- a/arch/arm/mach-imx/mach-imx27_visstrim_m10.c
+++ b/arch/arm/mach-imx/mach-imx27_visstrim_m10.c
@@@ -32,6 -32,8 +32,7 @@@
  #include <linux/delay.h>
  #include <linux/dma-mapping.h>
  #include <linux/leds.h>
 -#include <linux/memblock.h>
+ #include <linux/platform_data/asoc-mx27vis.h>
  #include <media/soc_camera.h>
  #include <sound/tlv320aic32x4.h>
  #include <asm/mach-types.h>
@@@ -403,47 -436,14 +434,55 @@@ static const struct imx_ssi_platform_da
  	.flags			= IMX_SSI_DMA | IMX_SSI_SYN,
  };
  
 +/* coda */
 +
 +static void __init visstrim_coda_init(void)
 +{
 +	struct platform_device *pdev;
 +	int dma;
 +
 +	pdev = imx27_add_coda();
 +	dma = dma_declare_coherent_memory(&pdev->dev,
 +					  mx2_camera_base + MX2_CAMERA_BUF_SIZE,
 +					  mx2_camera_base + MX2_CAMERA_BUF_SIZE,
 +					  MX2_CAMERA_BUF_SIZE,
 +					  DMA_MEMORY_MAP | DMA_MEMORY_EXCLUSIVE);
 +	if (!(dma & DMA_MEMORY_MAP))
 +		return;
 +}
 +
 +/* DMA deinterlace */
 +static struct platform_device visstrim_deinterlace = {
 +	.name = "m2m-deinterlace",
 +	.id = 0,
 +};
 +
 +static void __init visstrim_deinterlace_init(void)
 +{
 +	int ret = -ENOMEM;
 +	struct platform_device *pdev = &visstrim_deinterlace;
 +	int dma;
 +
 +	ret = platform_device_register(pdev);
 +
 +	dma = dma_declare_coherent_memory(&pdev->dev,
 +					  mx2_camera_base + 2 * MX2_CAMERA_BUF_SIZE,
 +					  mx2_camera_base + 2 * MX2_CAMERA_BUF_SIZE,
 +					  MX2_CAMERA_BUF_SIZE,
 +					  DMA_MEMORY_MAP | DMA_MEMORY_EXCLUSIVE);
 +	if (!(dma & DMA_MEMORY_MAP))
 +		return;
 +}
 +
 +
+ /* Audio */
+ static const struct snd_mx27vis_platform_data snd_mx27vis_pdata __initconst = {
+ 	.amp_gain0_gpio = AMP_GAIN_0,
+ 	.amp_gain1_gpio = AMP_GAIN_1,
+ 	.amp_mutel_gpio = AMP_MUTE_SDL,
+ 	.amp_muter_gpio = AMP_MUTE_SDR,
+ };
+ 
  static void __init visstrim_m10_revision(void)
  {
  	int exp_version = 0;

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

                 reply	other threads:[~2012-09-18  2:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20120918122604.be2d46aa6616f308f756ef4d@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=javier.martin@vista-silicon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=mchehab@redhat.com \
    --cc=shawn.guo@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).