| /linux/sound/hda/core/ext/ |
| H A D | controller.c | 84 struct hdac_ext_link *hlink; in snd_hdac_ext_bus_get_ml_capabilities() local 92 hlink = kzalloc_obj(*hlink); in snd_hdac_ext_bus_get_ml_capabilities() 93 if (!hlink) in snd_hdac_ext_bus_get_ml_capabilities() 95 hlink->index = idx; in snd_hdac_ext_bus_get_ml_capabilities() 96 hlink->bus = bus; in snd_hdac_ext_bus_get_ml_capabilities() 97 hlink->ml_addr = bus->mlcap + AZX_ML_BASE + in snd_hdac_ext_bus_get_ml_capabilities() 99 hlink->lcaps = readl(hlink->ml_addr + AZX_REG_ML_LCAP); in snd_hdac_ext_bus_get_ml_capabilities() 100 hlink->lsdiid = readw(hlink->ml_addr + AZX_REG_ML_LSDIID); in snd_hdac_ext_bus_get_ml_capabilities() 101 hlink->slcount = FIELD_GET(AZX_ML_HDA_LCAP_SLCOUNT, hlink->lcaps) + 1; in snd_hdac_ext_bus_get_ml_capabilities() 103 if (hdac_ext_link_alt(hlink)) { in snd_hdac_ext_bus_get_ml_capabilities() [all …]
|
| /linux/sound/soc/sof/intel/ |
| H A D | hda-mlink.c | 113 struct hdac_ext_link *hlink = &h2link->hext_link; in hdaml_lnk_enum() local 116 hlink->lcaps = readl(ml_addr + AZX_REG_ML_LCAP); in hdaml_lnk_enum() 118 h2link->alt = FIELD_GET(AZX_ML_HDA_LCAP_ALT, hlink->lcaps); in hdaml_lnk_enum() 128 hlink->lsdiid = readw(ml_addr + AZX_REG_ML_LSDIID); in hdaml_lnk_enum() 131 link_idx, hlink->lsdiid); in hdaml_lnk_enum() 136 h2link->intc = FIELD_GET(AZX_ML_HDA_LCAP_INTC, hlink->lcaps); in hdaml_lnk_enum() 137 h2link->ofls = FIELD_GET(AZX_ML_HDA_LCAP_OFLS, hlink->lcaps); in hdaml_lnk_enum() 138 h2link->lss = FIELD_GET(AZX_ML_HDA_LCAP_LSS, hlink->lcaps); in hdaml_lnk_enum() 141 h2link->slcount = FIELD_GET(AZX_ML_HDA_LCAP_SLCOUNT, hlink->lcaps) + 1; in hdaml_lnk_enum() 392 struct hdac_ext_link *hlink; in hda_ml_alloc_h2link() local [all …]
|
| H A D | hda-sdw-bpt.c | 147 struct hdac_ext_link *hlink; in hda_sdw_bpt_dma_deprepare() 151 hlink = hdac_bus_eml_sdw_get_hlink(bus); in hda_sdw_bpt_dma_deprepare() 153 snd_hdac_ext_bus_link_set_stream_id(hlink, stream_tag); in hda_sdw_bpt_dma_deprepare() 175 struct hdac_ext_link *hlink; in hda_sdw_bpt_dma_deprepare() 179 hlink = hdac_bus_eml_sdw_get_hlink(bus); in hda_sdw_bpt_dma_deprepare() 181 snd_hdac_ext_bus_link_clear_stream_id(hlink, stream_tag); in hda_sdw_bpt_dma_deprepare() 135 struct hdac_ext_link *hlink; hda_sdw_bpt_dma_prepare() local 163 struct hdac_ext_link *hlink; hda_sdw_bpt_dma_deprepare() local
|
| H A D | hda-dai.c | 123 struct hdac_ext_link *hlink; in hda_link_dma_cleanup() 134 hlink = ops->get_hlink(sdev, substream); in hda_link_dma_cleanup() 135 if (!hlink) in hda_link_dma_cleanup() 140 snd_hdac_ext_bus_link_clear_stream_id(hlink, stream_tag); in hda_link_dma_cleanup() 172 struct hdac_ext_link *hlink; in hda_link_dma_hw_params() 183 hlink = ops->get_hlink(sdev, substream); in hda_link_dma_hw_params() 184 if (!hlink) in hda_link_dma_hw_params() 201 snd_hdac_ext_bus_link_set_stream_id(hlink, stream_tag); in hda_link_dma_hw_params() 113 struct hdac_ext_link *hlink; hda_link_dma_cleanup() local 162 struct hdac_ext_link *hlink; hda_link_dma_hw_params() local
|
| /linux/sound/soc/codecs/ |
| H A D | hdac_hda.c | 411 struct hdac_ext_link *hlink; in hdac_hda_codec_probe() local 414 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_probe() 415 if (!hlink) { in hdac_hda_codec_probe() 420 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hda_codec_probe() 539 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_probe() 550 struct hdac_ext_link *hlink = NULL; in hdac_hda_codec_remove() local 552 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hda_codec_remove() 553 if (!hlink) { in hdac_hda_codec_remove() 559 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hda_codec_remove() 624 struct hdac_ext_link *hlink; in hdac_hda_dev_probe() local [all …]
|
| H A D | hda.c | 178 struct hdac_ext_link *hlink; in hda_codec_probe() local 186 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_probe() 187 if (!hlink) { in hda_codec_probe() 195 snd_hdac_ext_bus_link_get(bus, hlink); in hda_codec_probe() 260 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_probe() 273 struct hdac_ext_link *hlink; in hda_codec_remove() local 292 hlink = snd_hdac_ext_bus_get_hlink_by_addr(bus, hdev->addr); in hda_codec_remove() 293 if (hlink) in hda_codec_remove() 294 snd_hdac_ext_bus_link_put(bus, hlink); in hda_codec_remove()
|
| H A D | hdac_hdmi.c | 1676 struct hdac_ext_link *hlink; in hdmi_codec_probe() local 1685 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdmi_codec_probe() 1686 if (!hlink) { in hdmi_codec_probe() 1691 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdmi_codec_probe() 1851 struct hdac_ext_link *hlink; in hdac_hdmi_dev_probe() local 1858 hlink = snd_hdac_ext_bus_get_hlink_by_name(hdev->bus, dev_name(&hdev->dev)); in hdac_hdmi_dev_probe() 1859 if (!hlink) { in hdac_hdmi_dev_probe() 1864 snd_hdac_ext_bus_link_get(hdev->bus, hlink); in hdac_hdmi_dev_probe() 1911 snd_hdac_ext_bus_link_put(hdev->bus, hlink); in hdac_hdmi_dev_probe() 1939 struct hdac_ext_link *hlink; in hdac_hdmi_runtime_suspend() local [all …]
|
| /linux/include/sound/ |
| H A D | hdaudio_ext.h | 112 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *hlink); 113 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *hlink); 116 void snd_hdac_ext_bus_link_set_stream_id(struct hdac_ext_link *hlink, 118 void snd_hdac_ext_bus_link_clear_stream_id(struct hdac_ext_link *hlink, 121 int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *hlink); 122 int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *hlink);
|
| /linux/sound/soc/intel/avs/ |
| H A D | lnl.c | 17 struct hdac_ext_link *hlink; in avs_lnl_core_stall() local 24 list_for_each_entry(hlink, &bus->hlink_list, list) in avs_lnl_core_stall() 25 snd_hdac_updatel(hlink->ml_addr, AZX_REG_ML_LCTL, AZX_ML_LCTL_OFLEN, in avs_lnl_core_stall()
|
| H A D | core.c | 109 struct hdac_ext_link *hlink; in avs_hdac_bus_init_chip() local 116 list_for_each_entry(hlink, &bus->hlink_list, list) in avs_hdac_bus_init_chip() 117 writel(0, hlink->ml_addr + AZX_REG_ML_LOSIDV); in avs_hdac_bus_init_chip() 206 struct hdac_ext_link *hlink; in avs_hda_probe_work() local 217 list_for_each_entry(hlink, &bus->hlink_list, list) in avs_hda_probe_work() 218 snd_hdac_ext_bus_link_put(bus, hlink); in avs_hda_probe_work()
|