/sound/pci/ctxfi/ |
D | cthw20k1.c | 82 u16 ctl:1; member 95 unsigned int ctl; member 178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local 180 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state() 181 ctl->dirty.bf.ctl = 1; in src_set_state() 187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local 189 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm() 190 ctl->dirty.bf.ctl = 1; in src_set_bm() 196 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local 198 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr() [all …]
|
D | cthw20k2.c | 82 u16 ctl:1; member 95 unsigned int ctl; member 178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local 180 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state() 181 ctl->dirty.bf.ctl = 1; in src_set_state() 187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local 189 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm() 190 ctl->dirty.bf.ctl = 1; in src_set_bm() 196 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local 198 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr() [all …]
|
D | ctmixer.c | 110 unsigned char ctl; member 117 .ctl = 1, 121 .ctl = 1, 125 .ctl = 1, 129 .ctl = 1, 133 .ctl = 1, 137 .ctl = 1, 141 .ctl = 1, 145 .ctl = 1, 149 .ctl = 1, [all …]
|
/sound/pci/ice1712/ |
D | wm8766.c | 147 memcpy(wm->ctl, snd_wm8766_default_ctl, sizeof(wm->ctl)); in snd_wm8766_init() 188 uinfo->count = (wm->ctl[n].flags & WM8766_FLAG_STEREO) ? 2 : 1; in snd_wm8766_volume_info() 189 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info() 190 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info() 201 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_info() 202 wm->ctl[n].enum_names); in snd_wm8766_enum_info() 212 if (wm->ctl[n].get) in snd_wm8766_ctl_get() 213 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() 215 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get() 216 val1 >>= __ffs(wm->ctl[n].mask1); in snd_wm8766_ctl_get() [all …]
|
D | wm8776.c | 76 if (wm->ctl[i].flags & flags_off) in snd_wm8776_update_agc_ctl() 77 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, false); in snd_wm8776_update_agc_ctl() 78 else if (wm->ctl[i].flags & flags_on) in snd_wm8776_update_agc_ctl() 79 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, true); in snd_wm8776_update_agc_ctl() 424 memcpy(wm->ctl, snd_wm8776_default_ctl, sizeof(wm->ctl)); in snd_wm8776_init() 462 uinfo->count = (wm->ctl[n].flags & WM8776_FLAG_STEREO) ? 2 : 1; in snd_wm8776_volume_info() 463 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info() 464 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8776_volume_info() 475 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8776_enum_info() 476 wm->ctl[n].enum_names); in snd_wm8776_enum_info() [all …]
|
D | psc724.c | 197 strscpy(elem_id.name, spec->wm8776.ctl[WM8776_CTL_HP_SW].name, in psc724_set_jack_state() 308 struct snd_kcontrol *ctl; in psc724_add_controls() local 312 spec->wm8776.ctl[WM8776_CTL_DAC_VOL].name = front_volume; in psc724_add_controls() 313 spec->wm8776.ctl[WM8776_CTL_DAC_SW].name = front_switch; in psc724_add_controls() 314 spec->wm8776.ctl[WM8776_CTL_DAC_ZC_SW].name = front_zc; in psc724_add_controls() 315 spec->wm8776.ctl[WM8776_CTL_AUX_SW].name = NULL; in psc724_add_controls() 316 spec->wm8776.ctl[WM8776_CTL_DAC_IZD_SW].name = front_izd; in psc724_add_controls() 317 spec->wm8776.ctl[WM8776_CTL_PHASE_SW].name = front_phase; in psc724_add_controls() 318 spec->wm8776.ctl[WM8776_CTL_DEEMPH_SW].name = front_deemph; in psc724_add_controls() 319 spec->wm8776.ctl[WM8776_CTL_INPUT1_SW].name = ain1_switch; in psc724_add_controls() [all …]
|
/sound/pci/oxygen/ |
D | oxygen_mixer.c | 16 static int dac_volume_info(struct snd_kcontrol *ctl, in dac_volume_info() argument 19 struct oxygen *chip = ctl->private_data; in dac_volume_info() 28 static int dac_volume_get(struct snd_kcontrol *ctl, in dac_volume_get() argument 31 struct oxygen *chip = ctl->private_data; in dac_volume_get() 41 static int dac_volume_put(struct snd_kcontrol *ctl, in dac_volume_put() argument 44 struct oxygen *chip = ctl->private_data; in dac_volume_put() 61 static int dac_mute_get(struct snd_kcontrol *ctl, in dac_mute_get() argument 64 struct oxygen *chip = ctl->private_data; in dac_mute_get() 72 static int dac_mute_put(struct snd_kcontrol *ctl, in dac_mute_put() argument 75 struct oxygen *chip = ctl->private_data; in dac_mute_put() [all …]
|
D | xonar_wm87x6.c | 499 static int wm8776_bit_switch_get(struct snd_kcontrol *ctl, in wm8776_bit_switch_get() argument 502 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_get() 504 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_get() 505 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_get() 506 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_get() 513 static int wm8776_bit_switch_put(struct snd_kcontrol *ctl, in wm8776_bit_switch_put() argument 516 struct oxygen *chip = ctl->private_data; in wm8776_bit_switch_put() 518 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_put() 520 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_put() 521 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_put() [all …]
|
D | xonar_dg_mixer.c | 47 static int output_select_info(struct snd_kcontrol *ctl, in output_select_info() argument 59 static int output_select_get(struct snd_kcontrol *ctl, in output_select_get() argument 62 struct oxygen *chip = ctl->private_data; in output_select_get() 71 static int output_select_put(struct snd_kcontrol *ctl, in output_select_put() argument 74 struct oxygen *chip = ctl->private_data; in output_select_put() 94 static int hp_stereo_volume_info(struct snd_kcontrol *ctl, in hp_stereo_volume_info() argument 104 static int hp_stereo_volume_get(struct snd_kcontrol *ctl, in hp_stereo_volume_get() argument 107 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_get() 120 static int hp_stereo_volume_put(struct snd_kcontrol *ctl, in hp_stereo_volume_put() argument 123 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_put() [all …]
|
D | xonar_lib.c | 91 int xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl, in xonar_gpio_bit_switch_get() argument 94 struct oxygen *chip = ctl->private_data; in xonar_gpio_bit_switch_get() 95 u16 bit = ctl->private_value; in xonar_gpio_bit_switch_get() 96 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_get() 103 int xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl, in xonar_gpio_bit_switch_put() argument 106 struct oxygen *chip = ctl->private_data; in xonar_gpio_bit_switch_put() 107 u16 bit = ctl->private_value; in xonar_gpio_bit_switch_put() 108 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_put()
|
D | oxygen.c | 423 static int rolloff_info(struct snd_kcontrol *ctl, in rolloff_info() argument 433 static int rolloff_get(struct snd_kcontrol *ctl, in rolloff_get() argument 436 struct oxygen *chip = ctl->private_data; in rolloff_get() 444 static int rolloff_put(struct snd_kcontrol *ctl, in rolloff_put() argument 447 struct oxygen *chip = ctl->private_data; in rolloff_put() 476 static int hpf_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in hpf_info() argument 485 static int hpf_get(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_get() argument 487 struct oxygen *chip = ctl->private_data; in hpf_get() 495 static int hpf_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value) in hpf_put() argument 497 struct oxygen *chip = ctl->private_data; in hpf_put() [all …]
|
D | xonar_pcm179x.c | 734 static int rolloff_info(struct snd_kcontrol *ctl, in rolloff_info() argument 744 static int rolloff_get(struct snd_kcontrol *ctl, in rolloff_get() argument 747 struct oxygen *chip = ctl->private_data; in rolloff_get() 756 static int rolloff_put(struct snd_kcontrol *ctl, in rolloff_put() argument 759 struct oxygen *chip = ctl->private_data; in rolloff_put() 789 static int deemph_get(struct snd_kcontrol *ctl, in deemph_get() argument 792 struct oxygen *chip = ctl->private_data; in deemph_get() 800 static int deemph_put(struct snd_kcontrol *ctl, in deemph_put() argument 803 struct oxygen *chip = ctl->private_data; in deemph_put() 841 static int st_output_switch_info(struct snd_kcontrol *ctl, in st_output_switch_info() argument [all …]
|
D | xonar.h | 30 int xonar_gpio_bit_switch_get(struct snd_kcontrol *ctl, 32 int xonar_gpio_bit_switch_put(struct snd_kcontrol *ctl,
|
D | xonar_cs43xx.c | 283 static int rolloff_info(struct snd_kcontrol *ctl, in rolloff_info() argument 293 static int rolloff_get(struct snd_kcontrol *ctl, in rolloff_get() argument 296 struct oxygen *chip = ctl->private_data; in rolloff_get() 304 static int rolloff_put(struct snd_kcontrol *ctl, in rolloff_put() argument 307 struct oxygen *chip = ctl->private_data; in rolloff_put()
|
/sound/pci/hda/ |
D | hda_cs_dsp_ctl.c | 40 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_info() local 41 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_info() 51 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_put() local 52 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_put() 65 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_get() local 66 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_get() 100 static void hda_cs_dsp_add_kcontrol(struct hda_cs_dsp_coeff_ctl *ctl, const char *name) in hda_cs_dsp_add_kcontrol() argument 102 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_add_kcontrol() 122 kctl = snd_ctl_new1(&kcontrol, (void *)ctl); in hda_cs_dsp_add_kcontrol() 126 ret = snd_ctl_add(ctl->card, kctl); in hda_cs_dsp_add_kcontrol() [all …]
|
/sound/soc/kirkwood/ |
D | kirkwood-i2s.c | 219 static unsigned kirkwood_i2s_play_mute(unsigned ctl) in kirkwood_i2s_play_mute() argument 221 if (!(ctl & KIRKWOOD_PLAYCTL_I2S_EN)) in kirkwood_i2s_play_mute() 222 ctl |= KIRKWOOD_PLAYCTL_I2S_MUTE; in kirkwood_i2s_play_mute() 223 if (!(ctl & KIRKWOOD_PLAYCTL_SPDIF_EN)) in kirkwood_i2s_play_mute() 224 ctl |= KIRKWOOD_PLAYCTL_SPDIF_MUTE; in kirkwood_i2s_play_mute() 225 return ctl; in kirkwood_i2s_play_mute() 233 uint32_t ctl, value; in kirkwood_i2s_play_trigger() local 235 ctl = readl(priv->io + KIRKWOOD_PLAYCTL); in kirkwood_i2s_play_trigger() 236 if ((ctl & KIRKWOOD_PLAYCTL_ENABLE_MASK) == 0) { in kirkwood_i2s_play_trigger() 244 value = ctl; in kirkwood_i2s_play_trigger() [all …]
|
/sound/soc/samsung/ |
D | pcm.c | 157 u32 ctl, clkctl; in s3c_pcm_snd_txctrl() local 160 ctl = readl(regs + S3C_PCM_CTL); in s3c_pcm_snd_txctrl() 161 ctl &= ~(S3C_PCM_CTL_TXDIPSTICK_MASK in s3c_pcm_snd_txctrl() 165 ctl |= S3C_PCM_CTL_TXDMA_EN; in s3c_pcm_snd_txctrl() 166 ctl |= S3C_PCM_CTL_TXFIFO_EN; in s3c_pcm_snd_txctrl() 167 ctl |= S3C_PCM_CTL_ENABLE; in s3c_pcm_snd_txctrl() 168 ctl |= (0x4<<S3C_PCM_CTL_TXDIPSTICK_SHIFT); in s3c_pcm_snd_txctrl() 171 ctl &= ~S3C_PCM_CTL_TXDMA_EN; in s3c_pcm_snd_txctrl() 172 ctl &= ~S3C_PCM_CTL_TXFIFO_EN; in s3c_pcm_snd_txctrl() 174 if (!(ctl & S3C_PCM_CTL_RXFIFO_EN)) { in s3c_pcm_snd_txctrl() [all …]
|
/sound/pci/emu10k1/ |
D | emufx.c | 306 struct snd_emu10k1_fx8010_ctl *ctl = in snd_emu10k1_gpr_ctl_info() local 309 if (ctl->min == 0 && ctl->max == 1) in snd_emu10k1_gpr_ctl_info() 313 uinfo->count = ctl->vcount; in snd_emu10k1_gpr_ctl_info() 314 uinfo->value.integer.min = ctl->min; in snd_emu10k1_gpr_ctl_info() 315 uinfo->value.integer.max = ctl->max; in snd_emu10k1_gpr_ctl_info() 322 struct snd_emu10k1_fx8010_ctl *ctl = in snd_emu10k1_gpr_ctl_get() local 328 for (i = 0; i < ctl->vcount; i++) in snd_emu10k1_gpr_ctl_get() 329 ucontrol->value.integer.value[i] = ctl->value[i]; in snd_emu10k1_gpr_ctl_get() 337 struct snd_emu10k1_fx8010_ctl *ctl = in snd_emu10k1_gpr_ctl_put() local 345 for (i = 0; i < ctl->vcount; i++) { in snd_emu10k1_gpr_ctl_put() [all …]
|
/sound/core/ |
D | control.c | 46 struct snd_ctl_file *ctl; in snd_ctl_open() local 67 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in snd_ctl_open() 68 if (ctl == NULL) { in snd_ctl_open() 72 INIT_LIST_HEAD(&ctl->events); in snd_ctl_open() 73 init_waitqueue_head(&ctl->change_sleep); in snd_ctl_open() 74 spin_lock_init(&ctl->read_lock); in snd_ctl_open() 75 ctl->card = card; in snd_ctl_open() 77 ctl->preferred_subdevice[i] = -1; in snd_ctl_open() 78 ctl->pid = get_pid(task_pid(current)); in snd_ctl_open() 79 file->private_data = ctl; in snd_ctl_open() [all …]
|
D | control_compat.c | 79 static int snd_ctl_elem_info_compat(struct snd_ctl_file *ctl, in snd_ctl_elem_info_compat() argument 99 err = snd_ctl_elem_info(ctl, data); in snd_ctl_elem_info_compat() 429 struct snd_ctl_file *ctl; in snd_ctl_ioctl_compat() local 434 ctl = file->private_data; in snd_ctl_ioctl_compat() 435 if (snd_BUG_ON(!ctl || !ctl->card)) in snd_ctl_ioctl_compat() 452 return snd_ctl_elem_list_compat(ctl->card, argp); in snd_ctl_ioctl_compat() 454 return snd_ctl_elem_info_compat(ctl, argp); in snd_ctl_ioctl_compat() 456 return snd_ctl_elem_read_user_compat(ctl->card, argp); in snd_ctl_ioctl_compat() 458 return snd_ctl_elem_write_user_compat(ctl, argp); in snd_ctl_ioctl_compat() 460 return snd_ctl_elem_add_compat(ctl, argp, 0); in snd_ctl_ioctl_compat() [all …]
|
/sound/aoa/fabrics/ |
D | layout.c | 898 struct snd_kcontrol *ctl; in layout_attached_codec() local 912 ctl = snd_ctl_new1(&master_ctl, codec->gpio); in layout_attached_codec() 913 ldev->master_ctrl = ctl; in layout_attached_codec() 914 aoa_snd_ctl_add(ctl); in layout_attached_codec() 920 ctl = snd_ctl_new1(&speakers_ctl, codec->gpio); in layout_attached_codec() 921 ldev->speaker_ctrl = ctl; in layout_attached_codec() 922 aoa_snd_ctl_add(ctl); in layout_attached_codec() 927 ctl = snd_ctl_new1(&headphone_ctl, codec->gpio); in layout_attached_codec() 928 ldev->headphone_ctrl = ctl; in layout_attached_codec() 929 aoa_snd_ctl_add(ctl); in layout_attached_codec() [all …]
|
/sound/soc/codecs/ |
D | wm_adsp.c | 378 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_info() local 379 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_info() 403 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_put() local 404 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_put() 420 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_tlv_put() local 421 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_tlv_put() 441 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_put_acked() local 442 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_put_acked() 466 struct wm_coeff_ctl *ctl = bytes_ext_to_ctl(bytes_ext); in wm_coeff_get() local 467 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in wm_coeff_get() [all …]
|
D | msm8916-wcd-digital.c | 428 struct wcd_iir_filter_ctl *ctl = in msm8x16_wcd_get_iir_band_audio_mixer() local 430 struct soc_bytes_ext *params = &ctl->bytes_ext; in msm8x16_wcd_get_iir_band_audio_mixer() 431 int iir_idx = ctl->iir_idx; in msm8x16_wcd_get_iir_band_audio_mixer() 432 int band_idx = ctl->band_idx; in msm8x16_wcd_get_iir_band_audio_mixer() 474 struct wcd_iir_filter_ctl *ctl = in msm8x16_wcd_put_iir_band_audio_mixer() local 476 struct soc_bytes_ext *params = &ctl->bytes_ext; in msm8x16_wcd_put_iir_band_audio_mixer() 477 int iir_idx = ctl->iir_idx; in msm8x16_wcd_put_iir_band_audio_mixer() 478 int band_idx = ctl->band_idx; in msm8x16_wcd_put_iir_band_audio_mixer() 501 struct wcd_iir_filter_ctl *ctl = in wcd_iir_filter_info() local 503 struct soc_bytes_ext *params = &ctl->bytes_ext; in wcd_iir_filter_info()
|
/sound/firewire/ |
D | isight.c | 465 static int isight_gain_info(struct snd_kcontrol *ctl, in isight_gain_info() argument 468 struct isight *isight = ctl->private_data; in isight_gain_info() 478 static int isight_gain_get(struct snd_kcontrol *ctl, in isight_gain_get() argument 481 struct isight *isight = ctl->private_data; in isight_gain_get() 494 static int isight_gain_put(struct snd_kcontrol *ctl, in isight_gain_put() argument 497 struct isight *isight = ctl->private_data; in isight_gain_put() 507 static int isight_mute_get(struct snd_kcontrol *ctl, in isight_mute_get() argument 510 struct isight *isight = ctl->private_data; in isight_mute_get() 523 static int isight_mute_put(struct snd_kcontrol *ctl, in isight_mute_put() argument 526 struct isight *isight = ctl->private_data; in isight_mute_put() [all …]
|
/sound/usb/ |
D | mixer_scarlett.c | 850 const struct scarlett_mixer_control *ctl; in scarlett_controls_create_generic() local 870 ctl = &info->controls[i]; in scarlett_controls_create_generic() 872 switch (ctl->type) { in scarlett_controls_create_generic() 874 err = add_output_ctls(mixer, ctl->num, ctl->name, info); in scarlett_controls_create_generic() 879 sprintf(mx, "Input %d Impedance Switch", ctl->num); in scarlett_controls_create_generic() 882 0x09, ctl->num, USB_MIXER_S16, 1, mx, in scarlett_controls_create_generic() 888 sprintf(mx, "Input %d Pad Switch", ctl->num); in scarlett_controls_create_generic() 891 0x0b, ctl->num, USB_MIXER_S16, 1, mx, in scarlett_controls_create_generic() 897 sprintf(mx, "Input %d Gain Switch", ctl->num); in scarlett_controls_create_generic() 900 0x08, ctl->num, USB_MIXER_S16, 1, mx, in scarlett_controls_create_generic()
|