[ARM] mfd: cpcap-audio: fixed mic inversion.
authorEric Laurent <elaurent@google.com>
Mon, 10 Jan 2011 18:48:19 +0000 (10:48 -0800)
committerIliyan Malchev <malchev@google.com>
Wed, 12 Jan 2011 02:31:19 +0000 (18:31 -0800)
There was an inversion between built-in mic and headset mic
in cpcap_audio_ctl_ioctl() which made that the wrong mic was
activated when exiting standby.

Signed-off-by: Eric Laurent <elaurent@google.com>
drivers/mfd/tegra-cpcap-audio.c

index 020592ab1af7a95614dcacc4e78afa8c2d429106..a05793ec68c5e4dd3e78c63a079dd2abad1e9270 100644 (file)
@@ -343,10 +343,10 @@ static long cpcap_audio_ctl_ioctl(struct file *file, unsigned int cmd,
                        }
                        switch (current_input.id) {
                        case CPCAP_AUDIO_IN_MIC1:
-                               tegra_setup_audio_in_headset_on();
+                               tegra_setup_audio_in_handset_on();
                                break;
                        case CPCAP_AUDIO_IN_MIC2:
-                               tegra_setup_audio_in_handset_on();
+                               tegra_setup_audio_in_headset_on();
                                break;
                        }
                        break;