Home
last modified time | relevance | path

Searched refs:sdev (Results 1 – 25 of 39) sorted by relevance

12

/sound/soc/sof/
Dops.h21 #define sof_ops(sdev) \ argument
22 ((sdev)->pdata->desc->ops)
27 static inline int snd_sof_probe(struct snd_sof_dev *sdev) in snd_sof_probe() argument
29 return sof_ops(sdev)->probe(sdev); in snd_sof_probe()
32 static inline int snd_sof_remove(struct snd_sof_dev *sdev) in snd_sof_remove() argument
34 if (sof_ops(sdev)->remove) in snd_sof_remove()
35 return sof_ops(sdev)->remove(sdev); in snd_sof_remove()
46 static inline int snd_sof_dsp_run(struct snd_sof_dev *sdev) in snd_sof_dsp_run() argument
48 return sof_ops(sdev)->run(sdev); in snd_sof_dsp_run()
51 static inline int snd_sof_dsp_stall(struct snd_sof_dev *sdev) in snd_sof_dsp_stall() argument
[all …]
Dtrace.c16 static size_t sof_trace_avail(struct snd_sof_dev *sdev, in sof_trace_avail() argument
19 loff_t host_offset = READ_ONCE(sdev->host_offset); in sof_trace_avail()
36 static size_t sof_wait_trace_avail(struct snd_sof_dev *sdev, in sof_wait_trace_avail() argument
40 size_t ret = sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail()
46 if (!sdev->dtrace_is_enabled && sdev->dtrace_draining) { in sof_wait_trace_avail()
51 sdev->dtrace_draining = false; in sof_wait_trace_avail()
58 add_wait_queue(&sdev->trace_sleep, &wait); in sof_wait_trace_avail()
64 remove_wait_queue(&sdev->trace_sleep, &wait); in sof_wait_trace_avail()
66 return sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail()
73 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_trace_read() local
[all …]
Dloader.c17 static int get_ext_windows(struct snd_sof_dev *sdev, in get_ext_windows() argument
27 sdev->info_window = kmemdup(w, struct_size(w, window, w->num_windows), in get_ext_windows()
29 if (!sdev->info_window) in get_ext_windows()
36 int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset) in snd_sof_fw_parse_ext_data() argument
47 snd_sof_dsp_block_read(sdev, bar, offset, ext_data, in snd_sof_fw_parse_ext_data()
54 snd_sof_dsp_block_read(sdev, bar, offset, in snd_sof_fw_parse_ext_data()
58 dev_dbg(sdev->dev, "found ext header type %d size 0x%x\n", in snd_sof_fw_parse_ext_data()
66 ret = get_ext_windows(sdev, ext_hdr); in snd_sof_fw_parse_ext_data()
69 dev_warn(sdev->dev, "warning: unknown ext header type %d size 0x%x\n", in snd_sof_fw_parse_ext_data()
75 dev_err(sdev->dev, "error: failed to parse ext data type %d\n", in snd_sof_fw_parse_ext_data()
[all …]
Dcore.c27 struct snd_sof_pcm *snd_sof_find_spcm_name(struct snd_sof_dev *sdev, in snd_sof_find_spcm_name() argument
32 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_name()
51 struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_sof_dev *sdev, in snd_sof_find_spcm_comp() argument
57 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_comp()
71 struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_sof_dev *sdev, in snd_sof_find_spcm_pcm_id() argument
76 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_pcm_id()
84 struct snd_sof_widget *snd_sof_find_swidget(struct snd_sof_dev *sdev, in snd_sof_find_swidget() argument
89 list_for_each_entry(swidget, &sdev->widget_list, list) { in snd_sof_find_swidget()
98 struct snd_sof_widget *snd_sof_find_swidget_sname(struct snd_sof_dev *sdev, in snd_sof_find_swidget_sname() argument
109 list_for_each_entry(swidget, &sdev->widget_list, list) { in snd_sof_find_swidget_sname()
[all …]
Dpm.c14 static int sof_restore_kcontrols(struct snd_sof_dev *sdev) in sof_restore_kcontrols() argument
21 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_restore_kcontrols()
32 ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol, in sof_restore_kcontrols()
40 ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol, in sof_restore_kcontrols()
51 dev_err(sdev->dev, in sof_restore_kcontrols()
62 static int sof_restore_pipelines(struct snd_sof_dev *sdev) in sof_restore_pipelines() argument
73 list_for_each_entry_reverse(swidget, &sdev->widget_list, list) { in sof_restore_pipelines()
85 ret = sof_ipc_tx_message(sdev->ipc, in sof_restore_pipelines()
99 ret = sof_load_pipeline_ipc(sdev, pipeline, &r); in sof_restore_pipelines()
103 ret = sof_ipc_tx_message(sdev->ipc, hdr->cmd, in sof_restore_pipelines()
[all …]
Dsof-priv.h131 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* optional */
134 int (*pcm_open)(struct snd_sof_dev *sdev,
137 int (*pcm_close)(struct snd_sof_dev *sdev,
141 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
147 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
151 int (*pcm_trigger)(struct snd_sof_dev *sdev,
156 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
160 void (*ipc_msg_data)(struct snd_sof_dev *sdev,
165 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
179 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
[all …]
Dops.c15 bool snd_sof_pci_update_bits_unlocked(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits_unlocked() argument
18 struct pci_dev *pci = to_pci_dev(sdev->dev); in snd_sof_pci_update_bits_unlocked()
24 dev_dbg(sdev->dev, "Debug PCIR: %8.8x at %8.8x\n", old & mask, offset); in snd_sof_pci_update_bits_unlocked()
32 dev_dbg(sdev->dev, "Debug PCIW: %8.8x at %8.8x\n", value, in snd_sof_pci_update_bits_unlocked()
38 bool snd_sof_pci_update_bits(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits() argument
44 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_pci_update_bits()
45 change = snd_sof_pci_update_bits_unlocked(sdev, offset, mask, value); in snd_sof_pci_update_bits()
46 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_pci_update_bits()
51 bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits_unlocked() argument
57 ret = snd_sof_dsp_read(sdev, bar, offset); in snd_sof_dsp_update_bits_unlocked()
[all …]
Dipc.c20 static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_id);
21 static void ipc_stream_message(struct snd_sof_dev *sdev, u32 msg_cmd);
29 struct snd_sof_dev *sdev; member
202 struct snd_sof_dev *sdev = ipc->sdev; in tx_wait_done() local
208 msecs_to_jiffies(sdev->ipc_timeout)); in tx_wait_done()
211 dev_err(sdev->dev, "error: ipc timed out for 0x%x size %d\n", in tx_wait_done()
213 snd_sof_dsp_dbg_dump(ipc->sdev, SOF_DBG_REGS | SOF_DBG_MBOX); in tx_wait_done()
214 snd_sof_ipc_dump(ipc->sdev); in tx_wait_done()
215 snd_sof_trace_notify_for_error(ipc->sdev); in tx_wait_done()
223 dev_err(sdev->dev, "error: ipc error for 0x%x size %zu\n", in tx_wait_done()
[all …]
Dpcm.c28 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component); in create_page_table() local
33 spcm = snd_sof_find_spcm_dai(sdev, rtd); in create_page_table()
37 return snd_sof_create_page_table(sdev, dmab, in create_page_table()
44 struct snd_sof_dev *sdev = spcm->sdev; in sof_pcm_dsp_params() local
46 int ret = snd_sof_ipc_pcm_params(sdev, substream, reply); in sof_pcm_dsp_params()
49 dev_err(sdev->dev, "error: got wrong reply for PCM %d\n", in sof_pcm_dsp_params()
75 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component); in snd_sof_pcm_period_elapsed() local
78 spcm = snd_sof_find_spcm_dai(sdev, rtd); in snd_sof_pcm_period_elapsed()
80 dev_err(sdev->dev, in snd_sof_pcm_period_elapsed()
105 struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component); in sof_pcm_hw_params() local
[all …]
Ddebug.c25 static int sof_debug_ipc_flood_test(struct snd_sof_dev *sdev, in sof_debug_ipc_flood_test() argument
52 ret = sof_ipc_tx_message(sdev->ipc, hdr.cmd, &hdr, hdr.size, in sof_debug_ipc_flood_test()
79 dev_err(sdev->dev, in sof_debug_ipc_flood_test()
93 dev_dbg(sdev->dev, "IPC Flood test duration: %lums\n", in sof_debug_ipc_flood_test()
99 dev_dbg(sdev->dev, in sof_debug_ipc_flood_test()
102 dev_dbg(sdev->dev, "Max response time: %lluns\n", in sof_debug_ipc_flood_test()
104 dev_dbg(sdev->dev, "Min response time: %lluns\n", in sof_debug_ipc_flood_test()
127 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_write() local
192 ret = pm_runtime_get_sync(sdev->dev); in sof_dfsentry_write()
194 dev_err_ratelimited(sdev->dev, in sof_dfsentry_write()
[all …]
Dtopology.c56 struct snd_sof_dev *sdev = swidget->sdev; in ipc_pcm_params() local
65 spcm = snd_sof_find_spcm_name(sdev, swidget->widget->sname); in ipc_pcm_params()
67 dev_err(sdev->dev, "error: cannot find PCM for %s\n", in ipc_pcm_params()
102 ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm), in ipc_pcm_params()
105 dev_err(sdev->dev, "error: pcm params failed for %s\n", in ipc_pcm_params()
114 struct snd_sof_dev *sdev = swidget->sdev; in ipc_trigger() local
125 ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, in ipc_trigger()
128 dev_err(sdev->dev, "error: failed to trigger %s\n", in ipc_trigger()
138 struct snd_sof_dev *sdev; in sof_keyword_dapm_event() local
144 sdev = swidget->sdev; in sof_keyword_dapm_event()
[all …]
/sound/soc/sof/intel/
Dbdw.c71 static void bdw_host_done(struct snd_sof_dev *sdev);
72 static void bdw_dsp_done(struct snd_sof_dev *sdev);
73 static void bdw_get_reply(struct snd_sof_dev *sdev);
79 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument
82 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run()
87 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run()
94 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument
97 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset()
105 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset()
112 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument
[all …]
Dhda.c83 static void hda_dsp_get_status_skl(struct snd_sof_dev *sdev) in hda_dsp_get_status_skl() argument
88 status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_get_status_skl()
93 dev_err(sdev->dev, "%s - code %8.8x\n", in hda_dsp_get_status_skl()
100 dev_dbg(sdev->dev, "unknown ROM status value %8.8x\n", status); in hda_dsp_get_status_skl()
103 static void hda_dsp_get_status(struct snd_sof_dev *sdev) in hda_dsp_get_status() argument
108 status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_get_status()
113 dev_err(sdev->dev, "%s - code %8.8x\n", in hda_dsp_get_status()
120 dev_dbg(sdev->dev, "unknown ROM status value %8.8x\n", status); in hda_dsp_get_status()
123 static void hda_dsp_get_registers(struct snd_sof_dev *sdev, in hda_dsp_get_registers() argument
128 u32 offset = sdev->dsp_oops_offset; in hda_dsp_get_registers()
[all …]
Dhda-dsp.c27 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument
35 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
40 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
47 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter()
51 dev_err(sdev->dev, in hda_dsp_core_reset_enter()
60 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument
67 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
74 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
81 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave()
84 dev_err(sdev->dev, in hda_dsp_core_reset_leave()
[all …]
Dbyt.c110 static void byt_host_done(struct snd_sof_dev *sdev);
111 static void byt_dsp_done(struct snd_sof_dev *sdev);
112 static void byt_get_reply(struct snd_sof_dev *sdev);
118 static void byt_get_registers(struct snd_sof_dev *sdev, in byt_get_registers() argument
123 u32 offset = sdev->dsp_oops_offset; in byt_get_registers()
126 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in byt_get_registers()
132 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in byt_get_registers()
137 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in byt_get_registers()
141 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in byt_get_registers()
144 static void byt_dump(struct snd_sof_dev *sdev, u32 flags) in byt_dump() argument
[all …]
Dhda-loader.c26 static int cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format, in cl_stream_prepare() argument
32 struct pci_dev *pci = to_pci_dev(sdev->dev); in cl_stream_prepare()
36 dev_err(sdev->dev, "error: code loading DMA is playback only\n"); in cl_stream_prepare()
40 dsp_stream = hda_dsp_stream_get(sdev, direction); in cl_stream_prepare()
43 dev_err(sdev->dev, "error: no stream available\n"); in cl_stream_prepare()
52 dev_err(sdev->dev, "error: memory alloc failed: %x\n", ret); in cl_stream_prepare()
60 ret = hda_dsp_stream_hw_params(sdev, dsp_stream, dmab, NULL); in cl_stream_prepare()
62 dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret); in cl_stream_prepare()
66 hda_dsp_stream_spib_config(sdev, dsp_stream, HDA_DSP_SPIB_ENABLE, size); in cl_stream_prepare()
71 hda_dsp_stream_put(sdev, direction, hstream->stream_tag); in cl_stream_prepare()
[all …]
Dhda-ipc.c21 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done() argument
27 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done()
33 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done()
39 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done() argument
45 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done()
51 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done()
57 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg() argument
60 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg()
62 snd_sof_dsp_write(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI, in hda_dsp_ipc_send_msg()
68 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev) in hda_dsp_ipc_get_reply() argument
[all …]
Dhda.h421 struct snd_sof_dev *sdev; member
440 int hda_dsp_probe(struct snd_sof_dev *sdev);
441 int hda_dsp_remove(struct snd_sof_dev *sdev);
442 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev,
444 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev,
446 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
447 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
448 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
449 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
450 int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask);
[all …]
Dhda-ctrl.c27 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset) in hda_dsp_ctrl_link_reset() argument
37 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL, in hda_dsp_ctrl_link_reset()
43 gctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL); in hda_dsp_ctrl_link_reset()
50 dev_err(sdev->dev, "error: failed to %s HDA controller gctl 0x%x\n", in hda_dsp_ctrl_link_reset()
55 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev) in hda_dsp_ctrl_get_caps() argument
57 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps()
61 offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH); in hda_dsp_ctrl_get_caps()
64 cap = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, offset); in hda_dsp_ctrl_get_caps()
66 dev_dbg(sdev->dev, "checking for capabilities at offset 0x%x\n", in hda_dsp_ctrl_get_caps()
73 dev_dbg(sdev->dev, "found DSP capability at 0x%x\n", in hda_dsp_ctrl_get_caps()
[all …]
Dhda-stream.c28 static int hda_setup_bdle(struct snd_sof_dev *sdev, in hda_setup_bdle() argument
34 struct hdac_bus *bus = sof_to_bus(sdev); in hda_setup_bdle()
42 dev_err(sdev->dev, "error: stream frags exceeded\n"); in hda_setup_bdle()
67 dev_vdbg(sdev->dev, "bdl, frags:%d, chunk size:0x%x;\n", in hda_setup_bdle()
79 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev, in hda_dsp_stream_setup_bdl() argument
83 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_stream_setup_bdl()
89 dev_dbg(sdev->dev, "period_bytes:0x%x\n", period_bytes); in hda_dsp_stream_setup_bdl()
95 dev_dbg(sdev->dev, "periods:%d\n", periods); in hda_dsp_stream_setup_bdl()
116 offset = hda_setup_bdle(sdev, dmab, in hda_dsp_stream_setup_bdl()
120 offset = hda_setup_bdle(sdev, dmab, in hda_dsp_stream_setup_bdl()
[all …]
Dcnl.c27 static void cnl_ipc_host_done(struct snd_sof_dev *sdev);
28 static void cnl_ipc_dsp_done(struct snd_sof_dev *sdev);
32 struct snd_sof_dev *sdev = context; in cnl_ipc_irq_thread() local
41 hipcida = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDA); in cnl_ipc_irq_thread()
42 hipctdr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDR); in cnl_ipc_irq_thread()
43 hipctdd = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDD); in cnl_ipc_irq_thread()
44 hipci = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDR); in cnl_ipc_irq_thread()
51 dev_vdbg(sdev->dev, in cnl_ipc_irq_thread()
56 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cnl_ipc_irq_thread()
60 spin_lock_irq(&sdev->ipc_lock); in cnl_ipc_irq_thread()
[all …]
Dhda-trace.c22 static int hda_dsp_trace_prepare(struct snd_sof_dev *sdev) in hda_dsp_trace_prepare() argument
24 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_trace_prepare()
27 struct snd_dma_buffer *dmab = &sdev->dmatb; in hda_dsp_trace_prepare()
31 hstream->bufsize = sdev->dmatb.bytes; in hda_dsp_trace_prepare()
33 ret = hda_dsp_stream_hw_params(sdev, stream, dmab, NULL); in hda_dsp_trace_prepare()
35 dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret); in hda_dsp_trace_prepare()
40 int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag) in hda_dsp_trace_init() argument
42 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_trace_init()
45 hda->dtrace_stream = hda_dsp_stream_get(sdev, in hda_dsp_trace_init()
49 dev_err(sdev->dev, in hda_dsp_trace_init()
[all …]
Dhda-codec.c42 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) in hda_codec_jack_wake_enable() argument
44 struct hda_bus *hbus = sof_to_hbus(sdev); in hda_codec_jack_wake_enable()
45 struct hdac_bus *bus = sof_to_bus(sdev); in hda_codec_jack_wake_enable()
57 void hda_codec_jack_check(struct snd_sof_dev *sdev) in hda_codec_jack_check() argument
59 struct hda_bus *hbus = sof_to_hbus(sdev); in hda_codec_jack_check()
60 struct hdac_bus *bus = sof_to_bus(sdev); in hda_codec_jack_check()
76 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) {} in hda_codec_jack_wake_enable() argument
77 void hda_codec_jack_check(struct snd_sof_dev *sdev) {} in hda_codec_jack_check() argument
83 static int hda_codec_probe(struct snd_sof_dev *sdev, int address) in hda_codec_probe() argument
88 struct hda_bus *hbus = sof_to_hbus(sdev); in hda_codec_probe()
[all …]
Dhda-pcm.c29 static inline u32 get_mult_div(struct snd_sof_dev *sdev, int rate) in get_mult_div() argument
57 dev_warn(sdev->dev, "can't find div rate %d using 48kHz\n", in get_mult_div()
63 static inline u32 get_bits(struct snd_sof_dev *sdev, int sample_bits) in get_bits() argument
77 dev_warn(sdev->dev, "can't find %d bits using 16bit\n", in get_bits()
83 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev, in hda_dsp_pcm_hw_params() argument
90 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_pcm_hw_params()
96 rate = get_mult_div(sdev, params_rate(params)); in hda_dsp_pcm_hw_params()
97 bits = get_bits(sdev, params_width(params)); in hda_dsp_pcm_hw_params()
110 ret = hda_dsp_stream_hw_params(sdev, stream, dmab, params); in hda_dsp_pcm_hw_params()
112 dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret); in hda_dsp_pcm_hw_params()
[all …]
/sound/soc/sof/imx/
Dimx8.c44 struct snd_sof_dev *sdev; member
60 static void imx8_get_reply(struct snd_sof_dev *sdev) in imx8_get_reply() argument
62 struct snd_sof_ipc_msg *msg = sdev->msg; in imx8_get_reply()
67 dev_warn(sdev->dev, "unexpected ipc interrupt\n"); in imx8_get_reply()
72 sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply)); in imx8_get_reply()
80 dev_err(sdev->dev, "error: reply expected %zu got %u bytes\n", in imx8_get_reply()
87 sof_mailbox_read(sdev, sdev->host_box.offset, in imx8_get_reply()
94 static int imx8_get_mailbox_offset(struct snd_sof_dev *sdev) in imx8_get_mailbox_offset() argument
99 static int imx8_get_window_offset(struct snd_sof_dev *sdev, u32 id) in imx8_get_window_offset() argument
109 spin_lock_irqsave(&priv->sdev->ipc_lock, flags); in imx8_dsp_handle_reply()
[all …]

12