Lines Matching refs:knew
620 struct snd_kcontrol_new knew; in build_dac_controls() local
627 memset(&knew, 0, sizeof(knew)); in build_dac_controls()
628 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_dac_controls()
629 knew.count = 1; in build_dac_controls()
630 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in build_dac_controls()
631 knew.name = ak->dac_info[mixer_ch].switch_name; in build_dac_controls()
632 knew.info = ak4xxx_switch_info; in build_dac_controls()
633 knew.get = ak4xxx_switch_get; in build_dac_controls()
634 knew.put = ak4xxx_switch_put; in build_dac_controls()
635 knew.access = 0; in build_dac_controls()
638 knew.private_value = in build_dac_controls()
640 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_dac_controls()
644 memset(&knew, 0, sizeof(knew)); in build_dac_controls()
646 knew.name = "DAC Volume"; in build_dac_controls()
647 knew.index = mixer_ch + ak->idx_offset * 2; in build_dac_controls()
650 knew.name = ak->dac_info[mixer_ch].name; in build_dac_controls()
653 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_dac_controls()
654 knew.count = 1; in build_dac_controls()
655 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | in build_dac_controls()
658 knew.info = snd_akm4xxx_stereo_volume_info; in build_dac_controls()
659 knew.get = snd_akm4xxx_stereo_volume_get; in build_dac_controls()
660 knew.put = snd_akm4xxx_stereo_volume_put; in build_dac_controls()
662 knew.info = snd_akm4xxx_volume_info; in build_dac_controls()
663 knew.get = snd_akm4xxx_volume_get; in build_dac_controls()
664 knew.put = snd_akm4xxx_volume_put; in build_dac_controls()
669 knew.private_value = in build_dac_controls()
672 knew.tlv.p = db_scale_vol_datt; in build_dac_controls()
676 knew.private_value = in build_dac_controls()
679 knew.tlv.p = db_scale_vol_datt; in build_dac_controls()
684 knew.private_value = in build_dac_controls()
686 knew.tlv.p = db_scale_8bit; in build_dac_controls()
691 knew.private_value = AK_COMPOSE(0, idx + 4, 0, 255); in build_dac_controls()
692 knew.tlv.p = db_scale_8bit; in build_dac_controls()
697 knew.private_value = in build_dac_controls()
699 knew.tlv.p = db_scale_7bit; in build_dac_controls()
704 knew.private_value = in build_dac_controls()
706 knew.tlv.p = db_scale_linear; in build_dac_controls()
710 knew.private_value = in build_dac_controls()
712 knew.tlv.p = db_scale_linear; in build_dac_controls()
718 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_dac_controls()
731 struct snd_kcontrol_new knew; in build_adc_controls() local
737 memset(&knew, 0, sizeof(knew)); in build_adc_controls()
739 knew.name = "ADC Volume"; in build_adc_controls()
740 knew.index = mixer_ch + ak->idx_offset * 2; in build_adc_controls()
743 knew.name = ak->adc_info[mixer_ch].name; in build_adc_controls()
746 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_adc_controls()
747 knew.count = 1; in build_adc_controls()
748 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | in build_adc_controls()
751 knew.info = snd_akm4xxx_stereo_volume_info; in build_adc_controls()
752 knew.get = snd_akm4xxx_stereo_volume_get; in build_adc_controls()
753 knew.put = snd_akm4xxx_stereo_volume_put; in build_adc_controls()
755 knew.info = snd_akm4xxx_volume_info; in build_adc_controls()
756 knew.get = snd_akm4xxx_volume_get; in build_adc_controls()
757 knew.put = snd_akm4xxx_volume_put; in build_adc_controls()
764 knew.private_value = in build_adc_controls()
767 knew.tlv.p = db_scale_vol_datt; in build_adc_controls()
768 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_adc_controls()
775 knew.name = "Capture Switch"; in build_adc_controls()
776 knew.index = mixer_ch + ak->idx_offset * 2; in build_adc_controls()
778 knew.name = ak->adc_info[mixer_ch].switch_name; in build_adc_controls()
779 knew.info = ak4xxx_switch_info; in build_adc_controls()
780 knew.get = ak4xxx_switch_get; in build_adc_controls()
781 knew.put = ak4xxx_switch_put; in build_adc_controls()
782 knew.access = 0; in build_adc_controls()
785 knew.private_value = in build_adc_controls()
787 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_adc_controls()
791 memset(&knew, 0, sizeof(knew)); in build_adc_controls()
794 knew.name = "Capture Channel"; in build_adc_controls()
795 knew.index = mixer_ch + ak->idx_offset * 2; in build_adc_controls()
797 knew.name = ak->adc_info[mixer_ch].selector_name; in build_adc_controls()
799 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_adc_controls()
800 knew.info = ak4xxx_capture_source_info; in build_adc_controls()
801 knew.get = ak4xxx_capture_source_get; in build_adc_controls()
802 knew.put = ak4xxx_capture_source_put; in build_adc_controls()
803 knew.access = 0; in build_adc_controls()
806 knew.private_value in build_adc_controls()
808 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_adc_controls()
822 struct snd_kcontrol_new knew; in build_deemphasis() local
825 memset(&knew, 0, sizeof(knew)); in build_deemphasis()
826 knew.name = "Deemphasis"; in build_deemphasis()
827 knew.index = idx + ak->idx_offset; in build_deemphasis()
828 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_deemphasis()
829 knew.count = 1; in build_deemphasis()
830 knew.info = snd_akm4xxx_deemphasis_info; in build_deemphasis()
831 knew.get = snd_akm4xxx_deemphasis_get; in build_deemphasis()
832 knew.put = snd_akm4xxx_deemphasis_put; in build_deemphasis()
838 knew.private_value = AK_COMPOSE(idx, 3, 0, 0); in build_deemphasis()
843 knew.private_value = AK_COMPOSE(0, 8, shift, 0); in build_deemphasis()
848 knew.private_value = AK_COMPOSE(idx, 3, 0, 0); in build_deemphasis()
851 knew.private_value = AK_COMPOSE(idx, 1, 1, 0); in build_deemphasis()
856 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_deemphasis()