test-component.c (1ac731c529cd4d6adbce134754b51ff7d822b145) | test-component.c (b4b7de99c6da461315bfcce28018ab9f660c913b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// test-component.c -- Test Audio Component driver 4// 5// Copyright (C) 2020 Renesas Electronics Corporation 6// Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 7 8#include <linux/slab.h> --- 338 unchanged lines hidden (view full) --- 347 .periods_min = 1, 348 .periods_max = 128, 349 .fifo_size = 256, 350}; 351 352static int test_component_open(struct snd_soc_component *component, 353 struct snd_pcm_substream *substream) 354{ | 1// SPDX-License-Identifier: GPL-2.0 2// 3// test-component.c -- Test Audio Component driver 4// 5// Copyright (C) 2020 Renesas Electronics Corporation 6// Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 7 8#include <linux/slab.h> --- 338 unchanged lines hidden (view full) --- 347 .periods_min = 1, 348 .periods_max = 128, 349 .fifo_size = 256, 350}; 351 352static int test_component_open(struct snd_soc_component *component, 353 struct snd_pcm_substream *substream) 354{ |
355 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); | 355 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); |
356 357 mile_stone(component); 358 359 /* BE's dont need dummy params */ 360 if (!rtd->dai_link->no_pcm) 361 snd_soc_set_runtime_hwparams(substream, &test_component_hardware); 362 363 return 0; --- 293 unchanged lines hidden --- | 356 357 mile_stone(component); 358 359 /* BE's dont need dummy params */ 360 if (!rtd->dai_link->no_pcm) 361 snd_soc_set_runtime_hwparams(substream, &test_component_hardware); 362 363 return 0; --- 293 unchanged lines hidden --- |