From: Alan Horstmann Subject: Re: Card name size? Date: Mon, 12 Jan 2015 22:25:34 +0000 Message-ID: <201501122225.34229.gineera@aspect135.co.uk> References: <201501112052.00328.gineera@aspect135.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from 5.array2.smtp.34sp.com (5.array2.smtp.34sp.com [46.183.10.83]) by alsa0.perex.cz (Postfix) with ESMTP id 1F6932612D1 for ; Mon, 12 Jan 2015 23:24:42 +0100 (CET) Received: from smtpauth1.array1.smtp.34sp.com (lvs3.34sp.com [80.82.124.221]) by 5.array2.smtp.34sp.com (Postfix) with ESMTP id 3DF4A205BA for ; Mon, 12 Jan 2015 22:24:36 +0000 (GMT) In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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