[alsa-devel] Card name size?

Alan Horstmann gineera at aspect135.co.uk
Mon Jan 12 23:25:34 CET 2015


On Monday 12 January 2015 16:55, Takashi Iwai wrote:
> At Sun, 11 Jan 2015 20:52:00 +0000, Alan Horstmann wrote:
> > Just a quick question...
> > is there a (guaranteed) max size to the name string returned by
> >    snd_ctl_card_info_get_name()
> > or is it just whatever the driver sets?
>
> It's max 32 letters (including NUL).
> longname and mixername are max 80, id and driver are max 16.

Thanks very much; so I am OK to use a fixed 32 char array (with strncpy() just 
to be safe).

BTW my original post didn't seem to make it to the list. Any idea why?

Regards

Alan


More information about the Alsa-devel mailing list