Lines Matching refs:feat
73 static int dasharo_get_feature_cap_count(struct dasharo_data *data, enum dasharo_feature feat, int cap)
82 obj[0].integer.value = feat;
96 static int dasharo_read_channel(struct dasharo_data *data, char *method, enum dasharo_feature feat, int channel, long *value)
104 if (feat >= ARRAY_SIZE(data->capabilities))
107 if (channel >= data->caps_found[feat])
111 obj[0].integer.value = data->capabilities[feat][channel].group;
113 obj[1].integer.value = data->capabilities[feat][channel].index;
298 static void dasharo_fill_feature_caps(struct dasharo_data *data, enum dasharo_feature feat)
305 count = dasharo_get_feature_cap_count(data, feat, group);
310 if (cap_count >= ARRAY_SIZE(data->capabilities[feat]))
313 cap = &data->capabilities[feat][cap_count];
317 dasharo_group_names[feat][group], i);
321 data->caps_found[feat] = cap_count;