Lines Matching +full:fifo +full:- +full:depth
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
13 #include <sound/soc-dai.h>
15 #include "axg-fifo.h"
22 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_frddr_dai_startup() local
26 /* Enable pclk to access registers and clock the fifo ip */ in axg_frddr_dai_startup()
27 ret = clk_prepare_enable(fifo->pclk); in axg_frddr_dai_startup()
32 regmap_update_bits(fifo->map, FIFO_CTRL0, CTRL0_FRDDR_PP_MODE, 0); in axg_frddr_dai_startup()
35 * TODO: We could adapt the fifo depth and the fifo threshold in axg_frddr_dai_startup()
38 * Depth and threshold are zero based. in axg_frddr_dai_startup()
40 fifo_depth = AXG_FIFO_MIN_CNT - 1; in axg_frddr_dai_startup()
41 fifo_threshold = (AXG_FIFO_MIN_CNT / 2) - 1; in axg_frddr_dai_startup()
42 regmap_update_bits(fifo->map, FIFO_CTRL1, in axg_frddr_dai_startup()
53 struct axg_fifo *fifo = snd_soc_dai_get_drvdata(dai); in axg_frddr_dai_shutdown() local
55 clk_disable_unprepare(fifo->pclk); in axg_frddr_dai_shutdown()
124 .compatible = "amlogic,axg-frddr",
133 .name = "axg-frddr",
139 MODULE_DESCRIPTION("Amlogic AXG playback fifo driver");