From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Backported sbxfi driver, possible fix Date: Sat, 25 Oct 2008 21:59:39 +0200 Message-ID: References: <4900A4FA.7020300@jasonline.co.uk> <4900B523.3020801@jasonline.co.uk> <4900DBBD.2020806@jasonline.co.uk> <49017FBF.4030005@jasonline.co.uk> <20081025130652.GA27621@rzle423.uni-duisburg.de> <20081025194255.GA27872@rzle423.uni-duisburg.de> 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 (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id C5E8F2437B for ; Sat, 25 Oct 2008 21:59:56 +0200 (CEST) In-Reply-To: <20081025194255.GA27872@rzle423.uni-duisburg.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Thomas Scheunemann Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sat, 25 Oct 2008 21:42:55 +0200, Thomas Scheunemann wrote: > > > My solution is to use roundup_pow_of_two() instead of the own > > funciton. This should work better in general. > > I certainly agree that it is better to use an already defined function > instead of reinventing the wheel. > > > Anyway, I updated the repo (and rebased, sorry), updated the snapshot, > > too. > > But this new version causes an immediate reboot on my machine even with > the previously working speaker-test. If I interpret linux/log2.h correctly > the desired function should be order_base_2 instead of roundup_pow_of_two. > At least it works for me after that exchange. Oh my. You're right, it must be order_base_2(), of course. I was too hurry to fix a bug after the server crash :) Now fixed and updated. Thanks! Takashi