MCPcopy Create free account
hub / github.com/F-Stack/f-stack / codec_read

Function codec_read

freebsd/mips/ingenic/jz4780_codec.c:103–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static int
104codec_read(struct codec_softc *sc, uint32_t reg)
105{
106 uint32_t tmp;
107
108 clk_enable(sc->clk);
109
110 tmp = (reg << RGADW_RGADDR_S);
111 WRITE4(sc, CODEC_RGADW, tmp);
112
113 tmp = READ4(sc, CODEC_RGDATA);
114
115 clk_disable(sc->clk);
116
117 return (tmp);
118}
119
120void
121codec_print_registers(struct codec_softc *sc)

Callers 2

codec_print_registersFunction · 0.85
codec_attachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected