Lines Matching refs:sdev
82 struct snd_sof_dev *sdev = widget_to_sdev(w); in sdw_params_free() local
84 if (sdev->pdata->ipc_type == SOF_IPC_TYPE_4) { in sdw_params_free()
135 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan() argument
137 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_acpi_scan()
145 handle = ACPI_HANDLE(sdev->dev); in hda_sdw_acpi_scan()
148 hdev = sdev->pdata->hw_pdata; in hda_sdw_acpi_scan()
157 static int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe() argument
164 hdev = sdev->pdata->hw_pdata; in hda_sdw_probe()
168 chip = get_chip_info(sdev->pdata); in hda_sdw_probe()
170 res.mmio_base = sdev->bar[HDA_DSP_BAR]; in hda_sdw_probe()
181 res.eml_lock = hdac_bus_eml_get_mutex(sof_to_bus(sdev), true, in hda_sdw_probe()
186 res.mmio_base = sdev->bar[HDA_DSP_HDA_BAR]; in hda_sdw_probe()
199 res.irq = sdev->ipc_irq; in hda_sdw_probe()
201 res.parent = sdev->dev; in hda_sdw_probe()
203 res.dev = sdev->dev; in hda_sdw_probe()
205 res.hbus = sof_to_bus(sdev); in hda_sdw_probe()
219 dev_err(sdev->dev, "error: SoundWire probe failed\n"); in hda_sdw_probe()
229 int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup() argument
232 struct snd_sof_pdata *pdata = sdev->pdata; in hda_sdw_startup()
235 hdev = sdev->pdata->hw_pdata; in hda_sdw_startup()
243 ret = hda_sdw_check_lcount(sdev); in hda_sdw_startup()
251 static int hda_sdw_exit(struct snd_sof_dev *sdev) in hda_sdw_exit() argument
255 hdev = sdev->pdata->hw_pdata; in hda_sdw_exit()
261 hda_sdw_int_enable(sdev, false); in hda_sdw_exit()
266 bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev) in hda_common_check_sdw_irq() argument
272 hdev = sdev->pdata->hw_pdata; in hda_common_check_sdw_irq()
278 irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIS2); in hda_common_check_sdw_irq()
293 static bool hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) in hda_dsp_check_sdw_irq() argument
295 u32 interface_mask = hda_get_interface_mask(sdev); in hda_dsp_check_sdw_irq()
301 chip = get_chip_info(sdev->pdata); in hda_dsp_check_sdw_irq()
303 return chip->check_sdw_irq(sdev); in hda_dsp_check_sdw_irq()
313 bool hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq_common() argument
317 hdev = sdev->pdata->hw_pdata; in hda_sdw_check_wakeen_irq_common()
319 snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_sdw_check_wakeen_irq_common()
327 static bool hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq() argument
329 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_check_wakeen_irq()
335 chip = get_chip_info(sdev->pdata); in hda_sdw_check_wakeen_irq()
337 return chip->check_sdw_wakeen_irq(sdev); in hda_sdw_check_wakeen_irq()
342 void hda_sdw_process_wakeen_common(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen_common() argument
344 u32 interface_mask = hda_get_interface_mask(sdev); in hda_sdw_process_wakeen_common()
350 hdev = sdev->pdata->hw_pdata; in hda_sdw_process_wakeen_common()
358 static bool hda_dsp_sdw_check_mic_privacy_irq(struct snd_sof_dev *sdev) in hda_dsp_sdw_check_mic_privacy_irq() argument
362 chip = get_chip_info(sdev->pdata); in hda_dsp_sdw_check_mic_privacy_irq()
364 return chip->check_mic_privacy_irq(sdev, true, in hda_dsp_sdw_check_mic_privacy_irq()
370 static void hda_dsp_sdw_process_mic_privacy(struct snd_sof_dev *sdev) in hda_dsp_sdw_process_mic_privacy() argument
374 chip = get_chip_info(sdev->pdata); in hda_dsp_sdw_process_mic_privacy()
376 chip->process_mic_privacy(sdev, true, AZX_REG_ML_LEPTR_ID_SDW); in hda_dsp_sdw_process_mic_privacy()
380 static inline int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan() argument
385 static inline int hda_sdw_probe(struct snd_sof_dev *sdev) in hda_sdw_probe() argument
390 static inline int hda_sdw_exit(struct snd_sof_dev *sdev) in hda_sdw_exit() argument
395 static inline bool hda_dsp_check_sdw_irq(struct snd_sof_dev *sdev) in hda_dsp_check_sdw_irq() argument
405 static inline bool hda_sdw_check_wakeen_irq(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq() argument
410 static inline bool hda_dsp_sdw_check_mic_privacy_irq(struct snd_sof_dev *sdev) in hda_dsp_sdw_check_mic_privacy_irq() argument
415 static inline void hda_dsp_sdw_process_mic_privacy(struct snd_sof_dev *sdev) { } in hda_dsp_sdw_process_mic_privacy() argument
420 int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev) in hda_dsp_pre_fw_run() argument
423 return hda_dsp_ctrl_clock_power_gating(sdev, false); in hda_dsp_pre_fw_run()
427 int hda_dsp_post_fw_run(struct snd_sof_dev *sdev) in hda_dsp_post_fw_run() argument
431 if (sdev->first_boot) { in hda_dsp_post_fw_run()
432 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in hda_dsp_post_fw_run()
434 ret = hda_sdw_startup(sdev); in hda_dsp_post_fw_run()
436 dev_err(sdev->dev, in hda_dsp_post_fw_run()
443 (sdev->fw_ready.flags & SOF_IPC_INFO_D3_PERSISTENT || in hda_dsp_post_fw_run()
444 sdev->pdata->ipc_type == SOF_IPC_TYPE_4)) { in hda_dsp_post_fw_run()
447 0644, sdev->debugfs_root, in hda_dsp_post_fw_run()
452 hda_sdw_int_enable(sdev, true); in hda_dsp_post_fw_run()
455 return hda_dsp_ctrl_clock_power_gating(sdev, true); in hda_dsp_post_fw_run()
487 static int hda_init(struct snd_sof_dev *sdev) in hda_init() argument
491 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_init()
494 hbus = sof_to_hbus(sdev); in hda_init()
495 bus = sof_to_bus(sdev); in hda_init()
498 sof_hda_bus_init(sdev, &pci->dev); in hda_init()
521 sdev->bar[HDA_DSP_HDA_BAR] = bus->remap_addr; in hda_init()
524 ret = hda_codec_i915_init(sdev); in hda_init()
526 dev_err_probe(sdev->dev, ret, "init of i915 and HDMI codec failed\n"); in hda_init()
531 ret = hda_dsp_ctrl_get_caps(sdev); in hda_init()
533 dev_err(sdev->dev, "error: get caps error\n"); in hda_init()
534 hda_codec_i915_exit(sdev); in hda_init()
539 iounmap(sof_to_bus(sdev)->remap_addr); in hda_init()
544 static int check_dmic_num(struct snd_sof_dev *sdev) in check_dmic_num() argument
546 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in check_dmic_num()
552 dmic_num = intel_nhlt_get_dmic_geo(sdev->dev, nhlt); in check_dmic_num()
554 dev_info(sdev->dev, "DMICs detected in NHLT tables: %d\n", dmic_num); in check_dmic_num()
558 dev_dbg(sdev->dev, in check_dmic_num()
565 dev_dbg(sdev->dev, "invalid dmic_number %d\n", dmic_num); in check_dmic_num()
572 static int check_nhlt_ssp_mask(struct snd_sof_dev *sdev, u8 device_type) in check_nhlt_ssp_mask() argument
574 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in check_nhlt_ssp_mask()
585 dev_info(sdev->dev, "NHLT device %s(%d) detected, ssp_mask %#x\n", in check_nhlt_ssp_mask()
593 static int check_nhlt_ssp_mclk_mask(struct snd_sof_dev *sdev, int ssp_num) in check_nhlt_ssp_mclk_mask() argument
595 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in check_nhlt_ssp_mclk_mask()
605 static int hda_init_caps(struct snd_sof_dev *sdev) in hda_init_caps() argument
607 u32 interface_mask = hda_get_interface_mask(sdev); in hda_init_caps()
608 struct hdac_bus *bus = sof_to_bus(sdev); in hda_init_caps()
609 struct snd_sof_pdata *pdata = sdev->pdata; in hda_init_caps()
616 dev_dbg(sdev->dev, "PP capability, will probe DSP later.\n"); in hda_init_caps()
619 ret = hda_dsp_ctrl_init_chip(sdev); in hda_init_caps()
638 ret = hda_sdw_acpi_scan(sdev); in hda_init_caps()
640 dev_dbg(sdev->dev, "skipping SoundWire, not detected with ACPI scan\n"); in hda_init_caps()
646 dev_dbg(sdev->dev, "skipping SoundWire, no links enabled\n"); in hda_init_caps()
657 ret = hda_sdw_probe(sdev); in hda_init_caps()
659 dev_err(sdev->dev, "error: SoundWire probe error\n"); in hda_init_caps()
666 hda_codec_probe_bus(sdev); in hda_init_caps()
669 hda_codec_i915_display_power(sdev, false); in hda_init_caps()
678 struct snd_sof_dev *sdev = context; in hda_dsp_interrupt_handler() local
684 if (snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTSTS) & in hda_dsp_interrupt_handler()
688 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, in hda_dsp_interrupt_handler()
701 struct snd_sof_dev *sdev = context; in hda_dsp_interrupt_thread() local
702 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in hda_dsp_interrupt_thread()
705 if (hda_dsp_check_stream_irq(sdev)) { in hda_dsp_interrupt_thread()
706 trace_sof_intel_hda_irq(sdev, "stream"); in hda_dsp_interrupt_thread()
707 hda_dsp_stream_threaded_handler(irq, sdev); in hda_dsp_interrupt_thread()
710 if (hda_check_ipc_irq(sdev)) { in hda_dsp_interrupt_thread()
711 trace_sof_intel_hda_irq(sdev, "ipc"); in hda_dsp_interrupt_thread()
712 sof_ops(sdev)->irq_thread(irq, sdev); in hda_dsp_interrupt_thread()
715 if (hda_dsp_check_sdw_irq(sdev)) { in hda_dsp_interrupt_thread()
716 trace_sof_intel_hda_irq(sdev, "sdw"); in hda_dsp_interrupt_thread()
720 if (hda_dsp_sdw_check_mic_privacy_irq(sdev)) { in hda_dsp_interrupt_thread()
721 trace_sof_intel_hda_irq(sdev, "mic privacy"); in hda_dsp_interrupt_thread()
722 hda_dsp_sdw_process_mic_privacy(sdev); in hda_dsp_interrupt_thread()
726 if (hda_sdw_check_wakeen_irq(sdev)) { in hda_dsp_interrupt_thread()
727 trace_sof_intel_hda_irq(sdev, "wakeen"); in hda_dsp_interrupt_thread()
728 hda_sdw_process_wakeen(sdev); in hda_dsp_interrupt_thread()
731 hda_codec_check_for_state_change(sdev); in hda_dsp_interrupt_thread()
734 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, in hda_dsp_interrupt_thread()
742 int hda_dsp_probe_early(struct snd_sof_dev *sdev) in hda_dsp_probe_early() argument
744 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_dsp_probe_early()
749 if (!sdev->dspless_mode_selected) { in hda_dsp_probe_early()
758 dev_err(sdev->dev, "the DSP is not enabled on this platform, aborting probe\n"); in hda_dsp_probe_early()
761 dev_err(sdev->dev, "unknown PCI class/subclass/prog-if 0x%06x found, aborting probe\n", in hda_dsp_probe_early()
765 dev_info_once(sdev->dev, "DSP detected with PCI class/subclass/prog-if 0x%06x\n", in hda_dsp_probe_early()
769 chip = get_chip_info(sdev->pdata); in hda_dsp_probe_early()
771 dev_err(sdev->dev, "error: no such device supported, chip id:%x\n", in hda_dsp_probe_early()
777 sdev->num_cores = chip->cores_num; in hda_dsp_probe_early()
779 hdev = devm_kzalloc(sdev->dev, sizeof(*hdev), GFP_KERNEL); in hda_dsp_probe_early()
782 sdev->pdata->hw_pdata = hdev; in hda_dsp_probe_early()
784 ret = hda_init(sdev); in hda_dsp_probe_early()
791 int hda_dsp_probe(struct snd_sof_dev *sdev) in hda_dsp_probe() argument
793 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_dsp_probe()
794 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in hda_dsp_probe()
798 hdev->dmic_dev = platform_device_register_data(sdev->dev, "dmic-codec", in hda_dsp_probe()
802 dev_err(sdev->dev, "error: failed to create DMIC device\n"); in hda_dsp_probe()
813 hdev->no_ipc_position = sof_ops(sdev)->pcm_pointer ? 1 : 0; in hda_dsp_probe()
816 if (sdev->dspless_mode_selected) in hda_dsp_probe()
819 if (sdev->dspless_mode_selected) in hda_dsp_probe()
823 sdev->bar[HDA_DSP_BAR] = pci_ioremap_bar(pci, HDA_DSP_BAR); in hda_dsp_probe()
824 if (!sdev->bar[HDA_DSP_BAR]) { in hda_dsp_probe()
825 dev_err(sdev->dev, "error: ioremap error\n"); in hda_dsp_probe()
830 sdev->mmio_bar = HDA_DSP_BAR; in hda_dsp_probe()
831 sdev->mailbox_bar = HDA_DSP_BAR; in hda_dsp_probe()
836 dev_dbg(sdev->dev, "DMA mask is 32 bit\n"); in hda_dsp_probe()
842 ret = hda_dsp_stream_init(sdev); in hda_dsp_probe()
844 dev_err(sdev->dev, "error: failed to init streams\n"); in hda_dsp_probe()
859 dev_info(sdev->dev, "use msi interrupt mode\n"); in hda_dsp_probe()
860 sdev->ipc_irq = pci_irq_vector(pci, 0); in hda_dsp_probe()
862 sdev->msi_enabled = true; in hda_dsp_probe()
865 if (!sdev->msi_enabled) { in hda_dsp_probe()
866 dev_info(sdev->dev, "use legacy interrupt mode\n"); in hda_dsp_probe()
871 sdev->ipc_irq = pci->irq; in hda_dsp_probe()
874 dev_dbg(sdev->dev, "using IPC IRQ %d\n", sdev->ipc_irq); in hda_dsp_probe()
875 ret = request_threaded_irq(sdev->ipc_irq, hda_dsp_interrupt_handler, in hda_dsp_probe()
877 IRQF_SHARED, "AudioDSP", sdev); in hda_dsp_probe()
879 dev_err(sdev->dev, "error: failed to register IPC IRQ %d\n", in hda_dsp_probe()
880 sdev->ipc_irq); in hda_dsp_probe()
891 snd_sof_pci_update_bits(sdev, PCI_TCSEL, 0x07, 0); in hda_dsp_probe()
894 ret = hda_init_caps(sdev); in hda_dsp_probe()
898 if (!sdev->dspless_mode_selected) { in hda_dsp_probe()
900 hda_dsp_ctrl_ppcap_enable(sdev, true); in hda_dsp_probe()
901 hda_dsp_ctrl_ppcap_int_enable(sdev, true); in hda_dsp_probe()
904 sdev->dsp_box.offset = HDA_DSP_MBOX_UPLINK_OFFSET; in hda_dsp_probe()
909 chip = get_chip_info(sdev->pdata); in hda_dsp_probe()
911 ret = hda_sdw_startup(sdev); in hda_dsp_probe()
913 dev_err(sdev->dev, "could not startup SoundWire links\n"); in hda_dsp_probe()
920 hdev->nhlt = intel_nhlt_init(sdev->dev); in hda_dsp_probe()
925 if (!sdev->dspless_mode_selected) { in hda_dsp_probe()
926 hda_dsp_ctrl_ppcap_int_enable(sdev, false); in hda_dsp_probe()
927 hda_dsp_ctrl_ppcap_enable(sdev, false); in hda_dsp_probe()
930 free_irq(sdev->ipc_irq, sdev); in hda_dsp_probe()
932 if (sdev->msi_enabled) in hda_dsp_probe()
935 hda_dsp_stream_free(sdev); in hda_dsp_probe()
937 if (!sdev->dspless_mode_selected) in hda_dsp_probe()
938 iounmap(sdev->bar[HDA_DSP_BAR]); in hda_dsp_probe()
946 void hda_dsp_remove(struct snd_sof_dev *sdev) in hda_dsp_remove() argument
948 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_remove()
950 struct pci_dev *pci = to_pci_dev(sdev->dev); in hda_dsp_remove()
956 if (!sdev->dspless_mode_selected) in hda_dsp_remove()
960 hda_codec_device_remove(sdev); in hda_dsp_remove()
962 hda_sdw_exit(sdev); in hda_dsp_remove()
967 if (!sdev->dspless_mode_selected) { in hda_dsp_remove()
969 hda_dsp_ctrl_ppcap_int_enable(sdev, false); in hda_dsp_remove()
973 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL, in hda_dsp_remove()
976 if (sdev->dspless_mode_selected) in hda_dsp_remove()
985 chip->power_down_dsp(sdev); in hda_dsp_remove()
988 hda_dsp_ctrl_ppcap_enable(sdev, false); in hda_dsp_remove()
997 free_irq(sdev->ipc_irq, sdev); in hda_dsp_remove()
998 if (sdev->msi_enabled) in hda_dsp_remove()
1001 hda_dsp_stream_free(sdev); in hda_dsp_remove()
1003 hda_bus_ml_free(sof_to_bus(sdev)); in hda_dsp_remove()
1005 if (!sdev->dspless_mode_selected) in hda_dsp_remove()
1006 iounmap(sdev->bar[HDA_DSP_BAR]); in hda_dsp_remove()
1010 void hda_dsp_remove_late(struct snd_sof_dev *sdev) in hda_dsp_remove_late() argument
1012 iounmap(sof_to_bus(sdev)->remap_addr); in hda_dsp_remove_late()
1013 sof_hda_bus_exit(sdev); in hda_dsp_remove_late()
1014 hda_codec_i915_exit(sdev); in hda_dsp_remove_late()
1017 int hda_power_down_dsp(struct snd_sof_dev *sdev) in hda_power_down_dsp() argument
1019 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_power_down_dsp()
1022 return hda_dsp_core_reset_power_down(sdev, chip->host_managed_cores_mask); in hda_power_down_dsp()
1027 static void hda_generic_machine_select(struct snd_sof_dev *sdev, in hda_generic_machine_select() argument
1030 struct hdac_bus *bus = sof_to_bus(sdev); in hda_generic_machine_select()
1033 struct snd_sof_pdata *pdata = sdev->pdata; in hda_generic_machine_select()
1064 hda_mach = devm_kmemdup_array(sdev->dev, in hda_generic_machine_select()
1088 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL, in hda_generic_machine_select()
1110 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in hda_generic_machine_select()
1126 static void hda_generic_machine_select(struct snd_sof_dev *sdev, in hda_generic_machine_select() argument
1134 static struct snd_soc_acpi_mach *hda_sdw_machine_select(struct snd_sof_dev *sdev) in hda_sdw_machine_select() argument
1136 struct snd_sof_pdata *pdata = sdev->pdata; in hda_sdw_machine_select()
1148 dev_info(sdev->dev, "SoundWire links not enabled\n"); in hda_sdw_machine_select()
1153 dev_dbg(sdev->dev, "SoundWire context not allocated\n"); in hda_sdw_machine_select()
1158 dev_warn(sdev->dev, "No SoundWire peripheral detected in ACPI tables\n"); in hda_sdw_machine_select()
1192 if (!snd_soc_acpi_sdw_link_slaves_found(sdev->dev, link, in hda_sdw_machine_select()
1204 mach->mach_params.platform = dev_name(sdev->dev); in hda_sdw_machine_select()
1209 dev_info(sdev->dev, "No SoundWire machine driver found for the ACPI-reported configuration:\n"); in hda_sdw_machine_select()
1212 dev_info(sdev->dev, "link %d mfg_id 0x%04x part_id 0x%04x version %#x\n", in hda_sdw_machine_select()
1221 static struct snd_soc_acpi_mach *hda_sdw_machine_select(struct snd_sof_dev *sdev) in hda_sdw_machine_select() argument
1228 struct snd_sof_dev *sdev) in hda_set_mach_params() argument
1230 struct snd_sof_pdata *pdata = sdev->pdata; in hda_set_mach_params()
1235 mach_params->platform = dev_name(sdev->dev); in hda_set_mach_params()
1278 struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev) in hda_machine_select() argument
1280 u32 interface_mask = hda_get_interface_mask(sdev); in hda_machine_select()
1281 struct snd_sof_pdata *sof_pdata = sdev->pdata; in hda_machine_select()
1283 struct hdac_bus *bus = sof_to_bus(sdev); in hda_machine_select()
1305 mach = hda_sdw_machine_select(sdev); in hda_machine_select()
1314 hda_generic_machine_select(sdev, &mach); in hda_machine_select()
1316 dev_warn(sdev->dev, "warning: No matching ASoC machine driver found\n"); in hda_machine_select()
1321 mach->mach_params.bt_link_mask = check_nhlt_ssp_mask(sdev, NHLT_DEVICE_BT); in hda_machine_select()
1323 dev_info(sdev->dev, "BT link detected in NHLT tables: %#x\n", in hda_machine_select()
1328 dev_dbg(sdev->dev, "overriding BT link detected in NHLT tables %#x by kernel param %#x\n", in hda_machine_select()
1334 dev_warn(sdev->dev, "invalid BT link mask %#x found, reset the mask\n", in hda_machine_select()
1353 tplg_filename = remove_file_ext(sdev->dev, mach->sof_tplg_filename); in hda_machine_select()
1367 dev_err(sdev->dev, "Invalid tplg quirk mask 0x%x\n", in hda_machine_select()
1373 mach->mach_params.dmic_num = check_dmic_num(sdev); in hda_machine_select()
1381 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL, in hda_machine_select()
1399 mach->mach_params.i2s_link_mask = check_nhlt_ssp_mask(sdev, NHLT_DEVICE_I2S); in hda_machine_select()
1404 const struct sof_intel_dsp_desc *chip = get_chip_info(sdev->pdata); in hda_machine_select()
1410 dev_warn(sdev->dev, "More than one SSP exposed by NHLT, choosing MSB\n"); in hda_machine_select()
1416 dev_err(sdev->dev, "Invalid SSP %d, max on this platform is %d\n", in hda_machine_select()
1421 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL, in hda_machine_select()
1431 mclk_mask = check_nhlt_ssp_mclk_mask(sdev, ssp_num); in hda_machine_select()
1434 dev_err(sdev->dev, "Invalid MCLK configuration\n"); in hda_machine_select()
1438 dev_dbg(sdev->dev, "MCLK mask %#x found in NHLT\n", mclk_mask); in hda_machine_select()
1441 dev_info(sdev->dev, "Overriding topology with MCLK mask %#x from NHLT\n", mclk_mask); in hda_machine_select()
1442 sdev->mclk_id_override = true; in hda_machine_select()
1443 sdev->mclk_id_quirk = (mclk_mask & BIT(0)) ? 0 : 1; in hda_machine_select()
1447 amp_type = snd_soc_acpi_intel_detect_amp_type(sdev->dev); in hda_machine_select()
1448 codec_type = snd_soc_acpi_intel_detect_codec_type(sdev->dev); in hda_machine_select()
1455 dev_err(sdev->dev, "no tplg suffix found, amp %d\n", in hda_machine_select()
1460 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL, in hda_machine_select()
1476 dev_err(sdev->dev, "no tplg suffix found, codec %d\n", in hda_machine_select()
1481 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL, in hda_machine_select()
1492 tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL, in hda_machine_select()
1504 … dev_info(sdev->dev, "Overriding topology with MCLK %d from kernel_parameter\n", mclk_id_override); in hda_machine_select()
1505 sdev->mclk_id_override = true; in hda_machine_select()
1506 sdev->mclk_id_quirk = mclk_id_override; in hda_machine_select()
1527 int hda_register_clients(struct snd_sof_dev *sdev) in hda_register_clients() argument
1529 return hda_probes_register(sdev); in hda_register_clients()
1532 void hda_unregister_clients(struct snd_sof_dev *sdev) in hda_unregister_clients() argument
1534 hda_probes_unregister(sdev); in hda_unregister_clients()