ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine
Subsystems (3)
Fabio Estevam
reviewerPATCH 1/1 ASoC: mx27vis-aic32x4: Make sure we are running on the correct machine
Only register mx27vis-aic32x4 if we are running on a imx27_visstrim_m10.
Signed-off-by Fabio Estevam <[email protected]>
--- sound/soc/imx/mx27vis-aic32x4.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/imx/mx27vis-aic32x4.c +3 -0
@@ -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 ;
Signature · 1 line
1.7.1
Fabio Estevam
reviewerQuoted 6 lines · Fabio Estevam
+ 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
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 2 lines · Fabio Estevam
Or maybe should I use
snd_soc_register_cardinstead and get rid of themachine_is_xxxcheck?
Yes, please.