Home | History | Annotate | Download | only in libaudio

Lines Matching defs:AudioHotplugThread

18 #define LOG_TAG "AudioHAL:AudioHotplugThread"
41 #include "AudioHotplugThread.h"
119 const char* AudioHotplugThread::kThreadName = "ATVRemoteAudioHotplug";
122 const char* AudioHotplugThread::kAlsaDeviceDir = "/dev/snd";
125 const char AudioHotplugThread::kDeviceTypeCapture = 'c';
127 AudioHotplugThread::AudioHotplugThread(Callback& callback)
133 AudioHotplugThread::~AudioHotplugThread()
140 bool AudioHotplugThread::start()
150 void AudioHotplugThread::shutdown()
158 bool AudioHotplugThread::parseCaptureDeviceName(const char* name,
195 bool AudioHotplugThread::getDeviceInfo(unsigned int pcmCard,
207 ALOGD("AudioHotplugThread::getDeviceInfo opening %s", devicePath.string());
210 ALOGE("AudioHotplugThread::getDeviceInfo open failed for %s", devicePath.string());
219 ALOGE("AudioHotplugThread: refine ioctl failed");
235 ALOGD("AudioHotplugThread get_alsa_card_name returned %d, %s", len, cardName);
238 ALOGD("AudioHotplugThread found Android TV remote mic on Card %d, for VOICE_RECOGNITION", pcmCard);
253 void AudioHotplugThread::scanForDevice()
278 bool AudioHotplugThread::threadLoop()
287 ALOGE("AudioHotplugThread: inotify_init failed");
292 ALOGE("AudioHotplugThread: F_GETFL failed");
296 ALOGE("AudioHotplugThread: F_SETFL failed");
303 ALOGE("AudioHotplugThread: inotify_add_watch failed");
318 ALOGE("AudioHotplugThread: poll failed");
333 ALOGE("AudioHotplugThread: read failed");
339 ALOGE("AudioHotplugThread: read an invalid inotify_event");
347 ALOGE("AudioHotplugThread: read a bad inotify_event length");
363 ALOGE("AudioHotplugThread: poll failed");