Skip to contentSkip to conversation

Card name size?

DISCUSSION Takashi Iwai 2 participants 2 messages Jan 12, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

At Sun, 11 Jan 2015 20:52:00 +0000,

Quoted 7 lines · Alan Horstmann

Hi,

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.

Takashi

#2 lore raw
Quoted 8 lines · Takashi Iwai
Quoted 4 lines · Alan Horstmann

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