Home
last modified time | relevance | path

Searched refs:codec_dev (Results 1 – 18 of 18) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/sound/
H A Drockchip-sound.c19 static struct udevice *i2s_dev, *codec_dev; variable
75 ret = uclass_get_device(UCLASS_CODEC, 0, &codec_dev); in sound_init()
86 sound_hw_params(codec_dev, SAMPLERATE, 16, 2); in sound_init()
88 sound_startup(codec_dev); in sound_init()
/OK3568_Linux_fs/kernel/sound/soc/intel/boards/
H A Dbytcht_es8316.c481 struct device *codec_dev; in snd_byt_cht_es8316_mc_probe() local
552 codec_dev = bus_find_device_by_name(&i2c_bus_type, NULL, codec_name); in snd_byt_cht_es8316_mc_probe()
553 if (!codec_dev) in snd_byt_cht_es8316_mc_probe()
560 ret = device_add_properties(codec_dev, props); in snd_byt_cht_es8316_mc_probe()
562 put_device(codec_dev); in snd_byt_cht_es8316_mc_probe()
567 devm_acpi_dev_add_driver_gpios(codec_dev, byt_cht_es8316_gpios); in snd_byt_cht_es8316_mc_probe()
569 gpiod_get_index(codec_dev, "speaker-enable", 0, in snd_byt_cht_es8316_mc_probe()
572 put_device(codec_dev); in snd_byt_cht_es8316_mc_probe()
H A Dbytcr_rt5651.c891 struct device *codec_dev; in snd_byt_rt5651_mc_probe() local
928 codec_dev = bus_find_device_by_name(&i2c_bus_type, NULL, in snd_byt_rt5651_mc_probe()
930 if (!codec_dev) in snd_byt_rt5651_mc_probe()
999 ret_val = byt_rt5651_add_codec_device_props(codec_dev); in snd_byt_rt5651_mc_probe()
1001 put_device(codec_dev); in snd_byt_rt5651_mc_probe()
1010 devm_acpi_dev_add_driver_gpios(codec_dev, byt_rt5651_gpios); in snd_byt_rt5651_mc_probe()
1012 codec_dev->fwnode, in snd_byt_rt5651_mc_probe()
1027 put_device(codec_dev); in snd_byt_rt5651_mc_probe()
1032 codec_dev->fwnode, in snd_byt_rt5651_mc_probe()
1047 put_device(codec_dev); in snd_byt_rt5651_mc_probe()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/fsl/
H A Dimx-sgtl5000.c56 struct i2c_client *codec_dev; in imx_sgtl5000_probe() local
113 codec_dev = of_find_i2c_device_by_node(codec_np); in imx_sgtl5000_probe()
114 if (!codec_dev) { in imx_sgtl5000_probe()
132 data->codec_clk = clk_get(&codec_dev->dev, NULL); in imx_sgtl5000_probe()
188 put_device(&codec_dev->dev); in imx_sgtl5000_probe()
H A Dfsl-asoc-card.c530 struct device *codec_dev = NULL; in fsl_asoc_card_probe() local
565 codec_dev = &codec_i2c->dev; in fsl_asoc_card_probe()
568 if (!codec_dev) { in fsl_asoc_card_probe()
571 codec_dev = &codec_pdev->dev; in fsl_asoc_card_probe()
582 if (codec_dev) { in fsl_asoc_card_probe()
583 struct clk *codec_clk = clk_get(codec_dev, NULL); in fsl_asoc_card_probe()
687 if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) { in fsl_asoc_card_probe()
/OK3568_Linux_fs/kernel/drivers/staging/greybus/
H A Daudio_topology.c390 struct device *codec_dev = widget->dapm->dev; in gbcodec_mixer_dapm_ctl_get() local
391 struct gbaudio_codec_info *gb = dev_get_drvdata(codec_dev); in gbcodec_mixer_dapm_ctl_get()
394 dev_dbg(codec_dev, "Entered %s:%s\n", __func__, kcontrol->id.name); in gbcodec_mixer_dapm_ctl_get()
417 dev_err_ratelimited(codec_dev, "%d:Error in %s for %s\n", ret, in gbcodec_mixer_dapm_ctl_get()
439 struct device *codec_dev = widget->dapm->dev; in gbcodec_mixer_dapm_ctl_put() local
440 struct gbaudio_codec_info *gb = dev_get_drvdata(codec_dev); in gbcodec_mixer_dapm_ctl_put()
443 dev_dbg(codec_dev, "Entered %s:%s\n", __func__, kcontrol->id.name); in gbcodec_mixer_dapm_ctl_put()
489 dev_err_ratelimited(codec_dev, "%d:Error in %s for %s\n", ret, in gbcodec_mixer_dapm_ctl_put()
722 struct device *codec_dev = widget->dapm->dev; in gbcodec_enum_dapm_ctl_get() local
723 struct gbaudio_codec_info *gb = dev_get_drvdata(codec_dev); in gbcodec_enum_dapm_ctl_get()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/dp/
H A Ddp_display.h14 struct device *codec_dev; member
30 hdmi_codec_plugged_cb fn, struct device *codec_dev);
H A Ddp_display.c635 if (dp_display->plugged_cb && dp_display->codec_dev && in dp_display_handle_plugged_change()
637 dp_display->plugged_cb(dp_display->codec_dev, plugged); in dp_display_handle_plugged_change()
936 hdmi_codec_plugged_cb fn, struct device *codec_dev) in dp_display_set_plugged_cb() argument
941 dp_display->codec_dev = codec_dev; in dp_display_set_plugged_cb()
H A Ddp_audio.c446 struct device *codec_dev) in dp_audio_hook_plugged_cb() argument
464 return dp_display_set_plugged_cb(dp_display, fn, codec_dev); in dp_audio_hook_plugged_cb()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-qp-i2s-audio.c121 struct device *codec_dev) in dw_hdmi_qp_i2s_hook_plugged_cb() argument
126 return dw_hdmi_qp_set_plugged_cb(hdmi, fn, codec_dev); in dw_hdmi_qp_i2s_hook_plugged_cb()
H A Ddw-hdmi-i2s-audio.c191 struct device *codec_dev) in dw_hdmi_i2s_hook_plugged_cb() argument
196 return dw_hdmi_set_plugged_cb(hdmi, fn, codec_dev); in dw_hdmi_i2s_hook_plugged_cb()
H A Ddw-hdmi-qp.c304 struct device *codec_dev; member
324 if (hdmi->plugged_cb && hdmi->codec_dev) in handle_plugged_change()
325 hdmi->plugged_cb(hdmi->codec_dev, plugged); in handle_plugged_change()
329 struct device *codec_dev) in dw_hdmi_qp_set_plugged_cb() argument
335 hdmi->codec_dev = codec_dev; in dw_hdmi_qp_set_plugged_cb()
H A Ddw-hdmi.c327 struct device *codec_dev; member
359 if (hdmi->plugged_cb && hdmi->codec_dev) in handle_plugged_change()
360 hdmi->plugged_cb(hdmi->codec_dev, plugged); in handle_plugged_change()
364 struct device *codec_dev) in dw_hdmi_set_plugged_cb() argument
370 hdmi->codec_dev = codec_dev; in dw_hdmi_set_plugged_cb()
/OK3568_Linux_fs/kernel/include/sound/
H A Dhdmi-codec.h117 struct device *codec_dev);
/OK3568_Linux_fs/kernel/include/drm/bridge/
H A Ddw_hdmi.h283 struct device *codec_dev);
336 struct device *codec_dev);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/mediatek/
H A Dmtk_hdmi.c180 struct device *codec_dev; member
1209 if (hdmi->plugged_cb && hdmi->codec_dev) in mtk_hdmi_update_plugged_status()
1210 hdmi->plugged_cb(hdmi->codec_dev, connected); in mtk_hdmi_update_plugged_status()
1685 struct device *codec_dev) in mtk_hdmi_audio_hook_plugged_cb() argument
1691 hdmi->codec_dev = codec_dev; in mtk_hdmi_audio_hook_plugged_cb()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Ddw-dp.c321 struct device *codec_dev; member
1031 if (audio->plugged_cb && audio->codec_dev) in dw_dp_audio_handle_plugged_change()
1032 audio->plugged_cb(audio->codec_dev, plugged); in dw_dp_audio_handle_plugged_change()
3804 struct device *codec_dev) in dw_dp_audio_hook_plugged_cb() argument
3810 audio->codec_dev = codec_dev; in dw_dp_audio_hook_plugged_cb()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/hdmirx/
H A Drk_hdmirx.c185 struct device *codec_dev; member
3071 if (hdmirx_dev->plugged_cb && hdmirx_dev->codec_dev) in hdmirx_audio_handle_plugged_change()
3072 hdmirx_dev->plugged_cb(hdmirx_dev->codec_dev, plugged); in hdmirx_audio_handle_plugged_change()
3077 struct device *codec_dev) in hdmirx_audio_hook_plugged_cb() argument
3084 hdmirx_dev->codec_dev = codec_dev; in hdmirx_audio_hook_plugged_cb()