You are not logged in.

#1 2007-12-02 17:32:05

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

no sound out of laptop when using headphones, speakers keep playing.

In terms of sound, everything has been working great. Then I plugged some headphones in and nothing came out and the speakers keep playing. Alsamixer only gives me options for master and pcm. The laptop in question is a Sony Vaio VGN-FZ series.

Offline

#2 2007-12-02 18:21:13

gunnihinn
Member
From: Torreón, Mexico
Registered: 2007-10-28
Posts: 81

Re: no sound out of laptop when using headphones, speakers keep playing.

I had the same issue under Ubuntu, but no such problem with Arch. Then again I've got a HP dv2000 laptop, so the same solution might not work.

Try following the instructions in this thread: http://ubuntuforums.org/showthread.php?t=455147

It just goes through the motions of how to compile alsa for yourself, note that you may have to adjust the "--with-cards" option when compiling alsa-driver to your soundcard if it's not an hda-intel one.

[edit] Come to think of it, just reinstalling alsa via pacman might work ("pacman -S alsa-utils alsa-lib").

Last edited by gunnihinn (2007-12-02 18:24:17)

Offline

#3 2007-12-02 18:26:46

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: no sound out of laptop when using headphones, speakers keep playing.

I actually tried that yesterday but with no luck which is weird given it is a hda-intel car.

Offline

#4 2007-12-02 19:23:08

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: no sound out of laptop when using headphones, speakers keep playing.

I tried reinstalling them too, just now nothing. So I tried the Ubuntu method again, everything worked except when I did make and make install for the actual driver, which errored out and then made me lose all sound.

EDIT - If it helps

 lspci |grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

Last edited by Reasons (2007-12-02 19:28:15)

Offline

#5 2007-12-10 15:24:36

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: no sound out of laptop when using headphones, speakers keep playing.

I have the same problem, but it's not solved yet :-(

At home i have an more actual doc, but, i've now found this (i'll post a newer one doc, with ICH8, which is mine):

Module snd-hda-intel
--------------------

Module for Intel HD Audio (ICH6, ICH6M, ICH7), ATI SB450,
VIA VT8251/VT8237A

model - force the model name
position_fix - Fix DMA pointer (0 = FIFO size, 1 = none, 2 = POSBUF)

Module supports up to 8 cards.

Each codec may have a model table for different configurations.
If your machine isn't listed there, the default (usually minimal)
configuration is set up. You can pass "model=<name>" option to
specify a certain model in such a case. There are different
models depending on the codec chip.

Model name Description
---------- -----------
ALC880
3stack 3-jack in back and a headphone out
3stack-digout 3-jack in back, a HP out and a SPDIF out
5stack 5-jack in back, 2-jack in front
5stack-digout 5-jack in back, 2-jack in front, a SPDIF out
6stack 6-jack in back, 2-jack in front
6stack-digout 6-jack with a SPDIF out
w810 3-jack
z71v 3-jack (HP shared SPDIF)
asus 3-jack
uniwill 3-jack
F1734 2-jack
test for testing/debugging purpose, almost all controls can be
adjusted. Appearing only when compiled with
$CONFIG_SND_DEBUG=y

ALC260
hp HP machines
fujitsu Fujitsu S7020

CMI9880
minimal 3-jack in back
min_fp 3-jack in back, 2-jack in front
full 6-jack in back, 2-jack in front
full_dig 6-jack in back, 2-jack in front, SPDIF I/O
allout 5-jack in back, 2-jack in front, SPDIF out
auto auto-config reading BIOS (default)

Note 2: If you get click noises on output, try the module option
position_fix=1 or 2. position_fix=1 will use the SD_LPIB
register value without FIFO size correction as the current
DMA pointer. position_fix=2 will make the driver to use
the position buffer instead of reading SD_LPIB register.
(Usually SD_LPLIB register is more accurate than the
position buffer.)

You should check (via lspci) what card do you have, and add something like this to modprobe.conf:

options snd-hda-intel model=3stack

Hope this help

Edited: here is a newer list (includes VAIO settings): http://wiki.sabayonlinux.org/index.php? … ound_Cards

Last edited by dienadel (2007-12-10 17:55:31)

Offline

#6 2007-12-16 11:36:37

dienadel
Member
Registered: 2005-12-23
Posts: 179

Re: no sound out of laptop when using headphones, speakers keep playing.

A complete list taken from kernel doc (2.6.23.11):

Module snd-hda-intel
  --------------------

    Module for Intel HD Audio (ICH6, ICH6M, ESB2, ICH7, ICH8),
        ATI SB450, SB600, RS600,
        VIA VT8251/VT8237A,
        SIS966, ULI M5461

    model    - force the model name
    position_fix - Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size)
    probe_mask  - Bitmask to probe codecs (default = -1, meaning all slots)
    single_cmd  - Use single immediate commands to communicate with
        codecs (for debugging only)
    enable_msi    - Enable Message Signaled Interrupt (MSI) (default = off)

    This module supports one card and autoprobe.

    Each codec may have a model table for different configurations.
    If your machine isn't listed there, the default (usually minimal)
    configuration is set up.  You can pass "model=<name>" option to
    specify a certain model in such a case.  There are different
    models depending on the codec chip.

      Model name    Description
      ----------    -----------
    ALC880
      3stack    3-jack in back and a headphone out
      3stack-digout    3-jack in back, a HP out and a SPDIF out
      5stack    5-jack in back, 2-jack in front
      5stack-digout    5-jack in back, 2-jack in front, a SPDIF out
      6stack    6-jack in back, 2-jack in front
      6stack-digout    6-jack with a SPDIF out
      w810        3-jack
      z71v        3-jack (HP shared SPDIF)
      asus        3-jack (ASUS Mobo)
      asus-w1v    ASUS W1V
      asus-dig    ASUS with SPDIF out
      asus-dig2    ASUS with SPDIF out (using GPIO2)
      uniwill    3-jack
      fujitsu    Fujitsu Laptops (Pi1536)
      F1734        2-jack
      lg        LG laptop (m1 express dual)
      lg-lw        LG LW20/LW25 laptop
      tcl        TCL S700
      clevo        Clevo laptops (m520G, m665n)
      test        for testing/debugging purpose, almost all controls can be
            adjusted.  Appearing only when compiled with
            $CONFIG_SND_DEBUG=y
      auto        auto-config reading BIOS (default)

    ALC260
      hp        HP machines
      hp-3013    HP machines (3013-variant)
      fujitsu    Fujitsu S7020
      acer        Acer TravelMate
      will        Will laptops (PB V7900)
      replacer    Replacer 672V
      basic        fixed pin assignment (old default model)
      auto        auto-config reading BIOS (default)

    ALC262
      fujitsu    Fujitsu Laptop
      hp-bpc    HP xw4400/6400/8400/9400 laptops
      hp-bpc-d7000    HP BPC D7000
      benq        Benq ED8
      benq-t31    Benq T31
      hippo        Hippo (ATI) with jack detection, Sony UX-90s
      hippo_1    Hippo (Benq) with jack detection
      sony-assamd    Sony ASSAMD
      basic        fixed pin assignment w/o SPDIF
      auto        auto-config reading BIOS (default)

    ALC268
      3stack    3-stack model
      auto        auto-config reading BIOS (default)

    ALC662
      3stack-dig    3-stack (2-channel) with SPDIF
      3stack-6ch     3-stack (6-channel)
      3stack-6ch-dig 3-stack (6-channel) with SPDIF
      6stack-dig     6-stack with SPDIF
      lenovo-101e     Lenovo laptop
      auto        auto-config reading BIOS (default)

    ALC882/885
      3stack-dig    3-jack with SPDIF I/O
      6stack-dig    6-jack digital with SPDIF I/O
      arima        Arima W820Di1
      macpro    MacPro support
      imac24    iMac 24'' with jack detection
      w2jc        ASUS W2JC
      auto        auto-config reading BIOS (default)

    ALC883/888
      3stack-dig    3-jack with SPDIF I/O
      6stack-dig    6-jack digital with SPDIF I/O
      3stack-6ch    3-jack 6-channel
      3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
      6stack-dig-demo  6-jack digital for Intel demo board
      acer        Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
      medion    Medion Laptops
      medion-md2    Medion MD2
      targa-dig    Targa/MSI
      targa-2ch-dig    Targs/MSI with 2-channel
      laptop-eapd   3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
      lenovo-101e    Lenovo 101E
      lenovo-nb0763    Lenovo NB0763
      lenovo-ms7195-dig Lenovo MS7195
      6stack-hp    HP machines with 6stack (Nettle boards)
      3stack-hp    HP machines with 3stack (Lucknow, Samba boards)
      auto        auto-config reading BIOS (default)

    ALC861/660
      3stack    3-jack
      3stack-dig    3-jack with SPDIF I/O
      6stack-dig    6-jack with SPDIF I/O
      3stack-660    3-jack (for ALC660)
      uniwill-m31    Uniwill M31 laptop
      toshiba    Toshiba laptop support
      asus        Asus laptop support
      asus-laptop    ASUS F2/F3 laptops
      auto        auto-config reading BIOS (default)

    ALC861VD/660VD
      3stack    3-jack
      3stack-dig    3-jack with SPDIF OUT
      6stack-dig    6-jack with SPDIF OUT
      3stack-660    3-jack (for ALC660VD)
      3stack-660-digout 3-jack with SPDIF OUT (for ALC660VD)
      lenovo    Lenovo 3000 C200
      dallas    Dallas laptops
      auto        auto-config reading BIOS (default)

    CMI9880
      minimal    3-jack in back
      min_fp    3-jack in back, 2-jack in front
      full        6-jack in back, 2-jack in front
      full_dig    6-jack in back, 2-jack in front, SPDIF I/O
      allout    5-jack in back, 2-jack in front, SPDIF out
      auto        auto-config reading BIOS (default)

    AD1882
      3stack    3-stack mode (default)
      6stack    6-stack mode

    AD1884
      N/A

    AD1981
      basic        3-jack (default)
      hp        HP nx6320
      thinkpad    Lenovo Thinkpad T60/X60/Z60
      toshiba    Toshiba U205

    AD1983
      N/A

    AD1984
      basic        default configuration
      thinkpad    Lenovo Thinkpad T61/X61

    AD1986A
      6stack    6-jack, separate surrounds (default)
      3stack    3-stack, shared surrounds
      laptop    2-channel only (FSC V2060, Samsung M50)
      laptop-eapd    2-channel with EAPD (Samsung R65, ASUS A6J)
      ultra        2-channel with EAPD (Samsung Ultra tablet PC)

    AD1988
      6stack    6-jack
      6stack-dig    ditto with SPDIF
      3stack    3-jack
      3stack-dig    ditto with SPDIF
      laptop    3-jack with hp-jack automute
      laptop-dig    ditto with SPDIF
      auto        auto-config reading BIOS (default)
    
    Conexant 5045
      laptop    Laptop config 
      test        for testing/debugging purpose, almost all controls
            can be adjusted.  Appearing only when compiled with
            $CONFIG_SND_DEBUG=y

    Conexant 5047
      laptop    Basic Laptop config 
      laptop-hp    Laptop config for some HP models (subdevice 30A5)
      laptop-eapd    Laptop config with EAPD support
      test        for testing/debugging purpose, almost all controls
            can be adjusted.  Appearing only when compiled with
            $CONFIG_SND_DEBUG=y

    STAC9200/9205/9254
      ref        Reference board

    STAC9220/9221
      ref        Reference board
      3stack    D945 3stack
      5stack    D945 5stack + SPDIF
      dell        Dell XPS M1210
      intel-mac-v1    Intel Mac Type 1
      intel-mac-v2    Intel Mac Type 2
      intel-mac-v3    Intel Mac Type 3
      intel-mac-v4    Intel Mac Type 4
      intel-mac-v5    Intel Mac Type 5
      macmini    Intel Mac Mini (equivalent with type 3)
      macbook    Intel Mac Book (eq. type 5)
      macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3)
      macbook-pro    Intel Mac Book Pro 2nd generation (eq. type 3)
      imac-intel    Intel iMac (eq. type 2)
      imac-intel-20    Intel iMac (newer version) (eq. type 3)

    STAC9202/9250/9251
      ref        Reference board, base config
      m2-2        Some Gateway MX series laptops
      m6        Some Gateway NX series laptops
      pa6        Gateway NX860 series

    STAC9227/9228/9229/927x
      ref        Reference board
      3stack    D965 3stack
      5stack    D965 5stack + SPDIF

    STAC9872
      vaio        Setup for VAIO FE550G/SZ110
      vaio-ar Setup for VAIO AR

    The model name "genric" is treated as a special case.  When this
    model is given, the driver uses the generic codec parser without
    "codec-patch".  It's sometimes good for testing and debugging.

    If the default configuration doesn't work and one of the above
    matches with your device, report it together with the PCI
    subsystem ID (output of "lspci -nv") to ALSA BTS or alsa-devel
    ML (see the section "Links and Addresses").

    Note 2: If you get click noises on output, try the module option
        position_fix=1 or 2.  position_fix=1 will use the SD_LPIB
        register value without FIFO size correction as the current
        DMA pointer.  position_fix=2 will make the driver to use
        the position buffer instead of reading SD_LPIB register.
        (Usually SD_LPLIB register is more accurate than the
        position buffer.)

    NB: If you get many "azx_get_response timeout" messages at
    loading, it's likely a problem of interrupts (e.g. ACPI irq
    routing).  Try to boot with options like "pci=noacpi".  Also, you
    can try "single_cmd=1" module option.  This will switch the
    communication method between HDA controller and codecs to the
    single immediate commands instead of CORB/RIRB.  Basically, the
    single command mode is provided only for BIOS, and you won't get
    unsolicited events, too.  But, at least, this works independently
    from the irq.  Remember this is a last resort, and should be
    avoided as much as possible...
    
    MORE NOTES ON "azx_get_response timeout" PROBLEMS:
    On some hardwares, you may need to add a proper probe_mask option
    to avoid the "azx_get_response timeout" problem above, instead.
    This occurs when the access to non-existing or non-working codec slot
    (likely a modem one) causes a stall of the communication via HD-audio
    bus.  You can see which codec slots are probed by enabling
    CONFIG_SND_DEBUG_DETECT, or simply from the file name of the codec
    proc files.  Then limit the slots to probe by probe_mask option.
    For example, probe_mask=1 means to probe only the first slot, and
    probe_mask=4 means only the third slot.

    The power-management is supported.

  



Module Autoloading Support
==========================

The ALSA drivers can be loaded automatically on demand by defining
module aliases.  The string 'snd-card-%1' is requested for ALSA native
devices where %i is sound card number from zero to seven.

To auto-load an ALSA driver for OSS services, define the string
'sound-slot-%i' where %i means the slot number for OSS, which
corresponds to the card index of ALSA.  Usually, define this
as the same card module.

An example configuration for a single emu10k1 card is like below:
----- /etc/modprobe.conf
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
----- /etc/modprobe.conf

The available number of auto-loaded sound cards depends on the module
option "cards_limit" of snd module.  As default it's set to 1.
To enable the auto-loading of multiple cards, specify the number of
sound cards in that option.

When multiple cards are available, it'd better to specify the index
number for each card via module option, too, so that the order of
cards is kept consistent.

An example configuration for two sound cards is like below:

----- /etc/modprobe.conf
# ALSA portion
options snd cards_limit=2
alias snd-card-0 snd-interwave
alias snd-card-1 snd-ens1371
options snd-interwave index=0
options snd-ens1371 index=1
# OSS/Free portion
alias sound-slot-0 snd-interwave
alias sound-slot-1 snd-ens1371
----- /etc/modprobe.conf

In this example, the interwave card is always loaded as the first card
(index 0) and ens1371 as the second (index 1).


ALSA PCM devices to OSS devices mapping
=======================================

/dev/snd/pcmC0D0[c|p]  -> /dev/audio0 (/dev/audio) -> minor 4
/dev/snd/pcmC0D0[c|p]  -> /dev/dsp0 (/dev/dsp)     -> minor 3
/dev/snd/pcmC0D1[c|p]  -> /dev/adsp0 (/dev/adsp)   -> minor 12
/dev/snd/pcmC1D0[c|p]  -> /dev/audio1              -> minor 4+16 = 20
/dev/snd/pcmC1D0[c|p]  -> /dev/dsp1                -> minor 3+16 = 19
/dev/snd/pcmC1D1[c|p]  -> /dev/adsp1               -> minor 12+16 = 28
/dev/snd/pcmC2D0[c|p]  -> /dev/audio2              -> minor 4+32 = 36
/dev/snd/pcmC2D0[c|p]  -> /dev/dsp2                -> minor 3+32 = 39
/dev/snd/pcmC2D1[c|p]  -> /dev/adsp2               -> minor 12+32 = 44

The first number from /dev/snd/pcmC{X}D{Y}[c|p] expression means
sound card number and second means device number.  The ALSA devices
have either 'c' or 'p' suffix indicating the direction, capture and
playback, respectively.

Please note that the device mapping above may be varied via the module
options of snd-pcm-oss module.


Proc interfaces (/proc/asound)
==============================

/proc/asound/card#/pcm#[cp]/oss
-------------------------------
  String "erase" - erase all additional informations about OSS applications
  String "<app_name> <fragments> <fragment_size> [<options>]"

   <app_name> - name of application with (higher priority) or without path
   <fragments> - number of fragments or zero if auto
   <fragment_size> - size of fragment in bytes or zero if auto
   <options> - optional parameters
      - disable   the application tries to open a pcm device for
              this channel but does not want to use it.
              (Cause a bug or mmap needs)
              It's good for Quake etc...
      - direct    don't use plugins
      - block     force block mode (rvplayer)
      - non-block force non-block mode
      - whole-frag  write only whole fragments (optimization affecting
            playback only)
      - no-silence  do not fill silence ahead to avoid clicks
      - buggy-ptr    Returns the whitespace blocks in GETOPTR ioctl
            instead of filled blocks

  Example: echo "x11amp 128 16384" > /proc/asound/card0/pcm0p/oss
           echo "squake 0 0 disable" > /proc/asound/card0/pcm0c/oss
       echo "rvplayer 0 0 block" > /proc/asound/card0/pcm0p/oss


Early Buffer Allocation
=======================

Some drivers (e.g. hdsp) require the large contiguous buffers, and
sometimes it's too late to find such spaces when the driver module is
actually loaded due to memory fragmentation.  You can pre-allocate the
PCM buffers by loading snd-page-alloc module and write commands to its
proc file in prior, for example, in the early boot stage like
/etc/init.d/*.local scripts.

Reading the proc file /proc/drivers/snd-page-alloc shows the current
usage of page allocation.  In writing, you can send the following
commands to the snd-page-alloc driver:

  - add VENDOR DEVICE MASK SIZE BUFFERS

    VENDOR and DEVICE are PCI vendor and device IDs.  They take
    integer numbers (0x prefix is needed for the hex).
    MASK is the PCI DMA mask.  Pass 0 if not restricted.
    SIZE is the size of each buffer to allocate.  You can pass
    k and m suffix for KB and MB.  The max number is 16MB.
    BUFFERS is the number of buffers to allocate.  It must be greater
    than 0.  The max number is 4.

  - erase

    This will erase the all pre-allocated buffers which are not in
    use.


Links and Addresses
===================

  ALSA project homepage
       http://www.alsa-project.org

  ALSA Bug Tracking System
       https://bugtrack.alsa-project.org/bugs/

  ALSA Developers ML
       mailto:alsa-devel@alsa-project.org

Offline

#7 2007-12-16 16:29:38

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: no sound out of laptop when using headphones, speakers keep playing.

Perhaps the connector on the headphones is incompatible with the sony interface jack.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#8 2007-12-16 16:54:37

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: no sound out of laptop when using headphones, speakers keep playing.

options snd-hda-intel model=vaio worked just fine. smile

Offline

Board footer

Powered by FluxBB