axg-frddr.c (1913c7f3fc2514e09262baf2267a82dfdb215c39) axg-frddr.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/*
7 * This driver implements the frontend playback DAI of AXG and G12A based SoCs
8 */

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

144 { "OUT 7", "OUT 7", "SINK SEL" },
145};
146
147static const struct snd_soc_component_driver axg_frddr_component_drv = {
148 .dapm_widgets = axg_frddr_dapm_widgets,
149 .num_dapm_widgets = ARRAY_SIZE(axg_frddr_dapm_widgets),
150 .dapm_routes = axg_frddr_dapm_routes,
151 .num_dapm_routes = ARRAY_SIZE(axg_frddr_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/*
7 * This driver implements the frontend playback DAI of AXG and G12A based SoCs
8 */

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

144 { "OUT 7", "OUT 7", "SINK SEL" },
145};
146
147static const struct snd_soc_component_driver axg_frddr_component_drv = {
148 .dapm_widgets = axg_frddr_dapm_widgets,
149 .num_dapm_widgets = ARRAY_SIZE(axg_frddr_dapm_widgets),
150 .dapm_routes = axg_frddr_dapm_routes,
151 .num_dapm_routes = ARRAY_SIZE(axg_frddr_dapm_routes),
152 .ops = &axg_fifo_pcm_ops
152 .open = axg_fifo_pcm_open,
153 .close = axg_fifo_pcm_close,
154 .ioctl = snd_soc_pcm_lib_ioctl,
155 .hw_params = axg_fifo_pcm_hw_params,
156 .hw_free = axg_fifo_pcm_hw_free,
157 .pointer = axg_fifo_pcm_pointer,
158 .trigger = axg_fifo_pcm_trigger,
153};
154
155static const struct axg_fifo_match_data axg_frddr_match_data = {
156 .component_drv = &axg_frddr_component_drv,
157 .dai_drv = &axg_frddr_dai_drv
158};
159
160static const struct snd_soc_dai_ops g12a_frddr_ops = {

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

262 { "OUT 7", "OUT 7", "SINK 3 SEL" },
263};
264
265static const struct snd_soc_component_driver g12a_frddr_component_drv = {
266 .dapm_widgets = g12a_frddr_dapm_widgets,
267 .num_dapm_widgets = ARRAY_SIZE(g12a_frddr_dapm_widgets),
268 .dapm_routes = g12a_frddr_dapm_routes,
269 .num_dapm_routes = ARRAY_SIZE(g12a_frddr_dapm_routes),
159};
160
161static const struct axg_fifo_match_data axg_frddr_match_data = {
162 .component_drv = &axg_frddr_component_drv,
163 .dai_drv = &axg_frddr_dai_drv
164};
165
166static const struct snd_soc_dai_ops g12a_frddr_ops = {

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

268 { "OUT 7", "OUT 7", "SINK 3 SEL" },
269};
270
271static const struct snd_soc_component_driver g12a_frddr_component_drv = {
272 .dapm_widgets = g12a_frddr_dapm_widgets,
273 .num_dapm_widgets = ARRAY_SIZE(g12a_frddr_dapm_widgets),
274 .dapm_routes = g12a_frddr_dapm_routes,
275 .num_dapm_routes = ARRAY_SIZE(g12a_frddr_dapm_routes),
270 .ops = &g12a_fifo_pcm_ops
276 .open = axg_fifo_pcm_open,
277 .close = axg_fifo_pcm_close,
278 .ioctl = snd_soc_pcm_lib_ioctl,
279 .hw_params = g12a_fifo_pcm_hw_params,
280 .hw_free = axg_fifo_pcm_hw_free,
281 .pointer = axg_fifo_pcm_pointer,
282 .trigger = axg_fifo_pcm_trigger,
271};
272
273static const struct axg_fifo_match_data g12a_frddr_match_data = {
274 .component_drv = &g12a_frddr_component_drv,
275 .dai_drv = &g12a_frddr_dai_drv
276};
277
278/* On SM1, the output selection in on CTRL2 */

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

326 SND_SOC_DAPM_AIF_OUT("OUT 7", NULL, 0, SND_SOC_NOPM, 0, 0),
327};
328
329static const struct snd_soc_component_driver sm1_frddr_component_drv = {
330 .dapm_widgets = sm1_frddr_dapm_widgets,
331 .num_dapm_widgets = ARRAY_SIZE(sm1_frddr_dapm_widgets),
332 .dapm_routes = g12a_frddr_dapm_routes,
333 .num_dapm_routes = ARRAY_SIZE(g12a_frddr_dapm_routes),
283};
284
285static const struct axg_fifo_match_data g12a_frddr_match_data = {
286 .component_drv = &g12a_frddr_component_drv,
287 .dai_drv = &g12a_frddr_dai_drv
288};
289
290/* On SM1, the output selection in on CTRL2 */

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

338 SND_SOC_DAPM_AIF_OUT("OUT 7", NULL, 0, SND_SOC_NOPM, 0, 0),
339};
340
341static const struct snd_soc_component_driver sm1_frddr_component_drv = {
342 .dapm_widgets = sm1_frddr_dapm_widgets,
343 .num_dapm_widgets = ARRAY_SIZE(sm1_frddr_dapm_widgets),
344 .dapm_routes = g12a_frddr_dapm_routes,
345 .num_dapm_routes = ARRAY_SIZE(g12a_frddr_dapm_routes),
334 .ops = &g12a_fifo_pcm_ops
346 .open = axg_fifo_pcm_open,
347 .close = axg_fifo_pcm_close,
348 .ioctl = snd_soc_pcm_lib_ioctl,
349 .hw_params = g12a_fifo_pcm_hw_params,
350 .hw_free = axg_fifo_pcm_hw_free,
351 .pointer = axg_fifo_pcm_pointer,
352 .trigger = axg_fifo_pcm_trigger,
335};
336
337static const struct axg_fifo_match_data sm1_frddr_match_data = {
338 .component_drv = &sm1_frddr_component_drv,
339 .dai_drv = &g12a_frddr_dai_drv
340};
341
342static const struct of_device_id axg_frddr_of_match[] = {

--- 25 unchanged lines hidden ---
353};
354
355static const struct axg_fifo_match_data sm1_frddr_match_data = {
356 .component_drv = &sm1_frddr_component_drv,
357 .dai_drv = &g12a_frddr_dai_drv
358};
359
360static const struct of_device_id axg_frddr_of_match[] = {

--- 25 unchanged lines hidden ---