My main goal is to spdif musics from my dedicated Audio-PC to my receiver as is without re-sampling. I could not achieve this with the ALSA current driver as it does not recognize my sound card. So, I figured out that OSS4 has support for Audiotrak HD2 Advance DE and recently moved to Open Sound System.
Currently, musics with sample rate up to 96 kHz are transfered as expected with no problem. But 192 kHz tracks gets re-sampled. I can see it on the receiver's display, ossxmixer and ossplay output:
- Code: Select all
ossplay -d /dev/dsp_spdifout 192kHz-24bit.wav
Warning: Playback using [b]96000[/b] Hz (file 192000 Hz)
The sound itself goes twice slowly (today) or at normal speed with distortions (yesterday) but always is converted into 96 kHz.
Also, anybody know what is vbit for spdif? I am suspecting this is the switch for 20/24 bits but want to be sure.
ossinfo -v3
- Code: Select all
ossinfo -v3
Version info: OSS 4.2 (b 2003/201005280201) (0x00040100) TRIAL
Platform: Linux/i686 2.6.32-23-generic-pae #37-Ubuntu SMP Fri Jun 11 09:26:55 UTC 2010 (mini)
Number of audio devices: 3
Number of audio engines: 7
Number of MIDI devices: 0
Number of mixer devices: 1
Device objects
0: osscore0 OSS core services
1: oss_envy24ht0 Audiotrak Prodigy HD2 Advance DE interrupts=2765508 (2765508)
2: oss_usb0 USB audio core services
MIDI devices (/dev/midi*)
Mixer devices
0: Audiotrak Prodigy HD2 Advance D (Mixer 0 of device object 1)
Device file /dev/oss/oss_envy24ht0/mix0, Legacy device /dev/mixer0
Priority: 1
Caps:
Device handle: PCI24011412-0000:00:06.0-mx01
Device priority: 1
Audio devices
Audiotrak Prodigy HD2 Advance DE main out /dev/oss/oss_envy24ht0/pcm0 (device index 0)
Legacy device /dev/dsp0
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
Out engine 1: 0/Audiotrak Prodigy HD2 Advance DE main out
Available for use
Engine 2: 3/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Engine 3: 4/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Engine 4: 5/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Engine 5: 6/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Input formats (0x00001000):
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001000):
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCI24011412-0000:00:06.0-au01
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: STEREO
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 96000 - 96000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,176400,192000)
HW Type: ANALOG_OUT Minimum latency: Not indicated
Audiotrak Prodigy HD2 Advance DE digital out /dev/oss/oss_envy24ht0/spdout (device index 1)
Legacy device /dev/dsp1
Caps: TRIGGER MMAP
Modes: OUTPUT
Out engine 1: 1/Audiotrak Prodigy HD2 Advance DE digital out
Available for use
Input formats (0x00001400):
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001400):
AFMT_AC3 - AC3 (Dolby Digital) encoded audio
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCI24011412-0000:00:06.0-au02
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: STEREO
Supported number of channels (min - max): 2 - 2
Native sample rates (min - max): 96000 - 96000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,176400,192000)
HW Type: DIGITAL_OUT Minimum latency: Not indicated
Audiotrak Prodigy HD2 Advance DE analog in /dev/oss/oss_envy24ht0/pcmin0 (device index 2)
Legacy device /dev/dsp2
Caps: DUPLEX TRIGGER MMAP
Modes: IN/OUT
In engine 1: 2/Audiotrak Prodigy HD2 Advance DE analog in
Available for use
Engine 2: 3/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Engine 3: 4/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Engine 4: 5/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Engine 5: 6/Audiotrak Prodigy HD2 Advance DE main out (vmix)
Available for use
Input formats (0x00001000):
AFMT_S32_LE - 32 bit signed little endian
Output formats (0x00001000):
AFMT_S32_LE - 32 bit signed little endian
Device handle: PCI24011412-0000:00:06.0-au03
Related mixer dev: 0
Sample rate source: 0
Preferred channel configuration: STEREO
Supported number of channels (min - max): 1 - 2
Native sample rates (min - max): 8000 - 192000 (8000,9600,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,176400,192000)
HW Type: ANALOG_IN Minimum latency: Not indicated
Nodes
/dev/dsp -> /dev/oss/oss_envy24ht0/pcm0
/dev/dsp_in -> /dev/oss/oss_envy24ht0/pcm0
/dev/dsp_out -> /dev/oss/oss_envy24ht0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_envy24ht0/spdout
/dev/dsp_mmap -> /dev/oss/oss_envy24ht0/pcm0
/dev/dsp_spdifout -> /dev/oss/oss_envy24ht0/spdout
ossmix
- Code: Select all
ossmix
Selected mixer 0/Audiotrak Prodigy HD2 Advance DE
Known controls are:
route.main <DMA|ANALOGIN|DIGITALIN> (currently DMA)
route.spdifout <DMA|ANALOGIN|DIGITALIN> (currently DMA)
envy24.rate <8000|9600|11025|12000|16000|22050|24000|32000|44100|48000|64000|88200|96000|176400|192000> (currently 96000)
envy24.sync <INTERNAL|SPDIF> (currently INTERNAL)
envy24.src ON|OFF (currently OFF)
envy24.ratelock ON|OFF (currently OFF)
envy24.actrate <decimal value> (currently 96000) (Read-only)
vol.mute ON|OFF (currently OFF)
vol.pcm [<leftvol>:<rightvol>] (currently 127:127)
vol.in [<leftvol>:<rightvol>] (currently 127:127)
vol.spdif [<leftvol>:<rightvol>] (currently 127:127)
spdif.audio <AUDIO|DATA> (currently AUDIO)
spdif.vbit ON|OFF (currently ON)
spdif.preemph <OFF|50/16usec> (currently OFF)
spdif.mode <CONSUMER|PRO> (currently CONSUMER)
spdif.copyright <YES|NO> (currently YES)
spdif.generat <COPY|ORIGINAL> (currently ORIGINAL)
vmix0-enable ON|OFF (currently OFF)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <Fast|High|OFF> (currently OFF)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm5 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm6 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
