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

Commit 47f25406 authored by Harsh Bansal's avatar Harsh Bansal Committed by Gerrit - the friendly Code Review server
Browse files

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

-New stream event is added to notiy any change in input
stream format.

CRs-fixed: 2239690

Change-Id: Ia5b468b80166bd59f3617c553341be1a60b8932f
parent 34b11003
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;
    }