Lines Matching refs:knew

62 	struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls);  in snd_hda_gen_add_kctl()  local
63 if (!knew) in snd_hda_gen_add_kctl()
65 *knew = *temp; in snd_hda_gen_add_kctl()
67 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl()
68 else if (knew->name) in snd_hda_gen_add_kctl()
69 knew->name = kstrdup(knew->name, GFP_KERNEL); in snd_hda_gen_add_kctl()
70 if (!knew->name) in snd_hda_gen_add_kctl()
72 return knew; in snd_hda_gen_add_kctl()
982 struct snd_kcontrol_new *knew; in add_control() local
984 knew = snd_hda_gen_add_kctl(spec, name, &control_templates[type]); in add_control()
985 if (!knew) in add_control()
987 knew->index = cidx; in add_control()
989 knew->subdevice = HDA_SUBDEV_AMP_FLAG; in add_control()
990 if (knew->access == 0) in add_control()
991 knew->access = SNDRV_CTL_ELEM_ACCESS_READWRITE; in add_control()
992 knew->private_value = val; in add_control()
993 return knew; in add_control()
2750 struct snd_kcontrol_new *knew; in create_out_jack_modes() local
2753 knew = snd_hda_gen_add_kctl(spec, name, in create_out_jack_modes()
2755 if (!knew) in create_out_jack_modes()
2757 knew->private_value = pin; in create_out_jack_modes()
2882 struct snd_kcontrol_new *knew; in create_in_jack_mode() local
2899 knew = snd_hda_gen_add_kctl(spec, name, &in_jack_mode_enum); in create_in_jack_mode()
2900 if (!knew) in create_in_jack_mode()
2902 knew->private_value = pin; in create_in_jack_mode()
3019 struct snd_kcontrol_new *knew; in create_hp_mic_jack_mode() local
3021 knew = snd_hda_gen_add_kctl(spec, "Headphone Mic Jack Mode", in create_hp_mic_jack_mode()
3023 if (!knew) in create_hp_mic_jack_mode()
3025 knew->private_value = pin; in create_hp_mic_jack_mode()
3625 struct snd_kcontrol_new *knew; in add_single_cap_ctl() local
3636 knew = add_control(spec, type, tmpname, idx, in add_single_cap_ctl()
3638 if (!knew) in add_single_cap_ctl()
3641 knew->put = cap_single_sw_put; in add_single_cap_ctl()
3643 knew->access |= SNDRV_CTL_ELEM_ACCESS_MIC_LED; in add_single_cap_ctl()
3655 knew = add_control(spec, type, tmpname, idx, in add_single_cap_ctl()
3657 if (!knew) in add_single_cap_ctl()
3660 knew->put = cap_single_sw_put; in add_single_cap_ctl()
3662 knew->access |= SNDRV_CTL_ELEM_ACCESS_MIC_LED; in add_single_cap_ctl()
3687 struct snd_kcontrol_new *knew; in create_bind_cap_vol_ctl() local
3690 knew = snd_hda_gen_add_kctl(spec, NULL, &cap_vol_temp); in create_bind_cap_vol_ctl()
3691 if (!knew) in create_bind_cap_vol_ctl()
3693 knew->index = idx; in create_bind_cap_vol_ctl()
3694 knew->private_value = vol_ctl; in create_bind_cap_vol_ctl()
3695 knew->subdevice = HDA_SUBDEV_AMP_FLAG; in create_bind_cap_vol_ctl()
3698 knew = snd_hda_gen_add_kctl(spec, NULL, &cap_sw_temp); in create_bind_cap_vol_ctl()
3699 if (!knew) in create_bind_cap_vol_ctl()
3701 knew->index = idx; in create_bind_cap_vol_ctl()
3702 knew->private_value = sw_ctl; in create_bind_cap_vol_ctl()
3703 knew->subdevice = HDA_SUBDEV_AMP_FLAG; in create_bind_cap_vol_ctl()
3705 knew->access |= SNDRV_CTL_ELEM_ACCESS_MIC_LED; in create_bind_cap_vol_ctl()
3773 struct snd_kcontrol_new *knew; in create_capture_mixers() local
3776 knew = snd_hda_gen_add_kctl(spec, name, &cap_src_temp); in create_capture_mixers()
3777 if (!knew) in create_capture_mixers()
3779 knew->count = nums; in create_capture_mixers()