On Wed, Dec 06, 2017 at 05:26:54AM +0000, Kuninori Morimoto wrote: > > > That's just an oversight, it should be using the sample size. > The original commit was below. > It seems original code was also assuming format width. > Was this also oversight ? > format_width -> physical_width changes meaning, I think... > - switch (params_format(params)) { > - case SNDRV_PCM_FORMAT_S16_LE: > - case SNDRV_PCM_FORMAT_S16_BE: > - sample_size = 16; > - break; > - case SNDRV_PCM_FORMAT_S20_3LE: > - case SNDRV_PCM_FORMAT_S20_3BE: > - sample_size = 20; > - break; Ah, sorry - I misread what you were saying. The above is the intention.
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel