From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 19/39] fireworks: Add skelton for Fireworks based devices Date: Fri, 28 Feb 2014 16:10:50 +0100 Message-ID: References: <1393558072-25926-1-git-send-email-o-takashi@sakamocchi.jp> <1393558072-25926-20-git-send-email-o-takashi@sakamocchi.jp> <5310A5C6.2060602@sakamocchi.jp> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 783A326514A for ; Fri, 28 Feb 2014 16:10:50 +0100 (CET) In-Reply-To: <5310A5C6.2060602@sakamocchi.jp> 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 Sakamoto Cc: alsa-devel@alsa-project.org, clemens@ladisch.de, ffado-devel@lists.sf.net List-Id: alsa-devel@alsa-project.org At Sat, 01 Mar 2014 00:05:42 +0900, Takashi Sakamoto wrote: > > Iwai-san, > > (Feb 28 2014 15:51), Takashi Iwai wrote: > > Now we may handle more than 32 cards, depending on Kconfig. > > I can understand I should not use 'unsigned int' for bitmap of each card > instances because in most architecture 'unsigned int' has just 32 bit width. > > > Use bitmap instead. > > But I cannot understand this sentence. > > I already use this 'devices_used' for bitmap. So I guess you did mean > alternative ways like pointer array. For example: > static struct snd_fireworks *devices_used[SNDRV_CARDS]; > > Can I request your explaination for this? Just take a look at linux/bitmap.h :) Takashi