OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Mon Feb 03, 2014 5:07 am

Hello:

I've been trying to no avail to get my Audiotrak Prodigy HD2 working with OSSv4 under Linux. The card is listed as supported and works "fine" under ALSA. Onboard NVidia sound works with OSS.

Some system info:

Code: Select all

$ lsmod|g oss
oss_usb               121180  0
oss_ich                17401  0
oss_envy24ht           79960  0
osscore               588260  3 oss_envy24ht,oss_ich,oss_usb
usbcore               180072  6 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,oss_usb

Code: Select all

$ lspci -vnn | g -A 15 audio
00:04.0 Multimedia audio controller [0401]: NVIDIA Corporation CK804 AC'97 Audio Controller [10de:0059] (rev a2)
   Subsystem: Tyan Computer Tomcat K8E (S2865) [10f1:2865]
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
   I/O ports at f000 [size=256]
   I/O ports at ec00 [size=256]
   Memory at febfd000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: <access denied>
   Kernel driver in use: oss_ich

00:06.0 IDE interface [0101]: NVIDIA Corporation CK804 IDE [10de:0053] (rev f2) (prog-if 8a [Master SecP PriP])
   Subsystem: Tyan Computer Tomcat K8E (S2865) [10f1:2865]
   Flags: bus master, 66MHz, fast devsel, latency 0
   [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 000003f0 (type 3, non-prefetchable)
   [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 00000370 (type 3, non-prefetchable)
--
01:09.0 Multimedia audio controller [0401]: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller [1412:1724] (rev 01)
   Subsystem: Device [3137:4154]
   Flags: bus master, medium devsel, latency 32, IRQ 18
   I/O ports at a400 [size=32]
   I/O ports at a000 [size=128]
   Capabilities: <access denied>
   Kernel driver in use: oss_envy24ht

04:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express [14e4:1659] (rev 11)
   Subsystem: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express [14e4:1659]
   Flags: bus master, fast devsel, latency 0, IRQ 19
   Memory at fe5f0000 (64-bit, non-prefetchable) [size=64K]
   Expansion ROM at <ignored> [disabled]
   Capabilities: <access denied>
   Kernel driver in use: tg3
   Kernel modules: tg3
--
05:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
   Subsystem: NVIDIA Corporation Device [10de:0835]
   Flags: bus master, fast devsel, latency 0, IRQ 5
   Memory at fbffc000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>

Code: Select all

$ ossinfo -v3
Version info: OSS 4.2 (b 2008/201402022103) (0x00040100) GPL
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014 (iris)

Number of audio devices:   5
Number of audio engines:   14
Number of MIDI devices:      0
Number of mixer devices:   2


Device objects
 0: osscore0 OSS core services
 1: oss_envy24ht0 Audiotrak Prodigy HD2
 2: oss_ich0 Nvidia nForce4
 3: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
 0: Audiotrak Prodigy HD2 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_envy24ht0/mix0, Legacy device /dev/mixer0
    Priority: 1
    Caps:
    Device handle: PCI41543137-0000:01:09.0-mx01
    Device priority: 1

 1: ICH AC97 Mixer (ALC655) (Mixer 0 of device object 2)
    Device file /dev/oss/oss_ich0/mix0, Legacy device /dev/mixer1
    Priority: 10
    Caps:
    Device handle: PCI286510f1-0000:00:04.0-mx01
    Device priority: 10


Audio devices
Audiotrak Prodigy HD2 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 main out
                     Available for use
      Engine      2: 3/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      3: 4/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      4: 5/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      5: 6/Audiotrak Prodigy HD2 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: PCI41543137-0000:01:09.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): 8000 - 192000 (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 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 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: PCI41543137-0000:01:09.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): 8000 - 192000 (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 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 analog in
                     Available for use
      Engine      2: 3/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      3: 4/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      4: 5/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      5: 6/Audiotrak Prodigy HD2 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: PCI41543137-0000:01:09.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

Nvidia nForce4                    /dev/oss/oss_ich0/pcm0  (device index 3)
    Legacy device /dev/dsp3
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 7/Nvidia nForce4
                     Available for use
      Engine      2: 8/Nvidia nForce4 (vmix)
                     Available for use
      Engine      3: 9/Nvidia nForce4 (vmix)
                     Available for use
      Engine      4: 10/Nvidia nForce4 (vmix)
                     Available for use
      Engine      5: 11/Nvidia nForce4 (vmix)
                     Available for use
      Engine      6: 12/Nvidia nForce4
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI286510f1-0000:00:04.0-au01
    Related mixer dev: 1
    Sample rate source: 7
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Nvidia nForce4 S/PDIF out         /dev/oss/oss_ich0/spdout  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 13/Nvidia nForce4 S/PDIF out
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI286510f1-0000:00:04.0-au02
    Related mixer dev: 1
    Sample rate source: 7
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    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_multich -> /dev/oss/oss_ich0/pcm0
  /dev/dsp_spdifout -> /dev/oss/oss_envy24ht0/spdout

Code: Select all

$ ossmix
Selected mixer 0/Audiotrak Prodigy HD2
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 48000)
envy24.sync <INTERNAL|SPDIF> (currently INTERNAL)
envy24.src ON|OFF (currently OFF)
envy24.ratelock ON|OFF (currently OFF)
envy24.actrate <decimal value> (currently 48000) (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 OFF)
spdif.preemph <OFF|50/16usec> (currently OFF)
spdif.mode <CONSUMER|PRO> (currently CONSUMER)
spdif.copyright <YES|NO> (currently YES)
spdif.generat <COPY|ORIGINAL> (currently COPY)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <Fast|High|OFF> (currently Fast)
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)


osstest against the envy24ht card bails immediately & spews the following:

Code: Select all

$ osstest 1
Sound subsystem and version: OSS 4.2 (b 2008/201402022103) (0x00040100)
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014

*** Scanning sound adapter #-1 ***
/dev/oss/oss_envy24ht0/spdout (audio engine 1): Audiotrak Prodigy HD2 digital out
- Performing audio playback test...
  <left> Device returned error: Input/output error

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


osstest completes w/o error when run against the onboard Nvidia:

Code: Select all

$ osstest 3
Sound subsystem and version: OSS 4.2 (b 2008/201402022103) (0x00040100)
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014

*** Scanning sound adapter #-1 ***
/dev/oss/oss_ich0/pcm0 (audio engine 7): Nvidia nForce4
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 48011.00 Hz (0.02%)>

*** All tests completed OK ***


Any insights as to what might be going on here?

TIA

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby igorzwx » Mon Feb 03, 2014 12:59 pm

kgunders wrote:Hello:

I've been trying to no avail to get my Audiotrak Prodigy HD2 working with OSSv4 under Linux. The card is listed as supported and works "fine" under ALSA. Onboard NVidia sound works with OSS.

Some system info:

Code: Select all

$ lsmod|g oss
oss_usb               121180  0
oss_ich                17401  0
oss_envy24ht           79960  0
osscore               588260  3 oss_envy24ht,oss_ich,oss_usb
usbcore               180072  6 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,oss_usb

Code: Select all

$ lspci -vnn | g -A 15 audio
00:04.0 Multimedia audio controller [0401]: NVIDIA Corporation CK804 AC'97 Audio Controller [10de:0059] (rev a2)
   Subsystem: Tyan Computer Tomcat K8E (S2865) [10f1:2865]
   Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22
   I/O ports at f000 [size=256]
   I/O ports at ec00 [size=256]
   Memory at febfd000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: <access denied>
   Kernel driver in use: oss_ich

00:06.0 IDE interface [0101]: NVIDIA Corporation CK804 IDE [10de:0053] (rev f2) (prog-if 8a [Master SecP PriP])
   Subsystem: Tyan Computer Tomcat K8E (S2865) [10f1:2865]
   Flags: bus master, 66MHz, fast devsel, latency 0
   [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 000003f0 (type 3, non-prefetchable)
   [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 00000370 (type 3, non-prefetchable)
--
01:09.0 Multimedia audio controller [0401]: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller [1412:1724] (rev 01)
   Subsystem: Device [3137:4154]
   Flags: bus master, medium devsel, latency 32, IRQ 18
   I/O ports at a400 [size=32]
   I/O ports at a000 [size=128]
   Capabilities: <access denied>
   Kernel driver in use: oss_envy24ht

04:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express [14e4:1659] (rev 11)
   Subsystem: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express [14e4:1659]
   Flags: bus master, fast devsel, latency 0, IRQ 19
   Memory at fe5f0000 (64-bit, non-prefetchable) [size=64K]
   Expansion ROM at <ignored> [disabled]
   Capabilities: <access denied>
   Kernel driver in use: tg3
   Kernel modules: tg3
--
05:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
   Subsystem: NVIDIA Corporation Device [10de:0835]
   Flags: bus master, fast devsel, latency 0, IRQ 5
   Memory at fbffc000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>

Code: Select all

$ ossinfo -v3
Version info: OSS 4.2 (b 2008/201402022103) (0x00040100) GPL
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014 (iris)

Number of audio devices:   5
Number of audio engines:   14
Number of MIDI devices:      0
Number of mixer devices:   2


Device objects
 0: osscore0 OSS core services
 1: oss_envy24ht0 Audiotrak Prodigy HD2
 2: oss_ich0 Nvidia nForce4
 3: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
 0: Audiotrak Prodigy HD2 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_envy24ht0/mix0, Legacy device /dev/mixer0
    Priority: 1
    Caps:
    Device handle: PCI41543137-0000:01:09.0-mx01
    Device priority: 1

 1: ICH AC97 Mixer (ALC655) (Mixer 0 of device object 2)
    Device file /dev/oss/oss_ich0/mix0, Legacy device /dev/mixer1
    Priority: 10
    Caps:
    Device handle: PCI286510f1-0000:00:04.0-mx01
    Device priority: 10


Audio devices
Audiotrak Prodigy HD2 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 main out
                     Available for use
      Engine      2: 3/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      3: 4/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      4: 5/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      5: 6/Audiotrak Prodigy HD2 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: PCI41543137-0000:01:09.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): 8000 - 192000 (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 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 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: PCI41543137-0000:01:09.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): 8000 - 192000 (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 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 analog in
                     Available for use
      Engine      2: 3/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      3: 4/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      4: 5/Audiotrak Prodigy HD2 main out (vmix)
                     Available for use
      Engine      5: 6/Audiotrak Prodigy HD2 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: PCI41543137-0000:01:09.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

Nvidia nForce4                    /dev/oss/oss_ich0/pcm0  (device index 3)
    Legacy device /dev/dsp3
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 7/Nvidia nForce4
                     Available for use
      Engine      2: 8/Nvidia nForce4 (vmix)
                     Available for use
      Engine      3: 9/Nvidia nForce4 (vmix)
                     Available for use
      Engine      4: 10/Nvidia nForce4 (vmix)
                     Available for use
      Engine      5: 11/Nvidia nForce4 (vmix)
                     Available for use
      Engine      6: 12/Nvidia nForce4
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI286510f1-0000:00:04.0-au01
    Related mixer dev: 1
    Sample rate source: 7
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

Nvidia nForce4 S/PDIF out         /dev/oss/oss_ich0/spdout  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 13/Nvidia nForce4 S/PDIF out
                     Available for use
    Input formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI286510f1-0000:00:04.0-au02
    Related mixer dev: 1
    Sample rate source: 7
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    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_multich -> /dev/oss/oss_ich0/pcm0
  /dev/dsp_spdifout -> /dev/oss/oss_envy24ht0/spdout

Code: Select all

$ ossmix
Selected mixer 0/Audiotrak Prodigy HD2
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 48000)
envy24.sync <INTERNAL|SPDIF> (currently INTERNAL)
envy24.src ON|OFF (currently OFF)
envy24.ratelock ON|OFF (currently OFF)
envy24.actrate <decimal value> (currently 48000) (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 OFF)
spdif.preemph <OFF|50/16usec> (currently OFF)
spdif.mode <CONSUMER|PRO> (currently CONSUMER)
spdif.copyright <YES|NO> (currently YES)
spdif.generat <COPY|ORIGINAL> (currently COPY)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <Fast|High|OFF> (currently Fast)
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)


osstest against the envy24ht card bails immediately & spews the following:

Code: Select all

$ osstest 1
Sound subsystem and version: OSS 4.2 (b 2008/201402022103) (0x00040100)
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014

*** Scanning sound adapter #-1 ***
/dev/oss/oss_envy24ht0/spdout (audio engine 1): Audiotrak Prodigy HD2 digital out
- Performing audio playback test...
  <left> Device returned error: Input/output error

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


osstest completes w/o error when run against the onboard Nvidia:

Code: Select all

$ osstest 3
Sound subsystem and version: OSS 4.2 (b 2008/201402022103) (0x00040100)
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014

*** Scanning sound adapter #-1 ***
/dev/oss/oss_ich0/pcm0 (audio engine 7): Nvidia nForce4
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 48011.00 Hz (0.02%)>

*** All tests completed OK ***


Any insights as to what might be going on here?

TIA


Try:

Code: Select all

$ osstest 0



You may also test "spdout":

Code: Select all

$ osstest 1


with different "spdif" settings in the OSS Mixer.

Type on terminal:

Code: Select all

$ ossxmix


This will produce the OSS Mixer GUI.

To test "spdout" with sample audio files, you may try something like this:

Code: Select all

$ ossplay -R -vvvv -d<devname> filename


See: _http://www.opensound.com/forum/viewtopic.php?f=3&t=5577#p20289

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Mon Feb 03, 2014 5:18 pm

Code: Select all

$ osstest 0
Sound subsystem and version: OSS 4.2 (b 2008/201402022103) (0x00040100)
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014

*** Scanning sound adapter #-1 ***
/dev/oss/oss_envy24ht0/pcm0 (audio engine 0): Audiotrak Prodigy HD2 main out
- Performing audio playback test...
  <left> Device returned error: Input/output error

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


I failed to mention in my initial post that I've also tried tweaking various settings in ossxmix & experimented with different kernel version w/o success.

I've not experimented with ossplay, as I figured there wasn't much point given the results above.

I'll give the post you referenced a more thorough read.

Thanks for your help.

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby igorzwx » Mon Feb 03, 2014 6:23 pm

kgunders wrote:

Code: Select all

$ osstest 0
Sound subsystem and version: OSS 4.2 (b 2008/201402022103) (0x00040100)
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014

*** Scanning sound adapter #-1 ***
/dev/oss/oss_envy24ht0/pcm0 (audio engine 0): Audiotrak Prodigy HD2 main out
- Performing audio playback test...
  <left> Device returned error: Input/output error

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


I failed to mention in my initial post that I've also tried tweaking various settings in ossxmix & experimented with different kernel version w/o success.

I've not experimented with ossplay, as I figured there wasn't much point given the results above.

I'll give the post you referenced a more thorough read.

Thanks for your help.


Perhaps, "autodetection" failed.
See: _http://manuals.opensound.com/usersguide/oss_envy24ht.html

__________________________________________________
EDIT:

Code: Select all

$ cat /usr/lib/oss/conf/oss_envy24ht.conf
# Open Sound System configuration file
# Remove the '#' in front of the option(s) you like to set.
#
#
# Select the Model number if the card isn't autodetected
# Values: 0 = Envy24ht 1=Envy24PT/HT-s compatible -1=Autodetect Default: -1
#
#envy24ht_model = -1


Try:

Code: Select all

envy24ht_model = 1


kgunders wrote:

Code: Select all

$ lspci -vnn | g -A 15 audio
01:09.0 Multimedia audio controller [0401]: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller [1412:1724] (rev 01)
   Subsystem: Device [3137:4154]
   Flags: bus master, medium devsel, latency 32, IRQ 18
   I/O ports at a400 [size=32]
   I/O ports at a000 [size=128]
   Capabilities: <access denied>
   Kernel driver in use: oss_envy24ht


NOTE: OSS4 configs are a kind of "outdated crap". They are often misleading, see: _http://www.opensound.com/forum/viewtopic.php?f=3&t=3543
Last edited by igorzwx on Mon Feb 03, 2014 7:29 pm, edited 3 times in total.

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Mon Feb 03, 2014 7:28 pm

Thanks but perhaps I'm missing something here, but it sure looks like the card is being detected:

Code: Select all

# lspci|g envy
01:09.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)


Code: Select all

# lsmod|g envy
oss_envy24ht           79960  0
osscore               588260  3 oss_envy24ht,oss_ich,oss_usb


Code: Select all

# ossdetect -v
Detected Audiotrak Prodigy HD2
Detected Nvidia nForce4
USB support available in the system, adding USB driver
Detected Generic USB audio/MIDI device (BETA)


Nevertheless, I have also previously experimented with manually setting card model in oos_envy24ht.conf and the results remain the same. Do you know if anyone has actually succeded with this card and ossv4? If so, maybe they know of some magic incantation....

TIA

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby igorzwx » Mon Feb 03, 2014 7:36 pm

Try to set:

Code: Select all

envy24ht_model = 1


Code: Select all

$ cat /usr/lib/oss/conf/oss_envy24ht.conf
# Open Sound System configuration file
# Remove the '#' in front of the option(s) you like to set.
#
#
# Select the Model number if the card isn't autodetected
# Values: 0 = Envy24ht 1=Envy24PT/HT-s compatible -1=Autodetect Default: -1
#
envy24ht_model = 1


Then reload OSS4: soundoff/soundon

Then:

Code: Select all

# ossdetect -v


If nothing helps, you may try to find developers, or try to fix the code yourself.

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Mon Feb 03, 2014 8:51 pm

I just spent some time refreshing my memory of my attempts at tuning that value & I mistated that the "results were the same". The only thing that appears to work is letting oss autodetect, anything else and it misses the card.

WIth default; envy24ht_model = -1

ossdetect detects and installs device files:

Code: Select all

# ossdetect -vd
mknod /dev/sndstat c 247 0 -m 20666
mknod /dev/midi c 247 1 -m 20666
mknod /dev/mixer c 247 2 -m 20666
mknod /dev/oss/oss_envy24ht0/mix0 c 246 3 -m 20666
mknod /dev/oss/oss_envy24ht0/pcm0 c 246 4 -m 20666
mknod /dev/oss/oss_envy24ht0/spdout c 246 6 -m 20666
mknod /dev/oss/oss_envy24ht0/pcmin0 c 246 8 -m 20666


Code: Select all

$ ossinfo -a

Audio devices
Audiotrak Prodigy HD2 main out    /dev/oss/oss_envy24ht0/pcm0  (device index 0)
Audiotrak Prodigy HD2 digital out  /dev/oss/oss_envy24ht0/spdout  (device index 1)
Audiotrak Prodigy HD2 analog in   /dev/oss/oss_envy24ht0/pcmin0  (device index 2)

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_multich -> /dev/oss/oss_ich0/pcm0
  /dev/dsp_spdifout -> /dev/oss/oss_envy24ht0/spdout


With envy24ht_model = 0

soundoff && soundon now report no mixers in the system:

Code: Select all

# soundoff && soundon
No mixers in the system


ossdetect picks up the card:

Code: Select all

# ossdetect -v
Detected Audiotrak Prodigy HD2
USB support available in the system, adding USB driver
Detected Generic USB audio/MIDI device (BETA)


But apparently does not install envy specific device files?

Code: Select all

# ossdetect -vd
mknod /dev/sndstat c 247 0 -m 20666
mknod /dev/midi c 247 1 -m 20666
mknod /dev/mixer c 247 2 -m 20666


ossinfo -a see any audio devices but does see device files, perhaps left overs from prior autodetect?

Code: Select all

# ossinfo -a

Audio devices

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_multich -> /dev/oss/oss_ich0/pcm0
  /dev/dsp_spdifout -> /dev/oss/oss_envy24ht0/spdout


Which would seem to be confirmed by osstest:

Code: Select all

$ osstest
Sound subsystem and version: OSS 4.2 (b 2008/201402022103) (0x00040100)
Platform: Linux/x86_64 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014


NOTICE! You don't have any audio devices available.
        It looks like your audio hardware was not recognized
        by OSS.
          
        If you have installed OSS just a moment ago then it may be necessary to.
        to rebot the system before trying to use the device(s).


Setting envy24ht_model = 1

Same results as setting to 0

Thanks again for the help. I've basically spent untold hours with this on multiple occasions before bothering anyone here, and had come to the conclusion that I may be dealing with a broken driver. But, alas, I don't code C. Any other ideas?

As an aside, funny you should mention Audacious. I've been re-evaluating audio players recently as Arch moved ossv4 to AUR and Audacious maintainer no longer wants to include support for oss. Maybe not the best audio player out there but lighter than the bloat that comes packaed with most DE's and as I was only using onboard card so audiophile reproduction was kind of off the radar. Short list is Deadbeef and MOC & leaning towards the latter. Of course, I can only evaluate the Audiotrak under ALSA, whereupon I don't hear much, if any difference between the onboard and the Envy. Maybe I'm just getting too old?

Anyhow, I've had the Audiotrak card for a couple years now, waiting for the day when I might get it working under Linux. Appears my hopes are once again dashed even though the card is now explicitly listed as supported... :cry:

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby igorzwx » Mon Feb 03, 2014 9:20 pm

You may ask cesium how to fix the driver.

Audacious can be easily recompiled (on Arch) to enable OSS4 (and disable PulseAudio).

kgunders wrote:I can only evaluate the Audiotrak under ALSA, whereupon I don't hear much, if any difference between the onboard and the Envy. Maybe I'm just getting too old?


The default resampler of ALSA is a kind of "linear crap".
Since Linux users are supposed to be semi-deaf...

Adult hearing test - Audiology at the University of Canterbury
_https://www.youtube.com/watch?v=9u9Ja4wyUaU

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Mon Feb 03, 2014 10:48 pm

igorzwx wrote:You may ask cesium how to fix the driver.

Audacious can be easily recompiled (on Arch) to enable OSS4 (and disable PulseAudio).

kgunders wrote:I can only evaluate the Audiotrak under ALSA, whereupon I don't hear much, if any difference between the onboard and the Envy. Maybe I'm just getting too old?


The default resampler of ALSA is a kind of "linear crap".
Since Linux users are supposed to be semi-deaf...

Adult hearing test - Audiology at the University of Canterbury
_https://www.youtube.com/watch?v=9u9Ja4wyUaU


Yes, it is a shame Linux devs ditched contributing to OSS in favor of starting over from scratch and saddling naive users with that ALSA crap. I came to Linux via *BSD and Solaris and degraded sound quality is one of the first things I noticed. Even w/mediocre playback gear. Like someone poking their thumb in your eye, hard to ignore, and I just couldn't abide the sorry state of affairs of sound on Linux w/ALSA.

I have had lots of Penguinista types argue with me that there is no difference and/or ALSA is better. Ask them what their playback gear is and it's no wonder they don't hear a difference. Invite them over for a beer, let them try out the Grado SR60's w/OSSv4 and their jaws drop. Never mind the Senn's... Ask them to define "Better" and you get into license religious wars. Evidently even though OSSv4 is now GPL'd that it once was not warrants a lifetime of predudice.

That was years ago, however, and one might hope/expect that ALSA has "matured" since then. Now, however, it seems Pottering is adding insult to injury with PULSE & the cycle is repeating itself all over again. Just use OSSv4!! Opps! Poor hardware support. Lol.. sorry for the rant....

Re: Audio players; I just used a previous Audacious package for OSS testing purposes. Got better things to do with my time than maintain private package. Especially now that I'm actually liking Deadbeef better for GUI use. Last I took a look at it (few/several years ago??), it looked promising but was too early in dev yet for daily use. I actually prefer TUI based stuff that I can drive from the command line, however, and am favorably impressed with MOC. Remniscient of MPD w/o the hassle. The directory centric TUI really suits my style, even though no replay gain support (supposedly on the way?). Both have pretty small dev communities and neither appears to be under very active development. Any insights you can share regarding any issues under their respective hoods?

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby igorzwx » Mon Feb 03, 2014 11:39 pm

This seems to be a similar case: _http://www.opensound.com/forum/viewtopic.php?f=3&t=3986
You may ask cesium, he may know something about this problem.

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Tue Feb 04, 2014 12:05 am

Thanks for that pointer. And, yes, this seems to very similar symptoms. I'd forgotten that I'd ran across that post previously before I'd done the 32 vs 24 bit testing.

Those posts are pretty old, however, and I presumed that the issue had been remedied by now (3-4 years later??). I've pm'd cesium and requested he take a look at this thread. Hopefully he will because more and more this is looking to be a driver rather than an 'end luser' issue.

Haven't yet followed all the links pointed to in that thread. Do you know if they ever got the issue resolved?

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby igorzwx » Tue Feb 04, 2014 12:17 am

kgunders wrote:Thanks for that pointer. And, yes, this seems to very similar symptoms. I'd forgotten that I'd ran across that post previously before I'd done the 32 vs 24 bit testing.

Those posts are pretty old, however, and I presumed that the issue had been remedied by now (3-4 years later??). I've pm'd cesium and requested he take a look at this thread. Hopefully he will because more and more this is looking to be a driver rather than an 'end luser' issue.

Haven't yet followed all the links pointed to in that thread. Do you know if they ever got the issue resolved?


Some drivers for "exotic cards" have been fixed. I should not be a big problem, although it may require some "social skills"...

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Tue Feb 04, 2014 2:21 am

As a data point, I just swapped in a generic (Chaintech) Envy24PT based card that I had in one of my kids' boxes just to confirm that I didn't have some envy24 related config cruft tweaked somewhere. It works. I can probably dig up the model if anybody is interested in updating the supported devices list.

P.S.; The Chaintech card is model AV710.

kgunders
Member
Posts: 11
Joined: Mon Feb 03, 2014 1:21 am

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby kgunders » Sun Feb 16, 2014 1:42 am

Tried looking at the code to see if this might be something simple but it's way beyond me. Still keeping my fingers crossed that someone with a clue or two might be able to take a look at this driver. Or should I just sell this card on ebay and start over with something else? If the latter, what? Recommendations on card that is _confirmed_ as working appreciated (because I thought I was buying a supported card w/the Audiotrak).

TIA--

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: OSSV4 not working with Audiotrak Prodigy HD2 (envy24ht)

Postby igorzwx » Sun Feb 16, 2014 2:33 pm

kgunders wrote:I can only evaluate the Audiotrak under ALSA, whereupon I don't hear much, if any difference between the onboard and the Envy. Maybe I'm just getting too old?


kgunders wrote:I just swapped in a generic (Chaintech) Envy24PT based card that I had in one of my kids' boxes just to confirm that I didn't have some envy24 related config cruft tweaked somewhere. It works... The Chaintech card is model AV710.


Do you hear any difference between your onboard AC'97 codec and the Chaintech (Envy24PT) soundcard with OSS4?


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 3 guests