Home
last modified time | relevance | path

Searched refs:daifmt (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.6.21/sound/soc/mediatek/common/
Dmtk-soundcard-driver.c45 unsigned int daifmt; in set_dailink_daifmt() local
56 daifmt = snd_soc_daifmt_parse_format(sub_node, NULL); in set_dailink_daifmt()
57 if (daifmt) { in set_dailink_daifmt()
59 dai_link->dai_fmt |= daifmt; in set_dailink_daifmt()
/linux-6.6.21/sound/soc/meson/
Dmeson-card-utils.c113 unsigned int daifmt; in meson_card_parse_daifmt() local
115 daifmt = snd_soc_daifmt_parse_format(node, NULL); in meson_card_parse_daifmt()
121 daifmt |= (!framemaster || framemaster == cpu_node) ? in meson_card_parse_daifmt()
124 daifmt |= (!framemaster || framemaster == cpu_node) ? in meson_card_parse_daifmt()
131 return daifmt; in meson_card_parse_daifmt()
/linux-6.6.21/sound/soc/generic/
Daudio-graph-card2.c544 unsigned int *daifmt, unsigned int *bit_frame) in graph_parse_daifmt() argument
577 if (!(*daifmt & SND_SOC_DAIFMT_##name##_MASK) && \ in graph_parse_daifmt()
579 *daifmt |= fmt & SND_SOC_DAIFMT_##name##_MASK in graph_parse_daifmt()
601 unsigned int daifmt = 0, daiclk = 0; in graph_link_init() local
626 graph_parse_daifmt(ep, &daifmt, &bit_frame); /* (C) */ in graph_link_init()
627 graph_parse_daifmt(port, &daifmt, &bit_frame); /* (B) */ in graph_link_init()
629 graph_parse_daifmt(ports, &daifmt, &bit_frame); /* (A) */ in graph_link_init()
640 dai_link->dai_fmt = daifmt | daiclk; in graph_link_init()
Dsimple-card-utils.c90 unsigned int daifmt; in asoc_simple_parse_daifmt() local
92 daifmt = snd_soc_daifmt_parse_format(node, prefix); in asoc_simple_parse_daifmt()
103 daifmt |= snd_soc_daifmt_parse_clock_provider_as_flag(codec, NULL); in asoc_simple_parse_daifmt()
105 daifmt |= snd_soc_daifmt_clock_provider_from_bitmap( in asoc_simple_parse_daifmt()
112 *retfmt = daifmt; in asoc_simple_parse_daifmt()
/linux-6.6.21/sound/soc/atmel/
Datmel_ssc_dai.c212 switch (ssc_p->daifmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { in atmel_ssc_hw_rule_rate()
235 switch (ssc_p->daifmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { in atmel_ssc_hw_rule_rate()
384 ssc_p->daifmt = fmt; in atmel_ssc_set_dai_fmt()
435 switch (ssc_p->daifmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { in atmel_ssc_cfs()
446 switch (ssc_p->daifmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { in atmel_ssc_cbs()
560 switch (ssc_p->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) { in atmel_ssc_hw_params()
599 ssc_p->daifmt); in atmel_ssc_hw_params()
Datmel_ssc_dai.h98 unsigned short daifmt; member
/linux-6.6.21/drivers/gpu/drm/sti/
Dsti_hdmi.c1172 struct hdmi_codec_daifmt *daifmt, in hdmi_audio_hw_params() argument
1180 if ((daifmt->fmt != HDMI_I2S) || daifmt->bit_clk_inv || in hdmi_audio_hw_params()
1181 daifmt->frame_clk_inv || daifmt->bit_clk_provider || in hdmi_audio_hw_params()
1182 daifmt->frame_clk_provider) { in hdmi_audio_hw_params()
1184 daifmt->bit_clk_inv, daifmt->frame_clk_inv, in hdmi_audio_hw_params()
1185 daifmt->bit_clk_provider, in hdmi_audio_hw_params()
1186 daifmt->frame_clk_provider); in hdmi_audio_hw_params()
/linux-6.6.21/include/sound/
Dsimple_card.h21 unsigned int daifmt; member
/linux-6.6.21/sound/soc/sti/
Duniperif_reader.c87 if ((reader->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) in uni_reader_prepare_pcm()
239 switch (reader->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) { in uni_reader_prepare()
258 switch (reader->daifmt & SND_SOC_DAIFMT_INV_MASK) { in uni_reader_prepare()
Duniperif_player.c422 if ((player->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) == in uni_player_prepare_pcm()
815 switch (player->daifmt & SND_SOC_DAIFMT_INV_MASK) { in uni_player_prepare()
834 switch (player->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) { in uni_player_prepare()
Dsti_uniperif.c307 priv->dai_data.uni->daifmt = fmt; in sti_uniperiph_dai_set_fmt()
/linux-6.6.21/drivers/gpu/drm/msm/dp/
Ddp_audio.h69 struct hdmi_codec_daifmt *daifmt,
Ddp_audio.c510 struct hdmi_codec_daifmt *daifmt, in dp_audio_hw_params() argument
/linux-6.6.21/sound/soc/codecs/
Dcros_ec_codec.c284 enum ec_codec_i2s_rx_daifmt daifmt; in i2s_rx_set_fmt() local
302 daifmt = EC_CODEC_I2S_RX_DAIFMT_I2S; in i2s_rx_set_fmt()
305 daifmt = EC_CODEC_I2S_RX_DAIFMT_RIGHT_J; in i2s_rx_set_fmt()
308 daifmt = EC_CODEC_I2S_RX_DAIFMT_LEFT_J; in i2s_rx_set_fmt()
314 dev_dbg(component->dev, "set format to %u\n", daifmt); in i2s_rx_set_fmt()
317 p.set_daifmt_param.daifmt = daifmt; in i2s_rx_set_fmt()
Dcs35l41.c687 unsigned int daifmt = 0; in cs35l41_set_dai_fmt() local
691 daifmt |= CS35L41_SCLK_MSTR_MASK | CS35L41_LRCLK_MSTR_MASK; in cs35l41_set_dai_fmt()
704 daifmt |= 2 << CS35L41_ASP_FMT_SHIFT; in cs35l41_set_dai_fmt()
713 daifmt |= CS35L41_LRCLK_INV_MASK; in cs35l41_set_dai_fmt()
716 daifmt |= CS35L41_SCLK_INV_MASK; in cs35l41_set_dai_fmt()
719 daifmt |= CS35L41_LRCLK_INV_MASK | CS35L41_SCLK_INV_MASK; in cs35l41_set_dai_fmt()
731 CS35L41_SCLK_INV_MASK, daifmt); in cs35l41_set_dai_fmt()
Dhdmi-codec.c816 struct hdmi_codec_daifmt *daifmt; in hdmi_dai_probe() local
841 daifmt = devm_kzalloc(dai->dev, sizeof(*daifmt), GFP_KERNEL); in hdmi_dai_probe()
842 if (!daifmt) in hdmi_dai_probe()
845 snd_soc_dai_dma_data_set_playback(dai, daifmt); in hdmi_dai_probe()
/linux-6.6.21/drivers/gpu/drm/bridge/
Dsii902x.c579 struct hdmi_codec_daifmt *daifmt, in sii902x_audio_hw_params() argument
592 if (daifmt->bit_clk_provider || daifmt->frame_clk_provider) { in sii902x_audio_hw_params()
598 switch (daifmt->fmt) { in sii902x_audio_hw_params()
611 daifmt->fmt); in sii902x_audio_hw_params()
615 if (daifmt->bit_clk_inv) in sii902x_audio_hw_params()
620 if (daifmt->frame_clk_inv) in sii902x_audio_hw_params()
Dite-it66121.c1230 struct hdmi_codec_daifmt *daifmt, in it66121_audio_hw_params() argument
1244 daifmt->fmt, sample_rate, sample_width, channels); in it66121_audio_hw_params()
1246 switch (daifmt->fmt) { in it66121_audio_hw_params()
1251 dev_err(dev, "Invalid or unsupported DAI format %d\n", daifmt->fmt); in it66121_audio_hw_params()
/linux-6.6.21/drivers/gpu/drm/i2c/
Dtda998x_drv.c1064 struct hdmi_codec_daifmt *daifmt, in tda998x_audio_hw_params() argument
1069 bool spdif = daifmt->fmt == HDMI_SPDIF; in tda998x_audio_hw_params()
1079 switch (daifmt->fmt) { in tda998x_audio_hw_params()
1093 dev_err(dev, "%s: Invalid format %d\n", __func__, daifmt->fmt); in tda998x_audio_hw_params()
1098 (daifmt->bit_clk_inv || daifmt->frame_clk_inv || in tda998x_audio_hw_params()
1099 daifmt->bit_clk_provider || daifmt->frame_clk_provider)) { in tda998x_audio_hw_params()
1101 daifmt->bit_clk_inv, daifmt->frame_clk_inv, in tda998x_audio_hw_params()
1102 daifmt->bit_clk_provider, in tda998x_audio_hw_params()
1103 daifmt->frame_clk_provider); in tda998x_audio_hw_params()
/linux-6.6.21/drivers/gpu/drm/exynos/
Dexynos_hdmi.c1591 struct hdmi_codec_daifmt *daifmt, in hdmi_audio_hw_params() argument
1596 if (daifmt->fmt != HDMI_I2S || daifmt->bit_clk_inv || in hdmi_audio_hw_params()
1597 daifmt->frame_clk_inv || daifmt->bit_clk_provider || in hdmi_audio_hw_params()
1598 daifmt->frame_clk_provider) { in hdmi_audio_hw_params()
1600 daifmt->bit_clk_inv, daifmt->frame_clk_inv, in hdmi_audio_hw_params()
1601 daifmt->bit_clk_provider, in hdmi_audio_hw_params()
1602 daifmt->frame_clk_provider); in hdmi_audio_hw_params()
/linux-6.6.21/sound/soc/fsl/
Dfsl-asoc-card.c728 unsigned int daifmt = snd_soc_daifmt_parse_format(np, NULL); in fsl_asoc_card_probe() local
731 daifmt |= (codec_np == frameprovider) ? in fsl_asoc_card_probe()
734 daifmt |= (codec_np == frameprovider) ? in fsl_asoc_card_probe()
738 priv->dai_fmt = daifmt; in fsl_asoc_card_probe()
/linux-6.6.21/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-gp-audio.c76 struct hdmi_codec_daifmt *daifmt, in audio_hw_params() argument
/linux-6.6.21/drivers/gpu/drm/rockchip/
Dcdn-dp-core.c783 struct hdmi_codec_daifmt *daifmt, in cdn_dp_audio_hw_params() argument
800 switch (daifmt->fmt) { in cdn_dp_audio_hw_params()
808 DRM_DEV_ERROR(dev, "Invalid format %d\n", daifmt->fmt); in cdn_dp_audio_hw_params()
/linux-6.6.21/drivers/gpu/drm/mediatek/
Dmtk_hdmi.c1529 struct hdmi_codec_daifmt *daifmt, in mtk_hdmi_audio_hw_params() argument
1575 switch (daifmt->fmt) { in mtk_hdmi_audio_hw_params()
1590 daifmt->fmt); in mtk_hdmi_audio_hw_params()
/linux-6.6.21/drivers/gpu/drm/msm/hdmi/
Dhdmi.c268 struct hdmi_codec_daifmt *daifmt, in msm_hdmi_audio_hw_params() argument

12