Problems with CMedia CM8738 soundcard on Ubuntu

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

Problems with CMedia CM8738 soundcard on Ubuntu

Postby sevillano » Mon Jan 03, 2011 7:18 pm

I cant get my CMedia CM8738 soundcard to work with OSS 4.2 on Ubuntu.
After reading through the forums, I already built OSS from source using Mercurial.
Everything went fine until I executed the newly install deb package. It could no load the module oss_cmpci:
-----------------------------
Detected VIA High Definition Audio
Detected CMedia CM8738/CM8768
USB support available in the system, adding USB driver
Detected Generic USB audio/MIDI device (BETA)
-----------------------------

Forcing re-detection of installed soundcards
Starting Open Sound System
Segmentation fault
Loading module oss_cmpci failed - ignored


At this point I am not sure how I should continue.

Outcome for ossinfo -v3:

Code: Select all
Version info: OSS 4.2 (b 2003/201101031831) (0x00040100) OSS_HG
Hg revision: changeset: 920:232d0de71550, tag: tip, date: Tue Nov 02 23:45:15 2010 +0200, summary: Misc changes to ossplay
Platform: Linux/x86_64 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010 (homebase)

Number of audio devices:   9
Number of audio engines:   16
Number of MIDI devices:      0
Number of mixer devices:   2


Device objects
0: osscore0 OSS core services
1: oss_cmpci0 CMedia CM8738 interrupts=1978 (1978)
2: oss_hdaudio0 VIA HD Audio interrupts=1936 (1936)
    HD Audio controller VIA HD Audio
    Vendor ID    0x11063288
    Subvendor ID 0x1631e028
     Codec  0: ALC888 (0x10ec0888/0x1631e028)
3: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: CMedia CMPCI (Mixer 0 of device object 1)
    Device file /dev/oss/oss_cmpci0/mix0, Legacy device /dev/mixer0
    Priority: 1
    Caps:
    Device handle: PCI011113f6-0000:00:09.0-mx01
    Device priority: 1

1: High Definition Audio ALC888 (Mixer 0 of device object 2)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer1
    Priority: 10
    Caps:
    Device handle: PCIe0281631-0000:80:01.0-mx01
    Device priority: 10


Audio devices
CMedia CM8738 (rev 37)            /dev/oss/oss_cmpci0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/CMedia CM8738 (rev 37)
                     Available for use
      Engine      2: 1/CMedia CM8738 (rev 37) (vmix)
                     Available for use
      Engine      3: 2/CMedia CM8738 (rev 37) (vmix)
                     Available for use
      Engine      4: 15/CMedia CM8738 (rev 37) (vmix)
                     Available for use
    Input formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI011113f6-0000:00:09.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 5000 - 48000
    HW Type: ANALOG_OUT ANALOG_IN DIGITAL_OUT DIGITAL_IN     Minimum latency: Not indicated

HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 1)
    Legacy device /dev/dsp1
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 3/HD Audio play front
                     Available for use
      Engine      2: 11/HD Audio play front (vmix)
                     Available for use
      Engine      3: 12/HD Audio play front (vmix)
                     Available for use
      Engine      4: 13/HD Audio play front (vmix)
                     Available for use
      Engine      5: 14/HD Audio play front (vmix)
                     Available for use
      Engine      6: 15/CMedia CM8738 (rev 37) (vmix)
                     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: PCIe0281631-0000:80:01.0-au01
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play rear                /dev/oss/oss_hdaudio0/pcm1  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 4/HD Audio play rear
                     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: PCIe0281631-0000:80:01.0-au02
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm2  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/HD Audio play center/LFE
                     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: PCIe0281631-0000:80:01.0-au03
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/HD Audio play side
                     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: PCIe0281631-0000:80:01.0-au04
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm4  (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 7/HD Audio play pcm4
                     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: PCIe0281631-0000:80:01.0-au05
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 6)
    Legacy device /dev/dsp6
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 8/HD Audio play spdif-out
                     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: PCIe0281631-0000:80:01.0-au06
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 7)
    Legacy device /dev/dsp7
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      In engine   1: 9/HD Audio rec mix
                     Available for use
      Engine      2: 11/HD Audio play front (vmix)
                     Available for use
      Engine      3: 12/HD Audio play front (vmix)
                     Available for use
      Engine      4: 13/HD Audio play front (vmix)
                     Available for use
      Engine      5: 14/HD Audio play front (vmix)
                     Available for use
      Engine      6: 15/CMedia CM8738 (rev 37) (vmix)
                     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: PCIe0281631-0000:80:01.0-au07
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 96000 (44100,48000,96000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 8)
    Legacy device /dev/dsp8
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 10/HD Audio rec mix
                     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: PCIe0281631-0000:80:01.0-au08
    Related mixer dev: 1
    Sample rate source: 3
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 96000 (44100,48000,96000)
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_cmpci0/pcm0
  /dev/dsp_in -> /dev/oss/oss_cmpci0/pcm0
  /dev/dsp_out -> /dev/oss/oss_cmpci0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_cmpci0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_cmpci0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_cmpci0/pcm0
  /dev/dsp_spdifout -> /dev/oss/oss_cmpci0/pcm0
  /dev/dsp_spdifin -> /dev/oss/oss_cmpci0/pcm0


Outcome for osstest: (I only get sound for /dev/oss/oss_cmpci0/pcm0)


Code: Select all
Sound subsystem and version: OSS 4.2 (b 2003/201101031831) (0x00040100)
Platform: Linux/x86_64 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010

*** Scanning sound adapter #-1 ***
/dev/oss/oss_cmpci0/pcm0 (audio engine 0): CMedia CM8738 (rev 37)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47995.00 Hz (-0.01%)>

*** Scanning sound adapter #1 ***
/dev/oss/oss_hdaudio0/pcm0 (audio engine 3): HD Audio play front
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47983.00 Hz (-0.04%)>
/dev/oss/oss_hdaudio0/pcm1 (audio engine 4): HD Audio play rear
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47983.00 Hz (-0.04%)>
/dev/oss/oss_hdaudio0/pcm2 (audio engine 5): HD Audio play center/LFE
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47983.00 Hz (-0.04%)>
/dev/oss/oss_hdaudio0/pcm3 (audio engine 6): HD Audio play side
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47983.00 Hz (-0.04%)>
/dev/oss/oss_hdaudio0/pcm4 (audio engine 7): HD Audio play pcm4
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47983.00 Hz (-0.04%)>
/dev/oss/oss_hdaudio0/spdout0 (audio engine 8): HD Audio play spdif-out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47983.00 Hz (-0.04%)>
/dev/oss/oss_hdaudio0/pcmin0 (audio engine 9): HD Audio rec mix
- Skipping input only device
/dev/oss/oss_hdaudio0/pcmin1 (audio engine 10): HD Audio rec mix
- Skipping input only device

*** All tests completed OK ***


Could someone point me kindly to a possible solution or let me know if more information is needed?

Thanks


Edit: sudo soundoff and ossmix give me a Segmentation fault
sevillano
New Member
 
Posts: 2
Joined: Mon Jan 03, 2011 6:55 pm

Re: Problems with CMedia CM8738 soundcard on Ubuntu

Postby cesium » Tue Jan 04, 2011 6:12 am

soundon and soundoff are shell scripts. The seg fault probably comes from one of the programs they run. Try loading OSS and then executing them manually to see where:
"sudo savemixer"
"sudo ossdetect -d -v"
"sudo ossdevlinks -v"

Also, please paste the output of 'ossmix -a' command.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Problems with CMedia CM8738 soundcard on Ubuntu

Postby sevillano » Tue Jan 04, 2011 12:06 pm

Thank you very much for replying. Below are the requested outputs.

sudo savemixer:
Code: Select all
SNDCTL_MIX_READ: Bad address
SNDCTL_MIX_READ: Bad address
Segmentation fault


sudo ossdetect -d -v:
Code: Select all
mknod /dev/sndstat c 250 0 -m 20666
mknod /dev/midi c 250 1 -m 20666
mknod /dev/mixer c 250 2 -m 20666
mknod /dev/oss/oss_cmpci0/mix0 c 249 3 -m 20666
mknod /dev/oss/oss_cmpci0/pcm0 c 249 4 -m 20666
mknod /dev/oss/oss_hdaudio0/mix0 c 248 9 -m 20666
mknod /dev/oss/oss_hdaudio0/pcm0 c 248 10 -m 20666
mknod /dev/oss/oss_hdaudio0/pcm1 c 248 12 -m 20666
mknod /dev/oss/oss_hdaudio0/pcm2 c 248 14 -m 20666
mknod /dev/oss/oss_hdaudio0/pcm3 c 248 16 -m 20666
mknod /dev/oss/oss_hdaudio0/pcm4 c 248 18 -m 20666
mknod /dev/oss/oss_hdaudio0/spdout0 c 248 20 -m 20666
mknod /dev/oss/oss_hdaudio0/pcmin0 c 248 22 -m 20666
mknod /dev/oss/oss_hdaudio0/pcmin1 c 248 24 -m 20666



sudo ossdevlinks -v
Code: Select all
9 audio devices
/dev/dsp10 is the next free legacy device
/dev/dsp0: symlink -> /dev/oss/oss_cmpci0/pcm0 OK
/dev/dsp1: symlink -> /dev/oss/oss_hdaudio0/pcm0 OK
/dev/dsp2: symlink -> /dev/oss/oss_hdaudio0/pcm1 OK
/dev/dsp3: symlink -> /dev/oss/oss_hdaudio0/pcm2 OK
/dev/dsp4: symlink -> /dev/oss/oss_hdaudio0/pcm3 OK
/dev/dsp5: symlink -> /dev/oss/oss_hdaudio0/pcm4 OK
/dev/dsp6: symlink -> /dev/oss/oss_hdaudio0/spdout0 OK
/dev/dsp7: symlink -> /dev/oss/oss_hdaudio0/pcmin0 OK
/dev/dsp8: symlink -> /dev/oss/oss_hdaudio0/pcmin1 OK
10 legacy dsp device files
/dev/oss/oss_cmpci0/pcm0 is the default /dev/dsp device
/dev/oss/oss_cmpci0/pcm0 is the default dsp_out device
/dev/oss/oss_cmpci0/pcm0 is the default dsp_in device
/dev/oss/oss_cmpci0/pcm0 is the default AC3 output device
/dev/oss/oss_cmpci0/pcm0 is the default mmap output device
/dev/oss/oss_cmpci0/pcm0 is the default multichan output device
/dev/oss/oss_cmpci0/pcm0 is the default S/PDIF digital output device
/dev/oss/oss_cmpci0/pcm0 is the default S/PDIF digital input device
2 mixer devices
/dev/mixer2 is the next free legacy device
/dev/mixer0: symlink -> /dev/oss/oss_cmpci0/mix0 OK
/dev/mixer1: symlink -> /dev/oss/oss_hdaudio0/mix0 OK
2 legacy mixer device files


ossmix -a
Segmentation fault

Before I ran those commands today, I had a crash on my first startup, which caused the following process and system answers:

Code: Select all
sudo soundon
Previous start of OSS crashed the system
Please resolve the situation and remove file
"/usr/lib/oss/starting". Then start OSS by
running soundon again.
sudo rm starting
sudo soundon
Segmentation fault
Loading module oss_cmpci failed - ignored
sevillano
New Member
 
Posts: 2
Joined: Mon Jan 03, 2011 6:55 pm

Re: Problems with CMedia CM8738 soundcard on Ubuntu

Postby cesium » Wed Jan 05, 2011 8:58 am

OK, the mixer is corrupted for some reason... Please download the attachment, uncompress it (gzip -d), and run it like this: "./savemixer -f -". Can you see where it stops (or if it starts at all)?
Attachments
savemixer.gz
savemixer
(5.25 KiB) Downloaded 522 times
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest