Skip to contentSkip to conversation

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

ALSA - plugins 0001949 [email protected] 1 participant 1 message Apr 12, 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:              04-12-2006 16:10 CEST

======================================================================
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 16:48
----------------------------------------------------------------------
If reducing the output channels to 1.

jackd -d alsa -o 1 -S

jackd 0.100.0

JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|1|nomon|swmeter|-|16bit control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods nperiods = 2 for capture
nperiods = 2 for playback

It seem that aplay wait/hang instead of abort with error

aplay -v -Dplug:jack stereo.wav
Playing WAVE 'stereo.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
cannot connect alsa-jack.jackP.5653.0:out_001
to alsa_pcm:playback_2

----------------------------------------------------------------------
Raymond - 04-12-06 16:10
----------------------------------------------------------------------
It seem that speaker-test run much faster when using plug:jack than hw:0,0

Quoted 1 line

speaker-test -c 2 -Dplug:jack

speaker-test 1.0.11rc5

Playback device is plug:jack
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 524288
Period size range from 16 to 8192
Using max buffer size 524288
Periods = 4
was set period_size = 8192
was set buffer_size = 524288
0 - Front Left
1 - Front Right
Time per period = 0.054775
0 - Front Left
1 - Front Right
Time per period = 0.064070
0 - Front Left
1 - Front Right
Time per period = 0.079937
0 - Front Left
1 - Front Right
Time per period = 0.063401
0 - Front Left
1 - Front Right
Time per period = 0.063787
0 - Front Left
1 - Front Right
Time per period = 0.063419
0 - Front Left
1 - Front Right
Time per period = 0.048568
0 - Front Left
1 - Front Right
Time per period = 0.083251
0 - Front Left
1 - Front Right
Time per period = 0.049356
0 - Front Left
1 - Front Right
Time per period = 0.047705
0 - Front Left
1 - Front Right
Time per period = 0.063587
0 - Front Left
1 - Front Right

Quoted 1 line

speaker-test -c 2 -Dhw:0,0

speaker-test 1.0.11rc5

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2 to 16384
Period size range from 1 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
0 - Front Left
1 - Front Right
Time per period = 5.632776
0 - Front Left
1 - Front Right
Time per period = 5.972448
0 - Front Left

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                          
03-23-06 15:19 Raymond        Note Edited: 0008882                         
03-23-06 15:20 Raymond        Note Edited: 0008882                         
03-23-06 16:48 Raymond        Note Added: 0008889                          
04-12-06 16:10 Raymond        Note Added: 0009245                          

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

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