Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* struct snd_pcm_hardware_t values
@ 2006-08-05 13:09 Markus Rechberger
  2006-08-06 18:38 ` Markus Rechberger
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Rechberger @ 2006-08-05 13:09 UTC (permalink / raw)
  To: alsa-devel

Hi,

a half year ago I bought an au600 device
(http://alsa.opensrc.org/au600) and it's still not supported... I made
some progress uppon the driver but there are still a few issues left.

does anyone know about the snd_pcm_hardware_t struct?
I'm not sure what values I should fill in there...
My current driver supports a choppy kind of playback and capturing choppy audio.
If I use following values in the struct my box locks up when the audio
stream is over (uninitialized buffer for sure)
static snd_pcm_hardware_t snd_au600_hw = {
    .info = SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID,
    .formats = SNDRV_PCM_FMTBIT_S16_LE,
    .rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_CONTINUOUS,
    .rate_min = 9600,
    .rate_max = 9600,
    .channels_min = 1,
    .channels_max = 1,
    .buffer_bytes_max = (32*1024),
    .period_bytes_min = 64,
    .period_bytes_max = 2048,
    .periods_min = 1,
    .periods_max = 255,
};

If I set the values lower it doesn't crash anymore but afterwards the
stream sounds garbled.

The streamformat itself is PCM, 9600hz, 16Bit, mono, S16_LE (capturing
as well as playback)

Markus

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-06 20:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-05 13:09 struct snd_pcm_hardware_t values Markus Rechberger
2006-08-06 18:38 ` Markus Rechberger
2006-08-06 20:56   ` Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox