axg-tdmout.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) axg-tdmout.c (c765ceda78f0bd9df1217f9beaefea58ecf3865c)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2//
3// Copyright (c) 2018 BayLibre, SAS.
4// Author: Jerome Brunet <jbrunet@baylibre.com>
5
6#include <linux/module.h>
7#include <linux/of_platform.h>
8#include <linux/regmap.h>

--- 67 unchanged lines hidden (view full) ---

76static struct axg_tdm_stream *
77axg_tdmout_get_tdm_stream(struct snd_soc_dapm_widget *w)
78{
79 struct snd_soc_dai *be = axg_tdmout_get_be(w);
80
81 if (!be)
82 return NULL;
83
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2//
3// Copyright (c) 2018 BayLibre, SAS.
4// Author: Jerome Brunet <jbrunet@baylibre.com>
5
6#include <linux/module.h>
7#include <linux/of_platform.h>
8#include <linux/regmap.h>

--- 67 unchanged lines hidden (view full) ---

76static struct axg_tdm_stream *
77axg_tdmout_get_tdm_stream(struct snd_soc_dapm_widget *w)
78{
79 struct snd_soc_dai *be = axg_tdmout_get_be(w);
80
81 if (!be)
82 return NULL;
83
84 return be->playback_dma_data;
84 return snd_soc_dai_dma_data_get_playback(be);
85}
86
87static void axg_tdmout_enable(struct regmap *map)
88{
89 /* Apply both reset */
90 regmap_update_bits(map, TDMOUT_CTRL0,
91 TDMOUT_CTRL0_RST_OUT | TDMOUT_CTRL0_RST_IN, 0);
92

--- 247 unchanged lines hidden ---
85}
86
87static void axg_tdmout_enable(struct regmap *map)
88{
89 /* Apply both reset */
90 regmap_update_bits(map, TDMOUT_CTRL0,
91 TDMOUT_CTRL0_RST_OUT | TDMOUT_CTRL0_RST_IN, 0);
92

--- 247 unchanged lines hidden ---