15 Apr
2011
15 Apr
'11
9:57 a.m.
Shreshtha wrote:
Vibrator hardware is connected to D-Class amplifier of Audio block.
Does this mean that you have to generate the vibration waveform as sound data and write it to the sound device? This would be rather unwieldy in kernel space. (Just accessing a mixer control would be possible.)
But as you described that accessing from out side the sound subsystem is prohibited in Kernel.
It's not prohibited, it's just not the way the API was designed.
So only way remains is to access the sound card from user space using ALSA lib APIs and replace current usage of sysfs for haptic feedback. Please suggest if it is right direction.
Is the sysfs API a _required_ Android API, or would Android allow you to write a user space driver?
Regards, Clemens