Lines Matching refs:compare
78 mixer->compare = snd_mixer_compare_default;
331 assert(mixer->compare);
336 c = mixer->compare(elem, mixer->pelems[idx]);
364 * \param compare_weight Mixer element compare weight
632 assert(c1->class && c1->class->compare);
633 assert(c2->class && c2->class->compare);
635 return c1->class->compare(c1, c2);
643 return mixer->compare(*(const snd_mixer_elem_t * const *)a, *(const snd_mixer_elem_t * const *)b);
650 assert(mixer->compare);
659 * \brief Change mixer compare function and reorder elements
661 * \param compare Element compare function
664 int snd_mixer_set_compare(snd_mixer_t *mixer, snd_mixer_compare_t compare)
670 compare_old = mixer->compare;
671 mixer->compare = compare == NULL ? snd_mixer_compare_default : compare;
673 mixer->compare = compare_old;
1023 * \brief Get mixer compare callback associated to given mixer class
1030 return obj->compare;
1073 * \brief Set mixer compare callback to given mixer class
1075 * \param compare the compare callback to be used
1078 int snd_mixer_class_set_compare(snd_mixer_class_t *obj, snd_mixer_compare_t compare)
1081 obj->compare = compare;