Skip to contentSkip to conversation

snd-cs4281 and default buffer size

DISCUSSION Meelis Roos 2 participants 2 messages Jun 12, 2006

lore
Share & tools
lore
#0 lore raw

Yesterday I struggled with Skype on IBM X20. This laptop has CS4281 onboard that didn't work in 2.6.16 but is working in 2.6.17-rc*. Mplayer and most other applications work OK, with both native ALSA and snd_pcm_oss emulation.

But Skype had very distorted and chopped sound. Some googling showed that people use the following two lines to change (increase?) the buffer sizes in OSS emulation to get it to work. These 2 lines fixed it for me too:

echo "skype 256 65535 direct block" > /proc/asound/card0/pcm0p/oss echo "skype 256 65535 direct block" > /proc/asound/card0/pcm0c/oss

But this seems to be needed only for some sound drivers, other work wine out of the box (there's been a lot of discussion about this in Skype forum).

Leaving aside the weak sound support in Skype, why do some drivers need increasing the buffers and some don't?

Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw

At Mon, 12 Jun 2006 14:17:28 +0300 (EEST),

Quoted 14 lines · Meelis Roos

Yesterday I struggled with Skype on IBM X20. This laptop has CS4281 onboard that didn't work in 2.6.16 but is working in 2.6.17-rc*. Mplayer and most other applications work OK, with both native ALSA and snd_pcm_oss emulation.

But Skype had very distorted and chopped sound. Some googling showed that people use the following two lines to change (increase?) the buffer sizes in OSS emulation to get it to work. These 2 lines fixed it for me too:

echo "skype 256 65535 direct block" > /proc/asound/card0/pcm0p/oss echo "skype 256 65535 direct block" > /proc/asound/card0/pcm0c/oss

Quoted 6 lines

But this seems to be needed only for some sound drivers, other work wine out of the box (there's been a lot of discussion about this in Skype forum).

Leaving aside the weak sound support in Skype, why do some drivers need increasing the buffers and some don't?

cs4281 has a hardware limitation that it has only up to 2 periods (fragments) in the buffer.

Takashi