Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugtrack@alsa-project.org
To: alsa-devel@alsa-project.org
Subject: [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture
Date: Mon, 27 Feb 2006 05:55:55 +0100	[thread overview]
Message-ID: <545afc21ef4e705f0392347a2f0a3353@bugtrack.alsa-project.org> (raw)


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

             reply	other threads:[~2006-02-27  4:55 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-27  4:55 bugtrack [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-06  1:24 [ALSA - driver 0001766]: jackd : ALSA: cannot set period size to 1024 frames for capture 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:14 bugtrack
2006-02-27  4:07 bugtrack
2006-02-18  7:34 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545afc21ef4e705f0392347a2f0a3353@bugtrack.alsa-project.org \
    --to=bugtrack@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox