From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?P=E9ter?= Ujfalusi Subject: Re: Re: [PATCH 4/8] Input: twl6040-vibra: Check the selected path for vibra Date: Fri, 16 Sep 2011 14:11:26 +0300 Message-ID: <329048288.4sixMZXl4l@barack> References: <1316091561-30899-1-git-send-email-peter.ujfalusi@ti.com> <1316091561-30899-5-git-send-email-peter.ujfalusi@ti.com> <1316165201.3229.7.camel@odin> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from na3sys009aog117.obsmtp.com ([74.125.149.242]:46305 "EHLO na3sys009aog117.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968Ab1IPLL2 convert rfc822-to-8bit (ORCPT ); Fri, 16 Sep 2011 07:11:28 -0400 In-Reply-To: <1316165201.3229.7.camel@odin> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Liam Girdwood Cc: Samuel Ortiz , Dmitry Torokhov , Mark Brown , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Misael Lopez Cruz , linux-input@vger.kernel.org On Friday 16 September 2011 10:26:41 Liam Girdwood wrote: > > + /* Do not allow effect, while the routing is set to use audio */ > > + ret =3D twl6040_get_vibralr_status(info->twl6040); > > + if (ret & TWL6040_VIBSEL) { > > + dev_info(&input->dev, "Vibra is configured for audio\n"); > > + return -EPERM; > > + } >=20 > Sorry, missed this earlier. >=20 > Probably best to return -EBUSY here otherwise it may look like a devi= ce > permissions problem to some users. I'll change it. Thanks, P=C3=A9ter -- 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