Lines Matching refs:knew
449 struct snd_kcontrol_new *knew;
451 snd_array_init(&spec->kctls, sizeof(*knew), 32);
452 knew = snd_array_new(&spec->kctls);
453 if (!knew)
455 *knew = via_control_templates[type];
456 knew->name = kstrdup(name, GFP_KERNEL);
457 if (!knew->name)
460 knew->subdevice = HDA_SUBDEV_AMP_FLAG;
461 knew->private_value = val;
468 struct snd_kcontrol_new *knew;
470 snd_array_init(&spec->kctls, sizeof(*knew), 32);
471 knew = snd_array_new(&spec->kctls);
472 if (!knew)
474 *knew = *tmpl;
475 knew->name = kstrdup(tmpl->name, GFP_KERNEL);
476 if (!knew->name)
478 return knew;
1230 struct snd_kcontrol_new *knew;
1254 knew = via_clone_control(spec, &via_hp_mixer[0]);
1255 if (knew == NULL)
1258 knew->subdevice = HDA_SUBDEV_NID_FLAG | nid;
1259 knew->private_value = nid;
1261 knew = via_clone_control(spec, &via_hp_mixer[1]);
1262 if (knew == NULL)
1264 knew->subdevice = side_mute_channel(spec);
1443 struct snd_kcontrol_new *knew;
1448 knew = via_clone_control(spec, &via_smart51_mixer[0]);
1449 if (knew == NULL)
1455 knew = via_clone_control(spec, &via_smart51_mixer[1]);
1456 if (knew == NULL)
1458 knew->subdevice = nid;
1893 struct snd_kcontrol_new *knew;
1929 for (knew = spec->mixers[i]; knew->name; knew++) {
1930 if (knew->iface != NID_MAPPING)
1932 kctl = snd_hda_find_mixer_ctl(codec, knew->name);
1936 knew->subdevice);