Lines Matching +full:g12a +full:- +full:tohdmitx
1 // SPDX-License-Identifier: GPL-2.0
13 #include <sound/soc-dai.h>
15 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
16 #include "meson-codec-glue.h"
18 #define G12A_TOHDMITX_DRV_NAME "g12a-tohdmitx"
45 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_tohdmitx_i2s_mux_put_enum()
48 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_tohdmitx_i2s_mux_put_enum()
49 return -EINVAL; in g12a_tohdmitx_i2s_mux_put_enum()
51 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_i2s_mux_put_enum()
52 changed = snd_soc_component_test_bits(component, e->reg, in g12a_tohdmitx_i2s_mux_put_enum()
63 snd_soc_component_update_bits(component, e->reg, in g12a_tohdmitx_i2s_mux_put_enum()
96 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_tohdmitx_spdif_mux_put_enum()
99 if (ucontrol->value.enumerated.item[0] >= e->items) in g12a_tohdmitx_spdif_mux_put_enum()
100 return -EINVAL; in g12a_tohdmitx_spdif_mux_put_enum()
102 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_tohdmitx_spdif_mux_put_enum()
244 { .compatible = "amlogic,g12a-tohdmitx", },
251 struct device *dev = &pdev->dev; in g12a_tohdmitx_probe()
286 MODULE_DESCRIPTION("Amlogic G12a To HDMI Tx Control Codec Driver");