mixer = AudioSystem.getMixer(info);
final int maxLines = mixer.getMaxLines(Port.Info.MICROPHONE);
if (maxLines > 0) {
System.out.println(info);
lineIn = (Port) mixer.getLine(Port.Info.MICROPHONE);
lineIn.open();
Control[] controls = lineIn.getControls();
for (int j = 0; j < controls.length; j++) {
Control control = controls[j];
System.out.println(control);
}