Lines Matching +full:mic2 +full:- +full:src
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
120 { "allwinner,sun50i-a64-codec-analog", 1},
131 #define A64CODEC_LOCK(sc) mtx_lock(&(sc)->mtx)
132 #define A64CODEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
133 #define A64CODEC_READ(sc, reg) bus_read_4((sc)->res, (reg))
134 #define A64CODEC_WRITE(sc, reg, val) bus_write_4((sc)->res, (reg), (val))
148 /* De-assert reset */ in a64_acodec_pr_read()
174 /* De-assert reset */ in a64_acodec_pr_write()
213 if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data) in a64codec_probe()
229 sc->dev = dev; in a64codec_attach()
231 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF); in a64codec_attach()
234 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in a64codec_attach()
235 if (!sc->res) { in a64codec_attach()
241 if (regulator_get_by_ofw_property(dev, 0, "cpvdd-supply", ®) == 0) { in a64codec_attach()
283 /* Max out MIC2 gain */ in a64codec_attach()
308 if (sc->res) in a64codec_detach()
309 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->res); in a64codec_detach()
310 mtx_destroy(&sc->mtx); in a64codec_detach()
386 a64codec_mixer_setrecsrc(struct snd_mixer *m, unsigned src) in a64codec_mixer_setrecsrc() argument