Lines Matching defs:value
203 static unsigned int reg_val_to_db(unsigned int value)
205 return (((value >> AW88395_VOL_6DB_START) * AW88395_VOLUME_STEP_DB) +
206 ((value & 0x3f) % AW88395_VOLUME_STEP_DB));
209 static unsigned short db_to_reg_val(unsigned short value)
211 return (((value / AW88395_VOLUME_STEP_DB) << AW88395_VOL_6DB_START) +
212 (value % AW88395_VOLUME_STEP_DB));
257 static int aw_dev_set_volume(struct aw_device *aw_dev, unsigned int value)
264 volume = min((value + vol_desc->init_volume), (unsigned int)AW88395_MUTE_VOL);
267 /* cal real value */
272 dev_dbg(aw_dev->dev, "value 0x%x , reg:0x%x", value, real_value);
277 /* write value */
1605 dev_dbg(aw_dev->dev, "read sound-channel value is: %d",
1623 dev_dbg(aw_dev->dev, "read fade-enable value is: %d", fade_en);