Skip to contentSkip to conversation

fifo_size

DISCUSSION Adrian McMenamin 3 participants 4 messages Nov 20, 2005 – Nov 21, 2005

lore
Share & tools
lore
#0 lore raw

Is it still the case that this member of the pcm_hardware_t is unused - I am scanning through driver code where it has been set and wonder if there is a use for it?

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#1 lore raw

At Sun, 20 Nov 2005 20:19:39 +0000,

Quoted 4 lines · Adrian McMenamin

Is it still the case that this member of the pcm_hardware_t is unused - I am scanning through driver code where it has been set and wonder if there is a use for it?

Nothing, so far.
I think we can remove this field, since it's misleading.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#2 lore raw
Quoted 9 lines · Takashi Iwai

At Sun, 20 Nov 2005 20:19:39 +0000,

Quoted 4 lines · Adrian McMenamin

Is it still the case that this member of the pcm_hardware_t is unused - I am scanning through driver code where it has been set and wonder if there is a use for it?

Nothing, so far.
I think we can remove this field, since it's misleading.

I think that old ISA chips like CS4232 have FIFOs. The original purpose for this field was to inform application about extra latency before the signal goes out of soundcard (and versa vice for capture). But yes, in most cases we don't have any exact info about buffering / FIFO usage in the soundchips, so we can rename this field as reserved and remove functions from alsa-lib.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#3 lore raw

At Mon, 21 Nov 2005 11:11:49 +0100 (CET),

Quoted 10 lines · Jaroslav Kysela
Quoted 7 lines · Takashi Iwai

At Sun, 20 Nov 2005 20:19:39 +0000,

Quoted 4 lines · Adrian McMenamin

Is it still the case that this member of the pcm_hardware_t is unused - I am scanning through driver code where it has been set and wonder if there is a use for it?

Quoted 6 lines
Quoted 2 lines

Nothing, so far.
I think we can remove this field, since it's misleading.

I think that old ISA chips like CS4232 have FIFOs. The original purpose for this field was to inform application about extra latency before the signal goes out of soundcard (and versa vice for capture).

There are known hardwares which have also internal FIFOs. The problem is that its size is not always in bytes but can be in frames or samples...

Quoted 4 lines

But yes, in
most cases we don't have any exact info about buffering / FIFO usage in the soundchips, so we can rename this field as reserved and remove functions from alsa-lib.

We don't have to rename hw_params.fifo_size. The struct discussed here is snd_pcm_hardware, and this can be safely modified since it's an internal struct.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click