[alsa-devel] Hardware-specific IOCTLs
Clemens Ladisch
clemens at ladisch.de
Tue Jan 17 23:02:05 CET 2012
Ivan Bublikov wrote:
>> Ivan Bublikov wrote:
>>> My difficulty is how to define a code for my IOCTL and avoid
>>> a conflict with the common code in the future.
>>
>> Pick something not yet allocated in Documentation/ioctl/ioctl-number.txt.
>
> Since half of the lines in it are marked "Conflict!" anyway, should
> I only pay attention to not conflict with "sound/*" lines?
There are enough free codes so that you do not need to introduce new
conflicts.
> And then add a new line for my IOCTLs?
Yes.
> And should I put my IOCTL definitions in hda_hwdep.h or create a new
> file?
If you go through the existing HDA hwdep device, your ioctls probably
should go into the same header.
Regards,
Clemens
More information about the Alsa-devel
mailing list