External Speakers and Mic Not Working

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

External Speakers and Mic Not Working

Postby indywoods » Sun Jun 06, 2010 3:25 am

I am new to Ubuntu and my sound did not work well on ALSA, so I installed OSS instead. I now have good sound coming from the internal laptop speakers, but the external speakers plugged into the headphone jack don't work. I also don't have any sound input from my mic plugged into the mic jack. Here are my results of osstest.
Code: Select all
Sound subsystem and version: OSS 4.2 (b 2003/201005280201) (0x00040100)
Platform: Linux/i686 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010

*** Scanning sound adapter #-1 ***
/dev/oss/oss_hdaudio0/pcm0 (audio engine 0): HD Audio play speaker
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47989.00 Hz (-0.02%)>
/dev/oss/oss_hdaudio0/pcm1 (audio engine 1): HD Audio play headphone
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47989.00 Hz (-0.02%)>
/dev/oss/oss_hdaudio0/pcm2 (audio engine 2): HD Audio play pcm
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm3 (audio engine 3): HD Audio play pcm
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm4 (audio engine 4): HD Audio play pcm
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm5 (audio engine 5): HD Audio play pcm
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm6 (audio engine 6): HD Audio play pcm
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm7 (audio engine 7): HD Audio play pcm
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcmin0 (audio engine 8): HD Audio rec select
- Skipping input only device
/dev/oss/oss_hdaudio0/pcmin1 (audio engine 9): HD Audio rec select
- Skipping input only device

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

And here is the results of ossinfo -v3
Code: Select all
derek@derek-laptop:~$ ossinfo -v3
Version info: OSS 4.2 (b 2003/201005280201) (0x00040100) TRIAL
Platform: Linux/i686 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 (derek-laptop)

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 ATI HD Audio interrupts=1556106 (1556106)
    HD Audio controller ATI HD Audio
    Vendor ID    0x10024383
    Subvendor ID 0x1179ff0a
     Codec  0: Agere HDA Modem (0x11c11040)
     Codec  1: Not present
     Codec  3: ALC268 (0x10ec0268/0x1179ff0a)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

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


Audio devices
HD Audio play speaker             /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 speaker
                     Available for use
      Engine      2: 10/HD Audio play speaker (vmix)
                     Available for use
      Engine      3: 11/HD Audio play speaker (vmix)
                     Available for use
      Engine      4: 12/HD Audio play speaker (vmix)
                     Available for use
      Engine      5: 13/HD Audio play speaker (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: PCIff0a1179-0000:00:14.2-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,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play headphone           /dev/oss/oss_hdaudio0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 1/HD Audio play headphone
                     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: PCIff0a1179-0000:00:14.2-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,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm                 /dev/oss/oss_hdaudio0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 2/HD Audio play pcm
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCIff0a1179-0000:00:14.2-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 pcm                 /dev/oss/oss_hdaudio0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 3/HD Audio play pcm
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCIff0a1179-0000:00:14.2-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 pcm                 /dev/oss/oss_hdaudio0/pcm4  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 4/HD Audio play pcm
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCIff0a1179-0000:00:14.2-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 pcm                 /dev/oss/oss_hdaudio0/pcm5  (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/HD Audio play pcm
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCIff0a1179-0000:00:14.2-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 pcm                 /dev/oss/oss_hdaudio0/pcm6  (device index 6)
    Legacy device /dev/dsp6
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/HD Audio play pcm
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCIff0a1179-0000:00:14.2-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 pcm                 /dev/oss/oss_hdaudio0/pcm7  (device index 7)
    Legacy device /dev/dsp7
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 7/HD Audio play pcm
                     Available for use
    Input formats (0x00000000):
    Output formats (0x00000000):
    Device handle: PCIff0a1179-0000:00:14.2-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 select               /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 select
                     Available for use
      Engine      2: 10/HD Audio play speaker (vmix)
                     Available for use
      Engine      3: 11/HD Audio play speaker (vmix)
                     Available for use
      Engine      4: 12/HD Audio play speaker (vmix)
                     Available for use
      Engine      5: 13/HD Audio play speaker (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: PCIff0a1179-0000:00:14.2-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 - 96000 (44100,48000,96000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select               /dev/oss/oss_hdaudio0/pcmin1  (device index 9)
    Legacy device /dev/dsp9
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 9/HD Audio rec select
                     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: PCIff0a1179-0000:00:14.2-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 - 96000 (44100,48000,96000)
    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


Lastly, here is the results of ossmix
Code: Select all
derek@derek-laptop:~$ ossmix
Selected mixer 0/High Definition Audio ALC268
Known controls are:
jack.int-speaker.mode <mix|input> (currently mix)
jack.int-speaker.mute ON|OFF (currently OFF)
jack.int-speaker.speaker [<leftvol>:<rightvol>] (currently 63.9:63.9 dB)
jack.int-speaker.speaker-mute ON|OFF (currently OFF)
jack.fp-black.mode1 <mix|input> (currently mix)
jack.fp-black.mute1 ON|OFF (currently OFF)
jack.fp-black.headphone [<leftvol>:<rightvol>] (currently 63.9:63.9 dB)
jack.fp-black.mute.headphone ON|OFF (currently OFF)
jack.fp-black.mute.speaker ON|OFF (currently OFF)
jack.fp-black.mode2 <speaker|input> (currently input)
jack.fp-black [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
jack.fp-black.mute2 ON|OFF (currently OFF)
record.select.select1 [<leftvol>:<rightvol>] (currently 23.9:23.9 dB)
record.select.select2 [<leftvol>:<rightvol>] (currently 19.4:19.4 dB)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Multich)
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 14.6:14.6 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 11.5:11.5 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 12.5:12.5 dB)
vmix0.pcm13 [<leftvol>:<rightvol>] (currently 10.5:10.5 dB)


Remember, I am new to all of this. So, make your answers easy to understand. Thanks for your help.
indywoods
New Member
 
Posts: 2
Joined: Sun Jun 06, 2010 3:10 am

Re: External Speakers and Mic Not Working

Postby cesium » Sun Jun 06, 2010 5:20 pm

First, do "ossmix vmix0-channels Stereo", just in case.

External speakers:
Does "osstest" command play sound through the speakers (you may to wait a while before it stops)? If so, than the sound device ("/dev/oss/oss_hdaudio0/..." file) is the one speakers output through. If not, try running "ossmix jack.fp-black.mode2 speaker" and test again with "osstest".

Recording:
Try running "ossrecord - | ossplay -" and talk to the mic. Do you hear an echo? If so, recording works, and we just need to configure software. If not, try "ossrecord -d/dev/oss/oss_hdaudio0/pcmin1 - | ossplay -". I think the latter will work. If so, I'll show you how to make it default input.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: External Speakers and Mic Not Working

Postby indywoods » Mon Jun 07, 2010 10:28 am

cesium,

Thanks for the help. The external speakers are now working great.

I tried both tests for the mic and can't hear anything through the speakers on either test. Any more suggestions?
indywoods
New Member
 
Posts: 2
Joined: Sun Jun 06, 2010 3:10 am

Re: External Speakers and Mic Not Working

Postby cesium » Mon Jun 07, 2010 3:18 pm

Hmm.. Try "ossmix jack.fp-black.mode1 input" and then test recording using both methods again.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron