: jackd : ALSA: cannot set period size to 1024 frames for capture
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766>
======================================================================
Reported By: Raymond Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1766 Category: PCI - au88x0 Reproducibility: always Severity: block Priority: normal Status: assigned Distribution: Kernel Version: ====================================================================== Date Submitted: 01-21-2006 05:02 CET Last Modified: 07-06-2006 03:24 CEST
======================================================================
Summary: jackd : ALSA: cannot set period size to 1024 frames
for capture
Description:snd_pcm_hw_params_get_channels_max() return 4 for capture stream
static struct snd_pcm_hardware snd_vortex_playback_hw_adb = {
.info =
(SNDRV_PCM_INFO_MMAP | /* SNDRV_PCM_INFO_RESUME | */
SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP_VALID),
.formats =
SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U8 |
SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW,
.rates = SNDRV_PCM_RATE_CONTINUOUS,
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
#ifdef CHIP_AU8830
.channels_max = 4,
#else
.channels_max = 2,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
.period_bytes_max = 0x1000,
.periods_min = 2,
.periods_max = 32,
};static intvortex_adb_allocroute(vortex_t * vortex, int dma, int nr_ch, int dir, int type)
{
stream_t *stream;
int i, en;
if ((nr_ch == 3)
|| ((dir == SNDRV_PCM_STREAM_CAPTURE) && (nr_ch > 2)))
return -EBUSY;therefore jackd fail with "ALSA: cannot set period size to 1024 frames for capture"
jackd -d alsa hw:0 -S
jackd 0.100.9
...
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|16bit control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
ALSA: cannot set period size to 1024 frames for capture
ALSA: cannot configure capture channel
cannot load driver module alsa
no message buffer overruns
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001724 au88x0 PCM configuration problem - buff...
======================================================================
----------------------------------------------------------------------
Raymond - 06-28-06 05:01
----------------------------------------------------------------------
When jackd using oss , the sound play at half speed.
I don't know it is a jackd bug or oss enumeration bug.
If OSS enumeration does not support more than 2 channels, it should not tell the OSS application to use 4 channels even when ALSA driver support more than 2 channels.
----------------------------------------------------------------------
Raymond - 07-06-06 03:24
----------------------------------------------------------------------
It seem jackd expect period_size of playback streams equal to period_size of capture streams.
Since period_bytes_min and period_bytes_max in snd_vortex_playback_hw_adb is different, this make many alsa applications need workaround for au88x0 since either snd_pcm_hw_params_set_period_time_near() or snd_pcm_hw_params_set_buffer_time_near() fail most of the time.
http://bugzilla.gnome.org/show_bug.cgi?id=342085
The situtation seem to be solved if the driver set both period_bytes_min and period_bytes_max to 4096 as described in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724#10832 , however jackd
can only run with 2 playback and 2 capture channels.
Can jackd run on sound card with different number of playback and capture channels. (different period size for playback and capture stream) ?
Issue History
Date Modified Username Field Change
======================================================================
01-21-06 05:02 Raymond New Issue 01-21-06 05:25 rlrevell Note Added: 0007735 01-21-06 05:36 rlrevell Note Deleted: 0007735 01-21-06 07:36 Raymond Note Added: 0007736 01-21-06 07:41 Raymond Note Edited: 0007736 01-21-06 07:59 rlrevell Note Added: 0007737 01-23-06 10:36 Raymond Note Added: 0007761 01-23-06 10:42 Raymond Note Edited: 0007761 01-24-06 11:25 Raymond Note Added: 0007773 01-28-06 02:23 Raymond Note Added: 0007816 01-31-06 13:49 perex Relationship added related to 0001724 02-04-06 05:49 Raymond File Added: au88x0_pcm_channels.patch
02-04-06 06:14 Raymond Note Added: 0007911 02-18-06 08:34 Raymond Note Added: 0008117 02-20-06 15:32 Raymond Note Edited: 0007773 02-27-06 05:07 Raymond Note Added: 0008213 02-27-06 05:14 rlrevell Note Added: 0008214 02-27-06 05:55 Raymond Note Added: 0008215 02-27-06 09:30 Raymond Note Added: 0008220 02-27-06 09:32 Raymond Note Edited: 0008220 02-27-06 19:15 rlrevell Note Added: 0008228 02-28-06 02:44 Raymond Note Edited: 0008215 02-28-06 07:08 Raymond Note Added: 0008241 03-01-06 07:55 Raymond Note Added: 0008274 03-03-06 08:12 Raymond Note Added: 0008335 03-03-06 08:41 mjander Note Added: 0008337 03-03-06 09:02 Raymond Note Added: 0008338 03-03-06 10:49 Raymond Note Added: 0008340 03-03-06 22:36 mjander Note Added: 0008343 03-04-06 04:47 Raymond Note Edited: 0008241 04-06-06 08:41 Raymond Note Edited: 0008215 04-06-06 08:42 Raymond Note Edited: 0008215 05-14-06 13:39 Raymond Note Deleted: 0007816 05-14-06 13:40 Raymond Note Deleted: 0007773 05-14-06 13:41 Raymond Note Deleted: 0008335 05-23-06 03:31 Raymond Issue Monitored: ponchick 05-23-06 03:31 Raymond Note Added: 0009924 05-23-06 03:33 Raymond Note Edited: 0009924 05-23-06 03:39 Raymond Note Edited: 0009924 05-23-06 03:40 Raymond Note Edited: 0009924 05-23-06 03:44 Raymond Note Edited: 0009924 05-24-06 13:38 Raymond Note Added: 0009955 05-24-06 13:48 fuman Issue Monitored: fuman 05-26-06 08:22 Raymond Note Added: 0009973 06-28-06 04:58 Raymond Note Added: 0010609 06-28-06 05:01 Raymond Note Edited: 0010609 07-06-06 03:24 Raymond Note Added: 0010849
======================================================================
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642