summaryrefslogtreecommitdiffstats
path: root/chromeos/audio
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/audio')
-rw-r--r--chromeos/audio/audio_device.cc10
-rw-r--r--chromeos/audio/audio_device.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/chromeos/audio/audio_device.cc b/chromeos/audio/audio_device.cc
index 4f4b18c..32012a1 100644
--- a/chromeos/audio/audio_device.cc
+++ b/chromeos/audio/audio_device.cc
@@ -29,6 +29,8 @@ uint8 GetDevicePriority(AudioDeviceType type) {
return 1;
case AUDIO_TYPE_KEYBOARD_MIC:
case AUDIO_TYPE_AOKR:
+ case AUDIO_TYPE_POST_MIX_LOOPBACK:
+ case AUDIO_TYPE_POST_DSP_LOOPBACK:
case AUDIO_TYPE_OTHER:
default:
return 0;
@@ -58,6 +60,10 @@ std::string AudioDevice::GetTypeString(AudioDeviceType type) {
return "KEYBOARD_MIC";
case AUDIO_TYPE_AOKR:
return "AOKR";
+ case AUDIO_TYPE_POST_MIX_LOOPBACK:
+ return "POST_MIX_LOOPBACK";
+ case AUDIO_TYPE_POST_DSP_LOOPBACK:
+ return "POST_DSP_LOOPBACK";
case AUDIO_TYPE_OTHER:
default:
return "OTHER";
@@ -85,6 +91,10 @@ AudioDeviceType AudioDevice::GetAudioType(
return AUDIO_TYPE_INTERNAL_SPEAKER;
else if (node_type.find("AOKR") != std::string::npos)
return AUDIO_TYPE_AOKR;
+ else if (node_type.find("POST_MIX_LOOPBACK") != std::string::npos)
+ return AUDIO_TYPE_POST_MIX_LOOPBACK;
+ else if (node_type.find("POST_DSP_LOOPBACK") != std::string::npos)
+ return AUDIO_TYPE_POST_DSP_LOOPBACK;
else
return AUDIO_TYPE_OTHER;
}
diff --git a/chromeos/audio/audio_device.h b/chromeos/audio/audio_device.h
index 6ca1eb0..67dca1c 100644
--- a/chromeos/audio/audio_device.h
+++ b/chromeos/audio/audio_device.h
@@ -26,6 +26,8 @@ enum AudioDeviceType {
AUDIO_TYPE_INTERNAL_MIC,
AUDIO_TYPE_KEYBOARD_MIC,
AUDIO_TYPE_AOKR,
+ AUDIO_TYPE_POST_MIX_LOOPBACK,
+ AUDIO_TYPE_POST_DSP_LOOPBACK,
AUDIO_TYPE_OTHER,
};