Home | History | Annotate | Download | only in libaudio-qsd8k

Lines Matching full:device

319         // when entering or exiting in call mode even if the new device
344 LOGE("Cannot open msm_audio_ctl device\n");
349 LOGE("Cannot set mic mute on current device\n");
368 return set_mic_mute(mMicMute); //always set current TX device
462 LOGE("Cannot open audience_a1026 device (%d)\n", fd_a1026);
600 LOGE("Cannot open msm_audio_ctl device\n");
606 LOGW("Cannot set volume on current device\n");
630 set_volume_rpc(vol); //always set current device
645 static status_t do_route_audio_dev_ctrl(uint32_t device, bool inCall, uint32_t rx_acdb_id, uint32_t tx_acdb_id)
651 if (device == SND_DEVICE_CURRENT)
655 LOGD("Switching audio device to ");
656 if (device == SND_DEVICE_HANDSET) {
660 } else if ((device == SND_DEVICE_BT) || (device == SND_DEVICE_BT_EC_OFF)) {
664 } else if (device == SND_DEVICE_SPEAKER ||
665 device == SND_DEVICE_SPEAKER_BACK_MIC) {
669 } else if (device == SND_DEVICE_HEADSET) {
673 } else if (device == SND_DEVICE_HEADSET_AND_SPEAKER) {
677 } else if (device == SND_DEVICE_HEADSET_AND_SPEAKER_BACK_MIC) {
681 } else if (device == SND_DEVICE_NO_MIC_HEADSET) {
685 } else if (device == SND_DEVICE_NO_MIC_HEADSET_BACK_MIC) {
689 } else if (device == SND_DEVICE_HANDSET_BACK_MIC) {
693 } else if (device == SND_DEVICE_FM_HEADSET) {
697 } else if (device == SND_DEVICE_FM_SPEAKER) {
701 } else if (device == SND_DEVICE_CARKIT) {
705 } else if (device == SND_DEVICE_TTY_FULL) {
709 } else if (device == SND_DEVICE_TTY_VCO) {
713 } else if (device == SND_DEVICE_TTY_HCO) {
718 LOGE("unknown device %d", device);
728 LOGE("Cannot open msm_htc_fm device");
748 LOGE("Cannot switch audio device");
755 LOGE("Cannot switch mic device");
806 status_t AudioHardware::doAudioRouteOrMute(uint32_t device)
812 doAudience_A1026_Control(mMode, mRecordState, device);
814 if (device == (uint32_t)SND_DEVICE_BT) {
816 device = SND_DEVICE_BT_EC_OFF;
821 if (device == (int) SND_DEVICE_BT) {
831 } else if (device == (int) SND_DEVICE_CARKIT
832 || device == (int) SND_DEVICE_BT_EC_OFF) {
844 device == (int) SND_DEVICE_HANDSET) {
850 rx_acdb_id = getACDB(MOD_PLAY, device);
852 tx_acdb_id = getACDB(MOD_REC, device);
856 return do_route_audio_dev_ctrl(device, mMode == AudioSystem::MODE_IN_CALL, rx_acdb_id, tx_acdb_id);
992 uint32_t AudioHardware::getACDB(int mode, int device)
1002 switch (device) {
1030 switch (device) {
1121 LOGE("Cannot open audience_a1026 device (%d)\n", fd_a1026);
1362 LOGI("do input routing device %x\n", inputDevice);
1729 int device;
1732 if (param.getInt(key, device) == NO_ERROR) {
1733 mDevices = device;
1837 // open audio input device
1876 // make sure a1026 config is re-applied even is input device is not changed
1928 // make sure a1026 config is re-applied even is input device is not changed
1971 int device;
1987 if (param.getInt(key, device) == NO_ERROR) {
1988 LOGV("set input routing %x", device);
1989 if (device & (device - 1)) {
1992 mDevices = device;