Lines Matching defs:mixer
147 /* copy referenced TLV to the mixer control */
160 /* check referenced TLV for a mixer control */
754 /* init new mixer */
767 /* giterate trough each mixer elment */
977 int tplg_add_mixer(snd_tplg_t *tplg, struct snd_tplg_mixer_template *mixer,
985 tplg_dbg(" Control Mixer: %s", mixer->hdr.name);
987 if (mixer->hdr.type != SND_SOC_TPLG_TYPE_MIXER) {
988 SNDERR("invalid mixer type %d", mixer->hdr.type);
992 elem = tplg_elem_new_common(tplg, NULL, mixer->hdr.name,
997 /* init new mixer */
1000 ret = init_ctl_hdr(tplg, elem, &mc->hdr, &mixer->hdr);
1006 mc->min = mixer->min;
1007 mc->max = mixer->max;
1008 mc->platform_max = mixer->platform_max;
1009 mc->invert = mixer->invert;
1015 num_channels = mixer->map ? mixer->map->num_channels : 0;
1019 struct snd_tplg_channel_elem *channel = &mixer->map->channel[i];
1028 priv = mixer->priv;
1199 return tplg_add_mixer(tplg, t->mixer, NULL);
1224 SNDERR("mixer: small size %d", size);
1228 tplg_log(tplg, 'D', pos, "mixer: size %d TLV size %d private size %d",
1231 SNDERR("mixer: unexpected element size %d", size);
1245 tplg_log(tplg, 'D', pos, "mixer: name '%s' access 0x%x",
1261 SNDERR("mixer: unknown TLV type %d",
1273 tplg_log(tplg, 'D', pos, "mixer: dB scale TLV: min %d step %d mute %d",
1276 SNDERR("mixer: wrong TLV size %d", mc->hdr.tlv.size);
1282 "mixer: private start");
1304 SNDERR("mixer: small size %d", size);
1311 SNDERR("mixer: wrong element size (%d, priv %d)",
1318 t.mixer = &mt;