Hi all,
I'm cleaning up some USB FM radio drivers and I realized that I need to know
in the disconnect callback whether I'm called due to a module unload or due
to an unplug event.
In the first case I need to first mute the audio output of the device, in the
second case I can skip that.
I can just try and always mute the device but that results in a error message
in the case the device is unplugged.
Is there a field I can test somewhere to detect what caused the disconnect?
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html