axg-toddr.c (1913c7f3fc2514e09262baf2267a82dfdb215c39) axg-toddr.c (bb4ba744b1701caf6148ff3b4e8656bf4f6b4758)
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/* This driver implements the frontend capture DAI of AXG based SoCs */
7
8#include <linux/clk.h>

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

176 { "SRC SEL", "IN 7", "IN 7" },
177};
178
179static const struct snd_soc_component_driver axg_toddr_component_drv = {
180 .dapm_widgets = axg_toddr_dapm_widgets,
181 .num_dapm_widgets = ARRAY_SIZE(axg_toddr_dapm_widgets),
182 .dapm_routes = axg_toddr_dapm_routes,
183 .num_dapm_routes = ARRAY_SIZE(axg_toddr_dapm_routes),
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/* This driver implements the frontend capture DAI of AXG based SoCs */
7
8#include <linux/clk.h>

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

176 { "SRC SEL", "IN 7", "IN 7" },
177};
178
179static const struct snd_soc_component_driver axg_toddr_component_drv = {
180 .dapm_widgets = axg_toddr_dapm_widgets,
181 .num_dapm_widgets = ARRAY_SIZE(axg_toddr_dapm_widgets),
182 .dapm_routes = axg_toddr_dapm_routes,
183 .num_dapm_routes = ARRAY_SIZE(axg_toddr_dapm_routes),
184 .ops = &axg_fifo_pcm_ops
184 .open = axg_fifo_pcm_open,
185 .close = axg_fifo_pcm_close,
186 .ioctl = snd_soc_pcm_lib_ioctl,
187 .hw_params = axg_fifo_pcm_hw_params,
188 .hw_free = axg_fifo_pcm_hw_free,
189 .pointer = axg_fifo_pcm_pointer,
190 .trigger = axg_fifo_pcm_trigger,
185};
186
187static const struct axg_fifo_match_data axg_toddr_match_data = {
188 .component_drv = &axg_toddr_component_drv,
189 .dai_drv = &axg_toddr_dai_drv
190};
191
192static const struct snd_soc_dai_ops g12a_toddr_ops = {

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

209 .pcm_new = axg_toddr_pcm_new,
210};
211
212static const struct snd_soc_component_driver g12a_toddr_component_drv = {
213 .dapm_widgets = axg_toddr_dapm_widgets,
214 .num_dapm_widgets = ARRAY_SIZE(axg_toddr_dapm_widgets),
215 .dapm_routes = axg_toddr_dapm_routes,
216 .num_dapm_routes = ARRAY_SIZE(axg_toddr_dapm_routes),
191};
192
193static const struct axg_fifo_match_data axg_toddr_match_data = {
194 .component_drv = &axg_toddr_component_drv,
195 .dai_drv = &axg_toddr_dai_drv
196};
197
198static const struct snd_soc_dai_ops g12a_toddr_ops = {

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

215 .pcm_new = axg_toddr_pcm_new,
216};
217
218static const struct snd_soc_component_driver g12a_toddr_component_drv = {
219 .dapm_widgets = axg_toddr_dapm_widgets,
220 .num_dapm_widgets = ARRAY_SIZE(axg_toddr_dapm_widgets),
221 .dapm_routes = axg_toddr_dapm_routes,
222 .num_dapm_routes = ARRAY_SIZE(axg_toddr_dapm_routes),
217 .ops = &g12a_fifo_pcm_ops
223 .open = axg_fifo_pcm_open,
224 .close = axg_fifo_pcm_close,
225 .ioctl = snd_soc_pcm_lib_ioctl,
226 .hw_params = g12a_fifo_pcm_hw_params,
227 .hw_free = axg_fifo_pcm_hw_free,
228 .pointer = axg_fifo_pcm_pointer,
229 .trigger = axg_fifo_pcm_trigger,
218};
219
220static const struct axg_fifo_match_data g12a_toddr_match_data = {
221 .component_drv = &g12a_toddr_component_drv,
222 .dai_drv = &g12a_toddr_dai_drv
223};
224
225static const char * const sm1_toddr_sel_texts[] = {

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

273 { "SRC SEL", "IN 15", "IN 15" },
274};
275
276static const struct snd_soc_component_driver sm1_toddr_component_drv = {
277 .dapm_widgets = sm1_toddr_dapm_widgets,
278 .num_dapm_widgets = ARRAY_SIZE(sm1_toddr_dapm_widgets),
279 .dapm_routes = sm1_toddr_dapm_routes,
280 .num_dapm_routes = ARRAY_SIZE(sm1_toddr_dapm_routes),
230};
231
232static const struct axg_fifo_match_data g12a_toddr_match_data = {
233 .component_drv = &g12a_toddr_component_drv,
234 .dai_drv = &g12a_toddr_dai_drv
235};
236
237static const char * const sm1_toddr_sel_texts[] = {

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

285 { "SRC SEL", "IN 15", "IN 15" },
286};
287
288static const struct snd_soc_component_driver sm1_toddr_component_drv = {
289 .dapm_widgets = sm1_toddr_dapm_widgets,
290 .num_dapm_widgets = ARRAY_SIZE(sm1_toddr_dapm_widgets),
291 .dapm_routes = sm1_toddr_dapm_routes,
292 .num_dapm_routes = ARRAY_SIZE(sm1_toddr_dapm_routes),
281 .ops = &g12a_fifo_pcm_ops
293 .open = axg_fifo_pcm_open,
294 .close = axg_fifo_pcm_close,
295 .ioctl = snd_soc_pcm_lib_ioctl,
296 .hw_params = g12a_fifo_pcm_hw_params,
297 .hw_free = axg_fifo_pcm_hw_free,
298 .pointer = axg_fifo_pcm_pointer,
299 .trigger = axg_fifo_pcm_trigger,
282};
283
284static const struct axg_fifo_match_data sm1_toddr_match_data = {
285 .component_drv = &sm1_toddr_component_drv,
286 .dai_drv = &g12a_toddr_dai_drv
287};
288
289static const struct of_device_id axg_toddr_of_match[] = {

--- 25 unchanged lines hidden ---
300};
301
302static const struct axg_fifo_match_data sm1_toddr_match_data = {
303 .component_drv = &sm1_toddr_component_drv,
304 .dai_drv = &g12a_toddr_dai_drv
305};
306
307static const struct of_device_id axg_toddr_of_match[] = {

--- 25 unchanged lines hidden ---