Query on get_time_info

Raghu Ballappa Bankapur quic_rbankapu at quicinc.com
Fri Jan 27 15:03:29 CET 2023


HI All,


We see get_time_info is not enabled from ALSA core. ay reason behind?

we enabled like below with some more code, we are able to get_time_info 
to lower driver.

static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe,
                 struct snd_soc_pcm_runtime *be, int stream)
@@ -2907,6 +2927,7 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, 
int num)
                 rtd->ops.hw_free        = dpcm_fe_dai_hw_free;
                 rtd->ops.close          = dpcm_fe_dai_close;
                 rtd->ops.pointer        = soc_pcm_pointer;
+               rtd->ops.get_time_info  = soc_pcm_get_time_info;
         } else {
                 rtd->ops.open           = soc_pcm_open;
                 rtd->ops.hw_params      = soc_pcm_hw_params;
@@ -2915,6 +2936,7 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, 
int num)
                 rtd->ops.hw_free        = soc_pcm_hw_free;
                 rtd->ops.close          = soc_pcm_close;
                 rtd->ops.pointer        = soc_pcm_pointer;
+               rtd->ops.get_time_info  = soc_pcm_get_time_info;
         }

Is this ALSA limitation or any other approach is followed to enable this 
implementation.

Thanks

Raghu Bankapur


More information about the Alsa-devel mailing list