Not true. The os switches off the analog jack when the internal speaker is used or when sound is routed to a Bluetooth headphone or speaker. Clearly the OS can deny an analog jack.
my point is, an os can check whether an analog jack is authorized to work or not, an analog jack is an analog jack. On the other hand, a DRM system can be implemented with any digital accessory.