Lines Matching refs:mFd
44 : mOutput(0), mInput(0), mFd(-1), mMicMute(false) in AudioHardwareGeneric()
46 mFd = ::open(kAudioDeviceName, O_RDWR); in AudioHardwareGeneric()
51 if (mFd >= 0) ::close(mFd); in ~AudioHardwareGeneric()
58 if (mFd >= 0) { in initCheck()
80 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream()
120 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream()
170 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false"); in dumpInternals()
222 mFd = fd; in set()
234 return ssize_t(::write(mFd, buffer, bytes)); in write()
262 snprintf(buffer, SIZE, "\tmFd: %d\n", mFd); in dump()
328 mFd = fd; in set()
342 LOGD("AudioStreamInGeneric::read(%p, %d) from fd %d", buffer, (int)bytes, mFd); in read()
344 if (mFd < 0) { in read()
348 return ::read(mFd, buffer, bytes); in read()
370 snprintf(buffer, SIZE, "\tmFd: %d\n", mFd); in dump()