axg-tdmin.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) axg-tdmin.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>

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

78static struct axg_tdm_stream *
79axg_tdmin_get_tdm_stream(struct snd_soc_dapm_widget *w)
80{
81 struct snd_soc_dai *be = axg_tdmin_get_be(w);
82
83 if (!be)
84 return NULL;
85
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>

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

78static struct axg_tdm_stream *
79axg_tdmin_get_tdm_stream(struct snd_soc_dapm_widget *w)
80{
81 struct snd_soc_dai *be = axg_tdmin_get_be(w);
82
83 if (!be)
84 return NULL;
85
86 return be->capture_dma_data;
86 return snd_soc_dai_dma_data_get_capture(be);
87}
88
89static void axg_tdmin_enable(struct regmap *map)
90{
91 /* Apply both reset */
92 regmap_update_bits(map, TDMIN_CTRL,
93 TDMIN_CTRL_RST_OUT | TDMIN_CTRL_RST_IN, 0);
94

--- 166 unchanged lines hidden ---
87}
88
89static void axg_tdmin_enable(struct regmap *map)
90{
91 /* Apply both reset */
92 regmap_update_bits(map, TDMIN_CTRL,
93 TDMIN_CTRL_RST_OUT | TDMIN_CTRL_RST_IN, 0);
94

--- 166 unchanged lines hidden ---