Thread (18 messages) 18 messages, 3 authors, 2011-12-22

[PATCH v2 8/9] OMAP4: omap4panda: Enable audio support

flat view
STALE5415d SUPERSEDED

From: tony@atomide.com (Tony Lindgren)
Date: 2011-12-22 17:32:16
Also in: alsa-devel, linux-omap

Revision v2 of 11 in this series.

Revisions (11)
  1. v1 [diff vs current]
  2. v2
  3. v2
  4. v2 current
  5. v2
  6. v2
  7. v2
  8. v3 [diff vs current]
  9. v3 [diff vs current]
  10. v3 [diff vs current]
  11. v4 [diff vs current]
Hi,
quoted hunk ↗ jump to hunk
@@ -548,6 +588,19 @@ void omap4_panda_display_init(void)
 	omap_display_init(&omap4_panda_dss_data);
 }
 
+static void omap4_panda_audio_init(void)
+{
+	if (cpu_is_omap4430()) {
+		/* PandaBoard 4430 */
+		panda_abe_audio_data.card_name = "PandaBoard";
+		/* Audio in is connected to HSMIC */
+		panda_abe_audio_data.has_hsmic = 1;
+	} else {
+		/* PandaBoard ES */
+		panda_abe_audio_data.card_name = "PandaBoardES";
+	}
+}
+
Please move the cpu_is_omap4430() check from audio_init to..
quoted hunk ↗ jump to hunk
 static void __init omap4_panda_init(void)
 {
 	int package = OMAP_PACKAGE_CBS;
@@ -560,6 +613,7 @@ static void __init omap4_panda_init(void)
 		pr_err("error setting wl12xx data\n");
 
 	omap4_panda_i2c_init();
+	omap4_panda_audio_init();
 	platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices));
 	platform_device_register(&omap_vwlan_device);
 	board_serial_init();
..omap4_panda_init() instead and set some flag that other
devices can use too so we don't have cpu_is_omap tests
for each init function. I'd assume that will be needed for
other devices too, but that's just a guess of course :)

Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help