File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -228,14 +228,14 @@ static int compress_hw_get_hpointer(void *data,
228228 unsigned int * avail , struct timespec * tstamp )
229229{
230230 struct compress_hw_data * compress = (struct compress_hw_data * )data ;
231- struct snd_compr_avail kavail ;
231+ struct snd_compr_avail64 kavail ;
232232 __u64 time ;
233233
234234 if (!is_compress_hw_ready (compress ))
235235 return oops (compress , ENODEV , "device not ready" );
236236
237- if (ioctl (compress -> fd , SNDRV_COMPRESS_AVAIL , & kavail ))
238- return oops (compress , errno , "cannot get avail " );
237+ if (ioctl (compress -> fd , SNDRV_COMPRESS_AVAIL64 , & kavail ))
238+ return oops (compress , errno , "cannot get avail64 " );
239239 if (0 == kavail .tstamp .sampling_rate )
240240 return oops (compress , ENODATA , "sample rate unknown" );
241241 * avail = (unsigned int )kavail .avail ;
You can’t perform that action at this time.
0 commit comments