S3C64XX PCM: Defined PCM controller platform devices
Subsystems (3)
PATCH v2 6/7 S3C64XX PCM: Defined PCM controller platform devices
--- arch/arm/plat-s3c/include/plat/devs.h | 3 + arch/arm/plat-s3c64xx/dev-audio.c | 101 ++++++++++++++++++++++++++++++++- 2 files changed, 103 insertions(+), 1 deletions(-)
arch/arm/plat-s3c/include/plat/devs.h +3 -0
@@ -28,6 +28,9 @@ extern struct platform_device s3c64xx_device_iis0;extern struct platform_device s3c64xx_device_iis1;extern struct platform_device s3c64xx_device_iisv4; +extern struct platform_device s3c64xx_device_pcm0; +extern struct platform_device s3c64xx_device_pcm1; +extern struct platform_device s3c_device_fb;extern struct platform_device s3c_device_usb;extern struct platform_device s3c_device_lcd;
arch/arm/plat-s3c64xx/dev-audio.c +100 -1
112 lines not on this page · raw message
Signature · 1 line
1.6.2.5
arch/arm/plat-s3c64xx/dev-audio.c struct platform_device s3c64xx_device_iisv4 = { · line 98
Quoted 4 lines · Jassi Brar
arch/arm/plat-s3c64xx/dev-audio.c +4
-0+default : +printk (KERN_DEBUG "Invalid PCM Controller number!" ); +return -EINVAL ; + }
As I said last time this really should be an error at least.
Quoted 8 lines · Mark Brown
Quoted 4 lines · Jassi Brar
+ default:
+printk(KERN_DEBUG "Invalid PCM Controller number!");
+ return-EINVAL;
+ }As I said last time this really should be an error at least.
Actually the case cudn't be reached ever. The driver check for valid index before continuing with the probe.
Also, PCM controller driver refuse to handle the device if the callback(cfg_gpio)
fail for some reason.
Btw, sorry, I cudn't find this comment in you past replies.
_______________________________________________
Alsa-devel mailing list [email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel