The following series of patches add support for jack detection. The udev module will match a list of input devices against the current audio card. When it finds an input that belongs to the card, we get the input number and send it to the alsa-card through a new parameter called jack_id. If the jack id is valid, a new thread is started that reads the jack input device and fires a hook in case of an insertion or removal event. Changes from v2: - Create a new alsa module parameter: jack_id. - Pass the jack_id module parameter to the alsa card. - Use jack_id parameter to register a new jack input. - Move jack detection code to module-alsa-card, instead of being a standalone module. GIT: [PATCH 1/2] alsa: add jack detection support GIT: [PATCH 2/2] alsa: load jack detection module