All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine
@ 2012-03-11 14:53 Fabio Estevam
  2012-03-11 15:43 ` Fabio Estevam
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2012-03-11 14:53 UTC (permalink / raw)
  To: alsa-devel; +Cc: Fabio Estevam, broonie, Fabio Estevam, javier.martin, kernel

Only register mx27vis-aic32x4 if we are running on a imx27_visstrim_m10.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 sound/soc/imx/mx27vis-aic32x4.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sound/soc/imx/mx27vis-aic32x4.c b/sound/soc/imx/mx27vis-aic32x4.c
index 976f857..c982bc8 100644
--- a/sound/soc/imx/mx27vis-aic32x4.c
+++ b/sound/soc/imx/mx27vis-aic32x4.c
@@ -194,6 +194,9 @@ static int __init mx27vis_aic32x4_init(void)
 {
 	int ret;
 
+	if (!machine_is_imx27_visstrim_m10())
+		return 0;
+
 	mx27vis_aic32x4_snd_device = platform_device_alloc("soc-audio", -1);
 	if (!mx27vis_aic32x4_snd_device)
 		return -ENOMEM;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine
  2012-03-11 14:53 [PATCH] ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine Fabio Estevam
@ 2012-03-11 15:43 ` Fabio Estevam
  2012-03-11 18:47   ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2012-03-11 15:43 UTC (permalink / raw)
  To: alsa-devel; +Cc: Fabio Estevam, broonie, Fabio Estevam, javier.martin, kernel

On Sun, Mar 11, 2012 at 11:53 AM, Fabio Estevam <festevam@gmail.com> wrote:

> +       if (!machine_is_imx27_visstrim_m10())
> +               return 0;
> +
>        mx27vis_aic32x4_snd_device = platform_device_alloc("soc-audio", -1);
>        if (!mx27vis_aic32x4_snd_device)
>                return -ENOMEM;

Or maybe should I use snd_soc_register_card instead and get rid of the
machine_is_xxx check?
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine
  2012-03-11 15:43 ` Fabio Estevam
@ 2012-03-11 18:47   ` Mark Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2012-03-11 18:47 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Fabio Estevam, alsa-devel, javier.martin, kernel


[-- Attachment #1.1: Type: text/plain, Size: 175 bytes --]

On Sun, Mar 11, 2012 at 12:43:56PM -0300, Fabio Estevam wrote:

> Or maybe should I use snd_soc_register_card instead and get rid of the
> machine_is_xxx check?

Yes, please.

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

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-11 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-11 14:53 [PATCH] ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine Fabio Estevam
2012-03-11 15:43 ` Fabio Estevam
2012-03-11 18:47   ` Mark Brown

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.