Message ID | 87o91h5rp5.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ASoC: add soc-component.c | expand |
On Fri, Jul 26, 2019 at 01:49:17PM +0900, Kuninori Morimoto wrote: > Now, ALSA SoC doesn't setup rtd->ops.get_time_info. > This means it never used in ALSA SoC even if > sound driver had .get_time_info. > This patch disable .get_time_info from skl-pcm.c. > Because we might be going to support it in the future, > it uses #if 0. The #if 0 here isn't exactly nice... it'd be better to just implement get_time_info().
On 8/5/19 10:45 AM, Mark Brown wrote: > On Fri, Jul 26, 2019 at 01:49:17PM +0900, Kuninori Morimoto wrote: > >> Now, ALSA SoC doesn't setup rtd->ops.get_time_info. >> This means it never used in ALSA SoC even if >> sound driver had .get_time_info. > >> This patch disable .get_time_info from skl-pcm.c. >> Because we might be going to support it in the future, >> it uses #if 0. > > The #if 0 here isn't exactly nice... it'd be better to just implement > get_time_info(). IIRC Cezary's team had a patch reviewed internally at Intel to add the missing pieces, so this will be supported soonish (likely after the Summer break).
Hi Mark, Pierre-Louis > >> Now, ALSA SoC doesn't setup rtd->ops.get_time_info. > >> This means it never used in ALSA SoC even if > >> sound driver had .get_time_info. > > > >> This patch disable .get_time_info from skl-pcm.c. > >> Because we might be going to support it in the future, > >> it uses #if 0. > > > > The #if 0 here isn't exactly nice... it'd be better to just implement > > get_time_info(). > > IIRC Cezary's team had a patch reviewed internally at Intel to add the > missing pieces, so this will be supported soonish (likely after the > Summer break). Thanks !! Nice to know. Now we can just ignore this patch Thank you for your help !! Best regards --- Kuninori Morimoto
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c index 760bbcf..929b1f6 100644 --- a/sound/soc/intel/skylake/skl-pcm.c +++ b/sound/soc/intel/skylake/skl-pcm.c @@ -1226,6 +1226,7 @@ static snd_pcm_uframes_t skl_platform_pcm_pointer return bytes_to_frames(substream->runtime, pos); } +#if 0 static u64 skl_adjust_codec_delay(struct snd_pcm_substream *substream, u64 nsec) { @@ -1277,13 +1278,13 @@ static int skl_get_time_info(struct snd_pcm_substream *substream, return 0; } +#endif static const struct snd_pcm_ops skl_platform_ops = { .open = skl_platform_open, .ioctl = snd_pcm_lib_ioctl, .trigger = skl_platform_pcm_trigger, .pointer = skl_platform_pcm_pointer, - .get_time_info = skl_get_time_info, .mmap = snd_pcm_lib_default_mmap, .page = snd_pcm_sgbuf_ops_page, };