Lines Matching refs:ctl
892 struct snd_kcontrol *ctl; in layout_attached_codec() local
906 ctl = snd_ctl_new1(&master_ctl, codec->gpio); in layout_attached_codec()
907 ldev->master_ctrl = ctl; in layout_attached_codec()
908 aoa_snd_ctl_add(ctl); in layout_attached_codec()
914 ctl = snd_ctl_new1(&speakers_ctl, codec->gpio); in layout_attached_codec()
915 ldev->speaker_ctrl = ctl; in layout_attached_codec()
916 aoa_snd_ctl_add(ctl); in layout_attached_codec()
921 ctl = snd_ctl_new1(&headphone_ctl, codec->gpio); in layout_attached_codec()
922 ldev->headphone_ctrl = ctl; in layout_attached_codec()
923 aoa_snd_ctl_add(ctl); in layout_attached_codec()
931 ctl = snd_ctl_new1(&headphone_detect_choice, in layout_attached_codec()
933 aoa_snd_ctl_add(ctl); in layout_attached_codec()
934 ctl = snd_ctl_new1(&headphone_detected, in layout_attached_codec()
936 ldev->headphone_detected_ctrl = ctl; in layout_attached_codec()
937 aoa_snd_ctl_add(ctl); in layout_attached_codec()
943 ctl = snd_ctl_new1(&lineout_ctl, codec->gpio); in layout_attached_codec()
945 strlcpy(ctl->id.name, in layout_attached_codec()
946 "Headphone Switch", sizeof(ctl->id.name)); in layout_attached_codec()
947 ldev->lineout_ctrl = ctl; in layout_attached_codec()
948 aoa_snd_ctl_add(ctl); in layout_attached_codec()
956 ctl = snd_ctl_new1(&lineout_detect_choice, in layout_attached_codec()
959 strlcpy(ctl->id.name, in layout_attached_codec()
961 sizeof(ctl->id.name)); in layout_attached_codec()
962 aoa_snd_ctl_add(ctl); in layout_attached_codec()
963 ctl = snd_ctl_new1(&lineout_detected, in layout_attached_codec()
966 strlcpy(ctl->id.name, in layout_attached_codec()
968 sizeof(ctl->id.name)); in layout_attached_codec()
969 ldev->lineout_detected_ctrl = ctl; in layout_attached_codec()
970 aoa_snd_ctl_add(ctl); in layout_attached_codec()