Lines Matching refs:uda1380
3 * uda1380.c - Philips UDA1380 ALSA SoC audio driver
28 #include <sound/uda1380.h>
30 #include "uda1380.h"
42 * uda1380 register cache
59 * read uda1380 register cache
64 struct uda1380_priv *uda1380 = snd_soc_component_get_drvdata(component);
65 u16 *cache = uda1380->reg_cache;
75 * write uda1380 register cache
80 struct uda1380_priv *uda1380 = snd_soc_component_get_drvdata(component);
81 u16 *cache = uda1380->reg_cache;
96 struct uda1380_priv *uda1380 = snd_soc_component_get_drvdata(component);
115 pr_debug("uda1380: hw write %x val %x\n", reg, value);
116 if (i2c_master_send(uda1380->i2c, data, 3) == 3) {
118 i2c_master_send(uda1380->i2c, data, 1);
119 i2c_master_recv(uda1380->i2c, data, 2);
122 pr_debug("uda1380: READ BACK VAL %x\n",
135 struct uda1380_priv *uda1380 = snd_soc_component_get_drvdata(component);
138 u16 *cache = uda1380->reg_cache;
145 if (i2c_master_send(uda1380->i2c, data, 3) != 3)
154 struct uda1380_priv *uda1380 = snd_soc_component_get_drvdata(component);
167 if (i2c_master_send(uda1380->i2c, data, 3) != 3) {
178 struct uda1380_priv *uda1380 = container_of(work, struct uda1380_priv, work);
179 struct snd_soc_component *uda1380_component = uda1380->component;
184 pr_debug("uda1380: flush reg %x val %x:\n", reg,
510 struct uda1380_priv *uda1380 = snd_soc_component_get_drvdata(component);
518 schedule_work(&uda1380->work);
524 schedule_work(&uda1380->work);
655 .name = "uda1380-hifi",
671 .name = "uda1380-hifi-playback",
682 .name = "uda1380-hifi-capture",
697 struct uda1380_priv *uda1380 = snd_soc_component_get_drvdata(component);
700 uda1380->component = component;
708 INIT_WORK(&uda1380->work, uda1380_flush_work);
744 struct uda1380_priv *uda1380;
750 uda1380 = devm_kzalloc(&i2c->dev, sizeof(struct uda1380_priv),
752 if (uda1380 == NULL)
757 GPIOF_OUT_INIT_LOW, "uda1380 reset");
764 GPIOF_OUT_INIT_LOW, "uda1380 power");
769 uda1380->reg_cache = devm_kmemdup_array(&i2c->dev, uda1380_reg, ARRAY_SIZE(uda1380_reg),
771 if (!uda1380->reg_cache)
774 i2c_set_clientdata(i2c, uda1380);
775 uda1380->i2c = i2c;
783 { "uda1380" },
789 { .compatible = "nxp,uda1380", },
796 .name = "uda1380-codec",