No sound after suspending to RAM(HD Audio)

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

No sound after suspending to RAM(HD Audio)

Postby MadCatX » Sun Jan 09, 2011 2:12 am

Hi there,

I've been having this problem ever since I stared using OSS4. I'm running Arch64 and when I suspend my computer to RAM (using the Sleep button in KDE menu), after resuming I get no sound at all and a lot of errors in dmesg. The sound chip is HD Audio ALC272 in Toshiba Qosmio X300 laptop.

ossinfo -v3
Code: Select all
Version info: OSS 4.2 (b 2003/201101021704) (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.37-ARCHMOD #1 SMP PREEMPT Thu Jan 6 17:43:39 CET 2011 (Qosmio-X300)

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 interrupts=479 (479)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x1179ff00
     Codec  0: Unknown (0x10ec0272/0x1179ff78)
     Codec  1: Agere HDA Modem (0x11c11040)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio 0x10ec027 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCIff001179-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: PCIff001179-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,96000,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: PCIff001179-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,96000,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 (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: PCIff001179-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): 44100 - 192000 (44100,48000,96000,192000)
    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: PCIff001179-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: PCIff001179-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: PCIff001179-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: PCIff001179-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: PCIff001179-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 mix6                 /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 mix6
                     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: PCIff001179-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,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec mix5                 /dev/oss/oss_hdaudio0/pcmin1  (device index 9)
    Legacy device /dev/dsp9
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 9/HD Audio rec mix5
                     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: PCIff001179-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,96000,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


Code: Select all
Selected mixer 0/High Definition Audio 0x10ec0272
Known controls are:
jack.int-speaker.mode <mix2|mix3|input> (currently mix2)
jack.int-speaker.mute ON|OFF (currently OFF)
jack.black.mode1 <mix4|input> (currently mix4)
jack.black [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.black.mute1 ON|OFF (currently OFF)
jack.black.pcm3 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
jack.black.pcm3-mute ON|OFF (currently OFF)
jack.black.mix1-mute ON|OFF (currently OFF)
jack.int-mic.mode <mix2|mix3|mix4|input> (currently mix2)
jack.int-mic [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.int-mic.mute ON|OFF (currently OFF)
jack.black.mode2 <mix2|mix3|mix4> (currently mix2)
jack.black.mute2 ON|OFF (currently OFF)
record.mix6.mute.mix4 ON|OFF (currently OFF)
record.mix6.mute.int-mic ON|OFF (currently OFF)
record.mix6.mute.int-speaker ON|OFF (currently OFF)
record.mix6.mute.mix1 ON|OFF (currently OFF)
record.mix6 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
record.mix5.mute.mix4 ON|OFF (currently OFF)
record.mix5.mute.int-mic ON|OFF (currently OFF)
record.mix5.mute.int-speaker ON|OFF (currently OFF)
record.mix5.mute.mix1 ON|OFF (currently OFF)
record.mix5 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.pcm1 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
misc.pcm2 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
misc.mix4 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.int-mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.int-speaker [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.mix1 <mix4|int-mic> (currently mix4)
misc.pcm1-mute ON|OFF (currently OFF)
misc.mix1-mute1 ON|OFF (currently OFF)
misc.mix2 <pcm1|mix1> (currently pcm1)
misc.pcm2-mute ON|OFF (currently OFF)
misc.mix1-mute2 ON|OFF (currently OFF)
misc.mix3 <pcm2|mix1> (currently pcm2)
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 16.2 dB)
vmix0-invol <monovol> (currently 5.4 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)


dmesg
Code: Select all
wlan0: authenticated
wlan0: associate with 02:10:18:01:00:01 (try 1)
wlan0: RX AssocResp from 02:10:18:01:00:01 (capab=0x431 status=0 aid=1)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present

--Now I attempted to play some sound file

oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=8, d=0, verb=f0d, parm=0)
oss_hdaudio: RIRB timeout (cad=0, nid=2, d=0, verb=f0d, parm=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out on audio engine 10/'HD Audio play pcm1 (vmix)' (count=0)
osscore: Output timed out (sync) on audio engine 10


When I try to stop OSS by running "/etc/rc.d/oss4 stop", I get a lot of "SNDCTL_MIX_READ: Input/output error" errors in the console. However, when I start OSS again, it seems to be working. Unfortunately, sometimes OSS just won't unload and the only way out is to reboot.
I compile OSS from the source myself and I believe that I currently have revision 920.
MadCatX
Member
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am

Re: No sound after suspending to RAM(HD Audio)

Postby igorzwx » Sun Jan 09, 2011 2:36 am

You may try this:
https://wiki.archlinux.org/index.php/OS ... ibernation

If you need to unload OSS, you may try this:

Code: Select all
$ sudo /usr/lib/oss/scripts/killprocs.sh
$ sudo soundoff


All this knowledge is available in Arch Wiki
https://wiki.archlinux.org/index.php/OSS
igorzwx
Supporter
 
Posts: 998
Joined: Sun Jun 28, 2009 9:31 pm

Re: No sound after suspending to RAM(HD Audio)

Postby MadCatX » Sun Jan 09, 2011 11:32 pm

Great, I guess I should've checked that guide out before posting. It works like a charm, thanks a bunch...
MadCatX
Member
 
Posts: 12
Joined: Tue Jun 01, 2010 10:01 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest