void pa_tz_device_new_data_add_source(pa_tz_device_new_data *data, const char *role, pa_source *source) {
pa_assert(data);
- pa_hashmap_put(data->playback_pcms, (void*)role, source);
+ pa_hashmap_put(data->capture_pcms, (void*)role, source);
}
/* after set_type, only for multi profile type, and check direction, profile */
void pa_tz_device_new_data_add_profile(pa_tz_device_new_data *data, pa_tz_profile_new_data *profile_data, bool as_active) {
pa_source *source;
pa_assert(profile);
- if ((source = pa_hashmap_get(profile->playback_devices, role)) == NULL) {
+ if ((source = pa_hashmap_get(profile->capture_devices, role)) == NULL) {
pa_log_warn("Failed to get source for %s", role);
return NULL;
}