Skip to contentSkip to conversation

: pcm.jack config in alsa-plugins/doc/README-jack

ALSA - plugins 0001949 [email protected] 1 participant 1 message Mar 23, 2006

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1949>
======================================================================
Reported By: Raymond
Assigned To:
======================================================================

Project:                    ALSA - plugins
Issue ID:                   1949
Category:                   PCM - jack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             03-21-2006 06:18 CET
Last Modified:              03-23-2006 15:17 CET

======================================================================
Summary: pcm.jack config in alsa-plugins/doc/README-jack
Description:
In alsa-plugins/doc/README-jack

   pcm.jack {
		type jack
		playback_ports {
			0 alsa_pcm:playback_1
			1 alsa_pcm:playback_1
		}
		capture_ports {
			0 alsa_pcm:capture_1
			1 alsa_pcm:pcapture_1
		}
	}

There are four entries in Writable clients in qjackctl (jack-0.100.0)

playback_1
playback_2
playback_3
playback_4

two entries in Readable clients

capture_1
capture_2

======================================================================

----------------------------------------------------------------------
Raymond - 03-23-06 05:51
----------------------------------------------------------------------
No sound heard.

Do plugins auto connect to jack server ?

aplay -v -Dplug:jack outls.wav
Playing WAVE 'outls.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:

  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 22050
  exact rate   : 22050 (22050/1)
  msbits       : 16
  buffer_size  : 11025
  period_size  : 2756
  period_time  : 125000
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 2756
  xfer_align   : 2756

start_threshold : 11024
stop_threshold : 11025
silence_threshold: 0
silence_size : 0
boundary : 722534400
Slave: Linear Integer <-> Linear Float conversion PCM (FLOAT_LE) Its setup is:

  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 6000
  xfer_align   : 6000

start_threshold : 24000
stop_threshold : 24000
silence_threshold: 0
silence_size : 0
boundary : 1572864000
Slave: ALSA <-> JACK PCM I/O Plugin
Its setup is:

  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : FLOAT_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 32
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tick_time    : 0
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 6000
  xfer_align   : 6000

start_threshold : 24000
stop_threshold : 24000
silence_threshold: 0
silence_size : 0
boundary : 1572864000

speaker-test -Dplug:jack -c 2 -t wav

speaker-test 1.0.11rc4

Playback device is plug:jack
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 524288
Period size range from 16 to 8192
Periods = 4
Buffer time size 2525
To choose buffer_size = 524288
To choose period_size = 131072
was set period_size = 8192
was set buffer_size = 524288
0 - Front Left
1 - Front Right
Time per period = 0.122627
0 - Front Left
1 - Front Right
Time per period = 0.064292
0 - Front Left
1 - Front Right
Time per period = 0.063705
0 - Front Left
1 - Front Right

----------------------------------------------------------------------
Raymond - 03-23-06 15:17
----------------------------------------------------------------------
The reason of not hearing any sound from the front speakers of au8830 using alsa-plugin - jack is due to front and rear swap bug in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726

It will also need the fix in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766 for jackd to open the correct
capture channels of au8830

It seem that snd_pcm_hw_params_get_rate_max() return max_rate 10000 for "plug:jack"

Issue History
Date Modified Username Field Change
======================================================================

03-21-06 06:18 Raymond        New Issue                                    
03-21-06 07:42 Raymond        Note Added: 0008738                          
03-22-06 16:54 Raymond        Note Added: 0008863                          
03-22-06 17:02 Raymond        Note Edited: 0008863                         
03-22-06 18:47 tiwai          Note Added: 0008865                          
03-23-06 03:44 Raymond        Note Added: 0008878                          
03-23-06 05:51 Raymond        Note Edited: 0008878                         
03-23-06 15:17 Raymond        Note Added: 0008882                          

======================================================================

-------------------------------------------------------
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