/sound/core/ |
D | vmaster.c | 35 unsigned int tlv[4]; member 223 unsigned int __user *tlv) in slave_tlv_cmd() argument 227 return slave->slave.tlv.c(&slave->slave, op_flag, size, tlv); in slave_tlv_cmd() 273 slave->tlv.c = slave_tlv_cmd; in _snd_ctl_add_slave() 392 const unsigned int *tlv) in snd_ctl_make_virtual_master() argument 420 if (tlv) { in snd_ctl_make_virtual_master() 421 unsigned int type = tlv[SNDRV_CTL_TLVO_TYPE]; in snd_ctl_make_virtual_master() 426 memcpy(master->tlv, tlv, sizeof(master->tlv)); in snd_ctl_make_virtual_master() 427 kctl->tlv.p = master->tlv; in snd_ctl_make_virtual_master()
|
D | control.c | 272 kctl->tlv.p = ncontrol->tlv.p; in snd_ctl_new1() 1330 kctl->tlv.c = snd_ctl_elem_user_tlv; in snd_ctl_elem_add() 1430 if (kctl->tlv.c == NULL) in call_tlv_handler() 1437 return kctl->tlv.c(kctl, op_flag, size, buf); in call_tlv_handler() 1449 if (kctl->tlv.p == NULL) in read_tlv_buf() 1452 len = sizeof(unsigned int) * 2 + kctl->tlv.p[1]; in read_tlv_buf() 1456 if (copy_to_user(buf, kctl->tlv.p, len)) in read_tlv_buf() 1484 container = buf->tlv; in snd_ctl_tlv_ioctl()
|
/sound/pci/ice1712/ |
D | wm8776.c | 136 .tlv = wm8776_dac_tlv, 162 .tlv = wm8776_hp_tlv, 223 .tlv = wm8776_adc_tlv, 282 .tlv = wm8776_lct_tlv, 322 .tlv = wm8776_maxatten_lim_tlv, 332 .tlv = wm8776_lct_tlv, 363 .tlv = wm8776_maxgain_tlv, 373 .tlv = wm8776_maxatten_alc_tlv, 402 .tlv = wm8776_ngth_tlv, 563 cont.tlv.p = NULL; in snd_wm8776_add_control() [all …]
|
D | wm8766.c | 33 .tlv = wm8766_tlv, 44 .tlv = wm8766_tlv, 55 .tlv = wm8766_tlv, 289 cont.tlv.p = NULL; in snd_wm8766_add_control() 297 cont.tlv.p = wm->ctl[num].tlv; in snd_wm8766_add_control()
|
D | aureon.c | 1408 .tlv = { .p = db_scale_wm_dac } 1427 .tlv = { .p = db_scale_wm_dac } 1446 .tlv = { .p = db_scale_wm_dac } 1465 .tlv = { .p = db_scale_wm_dac } 1484 .tlv = { .p = db_scale_wm_dac } 1503 .tlv = { .p = db_scale_wm_dac } 1523 .tlv = { .p = db_scale_wm_pcm } 1540 .tlv = { .p = db_scale_wm_adc } 1591 .tlv = { .p = db_scale_ac97_master } 1610 .tlv = { .p = db_scale_ac97_gain } [all …]
|
D | phase.c | 764 .tlv = { .p = db_scale_wm_dac } 783 .tlv = { .p = db_scale_wm_dac } 802 .tlv = { .p = db_scale_wm_dac } 821 .tlv = { .p = db_scale_wm_dac } 840 .tlv = { .p = db_scale_wm_dac } 859 .tlv = { .p = db_scale_wm_dac } 879 .tlv = { .p = db_scale_wm_pcm }
|
D | prodigy_hifi.c | 296 .tlv = { .p = ak4396_db_scale }, 753 .tlv = { .p = db_scale_wm_dac } 763 .tlv = { .p = db_scale_wm_dac }, 774 .tlv = { .p = db_scale_wm_dac }, 785 .tlv = { .p = db_scale_wm_dac } 796 .tlv = { .p = db_scale_wm_dac } 807 .tlv = { .p = db_scale_wm_dac }, 817 .tlv = { .p = db_scale_wm_dac },
|
D | prodigy192.c | 357 .tlv = { .p = db_scale_dac } 368 .tlv = { .p = db_scale_dac } 387 .tlv = { .p = db_scale_dac } 407 .tlv = { .p = db_scale_adc }
|
D | se.c | 593 cont.tlv.p = NULL; in se200pci_add_controls() 602 cont.tlv.p = db_scale_gain1; in se200pci_add_controls() 604 cont.tlv.p = db_scale_gain2; in se200pci_add_controls()
|
D | wtm.c | 490 .tlv = { .p = db_scale_dac } 527 .tlv = { .p = db_scale_dac } 547 .tlv = { .p = db_scale_adc }
|
D | maya44.c | 436 .tlv = { .p = db_scale_hp }, 448 .tlv = { .p = db_scale_dac }, 460 .tlv = { .p = db_scale_adc },
|
D | wm8766.h | 123 const unsigned int *tlv; member
|
/sound/i2c/other/ |
D | ak4xxx-adda.c | 658 knew.tlv.p = db_scale_vol_datt; in build_dac_controls() 665 knew.tlv.p = db_scale_vol_datt; in build_dac_controls() 672 knew.tlv.p = db_scale_8bit; in build_dac_controls() 678 knew.tlv.p = db_scale_8bit; in build_dac_controls() 685 knew.tlv.p = db_scale_7bit; in build_dac_controls() 692 knew.tlv.p = db_scale_linear; in build_dac_controls() 698 knew.tlv.p = db_scale_linear; in build_dac_controls() 753 knew.tlv.p = db_scale_vol_datt; in build_adc_controls()
|
/sound/pci/lola/ |
D | lola_mixer.c | 543 unsigned int size, unsigned int __user *tlv) in lola_analog_vol_tlv() argument 559 if (put_user(SNDRV_CTL_TLVT_DB_SCALE, tlv)) in lola_analog_vol_tlv() 561 if (put_user(2 * sizeof(unsigned int), tlv + 1)) in lola_analog_vol_tlv() 563 if (put_user(val1, tlv + 2)) in lola_analog_vol_tlv() 565 if (put_user(val2, tlv + 3)) in lola_analog_vol_tlv() 578 .tlv.c = lola_analog_vol_tlv, 724 .tlv.p = lola_src_gain_tlv, 811 .tlv.p = lola_dest_gain_tlv,
|
/sound/pci/hda/ |
D | hda_codec.c | 1508 static void get_ctl_amp_tlv(struct snd_kcontrol *kcontrol, unsigned int *tlv) in get_ctl_amp_tlv() argument 1525 tlv[SNDRV_CTL_TLVO_TYPE] = SNDRV_CTL_TLVT_DB_SCALE; in get_ctl_amp_tlv() 1526 tlv[SNDRV_CTL_TLVO_LEN] = 2 * sizeof(unsigned int); in get_ctl_amp_tlv() 1527 tlv[SNDRV_CTL_TLVO_DB_SCALE_MIN] = val1; in get_ctl_amp_tlv() 1528 tlv[SNDRV_CTL_TLVO_DB_SCALE_MUTE_AND_STEP] = val2; in get_ctl_amp_tlv() 1544 unsigned int tlv[4]; in snd_hda_mixer_amp_tlv() local 1548 get_ctl_amp_tlv(kcontrol, tlv); in snd_hda_mixer_amp_tlv() 1549 if (copy_to_user(_tlv, tlv, sizeof(tlv))) in snd_hda_mixer_amp_tlv() 1567 unsigned int *tlv) in snd_hda_set_vmaster_tlv() argument 1576 tlv[SNDRV_CTL_TLVO_TYPE] = SNDRV_CTL_TLVT_DB_SCALE; in snd_hda_set_vmaster_tlv() [all …]
|
D | hda_local.h | 41 .tlv = { .c = snd_hda_mixer_amp_tlv }, \ 103 unsigned int size, unsigned int __user *tlv); 128 unsigned int *tlv); 132 unsigned int *tlv, const char * const *slaves, 135 #define snd_hda_add_vmaster(codec, name, tlv, slaves, suffix) \ argument 136 __snd_hda_add_vmaster(codec, name, tlv, slaves, suffix, true, NULL)
|
/sound/pci/oxygen/ |
D | oxygen_mixer.c | 746 .tlv = { .p = ac97_db_scale, }, \ 875 .tlv = { .p = monitor_db_scale, }, 900 .tlv = { .p = monitor_db_scale, }, 927 .tlv = { .p = monitor_db_scale, }, 954 .tlv = { .p = monitor_db_scale, }, 979 .tlv = { .p = monitor_db_scale, }, 1014 .tlv = { .p = ac97_rec_db_scale, }, 1068 template.tlv.p = chip->model.dac_tlv; in add_controls()
|
/sound/usb/6fire/ |
D | control.c | 411 .tlv = { .p = tlv_output } 423 .tlv = { .p = tlv_output } 435 .tlv = { .p = tlv_output } 511 .tlv = { .p = tlv_input }
|
/sound/soc/sof/ |
D | topology.c | 195 static inline int get_tlv_data(const int *p, int tlv[TLV_ITEMS]) in get_tlv_data() 202 tlv[TLV_MIN] = (int)p[SNDRV_CTL_TLVO_DB_SCALE_MIN] / 100; in get_tlv_data() 205 tlv[TLV_STEP] = (int)(p[SNDRV_CTL_TLVO_DB_SCALE_MUTE_AND_STEP] & in get_tlv_data() 211 tlv[TLV_MUTE] = 0; in get_tlv_data() 213 tlv[TLV_MUTE] = 1; in get_tlv_data() 285 static u32 vol_compute_gain(u32 value, int *tlv) in vol_compute_gain() argument 292 if (value == 0 && tlv[TLV_MUTE]) in vol_compute_gain() 299 dB_gain = tlv[TLV_MIN] + (value * tlv[TLV_STEP]) / 100; in vol_compute_gain() 308 f_step = tlv[TLV_STEP] - (tlv[TLV_STEP] / 100); in vol_compute_gain() 324 int tlv[TLV_ITEMS], int size) in set_up_volume_table() [all …]
|
/sound/hda/ |
D | hdmi_chmap.c | 665 unsigned int size, unsigned int __user *tlv) in hdmi_chmap_ctl_tlv() argument 678 if (put_user(SNDRV_CTL_TLVT_CONTAINER, tlv)) in hdmi_chmap_ctl_tlv() 681 dst = tlv + 2; in hdmi_chmap_ctl_tlv() 732 if (put_user(count, tlv + 1)) in hdmi_chmap_ctl_tlv() 846 kctl->tlv.c = hdmi_chmap_ctl_tlv; in snd_hdac_add_chmap_ctls()
|
/sound/pci/emu10k1/ |
D | emufx.c | 651 unsigned int *tlv; in copy_tlv() local 661 tlv = kmalloc(data[1] + sizeof(data), GFP_KERNEL); in copy_tlv() 662 if (!tlv) in copy_tlv() 664 memcpy(tlv, data, sizeof(data)); in copy_tlv() 666 memcpy(tlv + 2, (__force void *)(_tlv + 2), data[1]); in copy_tlv() 667 } else if (copy_from_user(tlv + 2, _tlv + 2, data[1])) { in copy_tlv() 668 kfree(tlv); in copy_tlv() 671 return tlv; in copy_tlv() 694 gctl->tlv = NULL; in copy_gctl() 777 kfree(kctl->tlv.p); in snd_emu10k1_ctl_private_free() [all …]
|
/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 409 .tlv = { .p = db_scale_digital }, 507 .tlv = { .p = db_scale_digital }, 1120 temp.tlv.p = db_scale_a_hr222_playback; in pcxhr_create_mixer() 1122 temp.tlv.p = db_scale_analog_playback; in pcxhr_create_mixer() 1168 temp.tlv.p = db_scale_a_hr222_capture; in pcxhr_create_mixer() 1170 temp.tlv.p = db_scale_analog_capture; in pcxhr_create_mixer()
|
/sound/usb/ |
D | stream.c | 151 unsigned int size, unsigned int __user *tlv) in usb_chmap_ctl_tlv() argument 161 if (put_user(SNDRV_CTL_TLVT_CONTAINER, tlv)) in usb_chmap_ctl_tlv() 164 dst = tlv + 2; in usb_chmap_ctl_tlv() 188 if (put_user(count, tlv + 1)) in usb_chmap_ctl_tlv() 237 kctl->tlv.c = usb_chmap_ctl_tlv; in add_chmap()
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 392 .tlv = { .p = (xtlv) } } 505 .tlv = { .p = (xtlv) } } 592 .tlv = { .p = (xtlv) } } 653 .tlv = { .p = (xtlv) } } 697 .tlv = { .p = (xtlv) } }
|
/sound/pcmcia/vx/ |
D | vxp_mixer.c | 67 .tlv = { .p = db_scale_mic },
|