Lines Matching full:quirk

27 #define SOF_ES8336_SSP_CODEC(quirk)		((quirk) & GENMASK(3, 0))  argument
36 #define SOF_NO_OF_HDMI_CAPTURE_SSP(quirk) \ argument
37 (((quirk) << SOF_NO_OF_HDMI_CAPTURE_SSP_SHIFT) & SOF_NO_OF_HDMI_CAPTURE_SSP_MASK)
41 #define SOF_HDMI_CAPTURE_1_SSP(quirk) \ argument
42 (((quirk) << SOF_HDMI_CAPTURE_1_SSP_SHIFT) & SOF_HDMI_CAPTURE_1_SSP_MASK)
46 #define SOF_HDMI_CAPTURE_2_SSP(quirk) \ argument
47 (((quirk) << SOF_HDMI_CAPTURE_2_SSP_SHIFT) & SOF_HDMI_CAPTURE_2_SSP_MASK)
54 static unsigned long quirk; variable
57 module_param_named(quirk, quirk_override, int, 0444);
58 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
101 dev_info(dev, "quirk mask %#lx\n", quirk); in log_quirks()
102 dev_info(dev, "quirk SSP%ld\n", SOF_ES8336_SSP_CODEC(quirk)); in log_quirks()
103 if (quirk & SOF_ES8336_ENABLE_DMIC) in log_quirks()
104 dev_info(dev, "quirk DMIC enabled\n"); in log_quirks()
105 if (quirk & SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK) in log_quirks()
106 dev_info(dev, "Speakers GPIO1 quirk enabled\n"); in log_quirks()
107 if (quirk & SOF_ES8336_HEADPHONE_GPIO) in log_quirks()
108 dev_info(dev, "quirk headphone GPIO enabled\n"); in log_quirks()
109 if (quirk & SOF_ES8336_JD_INVERTED) in log_quirks()
110 dev_info(dev, "quirk JD inverted enabled\n"); in log_quirks()
111 if (quirk & SOC_ES8336_HEADSET_MIC1) in log_quirks()
112 dev_info(dev, "quirk headset at mic1 port enabled\n"); in log_quirks()
122 if (quirk & SOF_ES8336_HEADPHONE_GPIO) in pcm_pop_work_events()
281 if (quirk & SOC_ES8336_HEADSET_MIC1) { in sof_es8316_init()
318 quirk = (unsigned long)id->driver_data; in sof_es8336_quirk_cb()
329 * If the GPIO support is missing, the quirk parameter can be used to
549 if (quirk & SOF_SSP_HDMI_CAPTURE_PRESENT) { in sof_card_dai_links_create()
550 int num_of_hdmi_ssp = (quirk & SOF_NO_OF_HDMI_CAPTURE_SSP_MASK) >> in sof_card_dai_links_create()
554 int port = (i == 1 ? (quirk & SOF_HDMI_CAPTURE_1_SSP_MASK) >> in sof_card_dai_links_create()
556 (quirk & SOF_HDMI_CAPTURE_2_SSP_MASK) >> in sof_card_dai_links_create()
615 quirk = (unsigned long)pdev->id_entry->driver_data; in sof_es8336_probe()
626 …k information provided, using SSP0. This may need to be modified with the quirk module parameter\n… in sof_es8336_probe()
640 quirk |= ssp; in sof_es8336_probe()
645 quirk |= SOF_ES8336_ENABLE_DMIC; in sof_es8336_probe()
648 dev_info(dev, "Overriding quirk 0x%lx => 0x%x\n", in sof_es8336_probe()
649 quirk, quirk_override); in sof_es8336_probe()
650 quirk = quirk_override; in sof_es8336_probe()
654 if (quirk & SOF_ES8336_ENABLE_DMIC) in sof_es8336_probe()
660 if (quirk & SOF_SSP_HDMI_CAPTURE_PRESENT) in sof_es8336_probe()
661 sof_es8336_card.num_links += (quirk & SOF_NO_OF_HDMI_CAPTURE_SSP_MASK) >> in sof_es8336_probe()
665 SOF_ES8336_SSP_CODEC(quirk), in sof_es8336_probe()
700 if (quirk & SOF_ES8336_JD_INVERTED) in sof_es8336_probe()
721 if (quirk & SOF_ES8336_HEADPHONE_GPIO) { in sof_es8336_probe()
722 if (quirk & SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK) in sof_es8336_probe()
726 } else if (quirk & SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK) { in sof_es8336_probe()
789 .name = "sof-essx8336", /* default quirk == 0 */