/sound/ppc/ |
D | burgundy.c | 124 long *volume, int shift) in snd_pmac_burgundy_write_volume() argument 128 if (volume[0] < 0 || volume[0] > 100 || in snd_pmac_burgundy_write_volume() 129 volume[1] < 0 || volume[1] > 100) in snd_pmac_burgundy_write_volume() 131 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume() 132 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume() 143 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument 149 volume[0] = wvolume & 0xff; in snd_pmac_burgundy_read_volume() 150 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume() 151 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume() 153 volume[0] = 0; in snd_pmac_burgundy_read_volume() [all …]
|
D | beep.c | 21 int volume; /* mixer volume: 0-100 */ member 136 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event() 146 p[0] = p[1] = beep_wform[j >> 8] * beep->volume; in snd_pmac_beep_event() 150 beep->volume_play = beep->volume; in snd_pmac_beep_event() 180 ucontrol->value.integer.value[0] = chip->beep->volume; in snd_pmac_get_beep() 191 oval = chip->beep->volume; in snd_pmac_put_beep() 195 chip->beep->volume = nval; in snd_pmac_put_beep() 196 return oval != chip->beep->volume; in snd_pmac_put_beep() 241 beep->volume = BEEP_VOLUME; in snd_pmac_attach_beep()
|
/sound/firewire/oxfw/ |
D | oxfw-spkr.c | 12 s16 volume[6]; member 202 value->value.integer.value[channel_map[i]] = spkr->volume[i]; in spkr_volume_get() 214 s16 volume; in spkr_volume_put() local 229 spkr->volume[i]) in spkr_volume_put() 236 volume = value->value.integer.value[channel_map[i ? i - 1 : 0]]; in spkr_volume_put() 239 spkr->volume_fb_id, &volume, in spkr_volume_put() 245 spkr->volume[i - 1] = volume; in spkr_volume_put() 306 &spkr->volume[i], first_ch + i, in snd_oxfw_add_spkr()
|
/sound/i2c/other/ |
D | pt2258.c | 54 pt->volume[i] = 0; in snd_pt2258_reset() 87 ucontrol->value.integer.value[0] = 79 - pt->volume[base]; in pt2258_stereo_volume_get() 88 ucontrol->value.integer.value[1] = 79 - pt->volume[base + 1]; in pt2258_stereo_volume_get() 104 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put() 107 pt->volume[base] = val0; in pt2258_stereo_volume_put() 115 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put()
|
/sound/soc/sh/rcar/ |
D | mix.c | 83 (VOL_MAX - rsnd_kctrl_vals(mix->volume##X)) : 0 183 struct rsnd_kctrl_cfg_s *volume; in rsnd_mix_pcm_new() local 189 volume = &mix->volumeA; in rsnd_mix_pcm_new() 194 volume = &mix->volumeB; in rsnd_mix_pcm_new() 199 volume = &mix->volumeC; in rsnd_mix_pcm_new() 204 volume = &mix->volumeD; in rsnd_mix_pcm_new() 217 volume, VOL_MAX); in rsnd_mix_pcm_new() 220 rsnd_kctrl_vals(*volume) = VOL_MAX; in rsnd_mix_pcm_new()
|
D | dvc.c | 38 struct rsnd_kctrl_cfg_m volume; member 71 #define rsnd_dvc_get_vrdbr(dvc) (0x3ff - (rsnd_kctrl_valm(dvc->volume, 0) >> 13)) 83 val[i] = rsnd_kctrl_max(dvc->volume); in rsnd_dvc_volume_parameter() 86 val[i] = rsnd_kctrl_valm(dvc->volume, i); in rsnd_dvc_volume_parameter() 231 &dvc->volume, channels, in rsnd_dvc_pcm_new()
|
/sound/soc/tegra/ |
D | tegra210_mvc.c | 104 mvc->volume[chan] = ((val * (1<<8)) / 100) << 16; in tegra210_mvc_conv_vol() 107 mvc->volume[chan] = (val * (1<<8)) / 100; in tegra210_mvc_conv_vol() 267 s32 val = mvc->volume[chan]; in tegra210_mvc_get_vol() 296 int old_volume = mvc->volume[chan]; in tegra210_mvc_update_vol() 307 if (mvc->volume[chan] == old_volume) { in tegra210_mvc_update_vol() 321 mvc->volume[i] = mvc->volume[chan]; in tegra210_mvc_update_vol() 327 mvc->volume[chan]); in tegra210_mvc_update_vol() 329 regmap_write(mvc->regmap, mc->reg, mvc->volume[chan]); in tegra210_mvc_update_vol() 363 mvc->volume[i] = TEGRA210_MVC_INIT_VOL_DEFAULT_POLY; in tegra210_mvc_reset_vol_settings() 366 mvc->volume[i] = TEGRA210_MVC_INIT_VOL_DEFAULT_LINEAR; in tegra210_mvc_reset_vol_settings() [all …]
|
D | tegra210_mvc.h | 116 int volume[TEGRA210_MVC_MAX_CHAN_COUNT]; member
|
/sound/usb/line6/ |
D | playback.c | 21 static void change_volume(struct urb *urb_out, int volume[], in change_volume() argument 26 if (volume[0] == 256 && volume[1] == 256) in change_volume() 37 int val = (pv * volume[chn & 1]) >> 8; in change_volume() 52 val = (val * volume[chn & 1]) >> 8; in change_volume() 109 int volume, int bytes_per_frame) in add_monitor_signal() argument 111 if (volume == 0) in add_monitor_signal() 124 int val = pov + ((piv * volume) >> 8); in add_monitor_signal()
|
/sound/soc/sh/ |
D | siu_dai.c | 133 siu_write32(base + SIU_SBDVCA, port_info->playback.volume); in siu_dai_start() 134 siu_write32(base + SIU_SBDVCB, port_info->capture.volume); in siu_dai_start() 364 vol = port_info->playback.volume; in siu_dai_get_volume() 370 vol = port_info->capture.volume; in siu_dai_get_volume() 408 cur_vol = port_info->playback.volume; in siu_dai_put_volume() 410 port_info->playback.volume = new_vol; in siu_dai_put_volume() 414 cur_vol = port_info->capture.volume; in siu_dai_put_volume() 416 port_info->capture.volume = new_vol; in siu_dai_put_volume() 462 (*port_info)->playback.volume = DFLT_VOLUME_LEVEL; in siu_init_port() 463 (*port_info)->capture.volume = DFLT_VOLUME_LEVEL; in siu_init_port()
|
D | siu.h | 105 u32 volume; member
|
/sound/soc/intel/catpt/ |
D | pcm.c | 130 u32 volume, offset; in catpt_stream_volume() local 136 memcpy_fromio(&volume, cdev->lpe_ba + offset, sizeof(volume)); in catpt_stream_volume() 137 return volume; in catpt_stream_volume() 143 u32 volume, offset; in catpt_mixer_volume() local 149 memcpy_fromio(&volume, cdev->lpe_ba + offset, sizeof(volume)); in catpt_mixer_volume() 150 return volume; in catpt_mixer_volume() 802 static u32 dspvol_to_ctlvol(u32 volume) in dspvol_to_ctlvol() argument 804 if (volume > DSP_VOLUME_MAX) in dspvol_to_ctlvol() 806 return volume ? __fls(volume) : 0; in dspvol_to_ctlvol()
|
D | messages.c | 239 u32 channel, u32 volume, in catpt_ipc_set_volume() argument 250 input.target_volume = volume; in catpt_ipc_set_volume()
|
/sound/pci/cs46xx/ |
D | dsp_spos.h | 212 scb->volume[0] = left; in cs46xx_dsp_scb_set_volume() 213 scb->volume[1] = right; in cs46xx_dsp_scb_set_volume()
|
D | cs46xx_dsp_spos.h | 107 u16 volume[2]; member
|
/sound/oss/dmasound/ |
D | dmasound.h | 181 static inline int dmasound_set_volume(int volume) in dmasound_set_volume() argument 183 return dmasound.mach.setVolume(volume); in dmasound_set_volume()
|
D | dmasound_paula.c | 83 static int AmiSetVolume(int volume); 427 static int AmiSetVolume(int volume) in AmiSetVolume() argument 429 dmasound.volume_left = VOLUME_VOXWARE_TO_AMI(volume & 0xff); in AmiSetVolume() 431 dmasound.volume_right = VOLUME_VOXWARE_TO_AMI((volume & 0xff00) >> 8); in AmiSetVolume()
|
D | dmasound_atari.c | 129 static int TTSetVolume(int volume); 134 static int FalconSetVolume(int volume); 990 static int TTSetVolume(int volume) in TTSetVolume() argument 992 dmasound.volume_left = VOLUME_VOXWARE_TO_DB(volume & 0xff); in TTSetVolume() 994 dmasound.volume_right = VOLUME_VOXWARE_TO_DB((volume & 0xff00) >> 8); in TTSetVolume() 1159 static int FalconSetVolume(int volume) in FalconSetVolume() argument 1161 dmasound.volume_left = VOLUME_VOXWARE_TO_ATT(volume & 0xff); in FalconSetVolume() 1162 dmasound.volume_right = VOLUME_VOXWARE_TO_ATT((volume & 0xff00) >> 8); in FalconSetVolume()
|
/sound/core/oss/ |
D | mixer_oss.c | 267 left = pslot->volume[0]; in snd_mixer_oss_get_volume() 268 right = pslot->volume[1]; in snd_mixer_oss_get_volume() 282 pslot->volume[0] = left; in snd_mixer_oss_get_volume() 283 pslot->volume[1] = right; in snd_mixer_oss_get_volume() 292 int slot, int volume) in snd_mixer_oss_set_volume() argument 296 int result = 0, left = volume & 0xff, right = (volume >> 8) & 0xff; in snd_mixer_oss_set_volume() 312 pslot->volume[0] = left; in snd_mixer_oss_set_volume() 313 pslot->volume[1] = right; in snd_mixer_oss_set_volume() 559 …tl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[0]); in snd_mixer_oss_get_volume1_vol() 561 …tl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[1]); in snd_mixer_oss_get_volume1_vol()
|
/sound/pci/mixart/ |
D | mixart_mixer.c | 713 int volume[2]; in mixart_update_playback_stream_level() local 738 volume[i] = chip->digital_playback_volume[idx][i]; in mixart_update_playback_stream_level() 740 volume[i] = MIXART_DIGITAL_LEVEL_MIN; in mixart_update_playback_stream_level() 744 set_level.stream_level.out_level.left_to_out1_level = mixart_digital_level[volume[0]]; in mixart_update_playback_stream_level() 745 set_level.stream_level.out_level.right_to_out2_level = mixart_digital_level[volume[1]]; in mixart_update_playback_stream_level()
|
D | mixart.h | 38 int volume; member
|
/sound/drivers/opl3/ |
D | opl3_midi.c | 50 int volume; in snd_opl3_calc_volume() local 52 volume = (vel * chan->gm_volume * chan->gm_expression) / (127*127); in snd_opl3_calc_volume() 53 if (volume > 127) in snd_opl3_calc_volume() 54 volume = 127; in snd_opl3_calc_volume() 58 newvol = opl3_volume_table[volume] + oldvol; in snd_opl3_calc_volume()
|
/sound/soc/codecs/ |
D | nau8825.c | 314 unsigned int value, volume, ramp_up, from, to; in nau8825_hpvol_ramp() local 331 for (volume = from; volume < to; volume += step) { in nau8825_hpvol_ramp() 333 value = volume; in nau8825_hpvol_ramp() 335 value = to - volume + from; in nau8825_hpvol_ramp() 471 int i, volume; in nau8825_xtalk_restore() local 485 volume = nau8825_xtalk_baktab[i].def & in nau8825_xtalk_restore() 487 nau8825_hpvol_ramp(nau8825, 0, volume, 3); in nau8825_xtalk_restore() 571 int volume, index; in nau8825_xtalk_prepare() local 585 volume = nau8825_xtalk_baktab[index].def & in nau8825_xtalk_prepare() 587 nau8825_hpvol_ramp(nau8825, volume, 0, 3); in nau8825_xtalk_prepare()
|
/sound/soc/sof/ |
D | ipc3-topology.c | 709 struct sof_ipc_comp_volume *volume; in sof_ipc3_widget_setup_comp_pga() local 711 size_t ipc_size = sizeof(*volume); in sof_ipc3_widget_setup_comp_pga() 715 volume = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_pga() 716 if (!volume) in sof_ipc3_widget_setup_comp_pga() 719 swidget->private = volume; in sof_ipc3_widget_setup_comp_pga() 722 volume->comp.type = SOF_COMP_VOLUME; in sof_ipc3_widget_setup_comp_pga() 723 volume->config.hdr.size = sizeof(volume->config); in sof_ipc3_widget_setup_comp_pga() 726 ret = sof_update_ipc_object(scomp, volume, SOF_VOLUME_TOKENS, swidget->tuples, in sof_ipc3_widget_setup_comp_pga() 727 swidget->num_tuples, sizeof(*volume), 1); in sof_ipc3_widget_setup_comp_pga() 732 ret = sof_update_ipc_object(scomp, &volume->config, SOF_COMP_TOKENS, in sof_ipc3_widget_setup_comp_pga() [all …]
|
/sound/pci/emu10k1/ |
D | emumixer.c | 1201 static void update_emu10k1_send_volume(struct snd_emu10k1 *emu, int voice, unsigned char *volume) in update_emu10k1_send_volume() argument 1203 snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_A, voice, volume[0]); in update_emu10k1_send_volume() 1204 snd_emu10k1_ptr_write(emu, PTRX_FXSENDAMOUNT_B, voice, volume[1]); in update_emu10k1_send_volume() 1205 snd_emu10k1_ptr_write(emu, PSST_FXSENDAMOUNT_C, voice, volume[2]); in update_emu10k1_send_volume() 1206 snd_emu10k1_ptr_write(emu, DSL_FXSENDAMOUNT_D, voice, volume[3]); in update_emu10k1_send_volume() 1208 unsigned int val = ((unsigned int)volume[4] << 24) | in update_emu10k1_send_volume() 1209 ((unsigned int)volume[5] << 16) | in update_emu10k1_send_volume() 1210 ((unsigned int)volume[6] << 8) | in update_emu10k1_send_volume() 1211 (unsigned int)volume[7]; in update_emu10k1_send_volume()
|