All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Davis <paul@linuxaudiosystems.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: "John S. Denker" <jsd@monmouth.com>, alsa-devel@lists.sourceforge.net
Subject: Re: patch for hammerfall driver
Date: Mon, 03 Feb 2003 09:49:59 -0500	[thread overview]
Message-ID: <E18fhrT-0007US-00@sc8-sf-list1.sourceforge.net> (raw)
In-Reply-To: Your message of "Mon, 03 Feb 2003 13:40:52 +0100." <s5hznpdh6zv.wl@alsa2.suse.de>

>> To be explicit:  whenever you see a bug, don't just
>> ask how to fix this instance of the bug;  ask what
>> it would take to make sure no bug of this ilk ever
>> occurs again.
>> 
>> In this case:
>>   a) It would help to have some comments in the code
>> saying where the constants are coming from, so that
>> misconceptions can be more easily spotted.
>>   b) It would help to use correctly computed constants
>> such as

actually, neither would have really helped very much here. i don't
know who set the values to those that were here before. the values
were clearly wrong on any reading of the code, and i've thought about
them on previous readings. the values that were there before were not
"buggy" - they were completely wrong.

the problem here was social rather than technical: i never had a
reason or the time to do anything to answer my questions about the
values that were there.

the last few days have seen me trying to debug some rather deep
problems with a specific hdsp configuration, and i wanted to run JACK
with 8192 frame periods. i couldn't do it, and ended up having to go
back and deal with those numbers so that i could. 

>>   c) When applying the sizeof() operator, don't
>> apply it to general-purpose types such as int, but
>> rather apply it to an object that is provably
>> of the type you care about, in this case something

agreed. i had meant to remove the sizeof() from the patch before i
posted it. 

--p


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

  reply	other threads:[~2003-02-03 14:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-02 21:37 patch for hammerfall driver Paul Davis
2003-02-03  9:57 ` Takashi Iwai
     [not found]   ` <3E3E6079.2050905@monmouth.com>
2003-02-03 12:40     ` Takashi Iwai
2003-02-03 14:49       ` Paul Davis [this message]
2003-02-04 11:10         ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E18fhrT-0007US-00@sc8-sf-list1.sourceforge.net \
    --to=paul@linuxaudiosystems.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=jsd@monmouth.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.