/linux-master/sound/pci/ymfpci/ |
H A D | ymfpci_main.c | 321 __le32 volume; local 324 volume = cpu_to_le32(chip->pcm_mixer[subs].left << 15); 325 bank->left_gain_end = volume; 327 bank->eff2_gain_end = volume; 330 volume = cpu_to_le32(chip->pcm_mixer[subs].right << 15); 331 bank->right_gain_end = volume; 333 bank->eff3_gain_end = volume; 1699 * PCM voice volume 1858 /* per-voice volume */
|
/linux-master/sound/ppc/ |
H A D | beep.c | 21 int volume; /* mixer volume: 0-100 */ member in struct:pmac_beep 22 int volume_play; /* currently playing volume */ 136 if (hz == beep->hz && beep->volume == beep->volume_play) { 146 p[0] = p[1] = beep_wform[j >> 8] * beep->volume; 150 beep->volume_play = beep->volume; 161 * beep volume mixer 180 ucontrol->value.integer.value[0] = chip->beep->volume; 191 oval = chip->beep->volume; 195 chip->beep->volume [all...] |
H A D | burgundy.c | 121 * Burgundy volume: 0 - 100, stereo, word reg 125 long *volume, int shift) 129 if (volume[0] < 0 || volume[0] > 100 || 130 volume[1] < 0 || volume[1] > 100) 132 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; 133 rvolume = volume[1] ? volume[ 124 snd_pmac_burgundy_write_volume(struct snd_pmac *chip, unsigned int address, long *volume, int shift) argument 143 snd_pmac_burgundy_read_volume(struct snd_pmac *chip, unsigned int address, long *volume, int shift) argument 209 snd_pmac_burgundy_write_volume_2b(struct snd_pmac *chip, unsigned int address, long *volume, int off) argument 223 snd_pmac_burgundy_read_volume_2b(struct snd_pmac *chip, unsigned int address, long *volume, int off) argument [all...] |
/linux-master/sound/soc/codecs/ |
H A D | aw88261.c | 30 unsigned int real_value, volume; local 33 volume = min((value + vol_desc->init_volume), (unsigned int)AW88261_MUTE_VOL); 34 real_value = DB_TO_REG_VAL(volume); 473 /* keep min volume */
|
H A D | nau8825.c | 283 * nau8825_hpvol_ramp - Ramp up the headphone volume change gradually to target level. 286 * @vol_from: the volume to start up 287 * @vol_to: the target volume 288 * @step: the volume span to move on 290 * The headphone volume is from 0dB to minimum -54dB and -1dB per step. 291 * If the volume changes sharp, there is a pop noise heard in headphone. We 292 * provide the function to ramp up the volume up or down by delaying 10ms 298 unsigned int value, volume, ramp_up, from, to; local 311 /* only handle volume from 0dB to minimum -54dB */ 315 for (volume 404 int i, volume; local 504 int volume, index; local [all...] |
H A D | wl1273.c | 244 ucontrol->value.integer.value[0] = wl1273->core->volume;
|
/linux-master/sound/soc/codecs/aw88395/ |
H A D | aw88395_device.c | 261 u16 real_value, volume; local 264 volume = min((value + vol_desc->init_volume), (unsigned int)AW88395_MUTE_VOL); 265 real_value = db_to_reg_val(volume); 274 /* [15 : 6] volume */ 289 dev_dbg(aw_dev->dev, "set volume failed"); 1052 /* clear control volume when PA change profile */ 1055 /* keep control volume when PA start with sync mode */
|
/linux-master/sound/soc/intel/atom/ |
H A D | sst-mfld-dsp.h | 440 s32 volume; member in struct:snd_sst_vol
|
/linux-master/sound/soc/intel/avs/ |
H A D | control.c | 71 ucontrol->value.integer.value[0] = ctl_data->volume; 83 long *volume = &ctl_data->volume; local 95 if (*volume != ctlvol) { 96 *volume = ctlvol; 103 dspvol.target_volume = *volume;
|
H A D | control.h | 17 long volume; member in struct:avs_control_data
|
H A D | path.c | 293 int volume = S32_MAX; local 299 volume = ctl_data->volume; 313 cfg->vols[0].target_volume = volume;
|
/linux-master/sound/soc/intel/catpt/ |
H A D | messages.c | 239 u32 channel, u32 volume, 250 input.target_volume = volume; 260 dev_err(cdev->dev, "set stream %d volume failed: %d\n", 238 catpt_ipc_set_volume(struct catpt_dev *cdev, u8 stream_hw_id, u32 channel, u32 volume, u32 curve_duration, enum catpt_audio_curve_type curve_type) argument
|
H A D | messages.h | 336 u32 channel, u32 volume,
|
H A D | pcm.c | 130 u32 volume, offset; local 136 memcpy_fromio(&volume, cdev->lpe_ba + offset, sizeof(volume)); 137 return volume; 143 u32 volume, offset; local 149 memcpy_fromio(&volume, cdev->lpe_ba + offset, sizeof(volume)); 150 return volume; 806 static u32 dspvol_to_ctlvol(u32 volume) argument 808 if (volume > DSP_VOLUME_MA [all...] |
/linux-master/sound/soc/sh/rcar/ |
H A D | dvc.c | 38 struct rsnd_kctrl_cfg_m volume; member in struct:rsnd_dvc 71 #define rsnd_dvc_get_vrdbr(dvc) (0x3ff - (rsnd_kctrl_valm(dvc->volume, 0) >> 13)) 83 val[i] = rsnd_kctrl_max(dvc->volume); 86 val[i] = rsnd_kctrl_valm(dvc->volume, i); 231 &dvc->volume, channels,
|
H A D | mix.c | 83 (VOL_MAX - rsnd_kctrl_vals(mix->volume##X)) : 0 114 /* volume step */ 119 /* common volume parameter */ 131 /* common volume parameter */ 183 struct rsnd_kctrl_cfg_s *volume; local 189 volume = &mix->volumeA; 194 volume = &mix->volumeB; 199 volume = &mix->volumeC; 204 volume = &mix->volumeD; 217 volume, VOL_MA [all...] |
/linux-master/sound/soc/sh/ |
H A D | siu.h | 105 u32 volume; member in struct:siu_stream
|
H A D | siu_dai.c | 130 * Volume levels: looks like the DSP firmware implements volume controls 133 siu_write32(base + SIU_SBDVCA, port_info->playback.volume); 134 siu_write32(base + SIU_SBDVCB, port_info->capture.volume); 364 vol = port_info->playback.volume; 370 vol = port_info->capture.volume; 408 cur_vol = port_info->playback.volume; 410 port_info->playback.volume = new_vol; 414 cur_vol = port_info->capture.volume; 416 port_info->capture.volume = new_vol; 462 (*port_info)->playback.volume [all...] |
/linux-master/sound/soc/sof/ |
H A D | ipc3-topology.c | 17 /* Full volume for default values */ 119 /* volume */ 745 struct sof_ipc_comp_volume *volume; local 747 size_t ipc_size = sizeof(*volume); 751 volume = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); 752 if (!volume) 755 swidget->private = volume; 757 /* configure volume IPC message */ 758 volume->comp.type = SOF_COMP_VOLUME; 759 volume [all...] |
/linux-master/sound/soc/tegra/ |
H A D | tegra210_mvc.c | 103 mvc->volume[chan] = ((val * (1<<8)) / 100) << 16; 106 mvc->volume[chan] = (val * (1<<8)) / 100; 266 s32 val = mvc->volume[chan]; 295 int old_volume = mvc->volume[chan]; 306 if (mvc->volume[chan] == old_volume) { 320 mvc->volume[i] = mvc->volume[chan]; 323 /* Configure init volume same as target volume */ 326 mvc->volume[cha [all...] |
H A D | tegra210_mvc.h | 116 int volume[TEGRA210_MVC_MAX_CHAN_COUNT]; member in struct:tegra210_mvc
|
/linux-master/sound/usb/line6/ |
H A D | playback.c | 19 Software stereo volume control. 21 static void change_volume(struct urb *urb_out, int volume[], argument 26 if (volume[0] == 256 && volume[1] == 256) 27 return; /* maximum volume - no change */ 37 int val = (pv * volume[chn & 1]) >> 8; 52 val = (val * volume[chn & 1]) >> 8; 109 int volume, int bytes_per_frame) 111 if (volume == 0) 112 return; /* zero volume 108 add_monitor_signal(struct urb *urb_out, unsigned char *signal, int volume, int bytes_per_frame) argument [all...] |