* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-21 4:02 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-21 4:02 UTC (permalink / raw)
To: alsa-devel
The following issue has been SUBMITTED.
======================================================================
<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: 01-21-2006 05:02 CET
======================================================================
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 int
vortex_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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
01-21-06 05:02 Raymond New Issue
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-21 4:25 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-21 4:25 UTC (permalink / raw)
To: alsa-devel
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: 01-21-2006 05:25 CET
======================================================================
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 int
vortex_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
======================================================================
----------------------------------------------------------------------
rlrevell - 01-21-06 05:25
----------------------------------------------------------------------
I don't understand - where is the bug? In JACK or the driver?
Issue History
Date Modified Username Field Change
======================================================================
01-21-06 05:02 Raymond New Issue
01-21-06 05:25 rlrevell Note Added: 0007735
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-21 6:36 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-21 6:36 UTC (permalink / raw)
To: alsa-devel
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: 01-21-2006 07:36 CET
======================================================================
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 int
vortex_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
======================================================================
----------------------------------------------------------------------
Raymond - 01-21-06 07:36
----------------------------------------------------------------------
It's bug in au8830 driver, it return 4 when jack call
nd_pcm_hw_params_get_channels_max(), but au8830 driver
vortex_adb_allocroute() return EBUSY when jack open 4 channels for
capture.
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-21 6:59 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-21 6:59 UTC (permalink / raw)
To: alsa-devel
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: 01-21-2006 07:59 CET
======================================================================
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 int
vortex_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
======================================================================
----------------------------------------------------------------------
Raymond - 01-21-06 07:41
----------------------------------------------------------------------
It's bug in au8830 driver, it return 4 when jack call
snd_pcm_hw_params_get_channels_max(), but au8830 driver
vortex_adb_allocroute() return EBUSY when jack open 4 channels for
capture.
au88x0 driver should return 2 for capture stream when
snd_pcm_hw_params_get_channels_max() is called
----------------------------------------------------------------------
rlrevell - 01-21-06 07:59
----------------------------------------------------------------------
Yeah I saw that, which is why I deleted my comment ;-)
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-23 9:36 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-23 9:36 UTC (permalink / raw)
To: alsa-devel
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: 01-23-2006 10:36 CET
======================================================================
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 int
vortex_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
======================================================================
----------------------------------------------------------------------
rlrevell - 01-21-06 07:59
----------------------------------------------------------------------
Yeah I saw that, which is why I deleted my comment ;-)
----------------------------------------------------------------------
Raymond - 01-23-06 10:36
----------------------------------------------------------------------
snd_pcm_hw_params_set_period_size() fail with 4 channels playback with
err=-22
jackd -d alsa hw:0 -S -i 2
jackd 0.100.0
...
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|2|0|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
ALSA: cannot set period size to 1024 frames for playback
ALSA: cannot configure playback channel
cannot load driver module alsa
no message buffer overruns
----------------------------------------------------------------------
jackd -d alsa hw:0 -S -i 2 -o 2
jackd 0.100.0
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
**** alsa_pcm: xrun of at least 0.050 msecs
**** alsa_pcm: xrun of at least 0.045 msecs
**** alsa_pcm: xrun of at least 0.059 msecs
**** alsa_pcm: xrun of at least 0.051 msecs
----------------------------------------------------------------------
jackd -d alsa hw:0 -S -i 2 -o 2 -n 4
jackd 0.100.0
...
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|4|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 4 periods
nperiods = 4 for capture
nperiods = 4 for playback
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-24 10:25 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-24 10:25 UTC (permalink / raw)
To: alsa-devel
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: 01-24-2006 11:25 CET
======================================================================
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 int
vortex_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
======================================================================
----------------------------------------------------------------------
Raymond - 01-23-06 10:42
----------------------------------------------------------------------
snd_pcm_hw_params_set_period_size() fail with 4 channels playback with
err=-22
jackd -d alsa hw:0 -S -i 2
jackd 0.100.0
...
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|2|0|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
ALSA: cannot set period size to 1024 frames for playback
ALSA: cannot configure playback channel
cannot load driver module alsa
no message buffer overruns
----------------------------------------------------------------------
jackd -d alsa hw:0 -S -i 2 -o 2
jackd 0.100.0
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
**** alsa_pcm: xrun of at least 0.050 msecs
**** alsa_pcm: xrun of at least 0.045 msecs
**** alsa_pcm: xrun of at least 0.059 msecs
**** alsa_pcm: xrun of at least 0.051 msecs
----------------------------------------------------------------------
jackd -d alsa hw:0 -S -i 2 -o 2 -n 4
jackd 0.100.0
...
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|4|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 4 periods
nperiods = 4 for capture
nperiods = 4 for playback
----------------------------------------------------------------------
Is it related to this "if (vortex_adbdma_bufshift(vortex, i)) ;" ?
if (source & IRQ_PCMOUT) {
/* ALSA period acknowledge. */
spin_lock(&vortex->lock);
for (i = 0; i < NR_ADB; i++) {
if (vortex->dma_adb[i].fifo_status == FIFO_START) {
if (vortex_adbdma_bufshift(vortex, i)) ;
spin_unlock(&vortex->lock);
snd_pcm_period_elapsed(vortex->dma_adb[i].
substream);
spin_lock(&vortex->lock);
}
}
----------------------------------------------------------------------
Raymond - 01-24-06 11:25
----------------------------------------------------------------------
au88x0 driver only require period size to be power of two.
au88x0 have to use "export PA_ALSA_PERIODSIZE=1024" in order to use
capture function in audacity ( portaudio=v19 )
The new pcm help function will not work with au88x0 driver
int snd_pcm_set_params(snd_pcm_t *pcm,
snd_pcm_format_t format,
snd_pcm_access_t access,
unsigned int channels,
unsigned int rate,
int soft_resample,
unsigned int latency);
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-28 1:23 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-28 1:23 UTC (permalink / raw)
To: alsa-devel
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: 01-28-2006 02:23 CET
======================================================================
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 int
vortex_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
======================================================================
----------------------------------------------------------------------
Raymond - 01-24-06 11:25
----------------------------------------------------------------------
au88x0 driver only require period size to be power of two.
au88x0 have to use "export PA_ALSA_PERIODSIZE=1024" in order to use
capture function in audacity ( portaudio=v19 )
The new pcm help function will not work with au88x0 driver
int snd_pcm_set_params(snd_pcm_t *pcm,
snd_pcm_format_t format,
snd_pcm_access_t access,
unsigned int channels,
unsigned int rate,
int soft_resample,
unsigned int latency);
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724
----------------------------------------------------------------------
Raymond - 01-28-06 02:23
----------------------------------------------------------------------
define RULES_DEBUG In core/pcm_native.c
jackd -d alsa hw:0 -S -i 2
vortex_pcm_open substream->stream=0
vortex_pcm_open substream->stream=1
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 2]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 32]
Rule 4 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 5 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 6 [e1cfeea0]: CHANNELS = [1 2] -> [1 2]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 5 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 32] -> [16 32]
Rule 6 [e1cfeea0]: CHANNELS = [1 2] -> [1 2]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 32768]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [2 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [4 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 409600]
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 6553600]
Rule 20 [e1d047f0]: PERIOD_BYTES = [2 4096] -> [2 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [4 65536] -> [4 65536]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [16 32] -> [16 32]
Rule 5 [e1cfef90]: FRAME_BITS = [16 32] -> [16 32]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 409600] -> (20 42667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 6553600] -> (41 682667)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
CHANNELS = [2 2] -> [2 2]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [16 32] -> [32 32]
Rule 6 [e1cfeea0]: CHANNELS = [2 2] -> [2 2]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 16384]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2 4096] -> [4 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [4 65536] -> [8 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 42667) -> (20 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 682667) -> (41 341334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4 4096] -> [4 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8 65536] -> [8 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 16384] -> [2 16384]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 16384] -> [2 16384]
PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 16]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 16384] -> [2048 16384]
Rule 16 [e1cfef10]: PERIOD_BYTES = [4 4096] -> [4096 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8 65536] -> [8192 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 21334) -> (21333 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 341334) -> (42666 341334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 65536] -> [8192 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 16] -> [2 16]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 16384] -> [2048 16384]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 16384] -> [2048 16384]
PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2048 16384] -> [2048 2048]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8192 65536] -> [8192 8192]
Rule 19 [e1cfef90]: BUFFER_TIME = (42666 341334) -> (42666 42667)
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
SUBFORMAT = 0000000000000001 -> 0000000000000001
SAMPLE_BITS = [16 16] -> [16 16]
FRAME_BITS = [32 32] -> [32 32]
CHANNELS = [2 2] -> [2 2]
RATE = [48000 48000] -> [48000 48000]
PERIOD_TIME = (21333 21334) -> (21333 21334)
PERIOD_SIZE = [1024 1024] -> [1024 1024]
PERIOD_BYTES = [4096 4096] -> [4096 4096]
PERIODS = [2 2] -> [2 2]
BUFFER_TIME = (42666 42667) -> (42666 42667)
BUFFER_SIZE = [2048 2048] -> [2048 2048]
BUFFER_BYTES = [8192 8192] -> [8192 8192]
TICK_TIME = [10000 10000] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 1 [e1cff140]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [32 32] -> [32 32]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 6 [e1cfeea0]: CHANNELS = [2 2] -> [2 2]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 16 [e1cfef10]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 21334) -> (21333 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (42666 42667) -> (42666 42667)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
vortex_pcm_hw_params substream->stream=1
vortex_pcm_prepare substream->stream=1
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [16 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 32768]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [2 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [4 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 409600]
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 6553600]
Rule 20 [e1d047f0]: PERIOD_BYTES = [2 4096] -> [2 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [4 65536] -> [4 65536]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [16 64] -> [16 64]
Rule 5 [e1cfef90]: FRAME_BITS = [16 64] -> [16 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 409600] -> (20 42667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 6553600] -> (41 682667)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
CHANNELS = [4 4] -> [4 4]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [16 64] -> [64 64]
Rule 6 [e1cfeea0]: CHANNELS = [4 4] -> [4 4]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 512]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 32768] -> [2 16384]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 16384] -> [2 8192]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2 4096] -> [8 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [4 65536] -> [16 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 42667) -> (20 10667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 682667) -> (41 170667)
Rule 20 [e1d047f0]: PERIOD_BYTES = [8 4096] -> [8 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [16 65536] -> [16 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [64 64] -> [64 64]
Rule 5 [e1cfef90]: FRAME_BITS = [64 64] -> [64 64]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 8192] -> [2 8192]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 8192] -> [2 8192]
vortex_pcm_hw_free substream->stream=1
vortex_pcm_hw_free substream->stream=1
vortex_pcm_close substream->stream=1
vortex_pcm_hw_free substream->stream=0
vortex_pcm_close substream->stream=0
Is there any parameter in snd_vortex_playback_hw_adb cause
snd_pcm_set_period_size fail with -EINVAL ?
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-01-31 12:49 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-01-31 12:49 UTC (permalink / raw)
To: alsa-devel
The following issue has been set as RELATED TO issue 0001724.
======================================================================
<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: 01-31-2006 13:49 CET
======================================================================
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 int
vortex_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 - 01-21-06 07:41
----------------------------------------------------------------------
It's bug in au8830 driver, it return 4 when jack call
snd_pcm_hw_params_get_channels_max(), but au8830 driver
vortex_adb_allocroute() return EBUSY when jack open 4 channels for
capture.
au88x0 driver should return 2 for capture stream when
snd_pcm_hw_params_get_channels_max() is called
----------------------------------------------------------------------
rlrevell - 01-21-06 07:59
----------------------------------------------------------------------
Yeah I saw that, which is why I deleted my comment ;-)
----------------------------------------------------------------------
Raymond - 01-23-06 10:42
----------------------------------------------------------------------
snd_pcm_hw_params_set_period_size() fail with 4 channels playback with
err=-22
jackd -d alsa hw:0 -S -i 2
jackd 0.100.0
...
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|2|0|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
ALSA: cannot set period size to 1024 frames for playback
ALSA: cannot configure playback channel
cannot load driver module alsa
no message buffer overruns
----------------------------------------------------------------------
jackd -d alsa hw:0 -S -i 2 -o 2
jackd 0.100.0
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
**** alsa_pcm: xrun of at least 0.050 msecs
**** alsa_pcm: xrun of at least 0.045 msecs
**** alsa_pcm: xrun of at least 0.059 msecs
**** alsa_pcm: xrun of at least 0.051 msecs
----------------------------------------------------------------------
jackd -d alsa hw:0 -S -i 2 -o 2 -n 4
jackd 0.100.0
...
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|4|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 4 periods
nperiods = 4 for capture
nperiods = 4 for playback
----------------------------------------------------------------------
Is it related to this "if (vortex_adbdma_bufshift(vortex, i)) ;" ?
if (source & IRQ_PCMOUT) {
/* ALSA period acknowledge. */
spin_lock(&vortex->lock);
for (i = 0; i < NR_ADB; i++) {
if (vortex->dma_adb[i].fifo_status == FIFO_START) {
if (vortex_adbdma_bufshift(vortex, i)) ;
spin_unlock(&vortex->lock);
snd_pcm_period_elapsed(vortex->dma_adb[i].
substream);
spin_lock(&vortex->lock);
}
}
----------------------------------------------------------------------
Raymond - 01-24-06 11:25
----------------------------------------------------------------------
au88x0 driver only require period size to be power of two.
au88x0 have to use "export PA_ALSA_PERIODSIZE=1024" in order to use
capture function in audacity ( portaudio=v19 )
The new pcm help function will not work with au88x0 driver
int snd_pcm_set_params(snd_pcm_t *pcm,
snd_pcm_format_t format,
snd_pcm_access_t access,
unsigned int channels,
unsigned int rate,
int soft_resample,
unsigned int latency);
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1724
----------------------------------------------------------------------
Raymond - 01-28-06 02:23
----------------------------------------------------------------------
define RULES_DEBUG In core/pcm_native.c
jackd -d alsa hw:0 -S -i 2
vortex_pcm_open substream->stream=0
vortex_pcm_open substream->stream=1
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 2]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 32]
Rule 4 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 5 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 6 [e1cfeea0]: CHANNELS = [1 2] -> [1 2]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 5 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 32] -> [16 32]
Rule 6 [e1cfeea0]: CHANNELS = [1 2] -> [1 2]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 32768]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [2 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [4 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 409600]
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 6553600]
Rule 20 [e1d047f0]: PERIOD_BYTES = [2 4096] -> [2 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [4 65536] -> [4 65536]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [16 32] -> [16 32]
Rule 5 [e1cfef90]: FRAME_BITS = [16 32] -> [16 32]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 409600] -> (20 42667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 6553600] -> (41 682667)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
CHANNELS = [2 2] -> [2 2]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [16 32] -> [32 32]
Rule 6 [e1cfeea0]: CHANNELS = [2 2] -> [2 2]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 16384]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2 4096] -> [4 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [4 65536] -> [8 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 42667) -> (20 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 682667) -> (41 341334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4 4096] -> [4 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8 65536] -> [8 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 16384] -> [2 16384]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 16384] -> [2 16384]
PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 16]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 16384] -> [2048 16384]
Rule 16 [e1cfef10]: PERIOD_BYTES = [4 4096] -> [4096 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8 65536] -> [8192 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 21334) -> (21333 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 341334) -> (42666 341334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 65536] -> [8192 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 16] -> [2 16]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 16384] -> [2048 16384]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 16384] -> [2048 16384]
PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2048 16384] -> [2048 2048]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8192 65536] -> [8192 8192]
Rule 19 [e1cfef90]: BUFFER_TIME = (42666 341334) -> (42666 42667)
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
SUBFORMAT = 0000000000000001 -> 0000000000000001
SAMPLE_BITS = [16 16] -> [16 16]
FRAME_BITS = [32 32] -> [32 32]
CHANNELS = [2 2] -> [2 2]
RATE = [48000 48000] -> [48000 48000]
PERIOD_TIME = (21333 21334) -> (21333 21334)
PERIOD_SIZE = [1024 1024] -> [1024 1024]
PERIOD_BYTES = [4096 4096] -> [4096 4096]
PERIODS = [2 2] -> [2 2]
BUFFER_TIME = (42666 42667) -> (42666 42667)
BUFFER_SIZE = [2048 2048] -> [2048 2048]
BUFFER_BYTES = [8192 8192] -> [8192 8192]
TICK_TIME = [10000 10000] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 1 [e1cff140]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [32 32] -> [32 32]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 6 [e1cfeea0]: CHANNELS = [2 2] -> [2 2]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 16 [e1cfef10]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 21334) -> (21333 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (42666 42667) -> (42666 42667)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
vortex_pcm_hw_params substream->stream=1
vortex_pcm_prepare substream->stream=1
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [16 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 32768]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [2 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [4 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 409600]
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 6553600]
Rule 20 [e1d047f0]: PERIOD_BYTES = [2 4096] -> [2 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [4 65536] -> [4 65536]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [16 64] -> [16 64]
Rule 5 [e1cfef90]: FRAME_BITS = [16 64] -> [16 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 409600] -> (20 42667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 6553600] -> (41 682667)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
CHANNELS = [4 4] -> [4 4]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [16 64] -> [64 64]
Rule 6 [e1cfeea0]: CHANNELS = [4 4] -> [4 4]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 512]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 32768] -> [2 16384]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 16384] -> [2 8192]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2 4096] -> [8 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [4 65536] -> [16 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 42667) -> (20 10667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 682667) -> (41 170667)
Rule 20 [e1d047f0]: PERIOD_BYTES = [8 4096] -> [8 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [16 65536] -> [16 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [64 64] -> [64 64]
Rule 5 [e1cfef90]: FRAME_BITS = [64 64] -> [64 64]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 8192] -> [2 8192]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 8192] -> [2 8192]
vortex_pcm_hw_free substream->stream=1
vortex_pcm_hw_free substream->stream=1
vortex_pcm_close substream->stream=1
vortex_pcm_hw_free substream->stream=0
vortex_pcm_close substream->stream=0
Is there any parameter in snd_vortex_playback_hw_adb cause
snd_pcm_set_period_size fail with -EINVAL ?
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-04 5:14 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-04 5:14 UTC (permalink / raw)
To: alsa-devel
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: 02-04-2006 06:14 CET
======================================================================
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 int
vortex_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 - 01-28-06 02:23
----------------------------------------------------------------------
define RULES_DEBUG In core/pcm_native.c
jackd -d alsa hw:0 -S -i 2
vortex_pcm_open substream->stream=0
vortex_pcm_open substream->stream=1
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 2]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 32]
Rule 4 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 5 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 6 [e1cfeea0]: CHANNELS = [1 2] -> [1 2]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 5 [e1cfef90]: FRAME_BITS = [8 32] -> [8 32]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 32] -> [16 32]
Rule 6 [e1cfeea0]: CHANNELS = [1 2] -> [1 2]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 32768]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [2 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [4 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 409600]
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 6553600]
Rule 20 [e1d047f0]: PERIOD_BYTES = [2 4096] -> [2 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [4 65536] -> [4 65536]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [16 32] -> [16 32]
Rule 5 [e1cfef90]: FRAME_BITS = [16 32] -> [16 32]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 409600] -> (20 42667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 6553600] -> (41 682667)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
CHANNELS = [2 2] -> [2 2]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [16 32] -> [32 32]
Rule 6 [e1cfeea0]: CHANNELS = [2 2] -> [2 2]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 16384]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2 4096] -> [4 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [4 65536] -> [8 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 42667) -> (20 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 682667) -> (41 341334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4 4096] -> [4 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8 65536] -> [8 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 1024] -> [1 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 16384] -> [2 16384]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 16384] -> [2 16384]
PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 16]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 16384] -> [2048 16384]
Rule 16 [e1cfef10]: PERIOD_BYTES = [4 4096] -> [4096 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8 65536] -> [8192 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 21334) -> (21333 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 341334) -> (42666 341334)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 65536] -> [8192 65536]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 16] -> [2 16]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 16384] -> [2048 16384]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 16384] -> [2048 16384]
PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2048 16384] -> [2048 2048]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8192 65536] -> [8192 8192]
Rule 19 [e1cfef90]: BUFFER_TIME = (42666 341334) -> (42666 42667)
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
SUBFORMAT = 0000000000000001 -> 0000000000000001
SAMPLE_BITS = [16 16] -> [16 16]
FRAME_BITS = [32 32] -> [32 32]
CHANNELS = [2 2] -> [2 2]
RATE = [48000 48000] -> [48000 48000]
PERIOD_TIME = (21333 21334) -> (21333 21334)
PERIOD_SIZE = [1024 1024] -> [1024 1024]
PERIOD_BYTES = [4096 4096] -> [4096 4096]
PERIODS = [2 2] -> [2 2]
BUFFER_TIME = (42666 42667) -> (42666 42667)
BUFFER_SIZE = [2048 2048] -> [2048 2048]
BUFFER_BYTES = [8192 8192] -> [8192 8192]
TICK_TIME = [10000 10000] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 1 [e1cff140]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [32 32] -> [32 32]
Rule 4 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 5 [e1cfef90]: FRAME_BITS = [32 32] -> [32 32]
Rule 6 [e1cfeea0]: CHANNELS = [2 2] -> [2 2]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 2] -> [2 2]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1024 1024] -> [1024 1024]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2048 2048] -> [2048 2048]
Rule 16 [e1cfef10]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
Rule 18 [e1cfef90]: PERIOD_TIME = (21333 21334) -> (21333 21334)
Rule 19 [e1cfef90]: BUFFER_TIME = (42666 42667) -> (42666 42667)
Rule 20 [e1d047f0]: PERIOD_BYTES = [4096 4096] -> [4096 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [8192 8192] -> [8192 8192]
vortex_pcm_hw_params substream->stream=1
vortex_pcm_prepare substream->stream=1
ACCESS = 00000000ffffffffffffffff -> 0000000000000009
FORMAT = 00000000ffffffffffffffff -> 000000000000300006
SUBFORMAT = 00000000ffffffffffffffff -> 0000000000000001
SAMPLE_BITS = [0 4294967295] -> [0 4294967295]
FRAME_BITS = [0 4294967295] -> [0 4294967295]
CHANNELS = [0 4294967295] -> [1 4]
RATE = [0 4294967295] -> [5000 48000]
PERIOD_TIME = [0 4294967295] -> [0 4294967295]
PERIOD_SIZE = [0 4294967295] -> [0 4294967295]
PERIOD_BYTES = [0 4294967295] -> [1 4096]
PERIODS = [0 4294967295] -> [2 32]
BUFFER_TIME = [0 4294967295] -> [0 4294967295]
BUFFER_SIZE = [0 4294967295] -> [0 4294967295]
BUFFER_BYTES = [0 4294967295] -> [1 65536]
TICK_TIME = [0 4294967295] -> [10000 10000]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 1 [e1cff140]: SAMPLE_BITS = [0 4294967295] -> [8 16]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 3 [e1cfee30]: FRAME_BITS = [0 4294967295] -> [8 64]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [0 4294967295] -> [0 2147483647]
Rule 11 [e1cfef90]: PERIOD_SIZE = [0 2147483647] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 13 [e1cfee30]: BUFFER_SIZE = [0 4294967295] -> [2 131072]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 131072] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [1 65536] -> [2 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = [0 4294967295] -> (20 819200]
Rule 19 [e1cfef90]: BUFFER_TIME = [0 4294967295] -> (41 13107200]
Rule 20 [e1d047f0]: PERIOD_BYTES = [1 4096] -> [1 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [2 65536] -> [2 65536]
Rule 0 [e1cff010]: FORMAT = 300006 -> 300006
Rule 2 [e1cfeea0]: SAMPLE_BITS = [8 16] -> [8 16]
Rule 4 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 5 [e1cfef90]: FRAME_BITS = [8 64] -> [8 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 4096] -> [1 4096]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 65536] -> [2 65536]
ACCESS = 0000000000000001 -> 0000000000000001
FORMAT = 0000000000000004 -> 0000000000000004
Rule 1 [e1cff140]: SAMPLE_BITS = [8 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [8 64] -> [16 64]
Rule 6 [e1cfeea0]: CHANNELS = [1 4] -> [1 4]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 4096] -> [1 2048]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 65536] -> [2 65536]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 65536] -> [2 32768]
Rule 16 [e1cfef10]: PERIOD_BYTES = [1 4096] -> [2 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [2 65536] -> [4 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 819200] -> (20 409600]
Rule 19 [e1cfef90]: BUFFER_TIME = (41 13107200] -> (41 6553600]
Rule 20 [e1d047f0]: PERIOD_BYTES = [2 4096] -> [2 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [4 65536] -> [4 65536]
Rule 0 [e1cff010]: FORMAT = 4 -> 4
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [16 64] -> [16 64]
Rule 5 [e1cfef90]: FRAME_BITS = [16 64] -> [16 64]
Rule 7 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 8 [e1cfef90]: RATE = [5000 48000] -> [5000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 409600] -> (20 42667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 6553600] -> (41 682667)
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 2048] -> [1 2048]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 32768] -> [2 32768]
CHANNELS = [4 4] -> [4 4]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 3 [e1cfee30]: FRAME_BITS = [16 64] -> [64 64]
Rule 6 [e1cfeea0]: CHANNELS = [4 4] -> [4 4]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 2048] -> [1 512]
Rule 13 [e1cfee30]: BUFFER_SIZE = [2 32768] -> [2 16384]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 16384] -> [2 8192]
Rule 16 [e1cfef10]: PERIOD_BYTES = [2 4096] -> [8 4096]
Rule 17 [e1cfef10]: BUFFER_BYTES = [4 65536] -> [16 65536]
Rule 18 [e1cfef90]: PERIOD_TIME = (20 42667) -> (20 10667)
Rule 19 [e1cfef90]: BUFFER_TIME = (41 682667) -> (41 170667)
Rule 20 [e1d047f0]: PERIOD_BYTES = [8 4096] -> [8 4096]
Rule 21 [e1cff230]: BUFFER_BYTES = [16 65536] -> [16 65536]
Rule 2 [e1cfeea0]: SAMPLE_BITS = [16 16] -> [16 16]
Rule 4 [e1cfef90]: FRAME_BITS = [64 64] -> [64 64]
Rule 5 [e1cfef90]: FRAME_BITS = [64 64] -> [64 64]
Rule 7 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 8 [e1cfef90]: RATE = [48000 48000] -> [48000 48000]
Rule 9 [e1cfeea0]: PERIODS = [2 32] -> [2 32]
Rule 10 [e1cfeea0]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 11 [e1cfef90]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 12 [e1cfef10]: PERIOD_SIZE = [1 512] -> [1 512]
Rule 14 [e1cfef90]: BUFFER_SIZE = [2 8192] -> [2 8192]
Rule 15 [e1cfef10]: BUFFER_SIZE = [2 8192] -> [2 8192]
vortex_pcm_hw_free substream->stream=1
vortex_pcm_hw_free substream->stream=1
vortex_pcm_close substream->stream=1
vortex_pcm_hw_free substream->stream=0
vortex_pcm_close substream->stream=0
Is there any parameter in snd_vortex_playback_hw_adb cause
snd_pcm_set_period_size fail with -EINVAL ?
----------------------------------------------------------------------
Raymond - 02-04-06 06:14
----------------------------------------------------------------------
The patch fix the channels_max of adb device
- capture should be 2
- playback depends on the codec is quad or stereo
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-18 7:34 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-18 7:34 UTC (permalink / raw)
To: alsa-devel
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: 02-18-2006 08:34 CET
======================================================================
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 int
vortex_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 - 02-04-06 06:14
----------------------------------------------------------------------
The patch fix the channels_max of adb device
- capture should be 2
- playback depends on the codec is quad or stereo
----------------------------------------------------------------------
Raymond - 02-18-06 08:34
----------------------------------------------------------------------
- channels_max of capture stream = 2
- channels_max of playback stream depends on the codec is quad or stereo
- channels constraint is 1, 2, 4
Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_pcm.c,v
retrieving revision 1.11
diff -u -r1.11 au88x0_pcm.c
--- alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 17 Nov 2005 14:55:19
-0000 1.11
+++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 18 Feb 2006 07:30:35
-0000
@@ -43,10 +43,10 @@
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
-#ifdef CHIP_AU8830
- .channels_max = 4,
-#else
+#ifndef CHIP_AU8820
.channels_max = 2,
+#else
+ .channels_max = 4,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
@@ -116,6 +116,17 @@
.periods_max = 64,
};
#endif
+
+static unsigned int channels4[3] = {
+ 1, 2, 4
+};
+
+static struct snd_pcm_hw_constraint_list hw_constraints_channels4 = {
+ .count = ARRAY_SIZE(channels4),
+ .list = channels4,
+ .mask = 0,
+};
+
/* open callback */
static int snd_vortex_pcm_open(struct snd_pcm_substream *substream)
{
@@ -154,9 +165,21 @@
break;
}
}
- if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB
- || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S)
+ if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
runtime->hw = snd_vortex_playback_hw_adb;
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
+ if (VORTEX_IS_QUAD(vortex)) {
+ runtime->hw.channels_max = 4;
+ snd_pcm_hw_constraint_list(runtime, 0,
+ SNDRV_PCM_HW_PARAM_CHANNELS,
+ &hw_constraints_channels4);
+ }
+ else
+ runtime->hw.channels_max = 2;
+ }
+ else
+ runtime->hw.channels_max = 2;
+ };
substream->runtime->private_data = NULL;
}
#ifndef CHIP_AU8810
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
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-27 4:07 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-27 4:07 UTC (permalink / raw)
To: alsa-devel
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: 02-27-2006 05:07 CET
======================================================================
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 int
vortex_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 - 02-18-06 08:34
----------------------------------------------------------------------
- channels_max of capture stream = 2
- channels_max of playback stream depends on the codec is quad or stereo
- channels constraint is 1, 2, 4
Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_pcm.c,v
retrieving revision 1.11
diff -u -r1.11 au88x0_pcm.c
--- alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 17 Nov 2005 14:55:19
-0000 1.11
+++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 18 Feb 2006 07:30:35
-0000
@@ -43,10 +43,10 @@
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
-#ifdef CHIP_AU8830
- .channels_max = 4,
-#else
+#ifndef CHIP_AU8820
.channels_max = 2,
+#else
+ .channels_max = 4,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
@@ -116,6 +116,17 @@
.periods_max = 64,
};
#endif
+
+static unsigned int channels4[3] = {
+ 1, 2, 4
+};
+
+static struct snd_pcm_hw_constraint_list hw_constraints_channels4 = {
+ .count = ARRAY_SIZE(channels4),
+ .list = channels4,
+ .mask = 0,
+};
+
/* open callback */
static int snd_vortex_pcm_open(struct snd_pcm_substream *substream)
{
@@ -154,9 +165,21 @@
break;
}
}
- if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB
- || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S)
+ if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
runtime->hw = snd_vortex_playback_hw_adb;
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
+ if (VORTEX_IS_QUAD(vortex)) {
+ runtime->hw.channels_max = 4;
+ snd_pcm_hw_constraint_list(runtime, 0,
+ SNDRV_PCM_HW_PARAM_CHANNELS,
+ &hw_constraints_channels4);
+ }
+ else
+ runtime->hw.channels_max = 2;
+ }
+ else
+ runtime->hw.channels_max = 2;
+ };
substream->runtime->private_data = NULL;
}
#ifndef CHIP_AU8810
----------------------------------------------------------------------
Raymond - 02-27-06 05:07
----------------------------------------------------------------------
Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_pcm.c,v
retrieving revision 1.11
diff -u -r1.11 au88x0_pcm.c
--- alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 17 Nov 2005 14:55:19
-0000 1.11
+++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 27 Feb 2006 04:02:30
-0000
@@ -43,10 +43,10 @@
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
-#ifdef CHIP_AU8830
- .channels_max = 4,
-#else
+#ifndef CHIP_AU8820
.channels_max = 2,
+#else
+ .channels_max = 4,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
@@ -55,6 +55,26 @@
.periods_max = 32,
};
+static struct snd_pcm_hardware snd_vortex_capture_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,
+ .channels_max = 2,
+ .buffer_bytes_max = 0x10000,
+ .period_bytes_min = 0x1,
+ .period_bytes_max = 0x1000,
+ .periods_min = 2,
+ .periods_max = 32,
+};
+
#ifndef CHIP_AU8820
static struct snd_pcm_hardware snd_vortex_playback_hw_a3d = {
.info =
@@ -116,6 +136,17 @@
.periods_max = 64,
};
#endif
+
+static unsigned int channels4[3] = {
+ 1, 2, 4
+};
+
+static struct snd_pcm_hw_constraint_list hw_constraints_channels4 = {
+ .count = ARRAY_SIZE(channels4),
+ .list = channels4,
+ .mask = 0,
+};
+
/* open callback */
static int snd_vortex_pcm_open(struct snd_pcm_substream *substream)
{
@@ -154,9 +185,21 @@
break;
}
}
- if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB
- || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S)
- runtime->hw = snd_vortex_playback_hw_adb;
+ if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
+ runtime->hw = snd_vortex_playback_hw_adb;
+ if (VORTEX_IS_QUAD(vortex)) {
+ runtime->hw.channels_max = 4;
+ snd_pcm_hw_constraint_list(runtime, 0,
+ SNDRV_PCM_HW_PARAM_CHANNELS,
+ &hw_constraints_channels4);
+ }
+ else
+ runtime->hw.channels_max = 2;
+ }
+ else
+ runtime->hw = snd_vortex_capture_hw_adb;
+ };
substream->runtime->private_data = NULL;
}
#ifndef CHIP_AU8810
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-27 4:14 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-27 4:14 UTC (permalink / raw)
To: alsa-devel
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: 02-27-2006 05:14 CET
======================================================================
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 int
vortex_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 - 02-27-06 05:07
----------------------------------------------------------------------
Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_pcm.c,v
retrieving revision 1.11
diff -u -r1.11 au88x0_pcm.c
--- alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 17 Nov 2005 14:55:19
-0000 1.11
+++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_pcm.c 27 Feb 2006 04:02:30
-0000
@@ -43,10 +43,10 @@
.rate_min = 5000,
.rate_max = 48000,
.channels_min = 1,
-#ifdef CHIP_AU8830
- .channels_max = 4,
-#else
+#ifndef CHIP_AU8820
.channels_max = 2,
+#else
+ .channels_max = 4,
#endif
.buffer_bytes_max = 0x10000,
.period_bytes_min = 0x1,
@@ -55,6 +55,26 @@
.periods_max = 32,
};
+static struct snd_pcm_hardware snd_vortex_capture_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,
+ .channels_max = 2,
+ .buffer_bytes_max = 0x10000,
+ .period_bytes_min = 0x1,
+ .period_bytes_max = 0x1000,
+ .periods_min = 2,
+ .periods_max = 32,
+};
+
#ifndef CHIP_AU8820
static struct snd_pcm_hardware snd_vortex_playback_hw_a3d = {
.info =
@@ -116,6 +136,17 @@
.periods_max = 64,
};
#endif
+
+static unsigned int channels4[3] = {
+ 1, 2, 4
+};
+
+static struct snd_pcm_hw_constraint_list hw_constraints_channels4 = {
+ .count = ARRAY_SIZE(channels4),
+ .list = channels4,
+ .mask = 0,
+};
+
/* open callback */
static int snd_vortex_pcm_open(struct snd_pcm_substream *substream)
{
@@ -154,9 +185,21 @@
break;
}
}
- if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB
- || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S)
- runtime->hw = snd_vortex_playback_hw_adb;
+ if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
+ runtime->hw = snd_vortex_playback_hw_adb;
+ if (VORTEX_IS_QUAD(vortex)) {
+ runtime->hw.channels_max = 4;
+ snd_pcm_hw_constraint_list(runtime, 0,
+ SNDRV_PCM_HW_PARAM_CHANNELS,
+ &hw_constraints_channels4);
+ }
+ else
+ runtime->hw.channels_max = 2;
+ }
+ else
+ runtime->hw = snd_vortex_capture_hw_adb;
+ };
substream->runtime->private_data = NULL;
}
#ifndef CHIP_AU8810
----------------------------------------------------------------------
rlrevell - 02-27-06 05:14
----------------------------------------------------------------------
This patch fixes the bug?
Can you send all your au88x0 patches for 1.0.11 to tiwai?
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-27 4:55 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-27 4:55 UTC (permalink / raw)
To: alsa-devel
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: 02-27-2006 05:55 CET
======================================================================
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 int
vortex_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...
======================================================================
----------------------------------------------------------------------
rlrevell - 02-27-06 05:14
----------------------------------------------------------------------
This patch fixes the bug?
Can you send all your au88x0 patches for 1.0.11 to tiwai?
----------------------------------------------------------------------
Raymond - 02-27-06 05:55
----------------------------------------------------------------------
Only test with jackd and qjackctl, are there any jack application which can
playback/capture ?
jackd -d alsa -S -p512
jackd 0.100.0
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|512|2|48000|0|0|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 512 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
---------------------------------------------------------------------
jackd -d alsa -S
jackd 0.100.0
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
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
nperiods = 2 for capture
ALSA: cannot set period size to 1024 frames for playback
ALSA: cannot configure playback channel
cannot load driver module alsa
no message buffer overruns
--------------------------------------------------------------------------
jaaa-0.1.2]# make
g++ -L/usr/X11R6/lib -o jaaa main.o styles.o spectwin.o audio.o rngen.o
-lclalsadrv -lclxclient -lclthreads -ljack -lasound -lfftw3 -lpthread
-lrt
spectwin.o(.text+0x979): In function
`Spectwin::Spectwin[not-in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x98b): In function
`Spectwin::Spectwin[not-in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x1409): In function
`Spectwin::Spectwin[in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x141b): In function
`Spectwin::Spectwin[in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x157f): In function `Spectwin::~Spectwin
[not-in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x158b): In function `Spectwin::~Spectwin
[not-in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x15f9): In function `Spectwin::~Spectwin
[not-in-charge]()':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x167b): In function `Spectwin::~Spectwin
[in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x1687): In function `Spectwin::~Spectwin
[in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x16f5): In function `Spectwin::~Spectwin
[in-charge]()':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x1777): In function `Spectwin::~Spectwin [in-charge
deleting]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x1783): In function `Spectwin::~Spectwin [in-charge
deleting]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x17fd): In function `Spectwin::~Spectwin [in-charge
deleting]()':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x3de2): In function `Spectwin::alloc_fft(Spectdata*)':
: undefined reference to `fftwf_plan_dft_r2c_1d'
spectwin.o(.text+0x3e22): In function `Spectwin::alloc_fft(Spectdata*)':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x3f89): In function `Spectwin::handle_trig()':
: undefined reference to `fftwf_execute_dft_r2c'
collect2: ld returned 1 exit status
make: *** [jaaa] Error 1
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-27 8:30 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-27 8:30 UTC (permalink / raw)
To: alsa-devel
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: 02-27-2006 09:30 CET
======================================================================
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 int
vortex_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 - 02-27-06 05:55
----------------------------------------------------------------------
Only test with jackd and qjackctl, are there any jack application which can
playback/capture ?
jackd -d alsa -S -p512
jackd 0.100.0
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|512|2|48000|0|0|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 512 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
---------------------------------------------------------------------
jackd -d alsa -S
jackd 0.100.0
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
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
nperiods = 2 for capture
ALSA: cannot set period size to 1024 frames for playback
ALSA: cannot configure playback channel
cannot load driver module alsa
no message buffer overruns
--------------------------------------------------------------------------
jaaa-0.1.2]# make
g++ -L/usr/X11R6/lib -o jaaa main.o styles.o spectwin.o audio.o rngen.o
-lclalsadrv -lclxclient -lclthreads -ljack -lasound -lfftw3 -lpthread
-lrt
spectwin.o(.text+0x979): In function
`Spectwin::Spectwin[not-in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x98b): In function
`Spectwin::Spectwin[not-in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x1409): In function
`Spectwin::Spectwin[in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x141b): In function
`Spectwin::Spectwin[in-charge](X_window*, ITC_ctrl*, char const*)':
: undefined reference to `fftwf_malloc'
spectwin.o(.text+0x157f): In function `Spectwin::~Spectwin
[not-in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x158b): In function `Spectwin::~Spectwin
[not-in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x15f9): In function `Spectwin::~Spectwin
[not-in-charge]()':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x167b): In function `Spectwin::~Spectwin
[in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x1687): In function `Spectwin::~Spectwin
[in-charge]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x16f5): In function `Spectwin::~Spectwin
[in-charge]()':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x1777): In function `Spectwin::~Spectwin [in-charge
deleting]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x1783): In function `Spectwin::~Spectwin [in-charge
deleting]()':
: undefined reference to `fftwf_free'
spectwin.o(.text+0x17fd): In function `Spectwin::~Spectwin [in-charge
deleting]()':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x3de2): In function `Spectwin::alloc_fft(Spectdata*)':
: undefined reference to `fftwf_plan_dft_r2c_1d'
spectwin.o(.text+0x3e22): In function `Spectwin::alloc_fft(Spectdata*)':
: undefined reference to `fftwf_destroy_plan'
spectwin.o(.text+0x3f89): In function `Spectwin::handle_trig()':
: undefined reference to `fftwf_execute_dft_r2c'
collect2: ld returned 1 exit status
make: *** [jaaa] Error 1
----------------------------------------------------------------------
Raymond - 02-27-06 09:30
----------------------------------------------------------------------
What is the usage of hw_meter in jack ?
Can the 10-band stereo EQ peak be used as hw_meter ?
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-27 18:15 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-27 18:15 UTC (permalink / raw)
To: alsa-devel
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: 02-27-2006 19:15 CET
======================================================================
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 int
vortex_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 - 02-27-06 09:32
----------------------------------------------------------------------
What is the usage of hw_meter in jack ?
Can the 10-band stereo EQ peak be used as hw_meter ?
http://alsa.opensrc.org/au88x0
----------------------------------------------------------------------
rlrevell - 02-27-06 19:15
----------------------------------------------------------------------
It's a NOOP - unimplemented. I think it will be removed before the 1.0
release.
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-02-28 6:08 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-02-28 6:08 UTC (permalink / raw)
To: alsa-devel
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: 02-28-2006 07:08 CET
======================================================================
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 int
vortex_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...
======================================================================
----------------------------------------------------------------------
rlrevell - 02-27-06 19:15
----------------------------------------------------------------------
It's a NOOP - unimplemented. I think it will be removed before the 1.0
release.
----------------------------------------------------------------------
Raymond - 02-28-06 07:08
----------------------------------------------------------------------
Is it normal to have 2 capture ?
jack-audio-connection-kit-0.100.0/example-clients/jack_lsp
alsa_pcm:capture_1
alsa_pcm:capture_2
alsa_pcm:playback_1
alsa_pcm:playback_2
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-03-01 6:55 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-03-01 6:55 UTC (permalink / raw)
To: alsa-devel
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: 03-01-2006 07:55 CET
======================================================================
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 int
vortex_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 - 02-28-06 07:08
----------------------------------------------------------------------
Is it normal to have 2 capture ?
jack-audio-connection-kit-0.100.0/example-clients/jack_lsp
alsa_pcm:capture_1
alsa_pcm:capture_2
alsa_pcm:playback_1
alsa_pcm:playback_2
----------------------------------------------------------------------
Raymond - 03-01-06 07:55
----------------------------------------------------------------------
The patch "snd_vortex_capture_hw_adb" fix the reported bug.
Are the any jack application support 4 channel playback ?
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-03-03 7:12 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-03-03 7:12 UTC (permalink / raw)
To: alsa-devel
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: 03-03-2006 08:12 CET
======================================================================
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 int
vortex_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 - 03-01-06 07:55
----------------------------------------------------------------------
The patch "snd_vortex_capture_hw_adb" fix the reported bug.
Are the any jack application support 4 channel playback ?
----------------------------------------------------------------------
Raymond - 03-03-06 08:12
----------------------------------------------------------------------
What is a SND_PCM_TYPE_METER pcm ?
http://alsa-project.org/alsa-doc/alsa-lib/group___p_c_m___scope.html
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-03-03 7:41 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-03-03 7:41 UTC (permalink / raw)
To: alsa-devel
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: 03-03-2006 08:41 CET
======================================================================
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 int
vortex_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 - 03-03-06 08:12
----------------------------------------------------------------------
What is a SND_PCM_TYPE_METER pcm ?
http://alsa-project.org/alsa-doc/alsa-lib/group___p_c_m___scope.html
----------------------------------------------------------------------
mjander - 03-03-06 08:41
----------------------------------------------------------------------
Hi,
jackd works perfectly even with period counts that are not power of 2 (I
really wonder how this assumption was made ?).
For example:
jackd -d alsa -S -i 2 -o 2 -n 3 -p 512
jackd 0.100.0
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|512|3|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 512 frames, buffer = 3 periods
nperiods = 3 for capture
nperiods = 3 for playback
jack main caught signal 2
no message buffer overruns
With only 2 periods the au8830 has xruns... that maybe could be looked at
why it happens, and improved.
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-03-03 8:02 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-03-03 8:02 UTC (permalink / raw)
To: alsa-devel
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: 03-03-2006 09:02 CET
======================================================================
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 int
vortex_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...
======================================================================
----------------------------------------------------------------------
mjander - 03-03-06 08:41
----------------------------------------------------------------------
Hi,
jackd works perfectly even with period counts that are not power of 2 (I
really wonder how this assumption was made ?).
For example:
jackd -d alsa -S -i 2 -o 2 -n 3 -p 512
jackd 0.100.0
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|512|3|48000|2|2|nomon|swmeter|-|16bit
control device hw:0
configuring for 48000Hz, period = 512 frames, buffer = 3 periods
nperiods = 3 for capture
nperiods = 3 for playback
jack main caught signal 2
no message buffer overruns
With only 2 periods the au8830 has xruns... that maybe could be looked at
why it happens, and improved.
----------------------------------------------------------------------
Raymond - 03-03-06 09:02
----------------------------------------------------------------------
The problem is clicks is heard after remove the constraint
if ((err =
snd_pcm_hw_constraint_pow2(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-03-03 9:49 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-03-03 9:49 UTC (permalink / raw)
To: alsa-devel
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: 03-03-2006 10:49 CET
======================================================================
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 int
vortex_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 - 03-03-06 09:02
----------------------------------------------------------------------
The problem is clicks is heard after remove the constraint
if ((err =
snd_pcm_hw_constraint_pow2(runtime, 0,
SNDRV_PCM_HW_PARAM_PERIOD_BYTES)) < 0)
return err;
----------------------------------------------------------------------
Raymond - 03-03-06 10:49
----------------------------------------------------------------------
As the adbdma has 4 sub-buffer, do the interrupt occur when 1, 2 or 3
sub-buffers are played/captured ?
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-03-03 21:36 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-03-03 21:36 UTC (permalink / raw)
To: alsa-devel
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: 03-03-2006 22:36 CET
======================================================================
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 int
vortex_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 - 03-03-06 10:49
----------------------------------------------------------------------
As the adbdma has 4 sub-buffer, do the interrupt occur when 1, 2 or 3
sub-buffers are played/captured ?
----------------------------------------------------------------------
mjander - 03-03-06 22:36
----------------------------------------------------------------------
Raymond: Could you please contact me at mmjander@yahoo.com please ?
Thanks.
The constraint for the subbuffer size to be power of 2 should NOT BE
REMOVED UNDER ANY CIRCUMSTANCE. It is absolutely required. If you do so,
you could in theory even cause a kernel panic.
And please stop using the bugtracking system for questions. Use the
developer mailing list for that. I have no problem answering them, but it
is very anoying to have to write bucktrack note every time for that.
Thank you.
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
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-05-24 11:38 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-05-24 11:38 UTC (permalink / raw)
To: alsa-devel
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: 05-24-2006 13:38 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 int
vortex_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 - 05-23-06 03:44
----------------------------------------------------------------------
The error message which you reported in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1833#8086 can be easily
reproduced by
jackd -d oss -i 4
dmesg
vortex: FATAL: ResManager: resource type 0 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.
ALSA pcm_oss.c:459: HW_PARAMS failed: -16
The bug can be fixed by patch in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766#8213 but need one
SQ1500 user to
confirm SQ1500 has a quad codec
----------------------------------------------------------------------
Raymond - 05-24-06 13:38
----------------------------------------------------------------------
There is difference between
"jackd -d alsa hw:0 -S"
and
"jackd -d oss -i4"
snd_vortex_hw_params() reject 4 channels capture
snd_vortex_pcm_hw_free()
For ALSA, the parameter stream is NULL, vortex_adb_allocroute() is not
called
For ALSA OSS emulation,
1) the parameter stream is not null
2) stream->dma >=0
3) stream->nr_ch is equal 1
the above condition cause the fuction vortex_adb_allocroute() to release
resources which has not been allocated
vortex: FATAL: ResManager: resource type 0 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.
The driver should rejct 4 channels capture when
snd_pcm_hw_param_set_channels() is called (i.e. add the correct rule for
channel by snd_vortex_pcm_open()
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
======================================================================
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-05-26 6:22 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-05-26 6:22 UTC (permalink / raw)
To: alsa-devel
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: 05-26-2006 08:22 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 int
vortex_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 - 05-24-06 13:38
----------------------------------------------------------------------
There is difference between
"jackd -d alsa hw:0 -S"
and
"jackd -d oss -i4"
snd_vortex_hw_params() reject 4 channels capture
snd_vortex_pcm_hw_free()
For ALSA, the parameter stream is NULL, vortex_adb_allocroute() is not
called
For ALSA OSS emulation,
1) the parameter stream is not null
2) stream->dma >=0
3) stream->nr_ch is equal 1
the above condition cause the fuction vortex_adb_allocroute() to release
resources which has not been allocated
vortex: FATAL: ResManager: resource type 0 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.
The driver should rejct 4 channels capture when
snd_pcm_hw_param_set_channels() is called (i.e. add the correct rule for
channel by snd_vortex_pcm_open()
----------------------------------------------------------------------
Raymond - 05-26-06 08:22
----------------------------------------------------------------------
vortex: FATAL: ResManager: resource type 0 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.
Those fatal error messages in the system log seem only occur with "jackd
-d oss -i4" , there is no fatal error message in the system log when using
"aoss jackd -d oss -i4"
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
======================================================================
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-06-28 2:58 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-06-28 2:58 UTC (permalink / raw)
To: alsa-devel
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: 06-28-2006 04:58 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 int
vortex_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 - 05-26-06 08:22
----------------------------------------------------------------------
vortex: FATAL: ResManager: resource type 0 exhausted.
vortex: FATAL: ResManager: resource type 3 exhausted.
Those fatal error messages in the system log seem only occur with "jackd
-d oss -i4" , there is no fatal error message in the system log when using
"aoss jackd -d oss -i4"
----------------------------------------------------------------------
Raymond - 06-28-06 04:58
----------------------------------------------------------------------
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 when ALSA driver report 4
channels.
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
======================================================================
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
^ permalink raw reply [flat|nested] 26+ messages in thread
* [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
@ 2006-07-06 1:24 bugtrack
0 siblings, 0 replies; 26+ messages in thread
From: bugtrack @ 2006-07-06 1:24 UTC (permalink / raw)
To: alsa-devel
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 int
vortex_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
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2006-07-06 1:24 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-18 7:34 [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture bugtrack
-- strict thread matches above, loose matches on Subject: below --
2006-07-06 1:24 bugtrack
2006-06-28 2:58 bugtrack
2006-05-26 6:22 bugtrack
2006-05-24 11:38 bugtrack
2006-03-03 21:36 bugtrack
2006-03-03 9:49 bugtrack
2006-03-03 8:02 bugtrack
2006-03-03 7:41 bugtrack
2006-03-03 7:12 bugtrack
2006-03-01 6:55 bugtrack
2006-02-28 6:08 bugtrack
2006-02-27 18:15 bugtrack
2006-02-27 8:30 bugtrack
2006-02-27 4:55 bugtrack
2006-02-27 4:14 bugtrack
2006-02-27 4:07 bugtrack
2006-02-04 5:14 bugtrack
2006-01-31 12:49 bugtrack
2006-01-28 1:23 bugtrack
2006-01-24 10:25 bugtrack
2006-01-23 9:36 bugtrack
2006-01-21 6:59 bugtrack
2006-01-21 6:36 bugtrack
2006-01-21 4:25 bugtrack
2006-01-21 4:02 bugtrack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox