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

Péter Ujfalusi peter.ujfalusi at ti.com
Fri Sep 16 13:11:26 CEST 2011


On Friday 16 September 2011 10:26:41 Liam Girdwood wrote:
> > +	/* 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


More information about the Alsa-devel mailing list