Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 71) sorted by relevance

123

/sound/soc/intel/skylake/
Dskl-sst-cldma.c17 static void skl_cldma_int_enable(struct sst_dsp *ctx) in skl_cldma_int_enable() argument
19 sst_dsp_shim_update_bits_unlocked(ctx, SKL_ADSP_REG_ADSPIC, in skl_cldma_int_enable()
23 void skl_cldma_int_disable(struct sst_dsp *ctx) in skl_cldma_int_disable() argument
25 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_int_disable()
29 static void skl_cldma_stream_run(struct sst_dsp *ctx, bool enable) in skl_cldma_stream_run() argument
34 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_stream_run()
42 val = sst_dsp_shim_read(ctx, SKL_ADSP_REG_CL_SD_CTL) & in skl_cldma_stream_run()
52 dev_err(ctx->dev, "Failed to set Run bit=%d enable=%d\n", val, enable); in skl_cldma_stream_run()
55 static void skl_cldma_stream_clear(struct sst_dsp *ctx) in skl_cldma_stream_clear() argument
58 skl_cldma_stream_run(ctx, 0); in skl_cldma_stream_clear()
[all …]
Dskl-sst-dsp.c22 void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state) in skl_dsp_set_state_locked() argument
24 mutex_lock(&ctx->mutex); in skl_dsp_set_state_locked()
25 ctx->sst_state = state; in skl_dsp_set_state_locked()
26 mutex_unlock(&ctx->mutex); in skl_dsp_set_state_locked()
34 void skl_dsp_init_core_state(struct sst_dsp *ctx) in skl_dsp_init_core_state() argument
36 struct skl_dev *skl = ctx->thread_context; in skl_dsp_init_core_state()
49 unsigned int skl_dsp_get_enabled_cores(struct sst_dsp *ctx) in skl_dsp_get_enabled_cores() argument
51 struct skl_dev *skl = ctx->thread_context; in skl_dsp_get_enabled_cores()
57 val = sst_dsp_shim_read_unlocked(ctx, SKL_ADSP_REG_ADSPCS); in skl_dsp_get_enabled_cores()
72 dev_dbg(ctx->dev, "DSP enabled cores mask = %x\n", en_cores_mask); in skl_dsp_get_enabled_cores()
[all …]
Dcnl-sst-dsp.c27 cnl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_set_reset_state() argument
30 sst_dsp_shim_update_bits_unlocked(ctx, in cnl_dsp_core_set_reset_state()
35 return sst_dsp_register_poll(ctx, in cnl_dsp_core_set_reset_state()
44 cnl_dsp_core_unset_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_unset_reset_state() argument
47 sst_dsp_shim_update_bits_unlocked(ctx, CNL_ADSP_REG_ADSPCS, in cnl_dsp_core_unset_reset_state()
51 return sst_dsp_register_poll(ctx, in cnl_dsp_core_unset_reset_state()
59 static bool is_cnl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) in is_cnl_dsp_core_enable() argument
64 val = sst_dsp_shim_read_unlocked(ctx, CNL_ADSP_REG_ADSPCS); in is_cnl_dsp_core_enable()
71 dev_dbg(ctx->dev, "DSP core(s) enabled? %d: core_mask %#x\n", in is_cnl_dsp_core_enable()
77 static int cnl_dsp_reset_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_reset_core() argument
[all …]
Dbxt-sst.c40 static unsigned int bxt_get_errorcode(struct sst_dsp *ctx) in bxt_get_errorcode() argument
42 return sst_dsp_shim_read(ctx, BXT_ADSP_ERROR_CODE); in bxt_get_errorcode()
46 bxt_load_library(struct sst_dsp *ctx, struct skl_lib_info *linfo, int lib_count) in bxt_load_library() argument
49 struct skl_dev *skl = ctx->thread_context; in bxt_load_library()
60 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, in bxt_load_library()
63 dev_err(ctx->dev, "Lib prepare DMA err: %x\n", in bxt_load_library()
72 ctx->dsp_ops.trigger(ctx->dev, true, stream_tag); in bxt_load_library()
75 dev_err(ctx->dev, "IPC Load Lib for %s fail: %d\n", in bxt_load_library()
78 ctx->dsp_ops.trigger(ctx->dev, false, stream_tag); in bxt_load_library()
79 ctx->dsp_ops.cleanup(ctx->dev, &dmab, stream_tag); in bxt_load_library()
[all …]
Dskl-sst.c33 static bool skl_check_fw_status(struct sst_dsp *ctx, u32 status) in skl_check_fw_status() argument
37 cur_sts = sst_dsp_shim_read(ctx, SKL_ADSP_FW_STATUS) & SKL_FW_STS_MASK; in skl_check_fw_status()
42 static int skl_transfer_firmware(struct sst_dsp *ctx, in skl_transfer_firmware() argument
47 ret = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, basefw, base_fw_size, in skl_transfer_firmware()
52 ret = sst_dsp_register_poll(ctx, in skl_transfer_firmware()
59 ctx->cl_dev.ops.cl_stop_dma(ctx); in skl_transfer_firmware()
66 static int skl_load_base_firmware(struct sst_dsp *ctx) in skl_load_base_firmware() argument
69 struct skl_dev *skl = ctx->thread_context; in skl_load_base_firmware()
76 if (ctx->fw == NULL) { in skl_load_base_firmware()
77 ret = request_firmware(&ctx->fw, ctx->fw_name, ctx->dev); in skl_load_base_firmware()
[all …]
Dcnl-sst.c46 static int cnl_prepare_fw(struct sst_dsp *ctx, const void *fwdata, u32 fwsize) in cnl_prepare_fw() argument
51 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, fwsize, &ctx->dmab); in cnl_prepare_fw()
53 dev_err(ctx->dev, "dma prepare failed: 0%#x\n", stream_tag); in cnl_prepare_fw()
57 ctx->dsp_ops.stream_tag = stream_tag; in cnl_prepare_fw()
58 memcpy(ctx->dmab.area, fwdata, fwsize); in cnl_prepare_fw()
60 ret = skl_dsp_core_power_up(ctx, SKL_DSP_CORE0_MASK); in cnl_prepare_fw()
62 dev_err(ctx->dev, "dsp core0 power up failed\n"); in cnl_prepare_fw()
68 sst_dsp_shim_write(ctx, CNL_ADSP_REG_HIPCIDR, in cnl_prepare_fw()
72 ret = skl_dsp_start_core(ctx, SKL_DSP_CORE0_MASK); in cnl_prepare_fw()
74 dev_err(ctx->dev, "Start dsp core failed ret: %d\n", ret); in cnl_prepare_fw()
[all …]
Dskl-sst-dsp.h140 int (*load_fw)(struct sst_dsp *ctx);
142 int (*load_library)(struct sst_dsp *ctx,
144 int (*parse_fw)(struct sst_dsp *ctx);
145 int (*set_state_D0)(struct sst_dsp *ctx, unsigned int core_id);
146 int (*set_state_D3)(struct sst_dsp *ctx, unsigned int core_id);
147 int (*set_state_D0i3)(struct sst_dsp *ctx);
148 int (*set_state_D0i0)(struct sst_dsp *ctx);
149 unsigned int (*get_fw_errcode)(struct sst_dsp *ctx);
150 int (*load_mod)(struct sst_dsp *ctx, u16 mod_id, u8 *mod_name);
151 int (*unload_mod)(struct sst_dsp *ctx, u16 mod_id);
[all …]
/sound/soc/intel/atom/sst/
Dsst.c194 struct intel_sst_drv *ctx = container_of(work, in sst_process_pending_msg() local
197 ctx->ops->post_message(ctx, NULL, false); in sst_process_pending_msg()
200 static int sst_workqueue_init(struct intel_sst_drv *ctx) in sst_workqueue_init() argument
202 INIT_LIST_HEAD(&ctx->memcpy_list); in sst_workqueue_init()
203 INIT_LIST_HEAD(&ctx->rx_list); in sst_workqueue_init()
204 INIT_LIST_HEAD(&ctx->ipc_dispatch_list); in sst_workqueue_init()
205 INIT_LIST_HEAD(&ctx->block_list); in sst_workqueue_init()
206 INIT_WORK(&ctx->ipc_post_msg_wq, sst_process_pending_msg); in sst_workqueue_init()
207 init_waitqueue_head(&ctx->wait_queue); in sst_workqueue_init()
209 ctx->post_msg_wq = in sst_workqueue_init()
[all …]
Dsst_acpi.c149 static int sst_platform_get_resources(struct intel_sst_drv *ctx) in sst_platform_get_resources() argument
152 struct platform_device *pdev = to_platform_device(ctx->dev); in sst_platform_get_resources()
157 ctx->pdata->res_info->acpi_lpe_res_index); in sst_platform_get_resources()
159 dev_err(ctx->dev, "Invalid SHIM base from IFWI\n"); in sst_platform_get_resources()
162 dev_info(ctx->dev, "LPE base: %#x size:%#x", (unsigned int) rsrc->start, in sst_platform_get_resources()
165 ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset; in sst_platform_get_resources()
166 ctx->iram_end = ctx->iram_base + ctx->pdata->res_info->iram_size - 1; in sst_platform_get_resources()
167 dev_info(ctx->dev, "IRAM base: %#x", ctx->iram_base); in sst_platform_get_resources()
168 ctx->iram = devm_ioremap(ctx->dev, ctx->iram_base, in sst_platform_get_resources()
169 ctx->pdata->res_info->iram_size); in sst_platform_get_resources()
[all …]
Dsst_drv_interface.c40 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id) in free_stream_context() argument
45 stream = get_stream_info(ctx, str_id); in free_stream_context()
48 ret = sst_free_stream(ctx, str_id); in free_stream_context()
50 sst_clean_stream(&ctx->streams[str_id]); in free_stream_context()
53 dev_err(ctx->dev, "we tried to free stream context %d which was freed!!!\n", str_id); in free_stream_context()
58 int sst_get_stream_allocated(struct intel_sst_drv *ctx, in sst_get_stream_allocated() argument
64 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream_allocated()
66 dev_dbg(ctx->dev, "Stream allocated %d\n", retval); in sst_get_stream_allocated()
114 int sst_get_stream(struct intel_sst_drv *ctx, in sst_get_stream() argument
121 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream()
[all …]
Dsst_pci.c25 static int sst_platform_get_resources(struct intel_sst_drv *ctx) in sst_platform_get_resources() argument
28 struct pci_dev *pci = ctx->pci; in sst_platform_get_resources()
36 if (ctx->dev_id == SST_MRFLD_PCI_ID) { in sst_platform_get_resources()
37 ctx->ddr_base = pci_resource_start(pci, 0); in sst_platform_get_resources()
39 ddr_base = relocate_imr_addr_mrfld(ctx->ddr_base); in sst_platform_get_resources()
40 if (!ctx->pdata->lib_info) { in sst_platform_get_resources()
41 dev_err(ctx->dev, "lib_info pointer NULL\n"); in sst_platform_get_resources()
45 if (ddr_base != ctx->pdata->lib_info->mod_base) { in sst_platform_get_resources()
46 dev_err(ctx->dev, in sst_platform_get_resources()
51 ctx->ddr_end = pci_resource_end(pci, 0); in sst_platform_get_resources()
[all …]
Dsst_loader.c108 static int sst_validate_fw_image(struct intel_sst_drv *ctx, unsigned long size, in sst_validate_fw_image() argument
112 const void *sst_fw_in_mem = ctx->fw_in_mem; in sst_validate_fw_image()
114 dev_dbg(ctx->dev, "Enter\n"); in sst_validate_fw_image()
118 dev_dbg(ctx->dev, in sst_validate_fw_image()
127 dev_err(ctx->dev, "InvalidFW sign/filesize mismatch\n"); in sst_validate_fw_image()
232 static int sst_parse_fw_memcpy(struct intel_sst_drv *ctx, unsigned long size, in sst_parse_fw_memcpy() argument
239 ret_val = sst_validate_fw_image(ctx, size, &module, &num_modules); in sst_parse_fw_memcpy()
244 ret_val = sst_parse_module_memcpy(ctx, module, fw_list); in sst_parse_fw_memcpy()
313 struct intel_sst_drv *ctx = context; in sst_firmware_load_cb() local
315 dev_dbg(ctx->dev, "Enter\n"); in sst_firmware_load_cb()
[all …]
Dsst_ipc.c28 struct sst_block *sst_create_block(struct intel_sst_drv *ctx, in sst_create_block() argument
33 dev_dbg(ctx->dev, "Enter\n"); in sst_create_block()
41 spin_lock_bh(&ctx->block_lock); in sst_create_block()
42 list_add_tail(&msg->node, &ctx->block_list); in sst_create_block()
43 spin_unlock_bh(&ctx->block_lock); in sst_create_block()
63 int sst_wake_up_block(struct intel_sst_drv *ctx, int result, in sst_wake_up_block() argument
68 dev_dbg(ctx->dev, "Enter\n"); in sst_wake_up_block()
70 spin_lock_bh(&ctx->block_lock); in sst_wake_up_block()
71 list_for_each_entry(block, &ctx->block_list, node) { in sst_wake_up_block()
72 dev_dbg(ctx->dev, "Block ipc %d, drv_id %d\n", block->msg_id, in sst_wake_up_block()
[all …]
Dsst.h423 void (*clear_interrupt)(struct intel_sst_drv *ctx);
424 int (*start)(struct intel_sst_drv *ctx);
425 int (*reset)(struct intel_sst_drv *ctx);
426 void (*process_reply)(struct intel_sst_drv *ctx, struct ipc_post *msg);
427 int (*post_message)(struct intel_sst_drv *ctx,
433 int (*alloc_stream)(struct intel_sst_drv *ctx, void *params);
447 int sst_get_stream(struct intel_sst_drv *ctx,
449 int sst_get_stream_allocated(struct intel_sst_drv *ctx,
463 void sst_post_download_mrfld(struct intel_sst_drv *ctx);
472 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id);
[all …]
/sound/soc/au1x/
Dac97c.c72 static inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg) in RD() argument
74 return __raw_readl(ctx->mmio + reg); in RD()
77 static inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v) in WR() argument
79 __raw_writel(v, ctx->mmio + reg); in WR()
86 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); in au1xac97c_ac97_read() local
93 mutex_lock(&ctx->lock); in au1xac97c_ac97_read()
96 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read()
103 WR(ctx, AC97_CMDRESP, CMD_IDX(r) | CMD_READ); in au1xac97c_ac97_read()
109 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read()
111 data = RD(ctx, AC97_CMDRESP); in au1xac97c_ac97_read()
[all …]
Di2sc.c70 static inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg) in RD() argument
72 return __raw_readl(ctx->mmio + reg); in RD()
75 static inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v) in WR() argument
77 __raw_writel(v, ctx->mmio + reg); in WR()
83 struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(cpu_dai); in au1xi2s_set_fmt() local
88 c = ctx->cfg; in au1xi2s_set_fmt()
131 ctx->cfg = c; in au1xi2s_set_fmt()
139 struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai); in au1xi2s_trigger() local
146 WR(ctx, I2S_ENABLE, EN_D | EN_CE); in au1xi2s_trigger()
147 WR(ctx, I2S_ENABLE, EN_CE); in au1xi2s_trigger()
[all …]
Ddma.c186 struct alchemy_pcm_ctx *ctx = ss_to_ctx(ss, component); in ss_to_as() local
187 return &(ctx->stream[ss->stream]); in ss_to_as()
193 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream, component); in alchemy_pcm_open() local
204 ctx->stream[s].dma = request_au1000_dma(dmaids[s], name, in alchemy_pcm_open()
206 &ctx->stream[s]); in alchemy_pcm_open()
207 set_dma_mode(ctx->stream[s].dma, in alchemy_pcm_open()
208 get_dma_mode(ctx->stream[s].dma) & ~DMA_NC); in alchemy_pcm_open()
210 ctx->stream[s].substream = substream; in alchemy_pcm_open()
211 ctx->stream[s].buffer = NULL; in alchemy_pcm_open()
220 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream, component); in alchemy_pcm_close() local
[all …]
/sound/soc/xilinx/
Dxlnx_spdif.c58 struct spdif_dev_data *ctx = arg; in xlnx_spdifrx_irq_handler() local
60 val = readl(ctx->base + XSPDIF_IRQ_STS_REG); in xlnx_spdifrx_irq_handler()
63 ctx->base + XSPDIF_IRQ_STS_REG); in xlnx_spdifrx_irq_handler()
64 val = readl(ctx->base + in xlnx_spdifrx_irq_handler()
67 ctx->base + XSPDIF_IRQ_ENABLE_REG); in xlnx_spdifrx_irq_handler()
69 ctx->rx_chsts_updated = true; in xlnx_spdifrx_irq_handler()
70 wake_up_interruptible(&ctx->chsts_q); in xlnx_spdifrx_irq_handler()
81 struct spdif_dev_data *ctx = dev_get_drvdata(dai->dev); in xlnx_spdif_startup() local
83 val = readl(ctx->base + XSPDIF_CONTROL_REG); in xlnx_spdif_startup()
85 writel(val, ctx->base + XSPDIF_CONTROL_REG); in xlnx_spdif_startup()
[all …]
/sound/soc/fsl/
Dfsl_easrc.h17 #define REG_EASRC_WRFIFO(ctx) (0x000 + 4 * (ctx)) argument
19 #define REG_EASRC_RDFIFO(ctx) (0x010 + 4 * (ctx)) argument
21 #define REG_EASRC_CC(ctx) (0x020 + 4 * (ctx)) argument
23 #define REG_EASRC_CCE1(ctx) (0x030 + 4 * (ctx)) argument
25 #define REG_EASRC_CCE2(ctx) (0x040 + 4 * (ctx)) argument
27 #define REG_EASRC_CIA(ctx) (0x050 + 4 * (ctx)) argument
29 #define REG_EASRC_DPCS0R0(ctx) (0x060 + 4 * (ctx)) argument
30 #define REG_EASRC_DPCS0R1(ctx) (0x070 + 4 * (ctx)) argument
31 #define REG_EASRC_DPCS0R2(ctx) (0x080 + 4 * (ctx)) argument
32 #define REG_EASRC_DPCS0R3(ctx) (0x090 + 4 * (ctx)) argument
[all …]
Dfsl_easrc.c172 static int fsl_easrc_set_rs_ratio(struct fsl_asrc_pair *ctx) in fsl_easrc_set_rs_ratio() argument
174 struct fsl_asrc *easrc = ctx->asrc; in fsl_easrc_set_rs_ratio()
176 struct fsl_easrc_ctx_priv *ctx_priv = ctx->private; in fsl_easrc_set_rs_ratio()
209 regmap_write(easrc->regmap, REG_EASRC_RRL(ctx->index), in fsl_easrc_set_rs_ratio()
211 regmap_write(easrc->regmap, REG_EASRC_RRH(ctx->index), in fsl_easrc_set_rs_ratio()
218 static void fsl_easrc_normalize_rates(struct fsl_asrc_pair *ctx) in fsl_easrc_normalize_rates() argument
223 if (!ctx) in fsl_easrc_normalize_rates()
226 ctx_priv = ctx->private; in fsl_easrc_normalize_rates()
476 struct fsl_asrc_pair *ctx; in fsl_easrc_prefilter_config() local
495 ctx = easrc->pair[ctx_id]; in fsl_easrc_prefilter_config()
[all …]
/sound/soc/intel/boards/
Dsof_wm8804.c53 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in sof_wm8804_hw_params() local
65 if (samplerate == ctx->sample_rate) in sof_wm8804_hw_params()
68 ctx->sample_rate = 0; in sof_wm8804_hw_params()
111 if (!(IS_ERR_OR_NULL(ctx->gpio_44) || in sof_wm8804_hw_params()
112 IS_ERR_OR_NULL(ctx->gpio_48))) { in sof_wm8804_hw_params()
118 gpiod_set_value_cansleep(ctx->gpio_48, !clk_44); in sof_wm8804_hw_params()
119 gpiod_set_value_cansleep(ctx->gpio_44, clk_44); in sof_wm8804_hw_params()
121 gpiod_set_value_cansleep(ctx->gpio_44, clk_44); in sof_wm8804_hw_params()
122 gpiod_set_value_cansleep(ctx->gpio_48, !clk_44); in sof_wm8804_hw_params()
145 ctx->sample_rate = samplerate; in sof_wm8804_hw_params()
[all …]
Dskl_hda_dsp_generic.c75 struct skl_hda_private *ctx = snd_soc_card_get_drvdata(card); in skl_hda_add_dai_link() local
79 link->platforms->name = ctx->platform_name; in skl_hda_add_dai_link()
82 if (!ctx->idisp_codec) in skl_hda_add_dai_link()
86 ret = skl_hda_hdmi_add_pcm(card, ctx->pcm_count); in skl_hda_add_dai_link()
91 ctx->dai_index++; in skl_hda_add_dai_link()
94 ctx->pcm_count++; in skl_hda_add_dai_link()
124 struct skl_hda_private *ctx = snd_soc_card_get_drvdata(card); in skl_hda_fill_card_info() local
131 ctx->idisp_codec = !!(codec_mask & IDISP_CODEC_MASK); in skl_hda_fill_card_info()
134 (codec_count == 2 && !ctx->idisp_codec)) in skl_hda_fill_card_info()
159 if (!ctx->idisp_codec) { in skl_hda_fill_card_info()
[all …]
Dcht_bsw_rt5672.c56 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); in platform_clock_control() local
66 if (ctx->mclk) { in platform_clock_control()
67 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
99 if (ctx->mclk) in platform_clock_control()
100 clk_disable_unprepare(ctx->mclk); in platform_clock_control()
193 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); in cht_codec_init() local
212 if (ctx->use_ssp0) { in cht_codec_init()
227 &ctx->headset, in cht_codec_init()
233 snd_jack_set_key(ctx->headset.jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in cht_codec_init()
234 snd_jack_set_key(ctx->headset.jack, SND_JACK_BTN_1, KEY_VOLUMEUP); in cht_codec_init()
[all …]
Dehl_rt5660.c76 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card); in hdmi_init() local
88 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in hdmi_init()
95 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card); in card_late_probe() local
98 if (list_empty(&ctx->hdmi_pcm_list)) in card_late_probe()
101 if (!ctx->idisp_codec) in card_late_probe()
104 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, head); in card_late_probe()
254 struct sof_card_private *ctx, in hdmi_link_init() argument
262 ctx->idisp_codec = true; in hdmi_link_init()
281 struct sof_card_private *ctx; in snd_ehl_rt5660_probe() local
286 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); in snd_ehl_rt5660_probe()
[all …]
/sound/x86/
Dintel_hdmi_audio.c220 static void had_read_register(struct snd_intelhad *ctx, u32 reg, u32 *val) in had_read_register() argument
222 if (!ctx->connected) in had_read_register()
225 *val = had_read_register_raw(ctx->card_ctx, ctx->pipe, reg); in had_read_register()
228 static void had_write_register(struct snd_intelhad *ctx, u32 reg, u32 val) in had_write_register() argument
230 if (ctx->connected) in had_write_register()
231 had_write_register_raw(ctx->card_ctx, ctx->pipe, reg, val); in had_write_register()
259 static void had_ack_irqs(struct snd_intelhad *ctx) in had_ack_irqs() argument
263 if (!ctx->connected) in had_ack_irqs()
265 had_read_register(ctx, AUD_HDMI_STATUS, &status_reg); in had_ack_irqs()
267 had_write_register(ctx, AUD_HDMI_STATUS, status_reg); in had_ack_irqs()
[all …]

123