From: Bo Shen <voice.shen@atmel.com>
To: Joachim Eastwood <manabian@gmail.com>
Cc: plagnioj@jcrosoft.com, nicolas.ferre@atmel.com,
broonie@opensource.wolfsonmicro.com,
linux-arm-kernel@lists.infradead.org,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH] ASoC: atmel-soc: make it buildable on other architectures
Date: Mon, 10 Dec 2012 17:54:20 +0800 [thread overview]
Message-ID: <50C5B14C.4050107@atmel.com> (raw)
In-Reply-To: <1354973002-13588-1-git-send-email-manabian@gmail.com>
Hi Joachim Eastwood,
On 12/8/2012 21:23, Joachim Eastwood wrote:
> Not very useful on non AT91/AVR32 platforms but it provides
> more build coverage and prepares for ARM multiplatform.
>
> Also fixes a couple of format type warnings.
>
> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
> ---
>
> Hi,
>
> Build tested on RM9200 and x86_64.
>
> ARCH_AT91 depend is pushed down to the machine drivers
> since they still relies on mach includes.
>
> regards
> Joachim Eastwood
>
> sound/soc/atmel/Kconfig | 6 +++---
> sound/soc/atmel/atmel-pcm-pdc.c | 4 ++--
> sound/soc/atmel/atmel-pcm.c | 2 +-
> sound/soc/atmel/atmel_ssc_dai.c | 2 --
> 4 files changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/sound/soc/atmel/Kconfig b/sound/soc/atmel/Kconfig
> index d1b691b..3fdd87f 100644
> --- a/sound/soc/atmel/Kconfig
> +++ b/sound/soc/atmel/Kconfig
> @@ -1,6 +1,6 @@
> config SND_ATMEL_SOC
> tristate "SoC Audio for the Atmel System-on-Chip"
> - depends on ARCH_AT91
> + depends on HAS_IOMEM
I don't think this change needed. This is not a physical device.
Best Regards,
Bo Shen
> help
> Say Y or M if you want to add support for codecs attached to
> the ATMEL SSC interface. You will also need
> @@ -24,7 +24,7 @@ config SND_ATMEL_SOC_SSC
>
> config SND_AT91_SOC_SAM9G20_WM8731
> tristate "SoC Audio support for WM8731-based At91sam9g20 evaluation board"
> - depends on ATMEL_SSC && SND_ATMEL_SOC && AT91_PROGRAMMABLE_CLOCKS
> + depends on ARCH_AT91 && ATMEL_SSC && SND_ATMEL_SOC && AT91_PROGRAMMABLE_CLOCKS
> select SND_ATMEL_SOC_PDC
> select SND_ATMEL_SOC_SSC
> select SND_SOC_WM8731
> @@ -34,7 +34,7 @@ config SND_AT91_SOC_SAM9G20_WM8731
>
> config SND_AT91_SOC_AFEB9260
> tristate "SoC Audio support for AFEB9260 board"
> - depends on ATMEL_SSC && ARCH_AT91 && MACH_AFEB9260 && SND_ATMEL_SOC
> + depends on ARCH_AT91 && ATMEL_SSC && ARCH_AT91 && MACH_AFEB9260 && SND_ATMEL_SOC
> select SND_ATMEL_SOC_PDC
> select SND_ATMEL_SOC_SSC
> select SND_SOC_TLV320AIC23
> diff --git a/sound/soc/atmel/atmel-pcm-pdc.c b/sound/soc/atmel/atmel-pcm-pdc.c
> index 6a293c7..054ea4d 100644
> --- a/sound/soc/atmel/atmel-pcm-pdc.c
> +++ b/sound/soc/atmel/atmel-pcm-pdc.c
> @@ -159,7 +159,7 @@ static int atmel_pcm_hw_params(struct snd_pcm_substream *substream,
>
> pr_debug("atmel-pcm: "
> "hw_params: DMA for %s initialized "
> - "(dma_bytes=%u, period_size=%u)\n",
> + "(dma_bytes=%zu, period_size=%zu)\n",
> prtd->params->name,
> runtime->dma_bytes,
> prtd->period_size);
> @@ -201,7 +201,7 @@ static int atmel_pcm_trigger(struct snd_pcm_substream *substream,
> int ret = 0;
>
> pr_debug("atmel-pcm:buffer_size = %ld,"
> - "dma_area = %p, dma_bytes = %u\n",
> + "dma_area = %p, dma_bytes = %zu\n",
> rtd->buffer_size, rtd->dma_area, rtd->dma_bytes);
>
> switch (cmd) {
> diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
> index e99f181..3109db7 100644
> --- a/sound/soc/atmel/atmel-pcm.c
> +++ b/sound/soc/atmel/atmel-pcm.c
> @@ -49,7 +49,7 @@ static int atmel_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
> buf->private_data = NULL;
> buf->area = dma_alloc_coherent(pcm->card->dev, size,
> &buf->addr, GFP_KERNEL);
> - pr_debug("atmel-pcm: alloc dma buffer: area=%p, addr=%p, size=%d\n",
> + pr_debug("atmel-pcm: alloc dma buffer: area=%p, addr=%p, size=%zu\n",
> (void *)buf->area, (void *)buf->addr, size);
>
> if (!buf->area)
> diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
> index 1c76634..2755750 100644
> --- a/sound/soc/atmel/atmel_ssc_dai.c
> +++ b/sound/soc/atmel/atmel_ssc_dai.c
> @@ -42,8 +42,6 @@
> #include <sound/initval.h>
> #include <sound/soc.h>
>
> -#include <mach/hardware.h>
> -
> #include "atmel-pcm.h"
> #include "atmel_ssc_dai.h"
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Bo Shen <voice.shen@atmel.com>
To: Joachim Eastwood <manabian@gmail.com>
Cc: plagnioj@jcrosoft.com, nicolas.ferre@atmel.com,
broonie@opensource.wolfsonmicro.com,
linux-arm-kernel@lists.infradead.org,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH] ASoC: atmel-soc: make it buildable on other architectures
Date: Mon, 10 Dec 2012 09:54:20 +0000 [thread overview]
Message-ID: <50C5B14C.4050107@atmel.com> (raw)
In-Reply-To: <1354973002-13588-1-git-send-email-manabian@gmail.com>
Hi Joachim Eastwood,
On 12/8/2012 21:23, Joachim Eastwood wrote:
> Not very useful on non AT91/AVR32 platforms but it provides
> more build coverage and prepares for ARM multiplatform.
>
> Also fixes a couple of format type warnings.
>
> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
> ---
>
> Hi,
>
> Build tested on RM9200 and x86_64.
>
> ARCH_AT91 depend is pushed down to the machine drivers
> since they still relies on mach includes.
>
> regards
> Joachim Eastwood
>
> sound/soc/atmel/Kconfig | 6 +++---
> sound/soc/atmel/atmel-pcm-pdc.c | 4 ++--
> sound/soc/atmel/atmel-pcm.c | 2 +-
> sound/soc/atmel/atmel_ssc_dai.c | 2 --
> 4 files changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/sound/soc/atmel/Kconfig b/sound/soc/atmel/Kconfig
> index d1b691b..3fdd87f 100644
> --- a/sound/soc/atmel/Kconfig
> +++ b/sound/soc/atmel/Kconfig
> @@ -1,6 +1,6 @@
> config SND_ATMEL_SOC
> tristate "SoC Audio for the Atmel System-on-Chip"
> - depends on ARCH_AT91
> + depends on HAS_IOMEM
I don't think this change needed. This is not a physical device.
Best Regards,
Bo Shen
> help
> Say Y or M if you want to add support for codecs attached to
> the ATMEL SSC interface. You will also need
> @@ -24,7 +24,7 @@ config SND_ATMEL_SOC_SSC
>
> config SND_AT91_SOC_SAM9G20_WM8731
> tristate "SoC Audio support for WM8731-based At91sam9g20 evaluation board"
> - depends on ATMEL_SSC && SND_ATMEL_SOC && AT91_PROGRAMMABLE_CLOCKS
> + depends on ARCH_AT91 && ATMEL_SSC && SND_ATMEL_SOC && AT91_PROGRAMMABLE_CLOCKS
> select SND_ATMEL_SOC_PDC
> select SND_ATMEL_SOC_SSC
> select SND_SOC_WM8731
> @@ -34,7 +34,7 @@ config SND_AT91_SOC_SAM9G20_WM8731
>
> config SND_AT91_SOC_AFEB9260
> tristate "SoC Audio support for AFEB9260 board"
> - depends on ATMEL_SSC && ARCH_AT91 && MACH_AFEB9260 && SND_ATMEL_SOC
> + depends on ARCH_AT91 && ATMEL_SSC && ARCH_AT91 && MACH_AFEB9260 && SND_ATMEL_SOC
> select SND_ATMEL_SOC_PDC
> select SND_ATMEL_SOC_SSC
> select SND_SOC_TLV320AIC23
> diff --git a/sound/soc/atmel/atmel-pcm-pdc.c b/sound/soc/atmel/atmel-pcm-pdc.c
> index 6a293c7..054ea4d 100644
> --- a/sound/soc/atmel/atmel-pcm-pdc.c
> +++ b/sound/soc/atmel/atmel-pcm-pdc.c
> @@ -159,7 +159,7 @@ static int atmel_pcm_hw_params(struct snd_pcm_substream *substream,
>
> pr_debug("atmel-pcm: "
> "hw_params: DMA for %s initialized "
> - "(dma_bytes=%u, period_size=%u)\n",
> + "(dma_bytes=%zu, period_size=%zu)\n",
> prtd->params->name,
> runtime->dma_bytes,
> prtd->period_size);
> @@ -201,7 +201,7 @@ static int atmel_pcm_trigger(struct snd_pcm_substream *substream,
> int ret = 0;
>
> pr_debug("atmel-pcm:buffer_size = %ld,"
> - "dma_area = %p, dma_bytes = %u\n",
> + "dma_area = %p, dma_bytes = %zu\n",
> rtd->buffer_size, rtd->dma_area, rtd->dma_bytes);
>
> switch (cmd) {
> diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
> index e99f181..3109db7 100644
> --- a/sound/soc/atmel/atmel-pcm.c
> +++ b/sound/soc/atmel/atmel-pcm.c
> @@ -49,7 +49,7 @@ static int atmel_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
> buf->private_data = NULL;
> buf->area = dma_alloc_coherent(pcm->card->dev, size,
> &buf->addr, GFP_KERNEL);
> - pr_debug("atmel-pcm: alloc dma buffer: area=%p, addr=%p, size=%d\n",
> + pr_debug("atmel-pcm: alloc dma buffer: area=%p, addr=%p, size=%zu\n",
> (void *)buf->area, (void *)buf->addr, size);
>
> if (!buf->area)
> diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
> index 1c76634..2755750 100644
> --- a/sound/soc/atmel/atmel_ssc_dai.c
> +++ b/sound/soc/atmel/atmel_ssc_dai.c
> @@ -42,8 +42,6 @@
> #include <sound/initval.h>
> #include <sound/soc.h>
>
> -#include <mach/hardware.h>
> -
> #include "atmel-pcm.h"
> #include "atmel_ssc_dai.h"
>
>
WARNING: multiple messages have this Message-ID (diff)
From: voice.shen@atmel.com (Bo Shen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ASoC: atmel-soc: make it buildable on other architectures
Date: Mon, 10 Dec 2012 17:54:20 +0800 [thread overview]
Message-ID: <50C5B14C.4050107@atmel.com> (raw)
In-Reply-To: <1354973002-13588-1-git-send-email-manabian@gmail.com>
Hi Joachim Eastwood,
On 12/8/2012 21:23, Joachim Eastwood wrote:
> Not very useful on non AT91/AVR32 platforms but it provides
> more build coverage and prepares for ARM multiplatform.
>
> Also fixes a couple of format type warnings.
>
> Signed-off-by: Joachim Eastwood <manabian@gmail.com>
> ---
>
> Hi,
>
> Build tested on RM9200 and x86_64.
>
> ARCH_AT91 depend is pushed down to the machine drivers
> since they still relies on mach includes.
>
> regards
> Joachim Eastwood
>
> sound/soc/atmel/Kconfig | 6 +++---
> sound/soc/atmel/atmel-pcm-pdc.c | 4 ++--
> sound/soc/atmel/atmel-pcm.c | 2 +-
> sound/soc/atmel/atmel_ssc_dai.c | 2 --
> 4 files changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/sound/soc/atmel/Kconfig b/sound/soc/atmel/Kconfig
> index d1b691b..3fdd87f 100644
> --- a/sound/soc/atmel/Kconfig
> +++ b/sound/soc/atmel/Kconfig
> @@ -1,6 +1,6 @@
> config SND_ATMEL_SOC
> tristate "SoC Audio for the Atmel System-on-Chip"
> - depends on ARCH_AT91
> + depends on HAS_IOMEM
I don't think this change needed. This is not a physical device.
Best Regards,
Bo Shen
> help
> Say Y or M if you want to add support for codecs attached to
> the ATMEL SSC interface. You will also need
> @@ -24,7 +24,7 @@ config SND_ATMEL_SOC_SSC
>
> config SND_AT91_SOC_SAM9G20_WM8731
> tristate "SoC Audio support for WM8731-based At91sam9g20 evaluation board"
> - depends on ATMEL_SSC && SND_ATMEL_SOC && AT91_PROGRAMMABLE_CLOCKS
> + depends on ARCH_AT91 && ATMEL_SSC && SND_ATMEL_SOC && AT91_PROGRAMMABLE_CLOCKS
> select SND_ATMEL_SOC_PDC
> select SND_ATMEL_SOC_SSC
> select SND_SOC_WM8731
> @@ -34,7 +34,7 @@ config SND_AT91_SOC_SAM9G20_WM8731
>
> config SND_AT91_SOC_AFEB9260
> tristate "SoC Audio support for AFEB9260 board"
> - depends on ATMEL_SSC && ARCH_AT91 && MACH_AFEB9260 && SND_ATMEL_SOC
> + depends on ARCH_AT91 && ATMEL_SSC && ARCH_AT91 && MACH_AFEB9260 && SND_ATMEL_SOC
> select SND_ATMEL_SOC_PDC
> select SND_ATMEL_SOC_SSC
> select SND_SOC_TLV320AIC23
> diff --git a/sound/soc/atmel/atmel-pcm-pdc.c b/sound/soc/atmel/atmel-pcm-pdc.c
> index 6a293c7..054ea4d 100644
> --- a/sound/soc/atmel/atmel-pcm-pdc.c
> +++ b/sound/soc/atmel/atmel-pcm-pdc.c
> @@ -159,7 +159,7 @@ static int atmel_pcm_hw_params(struct snd_pcm_substream *substream,
>
> pr_debug("atmel-pcm: "
> "hw_params: DMA for %s initialized "
> - "(dma_bytes=%u, period_size=%u)\n",
> + "(dma_bytes=%zu, period_size=%zu)\n",
> prtd->params->name,
> runtime->dma_bytes,
> prtd->period_size);
> @@ -201,7 +201,7 @@ static int atmel_pcm_trigger(struct snd_pcm_substream *substream,
> int ret = 0;
>
> pr_debug("atmel-pcm:buffer_size = %ld,"
> - "dma_area = %p, dma_bytes = %u\n",
> + "dma_area = %p, dma_bytes = %zu\n",
> rtd->buffer_size, rtd->dma_area, rtd->dma_bytes);
>
> switch (cmd) {
> diff --git a/sound/soc/atmel/atmel-pcm.c b/sound/soc/atmel/atmel-pcm.c
> index e99f181..3109db7 100644
> --- a/sound/soc/atmel/atmel-pcm.c
> +++ b/sound/soc/atmel/atmel-pcm.c
> @@ -49,7 +49,7 @@ static int atmel_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
> buf->private_data = NULL;
> buf->area = dma_alloc_coherent(pcm->card->dev, size,
> &buf->addr, GFP_KERNEL);
> - pr_debug("atmel-pcm: alloc dma buffer: area=%p, addr=%p, size=%d\n",
> + pr_debug("atmel-pcm: alloc dma buffer: area=%p, addr=%p, size=%zu\n",
> (void *)buf->area, (void *)buf->addr, size);
>
> if (!buf->area)
> diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
> index 1c76634..2755750 100644
> --- a/sound/soc/atmel/atmel_ssc_dai.c
> +++ b/sound/soc/atmel/atmel_ssc_dai.c
> @@ -42,8 +42,6 @@
> #include <sound/initval.h>
> #include <sound/soc.h>
>
> -#include <mach/hardware.h>
> -
> #include "atmel-pcm.h"
> #include "atmel_ssc_dai.h"
>
>
next prev parent reply other threads:[~2012-12-10 9:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 13:23 [PATCH] ASoC: atmel-soc: make it buildable on other architectures Joachim Eastwood
2012-12-08 13:23 ` Joachim Eastwood
2012-12-08 13:23 ` Joachim Eastwood
2012-12-10 9:54 ` Bo Shen [this message]
2012-12-10 9:54 ` Bo Shen
2012-12-10 9:54 ` Bo Shen
2012-12-10 10:04 ` Nicolas Ferre
2012-12-10 10:04 ` Nicolas Ferre
2012-12-10 10:04 ` Nicolas Ferre
2012-12-13 11:21 ` Nicolas Ferre
2012-12-13 11:21 ` Nicolas Ferre
2012-12-13 11:21 ` Nicolas Ferre
2012-12-24 15:49 ` Mark Brown
2012-12-24 15:49 ` Mark Brown
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=50C5B14C.4050107@atmel.com \
--to=voice.shen@atmel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=manabian@gmail.com \
--cc=nicolas.ferre@atmel.com \
--cc=plagnioj@jcrosoft.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 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.