You can use the `hdajackretask` program in the `alsa-tools` package to retask your jacks.
https://github.com/alsa-project/alsa-tools/tree/master/hdaja...