Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1de79cfe authored by rago's avatar rago
Browse files

Fixes related to typo in audio.h

Bug: 64038649
Test: Manual Testing and CTS tests.
Change-Id: Id2650638f789d85116d780d87b19debd2a13a737
parent c717e5e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ public:
    MicrophoneInfo(audio_microphone_characteristic_t& characteristic) {
        mDeviceId = String16(&characteristic.device_id[0]);
        mPortId = characteristic.id;
        mType = characteristic.type;
        mType = characteristic.device;
        mAddress = String16(&characteristic.address[0]);
        mDeviceLocation = characteristic.location;
        mDeviceGroup = characteristic.group;
+1 −1
Original line number Diff line number Diff line
@@ -1984,7 +1984,7 @@ status_t AudioFlinger::getMicrophones(std::vector<media::MicrophoneInfo> *microp
    for (size_t i = 0; i < fakeNum; i++) {
        struct audio_microphone_characteristic_t characteristics;
        sprintf(characteristics.device_id, "microphone:%zu", i);
        characteristics.type = fakeTypes[i];
        characteristics.device = fakeTypes[i];
        sprintf(characteristics.address, "");
        characteristics.location = AUDIO_MICROPHONE_LOCATION_MAINBODY;
        characteristics.group = 0;
+1 −1
Original line number Diff line number Diff line
@@ -7051,7 +7051,7 @@ status_t AudioFlinger::RecordThread::getActiveMicrophones(
    // Fake data
    struct audio_microphone_characteristic_t characteristic;
    sprintf(characteristic.device_id, "builtin_mic");
    characteristic.type = AUDIO_DEVICE_IN_BUILTIN_MIC;
    characteristic.device = AUDIO_DEVICE_IN_BUILTIN_MIC;
    sprintf(characteristic.address, "");
    characteristic.location = AUDIO_MICROPHONE_LOCATION_MAINBODY;
    characteristic.group = 0;