At Fri, 30 Nov 2012 15:21:42 +0800, Raymond Yau wrote:
HP Z220 with ALC221 codec has a front jack that should work as both the front mic and the secondary headphone. This patch adds a new mixer enum to change the jack behavior.
In the headphone mode, the auto-mic switching is disabled and the input is fixed to the rear line-in.
I expect when any input jack(line in or mic) is retasked as output e.g. alc_set_multi_io() the corresponding jack detection kcontrol should change to false
In the current implementation, this doesn't matter because the front panel has no capability of multi-io. The multi-io is enabled only when all jacks are located in the same place. On the front panel, there are only two.
But it's a thing to be considered in future if we'll need to extend such retasking functionalities more generically.
thanks,
Takashi