Home
last modified time | relevance | path

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

12

/sound/soc/intel/skylake/
Dskl-sst-cldma.c24 static void skl_cldma_int_enable(struct sst_dsp *ctx) in skl_cldma_int_enable() argument
26 sst_dsp_shim_update_bits_unlocked(ctx, SKL_ADSP_REG_ADSPIC, in skl_cldma_int_enable()
30 void skl_cldma_int_disable(struct sst_dsp *ctx) in skl_cldma_int_disable() argument
32 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_int_disable()
36 static void skl_cldma_stream_run(struct sst_dsp *ctx, bool enable) in skl_cldma_stream_run() argument
41 sst_dsp_shim_update_bits_unlocked(ctx, in skl_cldma_stream_run()
49 val = sst_dsp_shim_read(ctx, SKL_ADSP_REG_CL_SD_CTL) & in skl_cldma_stream_run()
59 dev_err(ctx->dev, "Failed to set Run bit=%d enable=%d\n", val, enable); in skl_cldma_stream_run()
62 static void skl_cldma_stream_clear(struct sst_dsp *ctx) in skl_cldma_stream_clear() argument
65 skl_cldma_stream_run(ctx, 0); in skl_cldma_stream_clear()
[all …]
Dbxt-sst.c51 static unsigned int bxt_get_errorcode(struct sst_dsp *ctx) in bxt_get_errorcode() argument
53 return sst_dsp_shim_read(ctx, BXT_ADSP_ERROR_CODE); in bxt_get_errorcode()
57 bxt_load_library(struct sst_dsp *ctx, struct skl_lib_info *linfo, int lib_count) in bxt_load_library() argument
60 struct skl_sst *skl = ctx->thread_context; in bxt_load_library()
71 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, in bxt_load_library()
74 dev_err(ctx->dev, "Lib prepare DMA err: %x\n", in bxt_load_library()
83 ctx->dsp_ops.trigger(ctx->dev, true, stream_tag); in bxt_load_library()
86 dev_err(ctx->dev, "IPC Load Lib for %s fail: %d\n", in bxt_load_library()
89 ctx->dsp_ops.trigger(ctx->dev, false, stream_tag); in bxt_load_library()
90 ctx->dsp_ops.cleanup(ctx->dev, &dmab, stream_tag); in bxt_load_library()
[all …]
Dskl-sst-dsp.c30 void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state) in skl_dsp_set_state_locked() argument
32 mutex_lock(&ctx->mutex); in skl_dsp_set_state_locked()
33 ctx->sst_state = state; in skl_dsp_set_state_locked()
34 mutex_unlock(&ctx->mutex); in skl_dsp_set_state_locked()
42 void skl_dsp_init_core_state(struct sst_dsp *ctx) in skl_dsp_init_core_state() argument
44 struct skl_sst *skl = ctx->thread_context; in skl_dsp_init_core_state()
57 unsigned int skl_dsp_get_enabled_cores(struct sst_dsp *ctx) in skl_dsp_get_enabled_cores() argument
59 struct skl_sst *skl = ctx->thread_context; in skl_dsp_get_enabled_cores()
65 val = sst_dsp_shim_read_unlocked(ctx, SKL_ADSP_REG_ADSPCS); in skl_dsp_get_enabled_cores()
80 dev_dbg(ctx->dev, "DSP enabled cores mask = %x\n", en_cores_mask); in skl_dsp_get_enabled_cores()
[all …]
Dcnl-sst-dsp.c35 cnl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_set_reset_state() argument
38 sst_dsp_shim_update_bits_unlocked(ctx, in cnl_dsp_core_set_reset_state()
43 return sst_dsp_register_poll(ctx, in cnl_dsp_core_set_reset_state()
52 cnl_dsp_core_unset_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_unset_reset_state() argument
55 sst_dsp_shim_update_bits_unlocked(ctx, CNL_ADSP_REG_ADSPCS, in cnl_dsp_core_unset_reset_state()
59 return sst_dsp_register_poll(ctx, in cnl_dsp_core_unset_reset_state()
67 static bool is_cnl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) in is_cnl_dsp_core_enable() argument
72 val = sst_dsp_shim_read_unlocked(ctx, CNL_ADSP_REG_ADSPCS); in is_cnl_dsp_core_enable()
79 dev_dbg(ctx->dev, "DSP core(s) enabled? %d: core_mask %#x\n", in is_cnl_dsp_core_enable()
85 static int cnl_dsp_reset_core(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_reset_core() argument
[all …]
Dskl-sst.c41 static bool skl_check_fw_status(struct sst_dsp *ctx, u32 status) in skl_check_fw_status() argument
45 cur_sts = sst_dsp_shim_read(ctx, SKL_ADSP_FW_STATUS) & SKL_FW_STS_MASK; in skl_check_fw_status()
50 static int skl_transfer_firmware(struct sst_dsp *ctx, in skl_transfer_firmware() argument
55 ret = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, basefw, base_fw_size, in skl_transfer_firmware()
60 ret = sst_dsp_register_poll(ctx, in skl_transfer_firmware()
67 ctx->cl_dev.ops.cl_stop_dma(ctx); in skl_transfer_firmware()
74 static int skl_load_base_firmware(struct sst_dsp *ctx) in skl_load_base_firmware() argument
77 struct skl_sst *skl = ctx->thread_context; in skl_load_base_firmware()
84 if (ctx->fw == NULL) { in skl_load_base_firmware()
85 ret = request_firmware(&ctx->fw, ctx->fw_name, ctx->dev); in skl_load_base_firmware()
[all …]
Dcnl-sst.c55 static int cnl_prepare_fw(struct sst_dsp *ctx, const void *fwdata, u32 fwsize) in cnl_prepare_fw() argument
60 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, fwsize, &ctx->dmab); in cnl_prepare_fw()
62 dev_err(ctx->dev, "dma prepare failed: 0%#x\n", stream_tag); in cnl_prepare_fw()
66 ctx->dsp_ops.stream_tag = stream_tag; in cnl_prepare_fw()
67 memcpy(ctx->dmab.area, fwdata, fwsize); in cnl_prepare_fw()
70 sst_dsp_shim_write(ctx, CNL_ADSP_REG_HIPCIDR, in cnl_prepare_fw()
74 ret = cnl_dsp_enable_core(ctx, SKL_DSP_CORE0_MASK); in cnl_prepare_fw()
76 dev_err(ctx->dev, "dsp boot core failed ret: %d\n", ret); in cnl_prepare_fw()
82 cnl_ipc_int_enable(ctx); in cnl_prepare_fw()
83 cnl_ipc_op_int_enable(ctx); in cnl_prepare_fw()
[all …]
Dskl-sst-dsp.h146 int (*load_fw)(struct sst_dsp *ctx);
148 int (*load_library)(struct sst_dsp *ctx,
150 int (*parse_fw)(struct sst_dsp *ctx);
151 int (*set_state_D0)(struct sst_dsp *ctx, unsigned int core_id);
152 int (*set_state_D3)(struct sst_dsp *ctx, unsigned int core_id);
153 int (*set_state_D0i3)(struct sst_dsp *ctx);
154 int (*set_state_D0i0)(struct sst_dsp *ctx);
155 unsigned int (*get_fw_errcode)(struct sst_dsp *ctx);
156 int (*load_mod)(struct sst_dsp *ctx, u16 mod_id, u8 *mod_name);
157 int (*unload_mod)(struct sst_dsp *ctx, u16 mod_id);
[all …]
Dskl-messages.c62 void skl_dsp_enable_notification(struct skl_sst *ctx, bool enable) in skl_dsp_enable_notification() argument
73 skl_ipc_set_large_config(&ctx->ipc, &msg, (u32 *)&mask); in skl_dsp_enable_notification()
327 struct skl_sst *ctx = skl->skl_sst; in skl_free_dsp() local
332 ctx->dsp_ops->cleanup(bus->dev, ctx); in skl_free_dsp()
334 kfree(ctx->cores.state); in skl_free_dsp()
335 kfree(ctx->cores.usage_count); in skl_free_dsp()
337 if (ctx->dsp->addr.lpe) in skl_free_dsp()
338 iounmap(ctx->dsp->addr.lpe); in skl_free_dsp()
352 struct skl_sst *ctx = skl->skl_sst; in skl_suspend_late_dsp() local
355 if (!ctx) in skl_suspend_late_dsp()
[all …]
Dcnl-sst-dsp.h94 int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core);
95 int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core);
99 void cnl_ipc_int_enable(struct sst_dsp *ctx);
100 void cnl_ipc_int_disable(struct sst_dsp *ctx);
101 void cnl_ipc_op_int_enable(struct sst_dsp *ctx);
102 void cnl_ipc_op_int_disable(struct sst_dsp *ctx);
103 bool cnl_ipc_int_status(struct sst_dsp *ctx);
109 int cnl_sst_init_fw(struct device *dev, struct skl_sst *ctx);
110 void cnl_sst_dsp_cleanup(struct device *dev, struct skl_sst *ctx);
Dskl-topology.c119 struct skl_sst *ctx = skl->skl_sst; in skl_is_pipe_mem_avail() local
123 dev_err(ctx->dev, in skl_is_pipe_mem_avail()
127 dev_err(ctx->dev, in skl_is_pipe_mem_avail()
158 struct skl_sst *ctx = skl->skl_sst; in skl_is_pipe_mcps_avail() local
163 dev_err(ctx->dev, in skl_is_pipe_mcps_avail()
166 dev_err(ctx->dev, in skl_is_pipe_mcps_avail()
207 static void skl_dump_mconfig(struct skl_sst *ctx, in skl_dump_mconfig() argument
212 dev_dbg(ctx->dev, "Dumping config\n"); in skl_dump_mconfig()
213 dev_dbg(ctx->dev, "Input Format:\n"); in skl_dump_mconfig()
214 dev_dbg(ctx->dev, "channels = %d\n", iface->inputs[0].fmt.channels); in skl_dump_mconfig()
[all …]
Dskl-sst-utils.c116 int skl_get_pvt_instance_id_map(struct skl_sst *ctx, in skl_get_pvt_instance_id_map() argument
121 list_for_each_entry(module, &ctx->uuid_list, list) { in skl_get_pvt_instance_id_map()
186 int skl_get_pvt_id(struct skl_sst *ctx, uuid_le *uuid_mod, int instance_id) in skl_get_pvt_id() argument
191 list_for_each_entry(module, &ctx->uuid_list, list) { in skl_get_pvt_id()
215 int skl_put_pvt_id(struct skl_sst *ctx, uuid_le *uuid_mod, int *pvt_id) in skl_put_pvt_id() argument
220 list_for_each_entry(module, &ctx->uuid_list, list) { in skl_put_pvt_id()
242 int snd_skl_parse_uuids(struct sst_dsp *ctx, const struct firmware *fw, in snd_skl_parse_uuids() argument
250 struct skl_sst *skl = ctx->thread_context; in snd_skl_parse_uuids()
267 dev_err(ctx->dev, "Small fw file size, No space for hdr\n"); in snd_skl_parse_uuids()
276 dev_err(ctx->dev, "Small fw file size, No module entry\n"); in snd_skl_parse_uuids()
[all …]
/sound/soc/intel/atom/sst/
Dsst.c202 struct intel_sst_drv *ctx = container_of(work, in sst_process_pending_msg() local
205 ctx->ops->post_message(ctx, NULL, false); in sst_process_pending_msg()
208 static int sst_workqueue_init(struct intel_sst_drv *ctx) in sst_workqueue_init() argument
210 INIT_LIST_HEAD(&ctx->memcpy_list); in sst_workqueue_init()
211 INIT_LIST_HEAD(&ctx->rx_list); in sst_workqueue_init()
212 INIT_LIST_HEAD(&ctx->ipc_dispatch_list); in sst_workqueue_init()
213 INIT_LIST_HEAD(&ctx->block_list); in sst_workqueue_init()
214 INIT_WORK(&ctx->ipc_post_msg_wq, sst_process_pending_msg); in sst_workqueue_init()
215 init_waitqueue_head(&ctx->wait_queue); in sst_workqueue_init()
217 ctx->post_msg_wq = in sst_workqueue_init()
[all …]
Dsst_drv_interface.c51 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id) in free_stream_context() argument
56 stream = get_stream_info(ctx, str_id); in free_stream_context()
59 ret = sst_free_stream(ctx, str_id); in free_stream_context()
61 sst_clean_stream(&ctx->streams[str_id]); in free_stream_context()
64 dev_err(ctx->dev, "we tried to free stream context %d which was freed!!!\n", str_id); in free_stream_context()
69 int sst_get_stream_allocated(struct intel_sst_drv *ctx, in sst_get_stream_allocated() argument
75 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream_allocated()
77 dev_dbg(ctx->dev, "Stream allocated %d\n", retval); in sst_get_stream_allocated()
125 int sst_get_stream(struct intel_sst_drv *ctx, in sst_get_stream() argument
132 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream()
[all …]
Dsst_acpi.c159 static int sst_platform_get_resources(struct intel_sst_drv *ctx) in sst_platform_get_resources() argument
162 struct platform_device *pdev = to_platform_device(ctx->dev); in sst_platform_get_resources()
167 ctx->pdata->res_info->acpi_lpe_res_index); in sst_platform_get_resources()
169 dev_err(ctx->dev, "Invalid SHIM base from IFWI\n"); in sst_platform_get_resources()
172 dev_info(ctx->dev, "LPE base: %#x size:%#x", (unsigned int) rsrc->start, in sst_platform_get_resources()
175 ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset; in sst_platform_get_resources()
176 ctx->iram_end = ctx->iram_base + ctx->pdata->res_info->iram_size - 1; in sst_platform_get_resources()
177 dev_info(ctx->dev, "IRAM base: %#x", ctx->iram_base); in sst_platform_get_resources()
178 ctx->iram = devm_ioremap_nocache(ctx->dev, ctx->iram_base, in sst_platform_get_resources()
179 ctx->pdata->res_info->iram_size); in sst_platform_get_resources()
[all …]
Dsst_pci.c33 static int sst_platform_get_resources(struct intel_sst_drv *ctx) in sst_platform_get_resources() argument
36 struct pci_dev *pci = ctx->pci; in sst_platform_get_resources()
44 if (ctx->dev_id == SST_MRFLD_PCI_ID) { in sst_platform_get_resources()
45 ctx->ddr_base = pci_resource_start(pci, 0); in sst_platform_get_resources()
47 ddr_base = relocate_imr_addr_mrfld(ctx->ddr_base); in sst_platform_get_resources()
48 if (!ctx->pdata->lib_info) { in sst_platform_get_resources()
49 dev_err(ctx->dev, "lib_info pointer NULL\n"); in sst_platform_get_resources()
53 if (ddr_base != ctx->pdata->lib_info->mod_base) { in sst_platform_get_resources()
54 dev_err(ctx->dev, in sst_platform_get_resources()
59 ctx->ddr_end = pci_resource_end(pci, 0); in sst_platform_get_resources()
[all …]
Dsst.h427 void (*clear_interrupt)(struct intel_sst_drv *ctx);
428 int (*start)(struct intel_sst_drv *ctx);
429 int (*reset)(struct intel_sst_drv *ctx);
430 void (*process_reply)(struct intel_sst_drv *ctx, struct ipc_post *msg);
431 int (*post_message)(struct intel_sst_drv *ctx,
437 int (*alloc_stream)(struct intel_sst_drv *ctx, void *params);
446 int sst_send_byte_stream_mrfld(struct intel_sst_drv *ctx,
452 int sst_get_stream_allocated(struct intel_sst_drv *ctx,
457 int sst_post_message_mrfld(struct intel_sst_drv *ctx,
459 void sst_process_reply_mrfld(struct intel_sst_drv *ctx, struct ipc_post *msg);
[all …]
Dsst_loader.c115 static int sst_validate_fw_image(struct intel_sst_drv *ctx, unsigned long size, in sst_validate_fw_image() argument
119 const void *sst_fw_in_mem = ctx->fw_in_mem; in sst_validate_fw_image()
121 dev_dbg(ctx->dev, "Enter\n"); in sst_validate_fw_image()
125 dev_dbg(ctx->dev, in sst_validate_fw_image()
134 dev_err(ctx->dev, "InvalidFW sign/filesize mismatch\n"); in sst_validate_fw_image()
239 static int sst_parse_fw_memcpy(struct intel_sst_drv *ctx, unsigned long size, in sst_parse_fw_memcpy() argument
246 ret_val = sst_validate_fw_image(ctx, size, &module, &num_modules); in sst_parse_fw_memcpy()
251 ret_val = sst_parse_module_memcpy(ctx, module, fw_list); in sst_parse_fw_memcpy()
322 struct intel_sst_drv *ctx = context; in sst_firmware_load_cb() local
324 dev_dbg(ctx->dev, "Enter\n"); in sst_firmware_load_cb()
[all …]
Dsst_ipc.c37 struct sst_block *sst_create_block(struct intel_sst_drv *ctx, in sst_create_block() argument
42 dev_dbg(ctx->dev, "Enter\n"); in sst_create_block()
50 spin_lock_bh(&ctx->block_lock); in sst_create_block()
51 list_add_tail(&msg->node, &ctx->block_list); in sst_create_block()
52 spin_unlock_bh(&ctx->block_lock); in sst_create_block()
72 int sst_wake_up_block(struct intel_sst_drv *ctx, int result, in sst_wake_up_block() argument
77 dev_dbg(ctx->dev, "Enter\n"); in sst_wake_up_block()
79 spin_lock_bh(&ctx->block_lock); in sst_wake_up_block()
80 list_for_each_entry(block, &ctx->block_list, node) { in sst_wake_up_block()
81 dev_dbg(ctx->dev, "Block ipc %d, drv_id %d\n", block->msg_id, in sst_wake_up_block()
[all …]
/sound/soc/au1x/
Dac97c.c71 static inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg) in RD() argument
73 return __raw_readl(ctx->mmio + reg); in RD()
76 static inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v) in WR() argument
78 __raw_writel(v, ctx->mmio + reg); in WR()
85 struct au1xpsc_audio_data *ctx = ac97_to_ctx(ac97); in au1xac97c_ac97_read() local
92 mutex_lock(&ctx->lock); in au1xac97c_ac97_read()
95 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read()
102 WR(ctx, AC97_CMDRESP, CMD_IDX(r) | CMD_READ); in au1xac97c_ac97_read()
108 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read()
110 data = RD(ctx, AC97_CMDRESP); in au1xac97c_ac97_read()
[all …]
Di2sc.c69 static inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg) in RD() argument
71 return __raw_readl(ctx->mmio + reg); in RD()
74 static inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v) in WR() argument
76 __raw_writel(v, ctx->mmio + reg); in WR()
82 struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(cpu_dai); in au1xi2s_set_fmt() local
87 c = ctx->cfg; in au1xi2s_set_fmt()
130 ctx->cfg = c; in au1xi2s_set_fmt()
138 struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai); in au1xi2s_trigger() local
145 WR(ctx, I2S_ENABLE, EN_D | EN_CE); in au1xi2s_trigger()
146 WR(ctx, I2S_ENABLE, EN_CE); in au1xi2s_trigger()
[all …]
Ddma.c182 struct alchemy_pcm_ctx *ctx = ss_to_ctx(ss); in ss_to_as() local
183 return &(ctx->stream[ss->stream]); in ss_to_as()
188 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream); in alchemy_pcm_open() local
199 ctx->stream[s].dma = request_au1000_dma(dmaids[s], name, in alchemy_pcm_open()
201 &ctx->stream[s]); in alchemy_pcm_open()
202 set_dma_mode(ctx->stream[s].dma, in alchemy_pcm_open()
203 get_dma_mode(ctx->stream[s].dma) & ~DMA_NC); in alchemy_pcm_open()
205 ctx->stream[s].substream = substream; in alchemy_pcm_open()
206 ctx->stream[s].buffer = NULL; in alchemy_pcm_open()
214 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream); in alchemy_pcm_close() local
[all …]
/sound/x86/
Dintel_hdmi_audio.c223 static void had_read_register(struct snd_intelhad *ctx, u32 reg, u32 *val) in had_read_register() argument
225 if (!ctx->connected) in had_read_register()
228 *val = had_read_register_raw(ctx->card_ctx, ctx->pipe, reg); in had_read_register()
231 static void had_write_register(struct snd_intelhad *ctx, u32 reg, u32 val) in had_write_register() argument
233 if (ctx->connected) in had_write_register()
234 had_write_register_raw(ctx->card_ctx, ctx->pipe, reg, val); in had_write_register()
262 static void had_ack_irqs(struct snd_intelhad *ctx) in had_ack_irqs() argument
266 if (!ctx->connected) in had_ack_irqs()
268 had_read_register(ctx, AUD_HDMI_STATUS, &status_reg); in had_ack_irqs()
270 had_write_register(ctx, AUD_HDMI_STATUS, status_reg); in had_ack_irqs()
[all …]
/sound/usb/
Dendpoint.c187 struct snd_urb_ctx *ctx) in prepare_silent_urb() argument
189 struct urb *urb = ctx->urb; in prepare_silent_urb()
199 for (i = 0; i < ctx->packets; ++i) { in prepare_silent_urb()
204 if (ctx->packet_size[i]) in prepare_silent_urb()
205 counts = ctx->packet_size[i]; in prepare_silent_urb()
223 urb->number_of_packets = ctx->packets; in prepare_silent_urb()
224 urb->transfer_buffer_length = offs * ep->stride + ctx->packets * extra; in prepare_silent_urb()
231 struct snd_urb_ctx *ctx) in prepare_outbound_urb() argument
233 struct urb *urb = ctx->urb; in prepare_outbound_urb()
244 prepare_silent_urb(ep, ctx); in prepare_outbound_urb()
[all …]
/sound/soc/intel/atom/
Dsst-atom-controls.c784 struct sst_data *ctx = snd_soc_dai_get_drvdata(dai); in sst_fill_ssp_slot() local
786 ctx->ssp_cmd.nb_slots = slots; in sst_fill_ssp_slot()
787 ctx->ssp_cmd.active_tx_slot_map = tx_mask; in sst_fill_ssp_slot()
788 ctx->ssp_cmd.active_rx_slot_map = rx_mask; in sst_fill_ssp_slot()
789 ctx->ssp_cmd.nb_bits_per_slots = slot_width; in sst_fill_ssp_slot()
840 struct sst_data *ctx = snd_soc_dai_get_drvdata(dai); in sst_fill_ssp_config() local
846 ctx->ssp_cmd.ssp_protocol = SSP_MODE_PCM; in sst_fill_ssp_config()
847 ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NETWORK << 1); in sst_fill_ssp_config()
848 ctx->ssp_cmd.start_delay = 0; in sst_fill_ssp_config()
849 ctx->ssp_cmd.data_polarity = 1; in sst_fill_ssp_config()
[all …]
/sound/soc/intel/boards/
Dcht_bsw_rt5672.c72 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); in platform_clock_control() local
82 if (ctx->mclk) { in platform_clock_control()
83 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
115 if (ctx->mclk) in platform_clock_control()
116 clk_disable_unprepare(ctx->mclk); in platform_clock_control()
199 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); in cht_codec_init() local
228 &ctx->headset, in cht_codec_init()
234 rt5670_set_jack_detect(codec, &ctx->headset); in cht_codec_init()
235 if (ctx->mclk) { in cht_codec_init()
246 ret = clk_prepare_enable(ctx->mclk); in cht_codec_init()
[all …]

12