summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/alsa/alsa_omap4.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/alsa/alsa_omap4.cpp b/modules/alsa/alsa_omap4.cpp
index 54e2bfb..329b9ec 100644
--- a/modules/alsa/alsa_omap4.cpp
+++ b/modules/alsa/alsa_omap4.cpp
@@ -33,8 +33,7 @@
#define ALSA_DEFAULT_SAMPLE_RATE 44100 // in Hz
#endif
-#define DEFAULT_OUT_DEVICE "plughw:1,0"
-#define DEFAULT_IN_DEVICE "plughw:0,0"
+#define DEFAULT_DEVICE "plughw:0,0"
namespace android
{
@@ -160,14 +159,7 @@ const char *deviceName(alsa_handle_t *handle, uint32_t device, int mode)
{
static char devString[ALSA_NAME_MAX];
int hasDevExt = 0;
- if (device & 0x0000FFFF) {
- LOGD("Output Device");
- return DEFAULT_OUT_DEVICE;
- }
- else {
- LOGD("Input Device");
- return DEFAULT_IN_DEVICE;
- }
+ return DEFAULT_DEVICE;
}
const char *streamName(alsa_handle_t *handle)