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

Commit e90e7a7f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal-test-app:qap: stream event to notify input format"

parents d10d0fca 47f25406
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -814,6 +814,22 @@ void qap_wrapper_module_callback(qap_module_handle_t module_handle, void* priv_d

            break;
        }
        case QAP_MODULE_CALLBACK_EVENT_INPUT_CFG_CHANGE:
        {
            if (size < sizeof(qap_input_config_t)) {
                ALOGE("%s %d event id %d, wrong payload size %d\n",
                      __func__, __LINE__, event_id, size);
                break;
            }
            qap_input_config_t *p_stream_format = (qap_input_config_t*)data;

            ALOGV(" %s %d Input format updated; sample_rate %lu, channels %lu, bitwidth %lu",
                  __func__, __LINE__,
                  p_stream_format->sample_rate,
                  p_stream_format->channels,
                  p_stream_format->bit_width);
            break;
        }
        default:
        break;
    }