Thread (26 messages) 26 messages, 4 authors, 2011-09-26

Re: Re: [PATCH 4/8] Input: twl6040-vibra: Check the selected path for vibra

flat view

From: Péter Ujfalusi <hidden>
Date: 2011-09-16 11:11:30
Also in: alsa-devel, lkml

On Friday 16 September 2011 10:26:41 Liam Girdwood wrote:
quoted
+	/* Do not allow effect, while the routing is set to use audio */
+	ret = twl6040_get_vibralr_status(info->twl6040);
+	if (ret & TWL6040_VIBSEL) {
+		dev_info(&input->dev, "Vibra is configured for audio\n");
+		return -EPERM;
+	}
Sorry, missed this earlier.

Probably best to return -EBUSY here otherwise it may look like a device
permissions problem to some users.
I'll change it.

Thanks,
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help