Lines Matching defs:index
480 static char *aw88261_dev_get_prof_name(struct aw_device *aw_dev, int index)
485 if ((index >= aw_dev->prof_info.count) || (index < 0)) {
486 dev_err(aw_dev->dev, "index[%d] overflow count[%d]",
487 index, aw_dev->prof_info.count);
491 prof_desc = &aw_dev->prof_info.prof_desc[index];
496 static int aw88261_dev_get_prof_data(struct aw_device *aw_dev, int index,
499 if ((index >= aw_dev->prof_info.count) || (index < 0)) {
500 dev_err(aw_dev->dev, "%s: index[%d] overflow count[%d]\n",
501 __func__, index, aw_dev->prof_info.count);
505 *prof_desc = &aw_dev->prof_info.prof_desc[index];
802 static int aw88261_dev_set_profile_index(struct aw_device *aw_dev, int index)
804 /* check the index whether is valid */
805 if ((index >= aw_dev->prof_info.count) || (index < 0))
807 /* check the index whether change */
808 if (aw_dev->prof_index == index)
811 aw_dev->prof_index = index;
876 dev_dbg(codec->dev, "profile index does not change");