[alsa-devel] Accessing already probed snd_card in kernel space

Clemens Ladisch clemens at ladisch.de
Fri Apr 15 09:57:23 CEST 2011


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


More information about the Alsa-devel mailing list