diff options
| author | Kuninori Morimoto <[email protected]> | 2020-02-17 17:27:43 +0900 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-02-18 23:36:58 +0000 |
| commit | 93597fae552a35d27cd1f399ffab6a6862cf9dc3 (patch) | |
| tree | c473cf0703c83ff8b600951d26f7a7782ac475be /tools/perf/scripts/python/bin | |
| parent | d9303690f753dfdae51304fc89f4b04c0549a9f7 (diff) | |
ASoC: soc-pcm: use dai_get_widget() at dpcm_get_be()
dpcm_get_be() has very duplicate code.
dpcm_get_be() {
...
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
(1) /* code for Playback */
} else {
(2) /* code for Capture */
}
}
The difference between Playback (1) and Capture (2) code is pointer only
(= "playback_widget" or "caputre_widget").
OTOH, now we already has dai_get_widget() for it.
This means we can merge (1) and (2).
This patch do it and remove duplicated code.
Signed-off-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions