ASUS Xonar ST Not Working?

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

ASUS Xonar ST Not Working?

Postby adamlau » Mon Oct 17, 2011 11:27 pm

Relevant details below, what are some possible issues/workarounds/resolutions?

Code: Select all
$ osstest
Sound subsystem and version: OSS 4.2 (b 2005/201110101247) (0x00040100)
Platform: Linux/x86_64 3.0-BFS #1 SMP PREEMPT Fri Oct 14 00:49:00 PDT 2011

*** Scanning sound adapter #-1 ***
/dev/oss/oss_cmi878x0/pcm0 (audio engine 0): Asus Xonar (unknown) (MultiChannel)
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_cmi878x0/pcm1 (audio engine 2): Asus Xonar (unknown) (SPDIF)
- Performing audio playback test...
  <left> Device returned error: Input/output error

*** Some errors were detected during the tests ***

Code: Select all
$ lspci -vnn
05:05.0 Multimedia audio controller [0401]: C-Media Electronics Inc CMI8788 [Oxygen HD Audio] [13f6:8788]
   Subsystem: ASUSTeK Computer Inc. Virtuoso 100 (Xonar ST) [1043:835d]
   Flags: bus master, medium devsel, latency 64, IRQ 20
   I/O ports at d800 [size=256]
   Capabilities: <access denied>
   Kernel driver in use: oss_cmi878x

Code: Select all
$ sudo ossdetect -d -v
Password:
mknod /dev/sndstat c 252 0 -m 20666
mknod /dev/midi c 252 1 -m 20666
mknod /dev/mixer c 252 2 -m 20666
mknod /dev/oss/oss_cmi878x0/mix0 c 251 3 -m 20666
mknod /dev/oss/oss_cmi878x0/mix1 c 251 4 -m 20666
mknod /dev/oss/oss_cmi878x0/mid0 c 251 5 -m 20666
mknod /dev/oss/oss_cmi878x0/pcm0 c 251 6 -m 20666
mknod /dev/oss/oss_cmi878x0/pcm1 c 251 9 -m 20666

Code: Select all
$ sudo ossdevlinks -v -r
2 audio devices
/dev/dsp0 is the next free legacy device
/dev/dsp0: No such file or directory
Created new legacy device /dev/dsp0 -> /dev/oss/oss_cmi878x0/pcm0
/dev/dsp1: No such file or directory
Created new legacy device /dev/dsp1 -> /dev/oss/oss_cmi878x0/pcm1
0 legacy dsp device files
/dev/oss/oss_cmi878x0/pcm0 is the default /dev/dsp device
/dev/oss/oss_cmi878x0/pcm0 is the default dsp_out device
/dev/oss/oss_cmi878x0/pcm0 is the default dsp_in device
/dev/oss/oss_cmi878x0/pcm1 is the default AC3 output device
/dev/oss/oss_cmi878x0/pcm0 is the default mmap output device
/dev/oss/oss_cmi878x0/pcm0 is the default multichan output device
2 mixer devices
/dev/mixer2 is the next free legacy device
/dev/mixer0: No such file or directory
Created new legacy device /dev/mixer0 -> /dev/oss/oss_cmi878x0/mix0
/dev/mixer1: No such file or directory
Created new legacy device /dev/mixer1 -> /dev/oss/oss_cmi878x0/mix1
2 legacy mixer device files
1 midi devices
/dev/midi01 is the next free legacy device
/dev/midi00: No such file or directory
Created new legacy device /dev/midi00 -> /dev/oss/oss_cmi878x0/mid0
1 legacy MIDI device files

Code: Select all
$ ossinfo -v3
Version info: OSS 4.2 (b 2005/201110101247) (0x00040100) GPL
Platform: Linux/x86_64 3.0-BFS #1 SMP PREEMPT Fri Oct 14 00:49:00 PDT 2011 (Anonymous)

Number of audio devices:   2
Number of audio engines:   3
Number of MIDI devices:      1
Number of mixer devices:   2


Device objects
0: osscore0 OSS core services
1: oss_cmi878x0 Asus Xonar (unknown) interrupts=0 (1)

MIDI devices (/dev/midi*)
0: CMI8788 UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI835d1043-0000:05:05.0-md01


Mixer devices
0: CMedia CMI8788 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI835d1043-0000:05:05.0-mx01
    Device priority: 10

1: AC97 Input Mixer (CMI9780) (Mixer 1 of device object 1)
    Device file /dev/oss/oss_cmi878x0/mix1, Legacy device /dev/mixer1
    Priority: 2
    Caps:
    Device handle: PCI835d1043-0000:05:05.0-mx02
    Device priority: 2


Audio devices
Asus Xonar (unknown) (MultiChannel)  /dev/oss/oss_cmi878x0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/Asus Xonar (unknown) (MultiChannel)
                     Available for use
      Engine      2: 1/Asus Xonar (unknown) (Multichannel)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:05:05.0-au01
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Asus Xonar (unknown) (SPDIF)      /dev/oss/oss_cmi878x0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 2/Asus Xonar (unknown) (SPDIF)
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI835d1043-0000:05:05.0-au02
    Related mixer dev: -1
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 32000 - 192000
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_in -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_out -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_cmi878x0/pcm1
  /dev/dsp_mmap -> /dev/oss/oss_cmi878x0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_cmi878x0/pcm0

Code: Select all
$ cat /var/log/soundon.log
@ http://pastebin.com/YtzhRNdq
Last edited by adamlau on Wed Nov 02, 2011 10:48 am, edited 2 times in total.
adamlau
 
Posts: 23
Joined: Sun Oct 09, 2011 12:27 pm

Re: ASUS Xonar ST Not Working?

Postby cladisch » Tue Oct 18, 2011 9:15 am

The OSS driver does not support the ST.
The ST's hardware is identical with that of the STX, except for the CS2000 chip which would require changes all over the driver.
cladisch
 
Posts: 27
Joined: Mon Apr 07, 2008 8:14 am
Location: Earth

Re: ASUS Xonar ST Not Working?

Postby adamlau » Tue Oct 18, 2011 11:49 am

Thanks, cladisch...I was suspecting the clock chip...Hoping support for the CS2000 is forthcoming, else another soundcard return...
adamlau
 
Posts: 23
Joined: Sun Oct 09, 2011 12:27 pm

Re: [SOLVED] ASUS Xonar ST Not Working?

Postby adamlau » Tue Nov 01, 2011 11:02 pm

A shout out to Dev Mazumdar who updated the hg sources for the ST...Line out A-OK...Will continue to test :) ...

Code: Select all
$ osstest
Sound subsystem and version: OSS 4.2 (b 2006/201111012340) (0x00040100)
Platform: Linux/x86_64 3.0-BFS #1 SMP PREEMPT Sun Oct 23 06:17:16 PDT 2011

*** Scanning sound adapter #-1 ***
/dev/oss/oss_cmi878x0/pcm0 (audio engine 0): Asus Xonar Essence ST (AV100) (MultiChannel)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 48012.00 Hz (0.03%)>
/dev/oss/oss_cmi878x0/pcm1 (audio engine 2): Asus Xonar Essence ST (AV100) (SPDIF)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 48003.00 Hz (0.01%)>

*** All tests completed OK ***

$
Last edited by adamlau on Wed Nov 02, 2011 10:32 am, edited 1 time in total.
adamlau
 
Posts: 23
Joined: Sun Oct 09, 2011 12:27 pm

Re: ASUS Xonar ST Not Working?

Postby cladisch » Wed Nov 02, 2011 8:59 am

The new code looks as if it supports only 48 kHz (it never changes the CS2000 clock input); try testing at 44.1 kHz with vmix disabled.
cladisch
 
Posts: 27
Joined: Mon Apr 07, 2008 8:14 am
Location: Earth

Re: [SOLVED] ASUS Xonar ST Not Working?

Postby adamlau » Wed Nov 02, 2011 10:27 am

Unsure as to how to test if the hardware is upsampling...
Is there a more appropriate testing methodology I can perform?
(All 16/44.1 sound files are played back without issue...)

Verify vmix disabled...
Code: Select all
$ ossinfo -x

Mixer devices
0: CMedia CMI8788 (Mixer 0 of device object 1)
1: AC97 Input Mixer (CMI9780) (Mixer 1 of device object 1)


Verify bit/samplerate of 16/44.1...
Code: Select all
$ soxi Terrapin.Station.Part.1.flac

Input File     : 'Terrapin.Station.Part.1.flac'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:16:29.65 = 43643712 samples = 74224 CDDA sectors
File Size      : 115M
Bit Rate       : 932k
Sample Encoding: 16-bit FLAC


Sucessful playback...
Code: Select all
$ deadbeef --play Terrapin.Station.Part.1.flac
starting deadbeef 0.5.1
server_start
............
............
streamer_set_output_format 16bit int 2ch 44100Hz channelmask=3
streamer_set_output_format 16bit int 2ch 44100Hz channelmask=3, bufferfill: 0


Decode FLAC to WAV for ossplay...
Code: Select all
$ flac -d Terrapin.Station.Part.1.flac

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

Terrapin.Station.Part.1.flac: done   


Verify bit/samplerate of 16/44.1...
Code: Select all
$ soxi Terrapin.Station.Part.1.wav

Input File     : '/tmp/Terrapin.Station.Part.1.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:16:29.65 = 43643712 samples = 74224 CDDA sectors
File Size      : 175M
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM


Sucessful playback...
Code: Select all
$ ossplay -R -v Terrapin.Station.Part.1.wav
Playing WAVE file Terrapin.Station.Part.1.wav, 16 bits/stereo/44100 Hz
Time: 08:00.80 of 16:29.65 VU ------   
Last edited by adamlau on Wed Nov 02, 2011 1:36 pm, edited 1 time in total.
adamlau
 
Posts: 23
Joined: Sun Oct 09, 2011 12:27 pm

Re: [SOLVED] ASUS Xonar ST Not Working?

Postby cladisch » Wed Nov 02, 2011 10:38 am

Unsure as to how to test if the hardware is upsampling...
There should be a mixer control "vmix0-enable".
Code: Select all
$ ossmix -a | grep -i vmix

Or change the "vmix0-rate" control.
cladisch
 
Posts: 27
Joined: Mon Apr 07, 2008 8:14 am
Location: Earth

Re: [SOLVED] ASUS Xonar ST Not Working?

Postby adamlau » Wed Nov 02, 2011 10:46 am

Ran into an issue with 24/96 files which played perfectly well on the STX...
It appears that vmix is indeed disabled :) (via --config-vmix=NO + osscore.conf)...

Code: Select all
$ ossmix -a | grep -i vmix
$


Verify bit/samplerate of 24/96...
Code: Select all
$ soxi People.Are.Strange.flac

Input File     : 'People.Are.Strange.flac'
Channels       : 2
Sample Rate    : 96000
Precision      : 24-bit
Duration       : 00:02:11.86 = 12658560 samples ~ 9889.5 CDDA sectors
File Size      : 48.1M
Bit Rate       : 2.92M
Sample Encoding: 24-bit FLAC


Failed playback...
Code: Select all
$ deadbeef --play People.Are.Strange.flac
starting deadbeef 0.5.1
$


Decode FLAC to WAV for ossplay...
Code: Select all
$ flac -d People.Are.Strange.flac
...
People.Are.Strange.flac: done   


Verify bit/samplerate of 24/96...
Code: Select all
$ soxi People.Are.Strange.wav

Input File     : 'People.Are.Strange.wav'
Channels       : 2
Sample Rate    : 96000
Precision      : 24-bit
Duration       : 00:02:11.86 = 12658560 samples ~ 9889.5 CDDA sectors
File Size      : 76.0M
Bit Rate       : 4.61M
Sample Encoding: 24-bit Signed Integer PCM


Failed playback...
Code: Select all
$ ossplay -R -v People.Are.Strange.wav
Playing WAVE file People.Are.Strange.wav, 24 bits/stereo/96000 Hz
Time: 00:50.40 of 02:11.86 VU -----   
Last edited by adamlau on Wed Nov 02, 2011 5:42 pm, edited 6 times in total.
adamlau
 
Posts: 23
Joined: Sun Oct 09, 2011 12:27 pm

Re: ASUS Xonar ST Not Working?

Postby adamlau » Wed Nov 02, 2011 11:19 am

Use pcm_conv to create a test file...
Code: Select all
$ pcm_conv People.Are.Strange.wav -f 48000 24-48000.wav
=================================================================
Module Info:

Short name: WAVE PCM Converter
Long name : Convert PCM format for WAVE files
Copyright : Copyright (c) 2009-10 PetrovSE
Version   : 1.0.2.4
Build     : Sep 14 2010, 10:51:15
=================================================================

Input file : People.Are.Strange.wav
Samples rate    = 96000 Hz
Channels        = 2
Bits per sample = 24 (fixed)

Output file: 24-48000.wav
Samples rate    = 48000 Hz
Channels        = 2
Bits per sample = 24 (fixed)

   LFE   SL   L   C   R   SR
LFE    -----   -----   -----   -----   -----   -----
SL     -----   -----   -----   -----   -----   -----
L      -----   -----   1.000   -----   -----   -----
C      -----   -----   -----   -----   -----   -----
R      -----   -----   -----   -----   1.000   -----
SR     -----   -----   -----   -----   -----   -----

[|||||||||||||||||||||||||||||||||||||||||||||||||||]  99.0 %
Ok.

File duration  : 131.860000 sec
Processing time: 2.060419 sec ( 1.56% of real time)


Verify bit/samplerate...
Code: Select all
$ soxi 24-48000.wav

Input File     : '24-48000.wav'
Channels       : 2
Sample Rate    : 48000
Precision      : 24-bit
Duration       : 00:02:11.80 = 6326272 samples ~ 9884.8 CDDA sectors
File Size      : 38.0M
Bit Rate       : 2.30M
Sample Encoding: 24-bit Signed Integer PCM


Use pcm_conv to create additional test files...
Code: Select all
$ pcm_conv People.Are.Strange.wav -f 88100 24-88100.wav
$ pcm_conv People.Are.Strange.wav -f 19200 24-19200.wav
$ pcm_conv People.Are.Strange.wav -b 32 -f 48000 32-48000.wav
$ pcm_conv People.Are.Strange.wav -b 32 -f 88100 32-88100.wav
$ pcm_conv People.Are.Strange.wav -b 32 -f 96000 32-96000.wav
$ pcm_conv People.Are.Strange.wav -b 32 -f 192000 32-192000.wav


Sucessful playback...
Code: Select all
$ ossplay -R -v 24-48000.wav
Playing WAVE file 24-48000.wav, 24 bits/stereo/48000 Hz
Time: 00:12.40 of 02:11.80 VU ----       


Failed playback...
Code: Select all
$ ossplay -R -v 24-88100.wav
Playing WAVE file 24-88100.wav, 24 bits/stereo/88100 Hz
Time: 00:13.00 of 02:11.80 VU -----     


Failed playback...
Code: Select all
$ ossplay -R -v People.Are.Strange.wav
Playing WAVE file People.Are.Strange.wav, 24 bits/stereo/96000 Hz
Time: 00:14.60 of 02:11.86 VU -----


Failed playback...
Code: Select all
$ ossplay -R -v 24-192000.wav
Playing WAVE file 24-192000.wav, 24 bits/stereo/192000 Hz
Time: 00:10.60 of 02:11.80 VU -     


Sucessful playback...
Code: Select all
$ ossplay -R -v 32-48000.wav
Playing WAVE file 32-48000.wav, 32 bits/stereo/48000 Hz
Time: 00:16.20 of 02:11.80 VU ------


Failed playback...
Code: Select all
$ ossplay -R -v 32-88100.wav
Playing WAVE file 32-88100.wav, 32 bits/stereo/88100 Hz
Time: 00:13.20 of 02:11.80 VU -----     


Failed playback...
Code: Select all
$ ossplay -R -v 32-96000.wav
Playing WAVE file 32-96000.wav, 32 bits/stereo/96000 Hz
Time: 00:12.60 of 02:11.86 VU -----     


Failed playback...
Code: Select all
$ ossplay -R -v 32-192000.wav
Playing WAVE file 32-192000.wav, 32 bits/stereo/192000 Hz
Time: 00:12.20 of 02:11.80 VU ---     
Last edited by adamlau on Wed Nov 02, 2011 1:57 pm, edited 3 times in total.
adamlau
 
Posts: 23
Joined: Sun Oct 09, 2011 12:27 pm

Re: ASUS Xonar ST Not Working?

Postby adamlau » Wed Nov 02, 2011 1:18 pm

Verify bit/samplerate of a DVD-A audio track...
Code: Select all
$ ffmpeg -i /mnt/VIDEO_TS/VTS_04_1.VOB
...
Input #0, mpeg, from '/mnt/VIDEO_TS/VTS_04_1.VOB':
  Duration: 00:19:54.69, start: 0.233567, bitrate: 7190 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 5000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0xa0]: Audio: pcm_dvd, 96000 Hz, 2 channels, s32, 4608 kb/s
At least one output file must be specified


Extracting audio from a DVD-A at the same bit/samplerate...
Code: Select all
$ ffmpeg -i /mnt/VIDEO_TS/VTS_04_1.VOB -map 0:1 -acodec pcm_s32le 32-96000.wav
...
Input #0, mpeg, from '/mnt/1/VIDEO_TS/VTS_04_1.VOB':
  Duration: 00:19:54.69, start: 0.233567, bitrate: 7190 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 5000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0xa0]: Audio: pcm_dvd, 96000 Hz, 2 channels, s32, 4608 kb/s
Output #0, wav, to '32-96000.wav':
  Metadata:
    encoder         : Lavf53.18.0
    Stream #0:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 96000 Hz, 2 channels, s32, 6144 kb/s
Stream mapping:
  Stream #0.1 -> #0.0 (pcm_dvd -> pcm_s32le)
Press [q] to stop, [?] for help
size=  895926kB time=00:19:54.56 bitrate=6144.0kbits/s   
video:0kB audio:895926kB global headers:0kB muxing overhead 0.000007%


Verify bit/samplerate...
Code: Select all
$ soxi 32-96000.wav

Input File     : '/tmp/32-96000.wav'
Channels       : 2
Sample Rate    : 96000
Precision      : 32-bit
Duration       : 00:19:54.57 = 114678566 samples ~ 89592.6 CDDA sectors
File Size      : 917M
Bit Rate       : 6.14M
Sample Encoding: 32-bit Signed Integer PCM


Failed playback...
Code: Select all
$ ossplay -R -v 32-96000.wav
Playing WAVE file 32-96000.wav, 32 bits/stereo/96000 Hz
Time: 00:08.80 of 19:54.57 VU ----   


Downsample and extract DVD-A audio to 48 kHz...
Code: Select all
$ ffmpeg -i /mnt/VIDEO_TS/VTS_04_1.VOB -map 0:1 -acodec pcm_s32le -ar 48000 32-48000.wav
...
[mpeg @ 0xafd760] max_analyze_duration 5000000 reached at 5005000
Input #0, mpeg, from '/mnt/3/VIDEO_TS/VTS_04_1.VOB':
  Duration: 00:19:54.69, start: 0.233567, bitrate: 7190 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 5000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0xa0]: Audio: pcm_dvd, 96000 Hz, 2 channels, s32, 4608 kb/s
Output #0, wav, to '32-48000.wav':
  Metadata:
    encoder         : Lavf53.18.0
    Stream #0:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s32, 3072 kb/s
Stream mapping:
  Stream #0.1 -> #0.0 (pcm_dvd -> pcm_s32le)
Press [q] to stop, [?] for help
size=  447963kB time=00:19:54.56 bitrate=3072.0kbits/s   
video:0kB audio:447963kB global headers:0kB muxing overhead 0.000015%


Verify bit/samplerate...
Code: Select all
$ soxi 32-48000.wav

Input File     : '/tmp/32-48000.wav'
Channels       : 2
Sample Rate    : 48000
Precision      : 32-bit
Duration       : 00:19:54.57 = 57339273 samples ~ 89592.6 CDDA sectors
File Size      : 459M
Bit Rate       : 3.07M
Sample Encoding: 32-bit Signed Integer PCM


Sucessful playback...
Code: Select all
$ ossplay -R -v 32-48000.wav
Playing WAVE file 32-48000.wav, 32 bits/stereo/48000 Hz
Time: 00:09.80 of 19:54.57 VU -----
adamlau
 
Posts: 23
Joined: Sun Oct 09, 2011 12:27 pm


Return to Linux

Who is online

Users browsing this forum: Bing [Bot] and 5 guests