Lines Matching +full:soc +full:- +full:glue
1 // SPDX-License-Identifier: GPL-2.0
13 #include <sound/soc.h>
14 #include <sound/soc-dai.h>
16 #include <dt-bindings/sound/meson-g12a-toacodec.h>
17 #include "axg-tdm.h"
18 #include "meson-codec-glue.h"
20 #define G12A_TOACODEC_DRV_NAME "g12a-toacodec"
46 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in g12a_toacodec_mux_put_enum()
49 mux = snd_soc_enum_item_to_val(e, ucontrol->value.enumerated.item[0]); in g12a_toacodec_mux_put_enum()
50 changed = snd_soc_component_test_bits(component, e->reg, in g12a_toacodec_mux_put_enum()
60 snd_soc_component_update_bits(component, e->reg, in g12a_toacodec_mux_put_enum()
70 * On this soc, the glue gets the MCLK directly from the clock in g12a_toacodec_mux_put_enum()
74 * true for now, it could be different. Instead the glue should in g12a_toacodec_mux_put_enum()
79 snd_soc_component_update_bits(component, e->reg, in g12a_toacodec_mux_put_enum()
119 /* The glue will provide 1 lane out of the 4 to the output */ in g12a_toacodec_input_hw_params()
121 data->params.channels_min = min_t(unsigned int, TOACODEC_OUT_CHMAX, in g12a_toacodec_input_hw_params()
122 data->params.channels_min); in g12a_toacodec_input_hw_params()
123 data->params.channels_max = min_t(unsigned int, TOACODEC_OUT_CHMAX, in g12a_toacodec_input_hw_params()
124 data->params.channels_max); in g12a_toacodec_input_hw_params()
209 { .compatible = "amlogic,g12a-toacodec", },
216 struct device *dev = &pdev->dev; in g12a_toacodec_probe()