On 4/28/07, Kasper Sandberg <[email protected]> wrote:
tried looking for buffer stuff in /proc/asound, couldnt find anything,
im using the via82xx driver.
Use fuser to see which sound device is used:
$ fuser /dev/snd/*
/dev/snd/controlC0: 14028
/dev/snd/pcmC0D0c: 14028m
/dev/snd/pcmC0D0p: 14028m
So process 14028 is using capture device 0 substream 0 and playback
device 0 substream 0. Examine the hw_params for playback device like
so:
$ cat /proc/asound/card0/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 2048
tick_time: 1000
This application (jackd) is a sophisticated user of ALSA API and
allows the user to set period and buffer size but many apps just use
the default they get from ALSA. These apps will work well with a
driver that happens to have a large default buffer but will fail
(skip) with drivers that default to a small buffer.
Lee
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]