Lines Matching refs:knew

606 	struct snd_kcontrol_new knew;  in build_dac_controls()  local
613 memset(&knew, 0, sizeof(knew)); in build_dac_controls()
614 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_dac_controls()
615 knew.count = 1; in build_dac_controls()
616 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in build_dac_controls()
617 knew.name = ak->dac_info[mixer_ch].switch_name; in build_dac_controls()
618 knew.info = ak4xxx_switch_info; in build_dac_controls()
619 knew.get = ak4xxx_switch_get; in build_dac_controls()
620 knew.put = ak4xxx_switch_put; in build_dac_controls()
621 knew.access = 0; in build_dac_controls()
624 knew.private_value = in build_dac_controls()
626 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_dac_controls()
630 memset(&knew, 0, sizeof(knew)); in build_dac_controls()
632 knew.name = "DAC Volume"; in build_dac_controls()
633 knew.index = mixer_ch + ak->idx_offset * 2; in build_dac_controls()
636 knew.name = ak->dac_info[mixer_ch].name; in build_dac_controls()
639 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_dac_controls()
640 knew.count = 1; in build_dac_controls()
641 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | in build_dac_controls()
644 knew.info = snd_akm4xxx_stereo_volume_info; in build_dac_controls()
645 knew.get = snd_akm4xxx_stereo_volume_get; in build_dac_controls()
646 knew.put = snd_akm4xxx_stereo_volume_put; in build_dac_controls()
648 knew.info = snd_akm4xxx_volume_info; in build_dac_controls()
649 knew.get = snd_akm4xxx_volume_get; in build_dac_controls()
650 knew.put = snd_akm4xxx_volume_put; in build_dac_controls()
655 knew.private_value = in build_dac_controls()
658 knew.tlv.p = db_scale_vol_datt; in build_dac_controls()
662 knew.private_value = in build_dac_controls()
665 knew.tlv.p = db_scale_vol_datt; in build_dac_controls()
670 knew.private_value = in build_dac_controls()
672 knew.tlv.p = db_scale_8bit; in build_dac_controls()
677 knew.private_value = AK_COMPOSE(0, idx + 4, 0, 255); in build_dac_controls()
678 knew.tlv.p = db_scale_8bit; in build_dac_controls()
683 knew.private_value = in build_dac_controls()
685 knew.tlv.p = db_scale_7bit; in build_dac_controls()
690 knew.private_value = in build_dac_controls()
692 knew.tlv.p = db_scale_linear; in build_dac_controls()
696 knew.private_value = in build_dac_controls()
698 knew.tlv.p = db_scale_linear; in build_dac_controls()
704 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_dac_controls()
717 struct snd_kcontrol_new knew; in build_adc_controls() local
723 memset(&knew, 0, sizeof(knew)); in build_adc_controls()
725 knew.name = "ADC Volume"; in build_adc_controls()
726 knew.index = mixer_ch + ak->idx_offset * 2; in build_adc_controls()
729 knew.name = ak->adc_info[mixer_ch].name; in build_adc_controls()
732 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_adc_controls()
733 knew.count = 1; in build_adc_controls()
734 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | in build_adc_controls()
737 knew.info = snd_akm4xxx_stereo_volume_info; in build_adc_controls()
738 knew.get = snd_akm4xxx_stereo_volume_get; in build_adc_controls()
739 knew.put = snd_akm4xxx_stereo_volume_put; in build_adc_controls()
741 knew.info = snd_akm4xxx_volume_info; in build_adc_controls()
742 knew.get = snd_akm4xxx_volume_get; in build_adc_controls()
743 knew.put = snd_akm4xxx_volume_put; in build_adc_controls()
750 knew.private_value = in build_adc_controls()
753 knew.tlv.p = db_scale_vol_datt; in build_adc_controls()
754 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_adc_controls()
761 knew.name = "Capture Switch"; in build_adc_controls()
762 knew.index = mixer_ch + ak->idx_offset * 2; in build_adc_controls()
764 knew.name = ak->adc_info[mixer_ch].switch_name; in build_adc_controls()
765 knew.info = ak4xxx_switch_info; in build_adc_controls()
766 knew.get = ak4xxx_switch_get; in build_adc_controls()
767 knew.put = ak4xxx_switch_put; in build_adc_controls()
768 knew.access = 0; in build_adc_controls()
771 knew.private_value = in build_adc_controls()
773 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_adc_controls()
777 memset(&knew, 0, sizeof(knew)); in build_adc_controls()
780 knew.name = "Capture Channel"; in build_adc_controls()
781 knew.index = mixer_ch + ak->idx_offset * 2; in build_adc_controls()
783 knew.name = ak->adc_info[mixer_ch].selector_name; in build_adc_controls()
785 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_adc_controls()
786 knew.info = ak4xxx_capture_source_info; in build_adc_controls()
787 knew.get = ak4xxx_capture_source_get; in build_adc_controls()
788 knew.put = ak4xxx_capture_source_put; in build_adc_controls()
789 knew.access = 0; in build_adc_controls()
792 knew.private_value in build_adc_controls()
794 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_adc_controls()
808 struct snd_kcontrol_new knew; in build_deemphasis() local
811 memset(&knew, 0, sizeof(knew)); in build_deemphasis()
812 knew.name = "Deemphasis"; in build_deemphasis()
813 knew.index = idx + ak->idx_offset; in build_deemphasis()
814 knew.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in build_deemphasis()
815 knew.count = 1; in build_deemphasis()
816 knew.info = snd_akm4xxx_deemphasis_info; in build_deemphasis()
817 knew.get = snd_akm4xxx_deemphasis_get; in build_deemphasis()
818 knew.put = snd_akm4xxx_deemphasis_put; in build_deemphasis()
824 knew.private_value = AK_COMPOSE(idx, 3, 0, 0); in build_deemphasis()
829 knew.private_value = AK_COMPOSE(0, 8, shift, 0); in build_deemphasis()
834 knew.private_value = AK_COMPOSE(idx, 3, 0, 0); in build_deemphasis()
837 knew.private_value = AK_COMPOSE(idx, 1, 1, 0); in build_deemphasis()
842 err = snd_ctl_add(ak->card, snd_ctl_new1(&knew, ak)); in build_deemphasis()