Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932082AbWAEPdr (ORCPT ); Thu, 5 Jan 2006 10:33:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932083AbWAEPdr (ORCPT ); Thu, 5 Jan 2006 10:33:47 -0500 Received: from gate.perex.cz ([85.132.177.35]:58034 "EHLO gate.perex.cz") by vger.kernel.org with ESMTP id S932082AbWAEPdp (ORCPT ); Thu, 5 Jan 2006 10:33:45 -0500 Date: Thu, 5 Jan 2006 16:33:44 +0100 (CET) From: Jaroslav Kysela X-X-Sender: perex@tm8103.perex-int.cz To: Olivier Galibert Cc: Heikki Orsila , Linux Kernel Mailing List , Alistair John Strachan Subject: Re: [OT] ALSA userspace API complexity In-Reply-To: <20060105145101.GB28611@dspnet.fr.eu.org> Message-ID: References: <20060105140155.GC757@jolt.modeemi.cs.tut.fi> <20060105145101.GB28611@dspnet.fr.eu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1292 Lines: 32 On Thu, 5 Jan 2006, Olivier Galibert wrote: > - "A small demo which sends a simple sinusoidal wave to the speakers" > requiring close to 900 lines is demented. That's the size of > glxgears.c, with 50% of that one being printer support. A complete > smartflow example getting a sound stream on the network and playing > it with oss takes 160 lines, with 20 lines of copyright-ish at the > start. The actual sound part of that is _30_ lines. The pcm.c file shows you 7 available methods how you can send audio data to alsa-lib. It's complete example. If you remove the parsing command line, sine generation, error handling, you'll end with few lines too. > - Error and state handling after writei changes depending on the call. > We're supposed to guess which one is correct? > > Make simple things simple, guys. Yes, we should stay with simple 1.0 linux kernel. Anyway, we're taking all points from this discussion. Jaroslav ----- Jaroslav Kysela Linux Kernel Sound Maintainer ALSA Project, SUSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/