* Re: Card name size?
[not found] <201501112052.00328.gineera@aspect135.co.uk>
@ 2015-01-12 16:55 ` Takashi Iwai
2015-01-12 22:25 ` Alan Horstmann
0 siblings, 1 reply; 2+ messages in thread
From: Takashi Iwai @ 2015-01-12 16:55 UTC (permalink / raw)
To: Alan Horstmann; +Cc: alsa-devel
At Sun, 11 Jan 2015 20:52:00 +0000,
Alan Horstmann wrote:
>
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Card name size?
2015-01-12 16:55 ` Card name size? Takashi Iwai
@ 2015-01-12 22:25 ` Alan Horstmann
0 siblings, 0 replies; 2+ messages in thread
From: Alan Horstmann @ 2015-01-12 22:25 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-12 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <201501112052.00328.gineera@aspect135.co.uk>
2015-01-12 16:55 ` Card name size? Takashi Iwai
2015-01-12 22:25 ` Alan Horstmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.