Home
last modified time | relevance | path

Searched refs:array (Results 1 – 14 of 14) sorted by relevance

/sound/hda/
Darray.c19 void *snd_array_new(struct snd_array *array) in snd_array_new() argument
21 if (snd_BUG_ON(!array->elem_size)) in snd_array_new()
23 if (array->used >= array->alloced) { in snd_array_new()
24 int num = array->alloced + array->alloc_align; in snd_array_new()
25 int oldsize = array->alloced * array->elem_size; in snd_array_new()
26 int size = (num + 1) * array->elem_size; in snd_array_new()
30 nlist = krealloc(array->list, size, GFP_KERNEL); in snd_array_new()
34 array->list = nlist; in snd_array_new()
35 array->alloced = num; in snd_array_new()
37 return snd_array_elem(array, array->used++); in snd_array_new()
[all …]
DMakefile3 hdac_regmap.o hdac_controller.o hdac_stream.o array.o hdmi_chmap.o
/sound/pci/lola/
Dlola_mixer.c119 chip->mixer.array = (struct lola_mixer_array __iomem *) in lola_init_mixer_widget()
215 oldval = val = readl(&chip->mixer.array->src_gain_enable); in lola_mixer_set_src_gain()
222 (gain == readw(&chip->mixer.array->src_gain[id]))) in lola_mixer_set_src_gain()
228 writew(gain, &chip->mixer.array->src_gain[id]); in lola_mixer_set_src_gain()
229 writel(val, &chip->mixer.array->src_gain_enable); in lola_mixer_set_src_gain()
246 writew(*gains, &chip->mixer.array->src_gain[i]);
250 writel(mask, &chip->mixer.array->src_gain_enable);
278 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); in lola_mixer_set_mapping_gain()
279 val = readl(&chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
284 writel(val, &chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
[all …]
Dlola.h265 struct lola_mixer_array __iomem *array; member
/sound/soc/intel/skylake/
Dskl-topology.c2632 struct snd_soc_tplg_vendor_array *array; in skl_tplg_get_tokens() local
2642 array = (struct snd_soc_tplg_vendor_array *)(pvt_data + off); in skl_tplg_get_tokens()
2644 off += array->size; in skl_tplg_get_tokens()
2646 switch (array->type) { in skl_tplg_get_tokens()
2654 array->uuid); in skl_tplg_get_tokens()
2657 ret = skl_tplg_get_token(dev, array->value, skl, in skl_tplg_get_tokens()
2664 tuple_size += sizeof(*array->uuid); in skl_tplg_get_tokens()
2669 tkn_elem = array->value; in skl_tplg_get_tokens()
2674 while (tkn_count <= (array->num_elems - 1)) { in skl_tplg_get_tokens()
2696 struct snd_soc_tplg_vendor_array *array) in skl_tplg_get_desc_blocks() argument
[all …]
/sound/soc/sof/
Dtopology.c804 struct snd_soc_tplg_vendor_array *array, in sof_parse_uuid_tokens() argument
812 for (i = 0; i < le32_to_cpu(array->num_elems); i++) { in sof_parse_uuid_tokens()
813 elem = &array->uuid[i]; in sof_parse_uuid_tokens()
841 struct snd_soc_tplg_vendor_array *array, in sof_parse_string_tokens() argument
849 for (i = 0; i < le32_to_cpu(array->num_elems); i++) { in sof_parse_string_tokens()
850 elem = &array->string[i]; in sof_parse_string_tokens()
878 struct snd_soc_tplg_vendor_array *array, in sof_parse_word_tokens() argument
886 for (i = 0; i < le32_to_cpu(array->num_elems); i++) { in sof_parse_word_tokens()
887 elem = &array->value[i]; in sof_parse_word_tokens()
932 struct snd_soc_tplg_vendor_array *array, in sof_parse_token_sets() argument
[all …]
/sound/isa/
Dcmi8328.c196 static int array_find(const int array[], int item) in array_find() argument
200 for (i = 0; array[i] != -1; i++) in array_find()
201 if (array[i] == item) in array_find()
207 static int array_find_l(const long array[], long item) in array_find_l() argument
211 for (i = 0; array[i] != -1; i++) in array_find_l()
212 if (array[i] == item) in array_find_l()
/sound/soc/sh/rcar/
Drsnd.h446 enum rsnd_mod_type *array,
451 #define for_each_rsnd_mod_arrays(iterator, pos, io, array, size) \ argument
453 (pos = rsnd_mod_next(&iterator, io, array, size)); iterator++)
454 #define for_each_rsnd_mod_array(iterator, pos, io, array) \ argument
455 for_each_rsnd_mod_arrays(iterator, pos, io, array, ARRAY_SIZE(array))
Dcore.c479 enum rsnd_mod_type *array, in rsnd_mod_next() argument
482 int max = array ? array_size : RSND_MOD_MAX; in rsnd_mod_next()
485 enum rsnd_mod_type type = (array) ? array[*iterator] : *iterator; in rsnd_mod_next()
/sound/pci/hda/
Dhda_proc.c49 struct snd_array *array) in print_nid_array() argument
52 struct hda_nid_item *items = array->list, *item; in print_nid_array()
54 for (i = 0; i < array->used; i++) { in print_nid_array()
Dhda_codec.c461 struct snd_array *array, in look_up_pincfg() argument
467 snd_array_for_each(array, i, pin) { in look_up_pincfg()
Dhda_generic.c290 struct nid_path *array = spec->paths.list; in snd_hda_get_path_idx() local
295 idx = path - array; in snd_hda_get_path_idx()
/sound/soc/codecs/
Dtas5086.c340 static int index_in_array(const int *array, int len, int needle) in index_in_array() argument
345 if (array[i] == needle) in index_in_array()
/sound/core/
DKconfig198 access at out-of-array areas.