Lines Matching refs:preset
25 const struct hda_codec_preset *preset; in hda_codec_match() local
29 for (preset = driver->preset; preset->id; preset++) { in hda_codec_match()
30 u32 mask = preset->mask; in hda_codec_match()
32 if (preset->afg && preset->afg != codec->core.afg) in hda_codec_match()
34 if (preset->mfg && preset->mfg != codec->core.mfg) in hda_codec_match()
38 if (preset->id == (id & mask) && in hda_codec_match()
39 (!preset->rev || preset->rev == codec->core.revision_id)) { in hda_codec_match()
40 codec->preset = preset; in hda_codec_match()
72 if (WARN_ON(!codec->preset)) in hda_codec_driver_probe()
75 err = codec_refresh_name(codec, codec->preset->name); in hda_codec_driver_probe()
87 err = codec->preset->patch(codec); in hda_codec_driver_probe()
159 return device_attach(hda_codec_dev(codec)) > 0 && codec->preset; in codec_probed()
252 if (!codec->preset) in snd_hda_codec_configure()
254 if (!codec->preset) { in snd_hda_codec_configure()