Skip to contentSkip to conversation

possible problems with rc6 aplay

DISCUSSION patrick reardon 3 participants 3 messages Dec 16, 2002 – Dec 17, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 200212151910.18nLEb5ck3NZFjX0@robin

#1 lore raw
Quoted 9 lines · paul davis

does any of this make it any clearer? its really a bit of problem that the rate setting code doesn't do a full 100% check on all this stuff. an app can set the rate to 44100, and appear to have succeeded, but it will have no difference on the actual rate if the sync source is not the clock's internal clock. this is true, btw, for most digital cards. if you tried to record at 44100, but your external converters were running at 48kHz (as you suggest they have been), then the recordings will be at 48kHz with the sync source set as shown above.

yes, thnx, it's much clearer now. my converter is external with no rate switches and from the manual i just discovered it always operates at 48000 (Alesis AI-3). i'm still uncertain how to change the card's configuration though. "alsactl" doesn't seem to provide an obvious way to do this (looking at the man page). but my asound.state file has

--------------------snip--------------------
control.8 {
comment.access 'read write'
comment.type ENUMERATED
comment.item.0 'IEC958 In'
comment.item.1 'ADAT1 In'
comment.item.2 'ADAT2 In'
iface PCM
name 'Preferred Sync Source'
value 'ADAT1 In'
}
--------------------snip--------------------

do i just edit this by hand, changing value 'ADAT1 In' to value 'master', or ........ ??

patrick

Quoted 25 lines · Paul Davis
Quoted 7 lines

Latency: 4096 samples (2 periods of 16384 bytes)
Hardware pointer (frames): 0
Passthru: no
Clock mode: autosync
Pref. sync source: ADAT1

Quoted 8 lines

IEC958 input: Coaxial
IEC958 output: Coaxial only
IEC958 quality: Consumer
IEC958 emphasis: off
IEC958 Dolby: off
IEC958 sample rate: error flag set

ADAT Sample rate: 44100Hz

if you're hammerfall is configured as shown above (and no, the name change makes no difference), then the SR that it uses will be determined by your external converter connected to the first ADAT port. nothing that ALSA does (or any program using ALSA does) will alter the SR. thats because you are synced to ADAT1, not the card's internal clock, thus the SR is determined by the clock signal arriving at ADAT1, which presumably comes from a converter somewhere back up the ADAT chain.

Quoted 8 lines

its been on my to-do list for some time to make "master" the default clock mode on the hammerfall, which avoids any ambiguity about the sample rate used by the card. i've held back because its really not the right option for most studio-ish users, who have external converters that probably have rate switches on them and they expect the hammerfall to follow the switch setting.

--p

-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/

#2 lore raw

Patrick,
I believe the AI-3 operates at 48K if it is not receiving a clock via
it's ADAT input. If the ADAT input is applied and provides 44.1K, then it is my understanding that the AI-3 operates at 44.1K.

Mark

Quoted 5 lines · patrick reardon

yes, thnx, it's much clearer now. my converter is external with no rate switches and from the manual i just discovered it always operates at 48000 (Alesis AI-3). i'm still uncertain how to change the card's configuration though. "alsactl" doesn't seem to provide an obvious way to do this (looking at the man page). but my asound.state file has

-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/

#3 lore raw
In reply to patrick reardon
Quoted 6 lines

yes, thnx, it's much clearer now. my converter is external with no rate switches and from the manual i just discovered it always operates at 48000 (Alesis AI-3). i'm s till uncertain how to change the card's configuration though. "alsactl" doesn't se em to provide an obvious way to do this (looking at the man page). but my asound.state file has [ ... ]

what do you want to change it to?

--p

-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/