Lines Matching refs:knew
74 struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls); in snd_hda_gen_add_kctl() local
75 if (!knew) in snd_hda_gen_add_kctl()
77 *knew = *temp; in snd_hda_gen_add_kctl()
79 knew->name = kstrdup(name, GFP_KERNEL); in snd_hda_gen_add_kctl()
80 else if (knew->name) in snd_hda_gen_add_kctl()
81 knew->name = kstrdup(knew->name, GFP_KERNEL); in snd_hda_gen_add_kctl()
82 if (!knew->name) in snd_hda_gen_add_kctl()
84 return knew; in snd_hda_gen_add_kctl()
998 struct snd_kcontrol_new *knew; in add_control() local
1000 knew = snd_hda_gen_add_kctl(spec, name, &control_templates[type]); in add_control()
1001 if (!knew) in add_control()
1003 knew->index = cidx; in add_control()
1005 knew->subdevice = HDA_SUBDEV_AMP_FLAG; in add_control()
1006 knew->private_value = val; in add_control()
1007 return knew; in add_control()
2726 struct snd_kcontrol_new *knew; in create_out_jack_modes() local
2729 knew = snd_hda_gen_add_kctl(spec, name, in create_out_jack_modes()
2731 if (!knew) in create_out_jack_modes()
2733 knew->private_value = pin; in create_out_jack_modes()
2858 struct snd_kcontrol_new *knew; in create_in_jack_mode() local
2875 knew = snd_hda_gen_add_kctl(spec, name, &in_jack_mode_enum); in create_in_jack_mode()
2876 if (!knew) in create_in_jack_mode()
2878 knew->private_value = pin; in create_in_jack_mode()
2995 struct snd_kcontrol_new *knew; in create_hp_mic_jack_mode() local
2997 knew = snd_hda_gen_add_kctl(spec, "Headphone Mic Jack Mode", in create_hp_mic_jack_mode()
2999 if (!knew) in create_hp_mic_jack_mode()
3001 knew->private_value = pin; in create_hp_mic_jack_mode()
3600 struct snd_kcontrol_new *knew; in add_single_cap_ctl() local
3611 knew = add_control(spec, type, tmpname, idx, in add_single_cap_ctl()
3613 if (!knew) in add_single_cap_ctl()
3616 knew->put = cap_single_sw_put; in add_single_cap_ctl()
3627 knew = add_control(spec, type, tmpname, idx, in add_single_cap_ctl()
3629 if (!knew) in add_single_cap_ctl()
3632 knew->put = cap_single_sw_put; in add_single_cap_ctl()
3656 struct snd_kcontrol_new *knew; in create_bind_cap_vol_ctl() local
3659 knew = snd_hda_gen_add_kctl(spec, NULL, &cap_vol_temp); in create_bind_cap_vol_ctl()
3660 if (!knew) in create_bind_cap_vol_ctl()
3662 knew->index = idx; in create_bind_cap_vol_ctl()
3663 knew->private_value = vol_ctl; in create_bind_cap_vol_ctl()
3664 knew->subdevice = HDA_SUBDEV_AMP_FLAG; in create_bind_cap_vol_ctl()
3667 knew = snd_hda_gen_add_kctl(spec, NULL, &cap_sw_temp); in create_bind_cap_vol_ctl()
3668 if (!knew) in create_bind_cap_vol_ctl()
3670 knew->index = idx; in create_bind_cap_vol_ctl()
3671 knew->private_value = sw_ctl; in create_bind_cap_vol_ctl()
3672 knew->subdevice = HDA_SUBDEV_AMP_FLAG; in create_bind_cap_vol_ctl()
3740 struct snd_kcontrol_new *knew; in create_capture_mixers() local
3743 knew = snd_hda_gen_add_kctl(spec, name, &cap_src_temp); in create_capture_mixers()
3744 if (!knew) in create_capture_mixers()
3746 knew->count = nums; in create_capture_mixers()