I mussed up the transition from alsa to oss 4

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

I mussed up the transition from alsa to oss 4

Postby jfraney » Tue Oct 13, 2009 11:14 pm

Starting w/ ubuntu jaunty I did this: https://help.ubuntu.com/community/OpenSound

osstest makes a noise in the right (or left) ear of my head phones, three fuzzy quick beeps. The speakers in my laptop do not sound.

I have no idea what the controls in ossxmix mean. One setting I can get the laptop speaker to play only a fragment of the same fuzzy beeps I hear in my headphone.

Thanks for helping.

Regards,
John

Osstest makes this output to terminal:

Code: Select all
Sound subsystem and version: OSS 4.2 (b 2000/200909100609) (0x00040100)
Platform: Linux/x86_64 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009

*** Scanning sound adapter #-1 ***
/dev/oss/oss_hdaudio0/pcm0 (audio engine 0): HD Audio play pcm1
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm1 (audio engine 1): HD Audio play pcm2
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm2 (audio engine 2): HD Audio play pcm3
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm3 (audio engine 3): HD Audio play pcm4
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm4 (audio engine 4): HD Audio play pcm5
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm5 (audio engine 5): HD Audio play pcm6
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm6 (audio engine 6): HD Audio play pcm7
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm7 (audio engine 7): HD Audio play pcm8
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcmin0 (audio engine 8): HD Audio rec select3
- Skipping input only device
/dev/oss/oss_hdaudio0/pcmin1 (audio engine 9): HD Audio rec select4
- Skipping input only device

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


After running osstest, dmesg has these new things to say:

Code: Select all
[ 3585.516786] osscore: Output timed out on audio engine 0/'HD Audio play pcm1' (count=0)
[ 3585.624099] osscore: Output timed out (sync) on audio engine 0
[ 3586.648774] osscore: Output timed out on audio engine 1/'HD Audio play pcm2' (count=0)
[ 3586.756056] osscore: Output timed out (sync) on audio engine 1
[ 3586.757665] oss_hdaudio: No suitable rate found!
[ 3586.757684] oss_hdaudio: No suitable rate found!
[ 3586.759197] internal format error 2
[ 3586.760684] oss_hdaudio: No suitable rate found!
[ 3586.760704] oss_hdaudio: No suitable rate found!
[ 3586.762410] internal format error 2
[ 3586.763865] oss_hdaudio: No suitable rate found!
[ 3586.763883] oss_hdaudio: No suitable rate found!
[ 3586.765617] internal format error 2
[ 3586.767051] oss_hdaudio: No suitable rate found!
[ 3586.767069] oss_hdaudio: No suitable rate found!
[ 3586.768753] internal format error 2
[ 3586.770259] oss_hdaudio: No suitable rate found!
[ 3586.770278] oss_hdaudio: No suitable rate found!
[ 3586.772066] internal format error 2
[ 3586.773720] oss_hdaudio: No suitable rate found!
[ 3586.773741] oss_hdaudio: No suitable rate found!
[ 3586.775401] internal format error 2





output of ossinfo -v3:

Code: Select all
Version info: OSS 4.2 (b 2000/200909100609) (0x00040100) TRIAL
Platform: Linux/x86_64 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC 2009 (isidore)

Number of audio devices:   10
Number of audio engines:   14
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x103c30f4
     Codec  0: Unknown (0x111d76b2/0x103c30f6)
     Codec  1: Unknown (0x11c11040)
     Codec  2: Unknown (0x10de0006/0x10de0101)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio 0x111d76b (Mixer 0 of device object 1)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI30f4103c-0000:00:1b.0-mx01
    Device priority: 10

Audio devices
HD Audio play pcm1                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 0/HD Audio play pcm1
                     Available for use
      Engine      2: 10/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      3: 11/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      4: 12/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      5: 13/HD Audio play pcm1 (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: PCI30f4103c-0000:00:1b.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

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

HD Audio play pcm3                /dev/oss/oss_hdaudio0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 2/HD Audio play pcm3
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCI30f4103c-0000:00:1b.0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 500000 - 0
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 3/HD Audio play pcm4
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCI30f4103c-0000:00:1b.0-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 500000 - 0
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm5                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 4/HD Audio play pcm5
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCI30f4103c-0000:00:1b.0-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 500000 - 0
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm6                /dev/oss/oss_hdaudio0/pcm5  (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/HD Audio play pcm6
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCI30f4103c-0000:00:1b.0-au06
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 500000 - 0
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm7                /dev/oss/oss_hdaudio0/pcm6  (device index 6)
    Legacy device /dev/dsp6
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/HD Audio play pcm7
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCI30f4103c-0000:00:1b.0-au07
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 500000 - 0
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm8                /dev/oss/oss_hdaudio0/pcm7  (device index 7)
    Legacy device /dev/dsp7
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 7/HD Audio play pcm8
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCI30f4103c-0000:00:1b.0-au08
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 500000 - 0
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select3              /dev/oss/oss_hdaudio0/pcmin0  (device index 8)
    Legacy device /dev/dsp8
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      In engine   1: 8/HD Audio rec select3
                     Available for use
      Engine      2: 10/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      3: 11/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      4: 12/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      5: 13/HD Audio play pcm1 (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: PCI30f4103c-0000:00:1b.0-au09
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select4              /dev/oss/oss_hdaudio0/pcmin1  (device index 9)
    Legacy device /dev/dsp9
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 9/HD Audio rec select4
                     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: PCI30f4103c-0000:00:1b.0-au10
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,176400,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0




Output of ossmix:

Code: Select all
Selected mixer 0/High Definition Audio 0x111d76b2
Known controls are:
codec1.jack.fp-green.mode <pcm1|pcm2|mix> (currently pcm1)
codec1.jack.int-black.mode <pcm1|pcm2|mix> (currently pcm1)
codec1.jack.black <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
codec1.jack.black.select5 <spdifout2|select3|select4> (currently spdifout2)
codec1.record.select3 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
codec1.record.select3.select31 [<leftvol>:<rightvol>] (currently 19.4:19.4 dB)
codec1.record.select3.select32 <select1|mix|mic> (currently select1)
codec1.record.select4 <0.0dB|16.0dB|32.0dB|48.0dB> (currently 0.0dB)
codec1.record.select4.select41 [<leftvol>:<rightvol>] (currently 19.4:19.4 dB)
codec1.record.select4.select42 <select2|mix|mic> (currently select2)
codec1.misc.pcm11 [<leftvol>:<rightvol>] (currently 76.4:76.4 dB)
codec1.misc.pcm21 [<leftvol>:<rightvol>] (currently 76.4:76.4 dB)
codec1.misc.pcm12 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.pcm22 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.select1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.select2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
codec1.misc.mix <pcm1|pcm2|select1|select2> (currently pcm1)
codec1.misc <-28.-8dB|-19.-2dB|-9.-6dB|0.0dB|mute> (currently -28.-8dB)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm13 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
jfraney
New Member
 
Posts: 4
Joined: Tue Oct 13, 2009 10:48 pm

Re: I mussed up the transition from alsa to oss 4

Postby jfraney » Wed Oct 14, 2009 3:48 pm

I purged oss from my linux, I built from mercurial, I installed the result deb.
changeset: 861:eaea2fd4bfcf
tag: tip
user: Hannu Savolainen <hannu@opensound.com>
date: Mon Oct 12 19:24:00 2009 +0300
summary: Fxes to Solaris/ossdetect.c


I believe dmesg is hitting me in the face with the reason, but like as I am an ignorant fool, I don't know what this means:

Code: Select all
[ 2950.316294] osscore: Output timed out on audio engine 0/'HD Audio play pcm1' (count=0)
[ 2950.424309] osscore: Output timed out (sync) on audio engine 0


The source code itself isn't speaking to me. I'll keep listening. Perhaps my hardware isn't cooperating.
jfraney
New Member
 
Posts: 4
Joined: Tue Oct 13, 2009 10:48 pm

Re: I mussed up the transition from alsa to oss 4

Postby jfraney » Mon Oct 19, 2009 9:27 pm

I switched back to alsa. I could not find my solution.

Regards,
John
jfraney
New Member
 
Posts: 4
Joined: Tue Oct 13, 2009 10:48 pm


Return to Linux

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest