soc-pcm.c (8544f08c816292c2219f28c6eaa69236b978bfb9) | soc-pcm.c (403f830e7a0be5a9e33c7a9d208574f79887ec57) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// 3// soc-pcm.c -- ALSA SoC PCM 4// 5// Copyright 2005 Wolfson Microelectronics PLC. 6// Copyright 2005 Openedhand Ltd. 7// Copyright (C) 2010 Slimlogic Ltd. 8// Copyright (C) 2010 Texas Instruments Inc. --- 1084 unchanged lines hidden (view full) --- 1093 /* clearing the previous total delay */ 1094 runtime->delay = 0; 1095 1096 offset = snd_soc_pcm_component_pointer(substream); 1097 1098 /* base delay if assigned in pointer callback */ 1099 delay = runtime->delay; 1100 | 1// SPDX-License-Identifier: GPL-2.0+ 2// 3// soc-pcm.c -- ALSA SoC PCM 4// 5// Copyright 2005 Wolfson Microelectronics PLC. 6// Copyright 2005 Openedhand Ltd. 7// Copyright (C) 2010 Slimlogic Ltd. 8// Copyright (C) 2010 Texas Instruments Inc. --- 1084 unchanged lines hidden (view full) --- 1093 /* clearing the previous total delay */ 1094 runtime->delay = 0; 1095 1096 offset = snd_soc_pcm_component_pointer(substream); 1097 1098 /* base delay if assigned in pointer callback */ 1099 delay = runtime->delay; 1100 |
1101 /* should be called *after* snd_soc_pcm_component_pointer() */ |
|
1101 snd_soc_pcm_dai_delay(substream, &cpu_delay, &codec_delay); | 1102 snd_soc_pcm_dai_delay(substream, &cpu_delay, &codec_delay); |
1103 snd_soc_pcm_component_delay(substream, &cpu_delay, &codec_delay); |
|
1102 1103 runtime->delay = delay + cpu_delay + codec_delay; 1104 1105 return offset; 1106} 1107 1108/* connect a FE and BE */ 1109static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe, --- 1784 unchanged lines hidden --- | 1104 1105 runtime->delay = delay + cpu_delay + codec_delay; 1106 1107 return offset; 1108} 1109 1110/* connect a FE and BE */ 1111static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe, --- 1784 unchanged lines hidden --- |