/sound/soc/ti/ |
D | omap-mcbsp-priv.h | 78 #define RINTM(value) (((value) & 0x3) << 4) /* bits 4:5 */ argument 81 #define CLKSTP(value) (((value) & 0x3) << 11) /* bits 11:12 */ argument 82 #define RJUST(value) (((value) & 0x3) << 13) /* bits 13:14 */ argument 91 #define XINTM(value) (((value) & 0x3) << 4) /* bits 4:5 */ argument 115 #define RWDLEN1(value) (((value) & 0x7) << 5) /* Bits 5:7 */ argument 116 #define RFRLEN1(value) (((value) & 0x7f) << 8) /* Bits 8:14 */ argument 119 #define XWDLEN1(value) (((value) & 0x7) << 5) /* Bits 5:7 */ argument 120 #define XFRLEN1(value) (((value) & 0x7f) << 8) /* Bits 8:14 */ argument 123 #define RDATDLY(value) ((value) & 0x3) /* Bits 0:1 */ argument 125 #define RCOMPAND(value) (((value) & 0x3) << 3) /* Bits 3:4 */ argument [all …]
|
/sound/pci/oxygen/ |
D | oxygen_mixer.c | 23 info->value.integer.min = chip->model.dac_volume_min; in dac_volume_info() 24 info->value.integer.max = chip->model.dac_volume_max; in dac_volume_info() 29 struct snd_ctl_elem_value *value) in dac_volume_get() argument 36 value->value.integer.value[i] = chip->dac_volume[i]; in dac_volume_get() 42 struct snd_ctl_elem_value *value) in dac_volume_put() argument 51 if (value->value.integer.value[i] != chip->dac_volume[i]) { in dac_volume_put() 52 chip->dac_volume[i] = value->value.integer.value[i]; in dac_volume_put() 62 struct snd_ctl_elem_value *value) in dac_mute_get() argument 67 value->value.integer.value[0] = !chip->dac_mute; in dac_mute_get() 73 struct snd_ctl_elem_value *value) in dac_mute_put() argument [all …]
|
D | xonar_dg_mixer.c | 60 struct snd_ctl_elem_value *value) in output_select_get() argument 66 value->value.enumerated.item[0] = data->output_sel; in output_select_get() 72 struct snd_ctl_elem_value *value) in output_select_put() argument 76 unsigned int new = value->value.enumerated.item[0]; in output_select_put() 99 info->value.integer.min = 0; in hp_stereo_volume_info() 100 info->value.integer.max = 255; in hp_stereo_volume_info() 113 val->value.integer.value[0] = tmp; in hp_stereo_volume_get() 115 val->value.integer.value[1] = tmp; in hp_stereo_volume_get() 127 long new1 = val->value.integer.value[0]; in hp_stereo_volume_put() 128 long new2 = val->value.integer.value[1]; in hp_stereo_volume_put() [all …]
|
D | xonar_wm87x6.c | 91 unsigned int reg, unsigned int value) in wm8776_write_spi() argument 98 (reg << 9) | value); in wm8776_write_spi() 102 unsigned int reg, unsigned int value) in wm8776_write_i2c() argument 105 (reg << 1) | (value >> 8), value); in wm8776_write_i2c() 109 unsigned int reg, unsigned int value) in wm8776_write() argument 115 wm8776_write_spi(chip, reg, value); in wm8776_write() 117 wm8776_write_i2c(chip, reg, value); in wm8776_write() 120 value &= ~WM8776_UPDATE; in wm8776_write() 121 data->wm8776_regs[reg] = value; in wm8776_write() 126 unsigned int reg, unsigned int value) in wm8776_write_cached() argument [all …]
|
D | oxygen.h | 185 void oxygen_write8(struct oxygen *chip, unsigned int reg, u8 value); 186 void oxygen_write16(struct oxygen *chip, unsigned int reg, u16 value); 187 void oxygen_write32(struct oxygen *chip, unsigned int reg, u32 value); 189 u8 value, u8 mask); 191 u16 value, u16 mask); 193 u32 value, u32 mask); 209 void oxygen_write_eeprom(struct oxygen *chip, unsigned int index, u16 value); 212 unsigned int reg, u8 value) in oxygen_set_bits8() argument 214 oxygen_write8_masked(chip, reg, value, value); in oxygen_set_bits8() 218 unsigned int reg, u16 value) in oxygen_set_bits16() argument [all …]
|
D | oxygen.c | 143 u8 reg, u8 value) in ak4396_write() argument 156 AK4396_WRITE | (reg << 8) | value); in ak4396_write() 157 data->ak4396_regs[codec][reg] = value; in ak4396_write() 161 u8 reg, u8 value) in ak4396_write_cached() argument 165 if (value != data->ak4396_regs[codec][reg]) in ak4396_write_cached() 166 ak4396_write(chip, codec, reg, value); in ak4396_write_cached() 169 static void wm8785_write(struct oxygen *chip, u8 reg, unsigned int value) in wm8785_write() argument 178 (reg << 9) | value); in wm8785_write() 180 data->wm8785_regs[reg] = value; in wm8785_write() 338 u8 value; in set_ak4396_params() local [all …]
|
/sound/soc/bcm/ |
D | cygnus-ssp.c | 256 u32 value, fci_id; in audio_ssp_init_portregs() local 261 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs() 262 value &= ~I2S_STREAM_CFG_MASK; in audio_ssp_init_portregs() 269 value |= aio->portnum << I2S_OUT_STREAM_CFG_GROUP_ID; in audio_ssp_init_portregs() 270 value |= aio->portnum; /* FCI ID is the port num */ in audio_ssp_init_portregs() 271 value |= CH_GRP_STEREO << I2S_OUT_STREAM_CFG_CHANNEL_GROUPING; in audio_ssp_init_portregs() 272 writel(value, aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs() 275 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_init_portregs() 276 value &= ~BIT(BF_SRC_CFGX_NOT_PAUSE_WHEN_EMPTY); in audio_ssp_init_portregs() 277 value |= BIT(BF_SRC_CFGX_SFIFO_SZ_DOUBLE); in audio_ssp_init_portregs() [all …]
|
/sound/aoa/codecs/ |
D | tas.c | 229 uinfo->value.integer.min = 0; in tas_snd_vol_info() 230 uinfo->value.integer.max = 177; in tas_snd_vol_info() 240 ucontrol->value.integer.value[0] = tas->cached_volume_l; in tas_snd_vol_get() 241 ucontrol->value.integer.value[1] = tas->cached_volume_r; in tas_snd_vol_get() 251 if (ucontrol->value.integer.value[0] < 0 || in tas_snd_vol_put() 252 ucontrol->value.integer.value[0] > 177) in tas_snd_vol_put() 254 if (ucontrol->value.integer.value[1] < 0 || in tas_snd_vol_put() 255 ucontrol->value.integer.value[1] > 177) in tas_snd_vol_put() 259 if (tas->cached_volume_l == ucontrol->value.integer.value[0] in tas_snd_vol_put() 260 && tas->cached_volume_r == ucontrol->value.integer.value[1]) { in tas_snd_vol_put() [all …]
|
D | onyx.c | 65 static int onyx_read_register(struct onyx *onyx, u8 reg, u8 *value) in onyx_read_register() argument 70 *value = onyx->cache[reg-FIRSTREGISTER]; in onyx_read_register() 75 *value = 0; in onyx_read_register() 78 *value = (u8)v; in onyx_read_register() 79 onyx->cache[ONYX_REG_CONTROL-FIRSTREGISTER] = *value; in onyx_read_register() 83 static int onyx_write_register(struct onyx *onyx, u8 reg, u8 value) in onyx_write_register() argument 87 result = i2c_smbus_write_byte_data(onyx->i2c, reg, value); in onyx_write_register() 89 onyx->cache[reg-FIRSTREGISTER] = value; in onyx_write_register() 113 uinfo->value.integer.min = -128 + VOLUME_RANGE_SHIFT; in onyx_snd_vol_info() 114 uinfo->value.integer.max = -1 + VOLUME_RANGE_SHIFT; in onyx_snd_vol_info() [all …]
|
/sound/soc/kirkwood/ |
D | kirkwood-i2s.c | 39 unsigned long value; in kirkwood_i2s_set_fmt() local 59 value = readl(priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt() 60 value &= ~KIRKWOOD_I2S_CTL_JUST_MASK; in kirkwood_i2s_set_fmt() 61 value |= mask; in kirkwood_i2s_set_fmt() 62 writel(value, priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt() 64 value = readl(priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt() 65 value &= ~KIRKWOOD_I2S_CTL_JUST_MASK; in kirkwood_i2s_set_fmt() 66 value |= mask; in kirkwood_i2s_set_fmt() 67 writel(value, priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt() 74 unsigned long value; in kirkwood_set_dco() local [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-spkr.c | 28 static int avc_audio_feature_mute(struct fw_unit *unit, u8 fb_id, bool *value, in avc_audio_feature_mute() argument 58 buf[10] = *value ? 0x70 : 0x60; in avc_audio_feature_mute() 74 *value = buf[10] == 0x70; in avc_audio_feature_mute() 84 static int avc_audio_feature_volume(struct fw_unit *unit, u8 fb_id, s16 *value, in avc_audio_feature_volume() argument 117 buf[10] = *value >> 8; in avc_audio_feature_volume() 118 buf[11] = *value; in avc_audio_feature_volume() 135 *value = (buf[10] << 8) | buf[11]; in avc_audio_feature_volume() 146 struct snd_ctl_elem_value *value) in spkr_mute_get() argument 151 value->value.integer.value[0] = !spkr->mute; in spkr_mute_get() 157 struct snd_ctl_elem_value *value) in spkr_mute_put() argument [all …]
|
/sound/usb/6fire/ |
D | control.c | 34 u8 value; member 180 uinfo->value.integer.min = 0; in usb6fire_control_output_vol_info() 181 uinfo->value.integer.max = 180; in usb6fire_control_output_vol_info() 198 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put() 199 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put() 203 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put() 204 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put() 227 ucontrol->value.integer.value[0] = rt->output_vol[ch]; in usb6fire_control_output_vol_get() 228 ucontrol->value.integer.value[1] = rt->output_vol[ch + 1]; in usb6fire_control_output_vol_get() 238 u8 value = 0; in usb6fire_control_output_mute_put() local [all …]
|
/sound/drivers/opl4/ |
D | opl4_mixer.c | 14 uinfo->value.integer.min = 0; in snd_opl4_ctl_info() 15 uinfo->value.integer.max = 7; in snd_opl4_ctl_info() 24 u8 value; in snd_opl4_ctl_get() local 27 value = snd_opl4_read(opl4, reg); in snd_opl4_ctl_get() 29 ucontrol->value.integer.value[0] = 7 - (value & 7); in snd_opl4_ctl_get() 30 ucontrol->value.integer.value[1] = 7 - ((value >> 3) & 7); in snd_opl4_ctl_get() 39 u8 value, old_value; in snd_opl4_ctl_put() local 41 value = (7 - (ucontrol->value.integer.value[0] & 7)) | in snd_opl4_ctl_put() 42 ((7 - (ucontrol->value.integer.value[1] & 7)) << 3); in snd_opl4_ctl_put() 45 snd_opl4_write(opl4, reg, value); in snd_opl4_ctl_put() [all …]
|
/sound/soc/sof/ |
D | control.c | 16 static inline u32 mixer_to_ipc(unsigned int value, u32 *volume_map, int size) in mixer_to_ipc() argument 18 if (value >= size) in mixer_to_ipc() 21 return volume_map[value]; in mixer_to_ipc() 24 static inline u32 ipc_to_mixer(u32 value, u32 *volume_map, int size) in ipc_to_mixer() argument 29 if (volume_map[i] >= value) in ipc_to_mixer() 47 ucontrol->value.integer.value[i] = in snd_sof_volume_get() 48 ipc_to_mixer(cdata->chanv[i].value, in snd_sof_volume_get() 64 u32 value; in snd_sof_volume_put() local 68 value = mixer_to_ipc(ucontrol->value.integer.value[i], in snd_sof_volume_put() 70 change = change || (value != cdata->chanv[i].value); in snd_sof_volume_put() [all …]
|
/sound/soc/img/ |
D | img-spdif-in.c | 282 ucontrol->value.iec958.status[0] = 0xff; in img_spdif_in_get_status_mask() 283 ucontrol->value.iec958.status[1] = 0xff; in img_spdif_in_get_status_mask() 284 ucontrol->value.iec958.status[2] = 0xff; in img_spdif_in_get_status_mask() 285 ucontrol->value.iec958.status[3] = 0xff; in img_spdif_in_get_status_mask() 286 ucontrol->value.iec958.status[4] = 0xff; in img_spdif_in_get_status_mask() 299 ucontrol->value.iec958.status[0] = reg & 0xff; in img_spdif_in_get_status() 300 ucontrol->value.iec958.status[1] = (reg >> 8) & 0xff; in img_spdif_in_get_status() 301 ucontrol->value.iec958.status[2] = (reg >> 16) & 0xff; in img_spdif_in_get_status() 302 ucontrol->value.iec958.status[3] = (reg >> 24) & 0xff; in img_spdif_in_get_status() 304 ucontrol->value.iec958.status[4] = (reg & IMG_SPDIF_IN_CSH_MASK) in img_spdif_in_get_status() [all …]
|
/sound/soc/ |
D | soc-ops.c | 73 ucontrol->value.enumerated.item[0] = item; in snd_soc_get_enum_double() 77 ucontrol->value.enumerated.item[1] = item; in snd_soc_get_enum_double() 98 unsigned int *item = ucontrol->value.enumerated.item; in snd_soc_put_enum_double() 198 uinfo->value.integer.min = 0; in snd_soc_info_volsw() 199 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw() 226 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx() 267 ucontrol->value.integer.value[0] = val - min; in snd_soc_get_volsw() 269 ucontrol->value.integer.value[0] = in snd_soc_get_volsw() 270 max - ucontrol->value.integer.value[0]; in snd_soc_get_volsw() 282 ucontrol->value.integer.value[1] = val - min; in snd_soc_get_volsw() [all …]
|
/sound/drivers/vx/ |
D | vx_mixer.c | 405 uinfo->value.integer.min = 0; in vx_output_level_info() 406 uinfo->value.integer.max = chip->hw->output_level_max; in vx_output_level_info() 415 ucontrol->value.integer.value[0] = chip->output_level[codec][0]; in vx_output_level_get() 416 ucontrol->value.integer.value[1] = chip->output_level[codec][1]; in vx_output_level_get() 428 val[0] = ucontrol->value.integer.value[0]; in vx_output_level_put() 429 val[1] = ucontrol->value.integer.value[1]; in vx_output_level_put() 478 ucontrol->value.enumerated.item[0] = chip->audio_source_target; in vx_audio_src_get() 487 if (ucontrol->value.enumerated.item[0] > 2) in vx_audio_src_put() 490 if (ucontrol->value.enumerated.item[0] > 1) in vx_audio_src_put() 494 if (chip->audio_source_target != ucontrol->value.enumerated.item[0]) { in vx_audio_src_put() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_timer.c | 25 static int send_timer_event(struct seq_oss_devinfo *dp, int type, int value); 127 send_timer_event(struct seq_oss_devinfo *dp, int type, int value) in send_timer_event() argument 139 ev.data.queue.param.value = value; in send_timer_event() 200 snd_seq_oss_timer_tempo(struct seq_oss_timer *timer, int value) in snd_seq_oss_timer_tempo() argument 202 if (value < MIN_OSS_TEMPO) in snd_seq_oss_timer_tempo() 203 value = MIN_OSS_TEMPO; in snd_seq_oss_timer_tempo() 204 else if (value > MAX_OSS_TEMPO) in snd_seq_oss_timer_tempo() 205 value = MAX_OSS_TEMPO; in snd_seq_oss_timer_tempo() 206 timer->oss_tempo = value; in snd_seq_oss_timer_tempo() 220 int value; in snd_seq_oss_timer_ioctl() local [all …]
|
/sound/core/ |
D | control_compat.c | 77 } value; member 98 if (get_user(data->value.enumerated.item, &data32->value.enumerated.item)) in snd_ctl_elem_info_compat() 118 if (put_user(data->value.integer.min, &data32->value.integer.min) || in snd_ctl_elem_info_compat() 119 put_user(data->value.integer.max, &data32->value.integer.max) || in snd_ctl_elem_info_compat() 120 put_user(data->value.integer.step, &data32->value.integer.step)) in snd_ctl_elem_info_compat() 124 if (copy_to_user(&data32->value.integer64, in snd_ctl_elem_info_compat() 125 &data->value.integer64, in snd_ctl_elem_info_compat() 126 sizeof(data->value.integer64))) in snd_ctl_elem_info_compat() 130 if (copy_to_user(&data32->value.enumerated, in snd_ctl_elem_info_compat() 131 &data->value.enumerated, in snd_ctl_elem_info_compat() [all …]
|
/sound/pci/mixart/ |
D | mixart_mixer.c | 335 uinfo->value.integer.min = MIXART_ANALOG_PLAYBACK_LEVEL_MIN; /* -96 dB */ in mixart_analog_vol_info() 336 uinfo->value.integer.max = MIXART_ANALOG_PLAYBACK_LEVEL_MAX; /* 0 dB */ in mixart_analog_vol_info() 338 uinfo->value.integer.min = MIXART_ANALOG_CAPTURE_LEVEL_MIN; /* -96 dB */ in mixart_analog_vol_info() 339 uinfo->value.integer.max = MIXART_ANALOG_CAPTURE_LEVEL_MAX; /* 31.5 dB */ in mixart_analog_vol_info() 349 ucontrol->value.integer.value[0] = chip->analog_playback_volume[0]; in mixart_analog_vol_get() 350 ucontrol->value.integer.value[1] = chip->analog_playback_volume[1]; in mixart_analog_vol_get() 352 ucontrol->value.integer.value[0] = chip->analog_capture_volume[0]; in mixart_analog_vol_get() 353 ucontrol->value.integer.value[1] = chip->analog_capture_volume[1]; in mixart_analog_vol_get() 368 int new_volume = ucontrol->value.integer.value[i]; in mixart_analog_vol_put() 413 ucontrol->value.integer.value[0] = chip->analog_playback_active[0]; in mixart_audio_sw_get() [all …]
|
/sound/drivers/pcsp/ |
D | pcsp_mixer.c | 19 uinfo->value.integer.min = 0; in pcsp_enable_info() 20 uinfo->value.integer.max = 1; in pcsp_enable_info() 28 ucontrol->value.integer.value[0] = chip->enable; in pcsp_enable_get() 37 int enab = ucontrol->value.integer.value[0]; in pcsp_enable_put() 51 uinfo->value.enumerated.items = chip->max_treble + 1; in pcsp_treble_info() 52 if (uinfo->value.enumerated.item > chip->max_treble) in pcsp_treble_info() 53 uinfo->value.enumerated.item = chip->max_treble; in pcsp_treble_info() 54 sprintf(uinfo->value.enumerated.name, "%lu", in pcsp_treble_info() 55 (unsigned long)PCSP_CALC_RATE(uinfo->value.enumerated.item)); in pcsp_treble_info() 63 ucontrol->value.enumerated.item[0] = chip->treble; in pcsp_treble_get() [all …]
|
/sound/pci/ca0106/ |
D | ca0106_proc.c | 84 static void snd_ca0106_proc_dump_iec958( struct snd_info_buffer *buffer, u32 value) in snd_ca0106_proc_dump_iec958() argument 88 status[0] = value & 0xff; in snd_ca0106_proc_dump_iec958() 89 status[1] = (value >> 8) & 0xff; in snd_ca0106_proc_dump_iec958() 90 status[2] = (value >> 16) & 0xff; in snd_ca0106_proc_dump_iec958() 91 status[3] = (value >> 24) & 0xff; in snd_ca0106_proc_dump_iec958() 262 u32 value; in snd_ca0106_proc_iec958() local 264 value = snd_ca0106_ptr_read(emu, SAMPLE_RATE_TRACKER_STATUS, 0); in snd_ca0106_proc_iec958() 266 (value & 0x100000) ? "Rate Locked" : "Not Rate Locked", in snd_ca0106_proc_iec958() 267 (value & 0x200000) ? "SPDIF Locked" : "No SPDIF Lock", in snd_ca0106_proc_iec958() 268 (value & 0x400000) ? "Audio Valid" : "No valid audio" ); in snd_ca0106_proc_iec958() [all …]
|
/sound/i2c/ |
D | tea6330t.c | 57 unsigned char addr, unsigned char value) 60 printk(KERN_DEBUG "set - 0x%x/0x%x\n", addr, value); 62 snd_i2c_write(tea->bus, TEA6330T_ADDR, addr, value, 1); 76 uinfo->value.integer.min = 0; in snd_tea6330t_info_master_volume() 77 uinfo->value.integer.max = 43; in snd_tea6330t_info_master_volume() 87 ucontrol->value.integer.value[0] = tea->mleft - 0x14; in snd_tea6330t_get_master_volume() 88 ucontrol->value.integer.value[1] = tea->mright - 0x14; in snd_tea6330t_get_master_volume() 101 val1 = (ucontrol->value.integer.value[0] % 44) + 0x14; in snd_tea6330t_put_master_volume() 102 val2 = (ucontrol->value.integer.value[1] % 44) + 0x14; in snd_tea6330t_put_master_volume() 138 ucontrol->value.integer.value[0] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] == 0 ? 0 : 1; in snd_tea6330t_get_master_switch() [all …]
|
/sound/soc/codecs/ |
D | wm8958-dsp2.c | 459 int value = ucontrol->value.enumerated.item[0]; in wm8958_put_mbc_enum() local 467 if (value >= control->pdata.num_mbc_cfgs) in wm8958_put_mbc_enum() 470 wm8994->mbc_cfg = value; in wm8958_put_mbc_enum() 481 ucontrol->value.enumerated.item[0] = wm8994->mbc_cfg; in wm8958_get_mbc_enum() 491 uinfo->value.integer.min = 0; in wm8958_mbc_info() 492 uinfo->value.integer.max = 1; in wm8958_mbc_info() 503 ucontrol->value.integer.value[0] = wm8994->mbc_ena[mbc]; in wm8958_mbc_get() 515 if (wm8994->mbc_ena[mbc] == ucontrol->value.integer.value[0]) in wm8958_mbc_put() 518 if (ucontrol->value.integer.value[0] > 1) in wm8958_mbc_put() 529 wm8994->mbc_ena[mbc] = ucontrol->value.integer.value[0]; in wm8958_mbc_put() [all …]
|
/sound/pcmcia/vx/ |
D | vxp_mixer.c | 25 uinfo->value.integer.min = 0; in vx_mic_level_info() 26 uinfo->value.integer.max = MIC_LEVEL_MAX; in vx_mic_level_info() 34 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_level_get() 42 unsigned int val = ucontrol->value.integer.value[0]; in vx_mic_level_put() 47 if (chip->mic_level != ucontrol->value.integer.value[0]) { in vx_mic_level_put() 48 vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); in vx_mic_level_put() 49 chip->mic_level = ucontrol->value.integer.value[0]; in vx_mic_level_put() 79 ucontrol->value.integer.value[0] = chip->mic_level; in vx_mic_boost_get() 87 int val = !!ucontrol->value.integer.value[0]; in vx_mic_boost_put()
|