Projectname
large_stringclasses
15 values
Filepath
large_stringlengths
4
106
⌀
Function
large_stringlengths
11
3.45k
Label
list
Linux Kernel
sound/soc/img/img-i2s-in.c
static inline void img_i2s_in_writel(struct img_i2s_in *i2s, u32 val, u32 reg) { writel(val, i2s->base + reg); }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-i2s-in.c
static inline void img_i2s_in_ch_enable(struct img_i2s_in *i2s, u32 chan) { u32 reg; reg = img_i2s_in_ch_readl(i2s, chan, IMG_I2S_IN_CH_CTL); reg |= IMG_I2S_IN_CH_CTL_ME_MASK; img_i2s_in_ch_writel(i2s, chan, reg, IMG_I2S_IN_CH_CTL); }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-i2s-in.c
static inline void img_i2s_in_enable(struct img_i2s_in *i2s) { u32 reg; reg = img_i2s_in_readl(i2s, IMG_I2S_IN_CTL); reg |= IMG_I2S_IN_CTL_ME_MASK; img_i2s_in_writel(i2s, reg, IMG_I2S_IN_CTL); }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-i2s-in.c
static int img_i2s_in_resume(struct device *dev) { struct img_i2s_in *i2s = dev_get_drvdata(dev); int i, ret; u32 reg; ret = img_i2s_in_runtime_resume(dev); if (ret) return ret; for (i = 0; i < i2s->max_i2s_chan; i++) { reg = i2s->suspend_ch_ctl[i]; img_i2s_in_ch_writel(i2s, i, reg, IMG_I2S_I...
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-i2s-out.c
static int img_i2s_out_runtime_resume(struct device *dev) { struct img_i2s_out *i2s = dev_get_drvdata(dev); int ret; ret = clk_prepare_enable(i2s->clk_sys); if (ret) { dev_err(dev, "clk_enable failed: %d\n", ret); return ret; } ret = clk_prepare_enable(i2s->clk_ref); if (ret) { dev_err(dev,...
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-i2s-out.c
static inline u32 img_i2s_out_readl(struct img_i2s_out *i2s, u32 reg) { return readl(i2s->base + reg); }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-i2s-out.c
static inline void img_i2s_out_ch_writel(struct img_i2s_out *i2s, u32 chan, u32 val, u32 reg) { writel(val, i2s->channel_base + (chan * IMG_I2S_OUT_CH_STRIDE) + reg); }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-i2s-out.c
static int img_i2s_out_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) { struct img_i2s_out *i2s = snd_soc_dai_get_drvdata(dai); u32 reg; switch (cmd) { case SNDRV_PCM_TRIGGER_START: case SNDRV_PCM_TRIGGER_RESUME: case SNDRV_PCM_TRIGGER_PAUSE_R...
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-parallel-out.c
static int img_prl_out_resume(struct device *dev) { struct img_prl_out *prl = dev_get_drvdata(dev); int ret; ret = clk_prepare_enable(prl->clk_ref); if (ret) { dev_err(dev, "clk_enable failed: %d\n", ret); return ret; } return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-in.c
static int img_spdif_in_runtime_suspend(struct device *dev) { struct img_spdif_in *spdif = dev_get_drvdata(dev); clk_disable_unprepare(spdif->clk_sys); return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-in.c
static int img_spdif_in_runtime_resume(struct device *dev) { struct img_spdif_in *spdif = dev_get_drvdata(dev); int ret; ret = clk_prepare_enable(spdif->clk_sys); if (ret) { dev_err(dev, "Unable to enable sys clock\n"); return ret; } return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-in.c
static int img_spdif_in_iec958_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) { uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; uinfo->count = 1; return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-in.c
static int img_spdif_in_get_multi_freq(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); unsigned long flags; spin_lock_irqsave(&...
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-in.c
static int img_spdif_in_set_lock_release(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(cpu_dai); unsigned long flags; u32 reg; spin...
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-in.c
static int img_spdif_in_resume(struct device *dev) { struct img_spdif_in *spdif = dev_get_drvdata(dev); int i, ret; ret = img_spdif_in_runtime_resume(dev); if (ret) return ret; for (i = 0; i < IMG_SPDIF_IN_NUM_ACLKGEN; i++) img_spdif_in_aclkgen_writel(spdif, i); img_spdif_in_writel(spdif, spdif-...
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-out.c
static int img_spdif_out_runtime_resume(struct device *dev) { struct img_spdif_out *spdif = dev_get_drvdata(dev); int ret; ret = clk_prepare_enable(spdif->clk_sys); if (ret) { dev_err(dev, "clk_enable failed: %d\n", ret); return ret; } ret = clk_prepare_enable(spdif->clk_ref); if (ret) { de...
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-out.c
static inline void img_spdif_out_writel(struct img_spdif_out *spdif, u32 val, u32 reg) { writel(val, spdif->base + reg); }
[ 0, 0 ]
Linux Kernel
sound/soc/img/img-spdif-out.c
static void img_spdif_out_reset(struct img_spdif_out *spdif) { u32 ctl, status_low, status_high; ctl = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CTL) & ~IMG_SPDIF_OUT_CTL_SRT_MASK; status_low = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSL); status_high = img_spdif_out_readl(spdif, IMG_SPDIF_OUT_CSH_UV)...
[ 0, 0 ]
Linux Kernel
sound/soc/img/pistachio-internal-dac.c
static void pistachio_internal_dac_reg_writel(struct regmap *top_regs, u32 val, u32 reg) { regmap_update_bits(top_regs, PISTACHIO_INTERNAL_DAC_GTI_CTRL, PISTACHIO_INTERNAL_DAC_GTI_CTRL_ADDR_MASK, reg << PISTACHIO_INTERNAL_DAC_GTI...
[ 0, 0 ]
Linux Kernel
sound/soc/img/pistachio-internal-dac.c
static int pistachio_internal_dac_codec_probe(struct snd_soc_component *component) { struct pistachio_internal_dac *dac = snd_soc_component_get_drvdata(component); snd_soc_component_init_regmap(component, dac->regmap); return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/img/pistachio-internal-dac.c
static int pistachio_internal_dac_remove(struct platform_device *pdev) { struct pistachio_internal_dac *dac = dev_get_drvdata(&pdev->dev); pm_runtime_disable(&pdev->dev); pistachio_internal_dac_pwr_off(dac); regulator_disable(dac->supply); return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/img/pistachio-internal-dac.c
static int pistachio_internal_dac_rt_suspend(struct device *dev) { struct pistachio_internal_dac *dac = dev_get_drvdata(dev); pistachio_internal_dac_pwr_off(dac); regulator_disable(dac->supply); return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst.c
void sst_process_pending_msg(struct work_struct *work) { struct intel_sst_drv *ctx = container_of(work, struct intel_sst_drv, ipc_post_msg_wq); ctx->ops->post_message(ctx, NULL, false); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst.c
int sst_alloc_drv_context(struct intel_sst_drv **ctx, struct device *dev, unsigned int dev_id) { *ctx = devm_kzalloc(dev, sizeof(struct intel_sst_drv), GFP_KERNEL); if (!(*ctx)) return -ENOMEM; (*ctx)->dev = dev; (*ctx)->dev_id = dev_id; return 0; }
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst.c
void sst_configure_runtime_pm(struct intel_sst_drv *ctx) { pm_runtime_set_autosuspend_delay(ctx->dev, SST_SUSPEND_DELAY); pm_runtime_use_autosuspend(ctx->dev); if (!acpi_disabled) pm_runtime_set_active(ctx->dev); pm_runtime_enable(ctx->dev); if (acpi_disabled) pm_runtime_set_active(ctx->dev); els...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_acpi.c
static int sst_acpi_remove(struct platform_device *pdev) { struct intel_sst_drv *ctx; ctx = platform_get_drvdata(pdev); sst_context_cleanup(ctx); platform_set_drvdata(pdev, NULL); return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
int sst_get_num_channel(struct snd_sst_params *str_param) { switch (str_param->codec) { case SST_CODEC_TYPE_PCM: return str_param->sparams.uc.pcm_params.num_chan; case SST_CODEC_TYPE_MP3: return str_param->sparams.uc.mp3_params.num_chan; case SST_CODEC_TYPE_AAC: return str_param->sparams.uc.aac_para...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_cdev_set_metadata(struct device *dev, unsigned int str_id, struct snd_compr_metadata *metadata) { int retval = 0; struct stream_info *str_info; struct intel_sst_drv *ctx = dev_get_drvdata(dev); dev_dbg(dev, "set metadata for stream %d\n", str_id); str_info = ...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_cdev_stream_pause_release(struct device *dev, unsigned int str_id) { struct intel_sst_drv *ctx = dev_get_drvdata(dev); return sst_resume_stream(ctx, str_id); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_cdev_stream_partial_drain(struct device *dev, unsigned int str_id) { struct intel_sst_drv *ctx = dev_get_drvdata(dev); return sst_drain_stream(ctx, str_id, true); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_close_pcm_stream(struct device *dev, unsigned int str_id) { struct stream_info *stream; int retval = 0; struct intel_sst_drv *ctx = dev_get_drvdata(dev); stream = get_stream_info(ctx, str_id); if (!stream) { dev_err(ctx->dev, "stream info is NULL for str %d!!!\n", str_id); return -EINV...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static inline int sst_calc_tstamp(struct intel_sst_drv *ctx, struct pcm_stream_info *info, struct snd_pcm_substream *substream, struct snd_sst_tstamp *fw_tstamp) { size_t delay_bytes, delay_frames; size_t buffer_s...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_stream_start(struct device *dev, int str_id) { struct stream_info *str_info; struct intel_sst_drv *ctx = dev_get_drvdata(dev); if (ctx->sst_state != SST_FW_RUNNING) return 0; str_info = get_stream_info(ctx, str_id); if (!str_info) return -EINVAL; str_info->prev = str_info->status; ...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_stream_pause(struct device *dev, int str_id) { struct stream_info *str_info; struct intel_sst_drv *ctx = dev_get_drvdata(dev); if (ctx->sst_state != SST_FW_RUNNING) return 0; str_info = get_stream_info(ctx, str_id); if (!str_info) return -EINVAL; return sst_pause_stream(ctx, str_i...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_stream_init(struct device *dev, struct pcm_stream_info *str_info) { int str_id = 0; struct stream_info *stream; struct intel_sst_drv *ctx = dev_get_drvdata(dev); str_id = str_info->str_id; if (ctx->sst_state != SST_FW_RUNNING) return 0; stream = get_stream_i...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_drv_interface.c
static int sst_send_byte_stream(struct device *dev, struct snd_sst_bytes_v2 *bytes) { int ret_val = 0; struct intel_sst_drv *ctx = dev_get_drvdata(dev); if (NULL == bytes) return -EINVAL; ret_val = pm_runtime_resume_and_get(ctx->dev); if (ret_val < 0) return ret_val; ...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_ipc.c
int sst_free_block(struct intel_sst_drv *ctx, struct sst_block *freed) { struct sst_block *block, *__block; dev_dbg(ctx->dev, "Enter\n"); spin_lock_bh(&ctx->block_lock); list_for_each_entry_safe(block, __block, &ctx->block_list, node) { if (block == freed) { pr_debug("pvt_id freed --> %d\n", freed->d...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_ipc.c
void intel_sst_clear_intr_mrfld(struct intel_sst_drv *sst_drv_ctx) { union interrupt_reg_mrfld isr; union interrupt_reg_mrfld imr; union ipc_header_mrfld clear_ipc; unsigned long irq_flags; spin_lock_irqsave(&sst_drv_ctx->ipc_spin_lock, irq_flags); imr.full = sst_shim_read64(sst_drv_ctx->shim, SST_IMRX); ...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_ipc.c
static void process_fw_init(struct intel_sst_drv *sst_drv_ctx, void *msg) { struct ipc_header_fw_init *init = (struct ipc_header_fw_init *)msg; int retval = 0; dev_dbg(sst_drv_ctx->dev, "*** FW Init msg came***\n"); if (init->result) { sst_set_fw_state_locked(sst_drv_ctx, SST_RESET); dev_err(sst_drv_ct...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_loader.c
void memcpy32_toio(void __iomem *dst, const void *src, int count) { __iowrite32_copy(dst, src, count / 4); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_loader.c
void memcpy32_fromio(void *dst, const void __iomem *src, int count) { __ioread32_copy(dst, src, count / 4); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_loader.c
int intel_sst_reset_dsp_mrfld(struct intel_sst_drv *sst_drv_ctx) { union config_status_reg_mrfld csr; dev_dbg(sst_drv_ctx->dev, "sst: Resetting the DSP in mrfld\n"); csr.full = sst_shim_read64(sst_drv_ctx->shim, SST_CSR); dev_dbg(sst_drv_ctx->dev, "value:0x%llx\n", csr.full); csr.full |= 0x7; sst_shim_wr...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_loader.c
void sst_firmware_load_cb(const struct firmware *fw, void *context) { struct intel_sst_drv *ctx = context; dev_dbg(ctx->dev, "Enter\n"); if (fw == NULL) { dev_err(ctx->dev, "request fw failed\n"); return; } mutex_lock(&ctx->sst_lock); if (ctx->sst_state != SST_RESET || ctx->fw_in_mem != NULL) {...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_loader.c
void sst_post_download_mrfld(struct intel_sst_drv *ctx) { sst_dccm_config_write(ctx->dram, ctx->ddr_base); dev_dbg(ctx->dev, "config written to DCCM\n"); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_loader.c
int sst_load_fw(struct intel_sst_drv *sst_drv_ctx) { int ret_val = 0; struct sst_block *block; dev_dbg(sst_drv_ctx->dev, "sst_load_fw\n"); if (sst_drv_ctx->sst_state != SST_RESET) return -EAGAIN; if (!sst_drv_ctx->fw_in_mem) { dev_dbg(sst_drv_ctx->dev, "sst: FW not in memory retry to download\n"); ...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_pvt.c
u64 sst_shim_read64(void __iomem *addr, int offset) { u64 val = 0; memcpy_fromio(&val, addr + offset, sizeof(val)); return val; }
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_pvt.c
int sst_wait_timeout(struct intel_sst_drv *sst_drv_ctx, struct sst_block *block) { int retval = 0; dev_dbg(sst_drv_ctx->dev, "waiting for condition %x ipc %d drv_id %d\n", block->condition, block->msg_id, block->drv_id); if (wait_event_timeout(sst_drv_ctx->wait_queue, block->condit...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_pvt.c
int sst_create_ipc_msg(struct ipc_post **arg, bool large) { struct ipc_post *msg; msg = kzalloc(sizeof(*msg), GFP_ATOMIC); if (!msg) return -ENOMEM; if (large) { msg->mailbox_data = kzalloc(SST_MAILBOX_SIZE, GFP_ATOMIC); if (!msg->mailbox_data) { kfree(msg); return -ENOMEM; } } el...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_pvt.c
void sst_clean_stream(struct stream_info *stream) { stream->status = STREAM_UN_INIT; stream->prev = STREAM_UN_INIT; mutex_lock(&stream->lock); stream->cumm_bytes = 0; mutex_unlock(&stream->lock); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_pvt.c
int sst_pm_runtime_put(struct intel_sst_drv *sst_drv) { int ret; pm_runtime_mark_last_busy(sst_drv->dev); ret = pm_runtime_put_autosuspend(sst_drv->dev); if (ret < 0) return ret; return 0; }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_pvt.c
void sst_fill_header_dsp(struct ipc_dsp_hdr *dsp, int msg, int pipe_id, int len) { dsp->cmd_id = msg; dsp->mod_index_id = 0xff; dsp->pipe_id = pipe_id; dsp->length = len; dsp->mod_id = 0; } #define SST_MAX_BLOCKS 15
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_pvt.c
void sst_add_to_dispatch_list_and_post(struct intel_sst_drv *sst, struct ipc_post *msg) { unsigned long irq_flags; spin_lock_irqsave(&sst->ipc_spin_lock, irq_flags); list_add_tail(&msg->node, &sst->ipc_dispatch_list); spin_unlock_irqrestore(&sst->ipc_spin_lock, irq_flags...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst/sst_stream.c
int sst_free_stream(struct intel_sst_drv *sst_drv_ctx, int str_id) { int retval = 0; struct stream_info *str_info; dev_dbg(sst_drv_ctx->dev, "SST DBG:sst_free_stream for %d\n", str_id); mutex_lock(&sst_drv_ctx->sst_lock); if (sst_drv_ctx->sst_state == SST_RESET) { mutex_unlock(&sst_drv_ctx->sst_lock); ...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_fill_and_send_cmd(struct sst_data *drv, u8 ipc_msg, u8 block, u8 task_id, u8 pipe_id, void *cmd_data, u16 len) { int ret; mutex_lock(&drv->lock); ret = sst_fill_and_send_cmd_unlocked(drv, ipc_msg, block, task_id, pipe_id, ...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_check_and_send_slot_map(struct sst_data *drv, struct snd_kcontrol *kcontrol) { struct sst_enum *e = (void *)kcontrol->private_value; int ret = 0; if (e->w && e->w->power) ret = sst_send_slot_map(drv); else if (!e->w) dev_err(&drv->pdev->dev, "Slot c...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_slot_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct snd_soc_component *c = snd_soc_kcontrol_component(kcontrol); struct sst_data *drv = snd_soc_component_get_drvdata(c); struct sst_enum *e = (void *)kcontrol->private_value; int i, ret = 0;...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_send_algo_cmd(struct sst_data *drv, struct sst_algo_control *bc) { int len, ret = 0; struct sst_cmd_set_params *cmd; len = sizeof(cmd->dst) + sizeof(cmd->command_id) + bc->max; cmd = kzalloc(len, GFP_KERNEL); if (cmd == NULL) return -ENOMEM; SST_FILL_DESTIN...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_find_and_send_pipe_algo(struct sst_data *drv, const char *pipe, struct sst_ids *ids) { int ret = 0; struct sst_algo_control *bc; struct sst_module *algo; dev_dbg(&drv->pdev->dev, "Enter: widget=%s\n", pipe); list_for_each_entry(algo, &ids->algo_list, nod...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_algo_control_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct sst_algo_control *bc = (void *)kcontrol->private_value; struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); switch (bc->type) { case SST_ALGO_PARAMS: ...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_algo_control_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { int ret = 0; struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); struct sst_data *drv = snd_soc_component_get_drvdata(cmpnt); struct sst_algo_control *bc = (v...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
int sst_handle_vb_timer(struct snd_soc_dai *dai, bool enable) { int ret = 0; struct sst_cmd_generic cmd; struct sst_data *drv = snd_soc_dai_get_drvdata(dai); static int timer_usage; if (enable) cmd.header.command_id = SBA_VB_START; else cmd.header.command_id = SBA_IDLE; dev_dbg(dai->dev, "enable=...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
void sst_fill_ssp_defaults(struct snd_soc_dai *dai) { const struct sst_ssp_config *config; struct sst_data *ctx = snd_soc_dai_get_drvdata(dai); config = &sst_ssp_configs; ctx->ssp_cmd.selection = config->ssp_id; ctx->ssp_cmd.nb_bits_per_slots = config->bits_per_slot; ctx->ssp_cmd.nb_slots = config->slots...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_fill_module_list(struct snd_kcontrol *kctl, struct snd_soc_dapm_widget *w, int type) { struct sst_module *module; struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); struct sst_ids *ids = w->priv; int ret = 0; module = devm_kzalloc(c->dev, sizeof(*...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-atom-controls.c
static int sst_fill_widget_module_info(struct snd_soc_dapm_widget *w, struct snd_soc_component *component) { struct snd_kcontrol *kctl; int index, ret = 0; struct snd_card *card = component->card->snd_card; char *idx; down_read(&card->controls_rwsem); list_for_each_e...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-compress.c
static int sst_platform_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) { struct sst_runtime_stream *stream; stream = cstream->runtime->private_data; stream->compr_op...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-compress.c
static int sst_platform_compr_ack(struct snd_soc_component *component, struct snd_compr_stream *cstream, size_t bytes) { struct sst_runtime_stream *stream; stream = cstream->runtime->private_data; stream->compr_ops->ack(sst->dev, stream->id, (u...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-compress.c
static int sst_platform_compr_get_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_caps *caps) { struct sst_runtime_stream *stream = cstream->runtime->private_data; return stream->compr_ops->g...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-pcm.c
static void sst_period_elapsed(void *arg) { struct snd_pcm_substream *substream = arg; struct sst_runtime_stream *stream; int status; if (!substream || !substream->runtime) return; stream = substream->runtime->private_data; if (!stream) return; status = sst_get_stream_status(stream); if (statu...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-pcm.c
static void power_down_sst(struct sst_runtime_stream *stream) { stream->ops->power(sst->dev, false); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-pcm.c
static void sst_media_close(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { struct sst_runtime_stream *stream; int str_id; stream = substream->runtime->private_data; power_down_sst(stream); str_id = stream->stream_info.str_id; if (str_id) stream->ops->close...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-pcm.c
static int sst_media_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { struct sst_runtime_stream *stream; int ret_val, str_id; stream = substream->runtime->private_data; str_id = stream->stream_info.str_id; if (stream->stream_info.str_id) { ret_val = st...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-pcm.c
static int sst_be_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) { int ret = 0; if (snd_soc_dai_active(dai) == 1) ret = send_ssp_cmd(dai, dai->name, 1); return ret; }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/atom/sst-mfld-platform-pcm.c
static void sst_soc_remove(struct snd_soc_component *component) { struct sst_data *drv = dev_get_drvdata(component->dev); drv->soc_card = NULL; }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/apl.c
static int apl_enable_logs(struct avs_dev *adev, enum avs_log_enable enable, u32 aging_period, u32 fifo_full_period, unsigned long resource_mask, u32 *priorities) { struct apl_log_state_info *info; u32 size, num_cores = adev->hw_cfg.dsp_cores; int ret, i; ...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/da7219.c
static void avs_da7219_codec_exit(struct snd_soc_pcm_runtime *rtd) { snd_soc_component_set_jack(asoc_rtd_to_codec(rtd, 0)->component, NULL, NULL); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/da7219.c
static int avs_card_suspend_pre(struct snd_soc_card *card) { struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME); return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/da7219.c
static int avs_card_resume_post(struct snd_soc_card *card) { struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME); struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card); return snd_soc_component_set_jack(codec_dai->component, jack, NULL); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/da7219.c
static int avs_da7219_probe(struct platform_device *pdev) { struct snd_soc_dapm_route *routes; struct snd_soc_dai_link *dai_link; struct snd_soc_acpi_mach *mach; struct snd_soc_card *card; struct snd_soc_jack *jack; struct device *dev = &pdev->dev; const char *pname; int num_routes, ssp_port, ret; m...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/dmic.c
static int avs_dmic_probe(struct platform_device *pdev) { struct snd_soc_acpi_mach *mach; struct snd_soc_card *card; struct device *dev = &pdev->dev; int ret; mach = dev_get_platdata(dev); card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); if (!card) return -ENOMEM; card->name = "avs_dmic"; ...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/hdaudio.c
static struct snd_pcm *avs_card_hdmi_pcm_at(struct snd_soc_card *card, int hdmi_idx) { struct snd_soc_pcm_runtime *rtd; int dir = SNDRV_PCM_STREAM_PLAYBACK; for_each_card_rtds(card, rtd) { struct snd_pcm *spcm; int ret, n; spcm = rtd->pcm ? rtd->pcm->stre...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/max98373.c
static int avs_max98373_be_fixup(struct snd_soc_pcm_runtime *runrime, struct snd_pcm_hw_params *params) { struct snd_interval *rate, *channels; struct snd_mask *fmt; rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); channels = hw_param_interval(params, SNDRV_PCM_HW_PAR...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/max98373.c
static int avs_create_dapm_routes(struct device *dev, int ssp_port, struct snd_soc_dapm_route **routes, int *num_routes) { struct snd_soc_dapm_route *dr; const int num_base = ARRAY_SIZE(card_base_routes); const int num_dr = num_base + 2; int i...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/nau8825.c
static int avs_nau8825_codec_init(struct snd_soc_pcm_runtime *runtime) { struct snd_soc_card *card = runtime->card; struct snd_soc_jack_pin *pins; struct snd_soc_jack *jack; int num_pins, ret; jack = snd_soc_card_get_drvdata(card); num_pins = ARRAY_SIZE(card_headset_pins); pins = devm_kmemdup(card->dev,...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/nau8825.c
static int avs_nau8825_be_fixup(struct snd_soc_pcm_runtime *runtime, struct snd_pcm_hw_params *params) { struct snd_interval *rate, *channels; struct snd_mask *fmt; rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); channels = hw_param_interval(params, SNDRV_PCM_HW_PARAM...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/nau8825.c
static int avs_create_dapm_routes(struct device *dev, int ssp_port, struct snd_soc_dapm_route **routes, int *num_routes) { struct snd_soc_dapm_route *dr; const int num_base = ARRAY_SIZE(card_base_routes); const int num_dr = num_base + 2; int i...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/nau8825.c
static int avs_card_suspend_pre(struct snd_soc_card *card) { struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI); return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/nau8825.c
static int avs_nau8825_probe(struct platform_device *pdev) { struct snd_soc_dapm_route *routes; struct snd_soc_dai_link *dai_link; struct snd_soc_acpi_mach *mach; struct snd_soc_card *card; struct snd_soc_jack *jack; struct device *dev = &pdev->dev; const char *pname; int num_routes, ssp_port, ret; ...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt274.c
static int avs_create_dapm_routes(struct device *dev, int ssp_port, struct snd_soc_dapm_route **routes, int *num_routes) { struct snd_soc_dapm_route *dr; const int num_base = ARRAY_SIZE(card_base_routes); const int num_dr = num_base + 2; int i...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt274.c
static int avs_card_suspend_pre(struct snd_soc_card *card) { struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, RT274_CODEC_DAI); return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt274.c
static int avs_rt274_probe(struct platform_device *pdev) { struct snd_soc_dapm_route *routes; struct snd_soc_dai_link *dai_link; struct snd_soc_acpi_mach *mach; struct snd_soc_card *card; struct snd_soc_jack *jack; struct device *dev = &pdev->dev; const char *pname; int num_routes, ssp_port, ret; ma...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt286.c
static int avs_rt286_codec_init(struct snd_soc_pcm_runtime *runtime) { struct snd_soc_card *card = runtime->card; struct snd_soc_jack_pin *pins; struct snd_soc_jack *jack; int num_pins, ret; jack = snd_soc_card_get_drvdata(card); num_pins = ARRAY_SIZE(card_headset_pins); pins = devm_kmemdup(card->dev, ...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt286.c
static int avs_rt286_probe(struct platform_device *pdev) { struct snd_soc_dapm_route *routes; struct snd_soc_dai_link *dai_link; struct snd_soc_acpi_mach *mach; struct snd_soc_card *card; struct snd_soc_jack *jack; struct device *dev = &pdev->dev; const char *pname; int num_routes, ssp_port, ret; ma...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt298.c
static void avs_rt298_codec_exit(struct snd_soc_pcm_runtime *rtd) { snd_soc_component_set_jack(asoc_rtd_to_codec(rtd, 0)->component, NULL, NULL); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt298.c
static int avs_rt298_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); unsigned int clk_freq; int ret; if (dmi_first_match(kbl...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt298.c
static int avs_create_dapm_routes(struct device *dev, int ssp_port, struct snd_soc_dapm_route **routes, int *num_routes) { struct snd_soc_dapm_route *dr; const int num_base = ARRAY_SIZE(card_base_routes); const int num_dr = num_base + 2; int i...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt298.c
static int avs_card_suspend_pre(struct snd_soc_card *card) { struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, RT298_CODEC_DAI); return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); }
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/rt5682.c
static int avs_create_dapm_routes(struct device *dev, int ssp_port, struct snd_soc_dapm_route **routes, int *num_routes) { struct snd_soc_dapm_route *dr; const int num_base = ARRAY_SIZE(card_base_routes); const int num_dr = num_base + 2; int i...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/boards/ssm4567.c
static int avs_ssm4567_be_fixup(struct snd_soc_pcm_runtime *runrime, struct snd_pcm_hw_params *params) { struct snd_interval *rate, *channels; struct snd_mask *fmt; rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); channels = hw_param_interval(params, SNDRV_PCM_HW_PARAM...
[ 0, 0 ]
Linux Kernel
sound/soc/intel/avs/board_selection.c
static int avs_register_hda_board(struct avs_dev *adev, struct hda_codec *codec) { struct snd_soc_acpi_mach mach = {{0}}; struct platform_device *board; struct hdac_device *hdev = &codec->core; char *pname; int ret, id; pname = devm_kasprintf(adev->dev, GFP_KERNEL, "%s-pl...
[ 1, 0 ]
Linux Kernel
sound/soc/intel/avs/board_selection.c
void avs_unregister_all_boards(struct avs_dev *adev) { snd_soc_unregister_component(adev->dev); }
[ 0, 0 ]