[alsa-devel] [PATCH 1/4] ASoC: rx1950: check that machine is rx1950 in glue driver

Vasily Khoruzhick anarsoul at gmail.com
Tue Sep 7 16:04:15 CEST 2010


Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
---
 sound/soc/s3c24xx/rx1950_uda1380.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/sound/soc/s3c24xx/rx1950_uda1380.c b/sound/soc/s3c24xx/rx1950_uda1380.c
index 2a16113..0f6e806 100644
--- a/sound/soc/s3c24xx/rx1950_uda1380.c
+++ b/sound/soc/s3c24xx/rx1950_uda1380.c
@@ -40,6 +40,8 @@
 
 #include <mach/regs-clock.h>
 
+#include <asm/mach-types.h>
+
 #include "s3c-dma.h"
 #include "s3c24xx-i2s.h"
 #include "../codecs/uda1380.h"
@@ -274,6 +276,9 @@ static int __init rx1950_init(void)
 {
 	int ret;
 
+	if (!machine_is_rx1950())
+		return -ENODEV;
+
 	/* configure some gpios */
 	ret = gpio_request(S3C2410_GPA(1), "speaker-power");
 	if (ret)
-- 
1.7.2.2



More information about the Alsa-devel mailing list