Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CA0132 and Alsa on Alienware M18x R2
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Tue Jun 12, 2012 4:11 pm    Post subject: CA0132 and Alsa on Alienware M18x R2 Reply with quote

Hi All,

I just purchased an Alienware M18x R2 and I am trying to get the mixer settings to work for my Intel PCH sound card. Also the
MIC is not working. I do not have Pulseaudio installed. I am using alsa-driver version 1.0.24 from the PF-Sources kernel-3.3.6
and the alsa-plugins, alsa-utilities and such are version 1.0.25.

I am using KDE 4.8.3. The device doesn't show up in Kmix but is displayed in Phonon. I am using the Gstreamer backend but I
also tried the VLC backend. The sound works but I cannot adjust the volumes accept through the application I am using...eg..smplayer.

In KMix the only device displayed is IEC958 and when I click the Mixer button, the only device displayed is HDA ATI HDMI.

When I run alsamixer I get the following error:
Code:
% alsamixer
cannot load mixer controls: Invalid argument


On Alsasound startup which I set to 'Boot' and restart, I get the following error:
Code:
% sudo /etc/init.d/alsasound restart
 * WARNING: you are stopping a boot service
 * Storing ALSA Mixer Levels ...
alsactl: get_control:250: Cannot read control info '2,0,0,Mic-In Capture Volume,0': Invalid argument
 * Error saving levels.                                                                                                                                                                                      [ !! ]
 * Restoring Mixer Levels ...


The cards are:
Code:
% cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xc3410000 irq 46
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xc2040000 irq 47


The sound on the PCH card works but no mixer settings and the Mic is not working. When I plug in the MIC, the
sound is still outputted trough the speakers.

Here is my /etc/modprobe.d/alsa.conf info:
Code:
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.25 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel

options snd-hda-intel model=dell-laptop
options snd-hda-intel enable_msi=1


If I change the model to 'Generic', it says that there aren't
any playback settings. I have tried to input models of CA0132,
PCH, auto, basic, alienware, del-m6 but to no avail.

I created an /etc/asound.conf file with the following:
Code:
% cat /etc/asound.conf
defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0


Here is the info from Alsa-Info
Code:
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.61
!!################################

!!Script ran on: Tue Jun 12 15:50:15 UTC 2012


!!Linux Distribution
!!------------------

DISTRIB_ID="Gentoo"


!!DMI Information
!!---------------

Manufacturer:      Alienware
Product Name:      M18xR2
Product Version:   A01
Firmware Version:  A01


!!Kernel Information
!!------------------

Kernel release:    3.3.6-pf
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         Intel(R) Core(TM) i7-3920XM CPU @ 2.90GHz
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     1.0.24
Library version:    1.0.25
Utilities version:  1.0.25


!!Loaded ALSA modules
!!-------------------

snd_hda_intel
snd_hda_intel


!!Sound Servers on this system
!!----------------------------

Jack:
      Installed - Yes (/usr/bin/jackd)
      Running - No


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xc3410000 irq 46
 1 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xc2040000 irq 47


!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 7 Series Chipset Family High Definition Audio Controller (rev 04)
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Device aab0


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------

00:1b.0 0403: 8086:1e20 (rev 04)
   Subsystem: 1028:0550
--
01:00.1 0403: 1002:aab0
   Subsystem: 1028:0550


!!Modprobe options (Sound related)
!!--------------------------------

snd-hda-intel: model=dell-laptop
snd-hda-intel: enable_msi=1


!!Loaded sound module options
!!---------------------------

!!Module: snd_hda_intel
   align_buffer_size : Y
   bdl_pos_adj : 1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
   beep_mode : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
   enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
   enable_msi : 1
   id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
   index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
   model : dell-laptop,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
   patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
   position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
   power_save : 0
   power_save_controller : Y
   probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
   probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
   single_cmd : N
   snoop : Y

!!Module: snd_hda_intel
   align_buffer_size : Y
   bdl_pos_adj : 1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
   beep_mode : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
   enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
   enable_msi : 1
   id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
   index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
   model : dell-laptop,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
   patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
   position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
   power_save : 0
   power_save_controller : Y
   probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
   probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
   single_cmd : N
   snoop : Y


!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: Creative CA0132
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x11020011
Subsystem Id: 0x10280550
Revision Id: 0x100918
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=1, wake=1
Node 0x02 [Audio Output] wcaps 0x49d: Stereo Amp-Out
  Device: name="CA0132 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  PCM:
    rates [0x5ec]: 16000 22050 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x49d: Stereo Amp-Out
  Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1
  Amp-Out vals:  [0x5a 0x5a]
  Converter: stream=0, channel=0
  PCM:
    rates [0x5ec]: 16000 22050 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x49d: Stereo Amp-Out
  Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1
  Amp-Out vals:  [0x5a 0x5a]
  Converter: stream=0, channel=0
  PCM:
    rates [0x5ec]: 16000 22050 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Audio Output] wcaps 0x691: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x06 [Audio Output] wcaps 0x691: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x07 [Audio Input] wcaps 0x100591: Stereo
  Control: name="Mic-In Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic-In Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="CA0132 Analog", type="Audio", device=0
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1ec]: 16000 22050 44100 48000 88200 96000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x12
Node 0x08 [Audio Input] wcaps 0x10059b: Stereo Amp-In
  Control: name="Line-In Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Line-In Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1
  Amp-In vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x1ec]: 16000 22050 44100 48000 88200 96000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x11
Node 0x09 [Audio Input] wcaps 0x100791: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0x1a]: 16 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x0e
Node 0x0a [Audio Input] wcaps 0x10079b: Stereo Digital Amp-In
  Amp-In caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1
  Amp-In vals:  [0x5a 0x5a]
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x1ec]: 16000 22050 44100 48000 88200 96000
    bits [0x1b]: 8 16 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x13
Node 0x0b [Pin Complex] wcaps 0x400581: Stereo
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Pincap 0x00010014: OUT EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x0c [Pin Complex] wcaps 0x400701: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x014580f0: [Jack] SPDIF Out at Ext Rear
    Conn = Optical, Color = Purple
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x05
Node 0x0d [Pin Complex] wcaps 0x400701: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x014570f0: [Jack] SPDIF Out at Ext Rear
    Conn = Optical, Color = Yellow
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x06
Node 0x0e [Pin Complex] wcaps 0x400681: Stereo Digital
  Pincap 0x00000020: IN
  Pin Default 0x01c530f0: [Jack] SPDIF In at Ext Rear
    Conn = Optical, Color = Blue
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x0f [Pin Complex] wcaps 0x400581: Stereo
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x0221401f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x10 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x02216011: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Orange
    DefAssociation = 0x1, Sequence = 0x1
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x11 [Pin Complex] wcaps 0x40058b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000134: IN OUT Detect
    Vref caps: HIZ
  Pin Default 0x02012014: [Jack] Line Out at Ext Front
    Conn = 1/8, Color = Grey
    DefAssociation = 0x1, Sequence = 0x4
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x12 [Pin Complex] wcaps 0x400481: Stereo
  Control: name="Mic Boost Capture Volume", index=0, device=0
    ControlAmp: chs=1, dir=In, idx=0, ofs=0
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x37a791f0: [Jack] Mic at Oth Mobile-In
    Conn = Analog, Color = Pink
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x13 [Pin Complex] wcaps 0x400681: Stereo Digital
  Pincap 0x00000020: IN
  Pin Default 0x908700f0: [Fixed] Line In at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x14 [Beep Generator Widget] wcaps 0x70040c: Mono Amp-Out
  Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-Out vals:  [0x1c]
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x15 [Vendor Defined Widget] wcaps 0xf00600: Mono Digital
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x16 [Vendor Defined Widget] wcaps 0xf00680: Mono Digital
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x17 [Audio Output] wcaps 0x49d: Stereo Amp-Out
  Amp-Out caps: ofs=0x5a, nsteps=0x63, stepsize=0x03, mute=1
  Amp-Out vals:  [0x5a 0x5a]
  Converter: stream=0, channel=0
  PCM:
    rates [0x5ec]: 16000 22050 44100 48000 88200 96000 192000
    bits [0x1f]: 8 16 20 24 32
    formats [0x1]: PCM
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x18 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000010: OUT
  Pin Default 0x500000f0: [N/A] Line Out at Int N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x17
Codec: ATI R6xx HDMI
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x1002aa01
Subsystem Id: 0x00aa0100
Revision Id: 0x100300
No Modem Function Group found
Default PCM:
    rates [0x70]: 32000 44100 48000
    bits [0x2]: 16
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x221: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
Node 0x03 [Pin Complex] wcaps 0x400381: Stereo Digital
  Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="ELD", index=0, device=3
  Pincap 0x00000094: OUT Detect HDMI
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=01, enabled=1
  Connection: 1
     0x02
Node 0x04 [Audio Output] wcaps 0x221: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
Node 0x05 [Pin Complex] wcaps 0x400381: Stereo Digital
  Control: name="HDMI/DP,pcm=7 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=1, device=0
  Control: name="IEC958 Playback Pro Mask", index=1, device=0
  Control: name="IEC958 Playback Default", index=1, device=0
  Control: name="IEC958 Playback Switch", index=1, device=0
  Control: name="ELD", index=0, device=7
  Pincap 0x00000094: OUT Detect HDMI
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=02, enabled=1
  Connection: 1
     0x04
Node 0x06 [Audio Output] wcaps 0x221: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
Node 0x07 [Pin Complex] wcaps 0x400381: Stereo Digital
  Control: name="HDMI/DP,pcm=8 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=2, device=0
  Control: name="IEC958 Playback Pro Mask", index=2, device=0
  Control: name="IEC958 Playback Default", index=2, device=0
  Control: name="IEC958 Playback Switch", index=2, device=0
  Control: name="ELD", index=0, device=8
  Pincap 0x00000094: OUT Detect HDMI
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=03, enabled=1
  Connection: 1
     0x06
Node 0x08 [Audio Output] wcaps 0x221: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
Node 0x09 [Pin Complex] wcaps 0x400381: Stereo Digital
  Control: name="HDMI/DP,pcm=9 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=3, device=0
  Control: name="IEC958 Playback Pro Mask", index=3, device=0
  Control: name="IEC958 Playback Default", index=3, device=0
  Control: name="IEC958 Playback Switch", index=3, device=0
  Control: name="ELD", index=0, device=9
  Pincap 0x00000094: OUT Detect HDMI
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=04, enabled=1
  Connection: 1
     0x08
Node 0x0a [Audio Output] wcaps 0x221: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
Node 0x0b [Pin Complex] wcaps 0x400381: Stereo Digital
  Control: name="HDMI/DP,pcm=10 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=4, device=0
  Control: name="IEC958 Playback Pro Mask", index=4, device=0
  Control: name="IEC958 Playback Default", index=4, device=0
  Control: name="IEC958 Playback Switch", index=4, device=0
  Control: name="ELD", index=0, device=10
  Pincap 0x00000094: OUT Detect HDMI
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=05, enabled=1
  Connection: 1
     0x0a
Node 0x0c [Audio Output] wcaps 0x221: Stereo Digital Stripe
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
Node 0x0d [Pin Complex] wcaps 0x400381: Stereo Digital
  Control: name="HDMI/DP,pcm=11 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=5, device=0
  Control: name="IEC958 Playback Pro Mask", index=5, device=0
  Control: name="IEC958 Playback Default", index=5, device=0
  Control: name="IEC958 Playback Switch", index=5, device=0
  Control: name="ELD", index=0, device=11
  Pincap 0x00000094: OUT Detect HDMI
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=06, enabled=1
  Connection: 1
     0x0c
--endcollapse--


!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116,  5 Jun 12 01:12 /dev/snd/controlC0
crw-rw---- 1 root audio 116, 13 Jun 12 01:12 /dev/snd/controlC1
crw-rw---- 1 root audio 116,  4 Jun 12 01:12 /dev/snd/hwC0D0
crw-rw---- 1 root audio 116, 12 Jun 12 01:12 /dev/snd/hwC1D0
crw-rw---- 1 root audio 116,  3 Jun 12 08:12 /dev/snd/pcmC0D0c
crw-rw---- 1 root audio 116,  2 Jun 12 08:20 /dev/snd/pcmC0D0p
crw-rw---- 1 root audio 116,  7 Jun 12 01:12 /dev/snd/pcmC1D10p
crw-rw---- 1 root audio 116,  6 Jun 12 01:12 /dev/snd/pcmC1D11p
crw-rw---- 1 root audio 116, 11 Jun 12 01:12 /dev/snd/pcmC1D3p
crw-rw---- 1 root audio 116, 10 Jun 12 01:12 /dev/snd/pcmC1D7p
crw-rw---- 1 root audio 116,  9 Jun 12 01:12 /dev/snd/pcmC1D8p
crw-rw---- 1 root audio 116,  8 Jun 12 01:12 /dev/snd/pcmC1D9p
crw-rw---- 1 root audio 116,  1 Jun 12 08:12 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Jun 12 01:12 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  80 Jun 12 01:12 .
drwxr-xr-x 3 root root 340 Jun 12 01:12 ..
lrwxrwxrwx 1 root root  12 Jun 12 01:12 pci-0000:00:1b.0 -> ../controlC0
lrwxrwxrwx 1 root root  12 Jun 12 01:12 pci-0000:01:00.1 -> ../controlC1


!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CA0132 Analog [CA0132 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CA0132 Analog [CA0132 Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [PCH]

amixer: Mixer load hw:0 error: Invalid argument
Card hw:0 'PCH'/'HDA Intel PCH at 0xc3410000 irq 46'
  Mixer name   : 'Creative CA0132'
  Components   : 'HDA:11020011,10280550,00100918'
  Controls      : 10
amixer: Mixer hw:0 load error: Invalid argument

!!-------Mixer controls for card 1 [HDMI]

Card hw:1 'HDMI'/'HDA ATI HDMI at 0xc2040000 irq 47'
  Mixer name   : 'ATI R6xx HDMI'
  Components   : 'HDA:1002aa01,00aa0100,00100300'
  Controls      : 36
  Simple ctrls  : 6
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',5
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]


!!Alsactl output
!!--------------

--startcollapse--
--endcollapse--


!!All Loaded Modules
!!------------------

Module
vmnet
vmblock
vsock
vmci
vmmon
scsi_wait_scan
ledtrig_default_on
ledtrig_heartbeat
ledtrig_timer
ledtrig_backlight
sb_edac
edac_core
backlight
drm
agpgart
v4l2_common
v4l2_int_device
coretemp
hwmon
i2c_algo_bit
i2c_isch
i2c_dev
serport
uinput
tun
firewire_sbp2
firewire_ohci
firewire_core
loop
pktcdvd
cdrom
brd
snd_pcm_oss
snd_mixer_oss
snd_hrtimer
snd_seq_oss
snd_seq_midi_event
snd_seq_dummy
snd_seq
snd_seq_device
ppp_synctty
ppp_deflate
zlib_deflate
ppp_async
crc_ccitt
bsd_comp
ppp_generic
slhc
cdc_acm
hid_logitech_dj
hid_logitech
dm_mod
linear
raid0
snd_hda_codec_hdmi
snd_hda_codec_ca0132
uvcvideo
snd_hda_intel
videobuf2_core
snd_hda_codec
videodev
v4l2_compat_ioctl32
dell_wmi
snd_hwdep
usbhid
videobuf2_vmalloc
sparse_keymap
videobuf2_memops
snd_pcm
snd_timer
psmouse
i2c_i801
iTCO_wdt
snd
atl1c
iwlwifi
iTCO_vendor_support
soundcore
snd_page_alloc
wmi
rtc_cmos
evdev


!!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x0b 0x901701f0
0x0c 0x034510f0
0x0d 0x414510f0
0x0e 0x90c600f0
0x0f 0x432110f0
0x10 0x032110f0
0x11 0x038110f0
0x12 0xb7a601f0
0x13 0x50d000f0
0x18 0x500000f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC1D0/init_pin_configs:
0x03 0x185600f0
0x05 0x185600f0
0x07 0x185600f0
0x09 0x185600f0
0x0b 0x185600f0
0x0d 0x185600f0

/sys/class/sound/hwC1D0/driver_pin_configs:

/sys/class/sound/hwC1D0/user_pin_configs:

/sys/class/sound/hwC1D0/init_verbs:


!!ALSA/HDA dmesg
!!--------------

[    3.541428] Linux video capture interface: v2.00
[    3.543307] snd_hda_intel 0000:00:1b.0: irq 46 for MSI/MSI-X
[    3.544230] uvcvideo: Found UVC 1.00 device Laptop_Integrated_Webcam_FHD (064e:8127)
--
[    3.561312] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[    3.576475] hda-intel: Force to non-snoop mode
[    3.576551] snd_hda_intel 0000:01:00.1: irq 47 for MSI/MSI-X
[    3.633772] atl1c 0000:08:00.0: version 1.0.1.0-NAPI
[    4.084747] HDMI status: Codec=0 Pin=3 Presence_Detect=0 ELD_Valid=0
[    4.084762] HDMI status: Codec=0 Pin=5 Presence_Detect=0 ELD_Valid=0
[    4.084777] HDMI status: Codec=0 Pin=7 Presence_Detect=0 ELD_Valid=0
[    4.084793] HDMI status: Codec=0 Pin=9 Presence_Detect=0 ELD_Valid=0
[    4.084808] HDMI status: Codec=0 Pin=11 Presence_Detect=0 ELD_Valid=0
[    4.084826] HDMI status: Codec=0 Pin=13 Presence_Detect=0 ELD_Valid=0
[    4.084861] input: HDA ATI HDMI HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input7
[    4.084896] input: HDA ATI HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8
[    4.084924] input: HDA ATI HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input9
[    4.084952] input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10
[    4.084981] input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input11
[    4.085010] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input12
[    4.408194] md: raid0 personality registered for level 0
--
[   17.932946] EXT4-fs (dm-0): re-mounted. Opts: data=writeback,commit=0
[   19.995381] hda_codec: num_steps = 0 for NID=0x12 (ctl = Mic Boost Capture Volume)
[   20.173617] hda_codec: num_steps = 0 for NID=0x12 (ctl = Mic Boost Capture Volume)
[   21.354118] wlan0: authenticate with 00:a0:f8:d5:bc:09 (try 1)
--
[ 1658.403165] userif-2: sent link up event.
[ 1749.493555] hda_codec: num_steps = 0 for NID=0x12 (ctl = Mic Boost Capture Volume)
[ 1778.182866] wlan0: authenticate with 00:a0:f8:d5:bc:09 (try 1)
--
[ 2269.748194] atl1c 0000:08:00.0: vpd r/w failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update.
[ 2271.303166] hda_codec: num_steps = 0 for NID=0x12 (ctl = Mic Boost Capture Volume)
[ 2271.304148] hda_codec: num_steps = 0 for NID=0x12 (ctl = Mic Boost Capture Volume)
[ 2271.308017] hda_codec: num_steps = 0 for NID=0x7 (ctl = Mic-In Capture Volume)



Any help would be appreciated.

Please let me know if there is any other info needed.

Thanks,
Tony
Back to top
View user's profile Send private message
vvcephei
n00b
n00b


Joined: 14 Jun 2012
Posts: 2

PostPosted: Thu Jun 14, 2012 4:06 am    Post subject: Reply with quote

Hi Tony,

I'm afraid I don't have a solution for you, but I think I have exactly the same problem.

I have an Alienware M17x-R4, and I am actually running Arch, not Gentoo, but I have observed that I have sound, but I'm unable to launch any mixer (neither alsamixer nor kmix).
I'm going to describe my issue here in case it helps you or someone else find a solution:

Running alsamixer:
Code:

cannot load mixer controls: Invalid argument


Restarting alsa:
Code:

$ sudo rc.d restart alsa
Password:
:: Saving ALSA Levels                                                                                                         [BUSY]
/usr/sbin/alsactl: get_control:250: Cannot read control info '2,0,0,Mic-In Capture Volume,0': Invalid argument
                                                                                                                              [FAIL]
:: Restoring ALSA Levels                                                                                                      [BUSY]
/usr/sbin/alsactl: get_control:250: Cannot read control info '2,0,0,Mic-In Capture Volume,0': Invalid argument
                                                                                                                              [FAIL]


cards:
Code:

 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xd2710000 irq 46

I had an HDMI card in there before; I may have hosed something while fiddling with this.

Keep in mind this is an Arch system, so the modprobe.conf is /etc/modprobe.d/modprobe.conf:
Code:

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-hda-intel
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss


I also couldn't find any hints as to what the right model might be. I tried 'alienware', 'generic', and 'CA0132'.

I have the same /etc/asound.conf:
Code:

defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0


My alsa-info is at: http://www.alsa-project.org/db/?f=b8a03d575a1817e8e709b9cce85169cd44a27ae9

To anyone reading this, I appreciate help you have to give, and please let me know what I can do to help get this resolved.

Thanks,
John
Back to top
View user's profile Send private message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Thu Jun 14, 2012 6:49 am    Post subject: Reply with quote

Hi John,

Thanks for your input...We do have the same issue.

I went ahead and installed Pulseaudio, Veromix, pavucontrol and stopped KMix. I have sound with just the Master volume which now shows up in
Alsamixer but it is using 'Default'. If I change the card to Intel PCH, it craps out with the 'cannot load mixer controls' error. I can at least adjust
basic sound which is fine for now until this issue is resolved. My headphones work now but the speakers are not muted.

I added options snd-hda-intel model=PCH to /etc/modprobe.d/alsa.conf

I have my /etc/asound.conf file as
Code:
pcm.pulse {
        type pulse
    }

    ctl.pulse {
        type pulse
    }

    pcm.!default {
        type pulse
    }

    ctl.!default {
        type pulse
    }


I went ahead and added the pulseaudio use flag to /etc/make.conf. With Veromix I can
set the volume greater than 100% so the sound isn't low and the equalizer module in
Pulseaudio helps too.

For the moment I can at least control the volume without having an media player open which
is nice, especially when a video plays in ESPN.com

Hopefully a solution will come up soon. Since our laptops are brand new it might take some
time. At least my laptop screams.

Tony
Back to top
View user's profile Send private message
Vrenn
Guru
Guru


Joined: 15 Dec 2004
Posts: 313

PostPosted: Thu Jun 14, 2012 7:30 pm    Post subject: Reply with quote

on my M17xr3 this one did the trick in alsa.conf:

options snd-hda-intel model=dell-m6-amic
_________________
With nice greetings
Vrenn
Back to top
View user's profile Send private message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Fri Jun 15, 2012 5:45 am    Post subject: Reply with quote

Thanks Vrenn,

I tried it but it didn't work.
Back to top
View user's profile Send private message
vvcephei
n00b
n00b


Joined: 14 Jun 2012
Posts: 2

PostPosted: Sun Jun 17, 2012 3:18 pm    Post subject: Reply with quote

Hi Tony,

Thanks for the tip.I was also able to get the basic "master channel" volume control with just pulseaudio. I didn't install Veromix or pavucontrol, as kmix is able to control my volume with pulse installed. Like you, I am also seeing that the headphones work, but the speakers don't get muted.

Interestingly, I found that adding "options snd-hda-intel model=PCH" to /etc/modprobe.d/alsa.conf actually broke the system, such that there was no sound at all. I deleted the file, rebooted, and it seems to be working now.

My /etc/asound.conf looks like yours.


In KDE's System Settings > Multimedia > Phonon, the only device I have listed now is "Built-in Audio Analog Stereo", which I'm guessing is the device that pulse exposes.

Likewise, I'm content to at least be able to control the volume for now, until we get an update intel HDA driver. Let me know if you want me to run any configuration tests in the future; I'll check back here periodically.

Thanks,
-John
Back to top
View user's profile Send private message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Sun Jun 17, 2012 11:58 pm    Post subject: Reply with quote

Hi John,

I downloaded pf-sources 3.4 and patched it to 3.4.1. It has the alsa-driver 1.0.25.
I don't know why your options additions crapped out. Maybe the alsa version.

KMix works fine with Pulseaudio but the sound was too low. I can only set things
to 100% volume. With veromix I can set it greater than 100% and I use the
pulseaudio equalizer to fine tune the sound. So now I have KMix disabled on
startup in KDE and use Veromix which is in the KDE layman repository.

If I hear of anything else, I will post it here as I hope that you do.

Take care,
Tony
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Sat Jun 30, 2012 3:16 pm    Post subject: Reply with quote

Hi all, I just hit the same problem on Alienware M14x r2, kernel 3.4.4-gentoo.
I followed your suggestions and now I'm using pulse to set the volume to an acceptable level, but I can't find any method to disable speakers when using headphones. Any news on this?
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
Rob_H
n00b
n00b


Joined: 30 Jun 2012
Posts: 3

PostPosted: Sun Jul 01, 2012 12:09 am    Post subject: Reply with quote

Same problem using Alienware M17x R4 on Kubuntu 12.04. I can work around the volume issue, but internal speakers are never muted when external speakers/headphones are plugged in.
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Sun Jul 01, 2012 5:57 pm    Post subject: Reply with quote

I tried all possible models but nothing changed
Code:

for i in `cat alsa.txt`; do
    rmmod snd-hda-intel
    rmmod snd-hda-codec-ca0132
    rmmod snd-hda-codec-hdmi
    rmmod snd-hda-codec
    modprobe snd-hda-intel model=$i
    alsamixer
done

Maybe we should file a bug to alsa (https://bugtrack.alsa-project.org)?
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
Rob_H
n00b
n00b


Joined: 30 Jun 2012
Posts: 3

PostPosted: Sun Jul 01, 2012 6:06 pm    Post subject: Reply with quote

pierino_89 wrote:
Maybe we should file a bug to alsa (https://bugtrack.alsa-project.org)?


I posted a message to the alsa-user mailing list this morning. No replies yet. If I don't hear anything, I'll file a bug unless someone beats me to it. :wink:
Back to top
View user's profile Send private message
Rob_H
n00b
n00b


Joined: 30 Jun 2012
Posts: 3

PostPosted: Sun Jul 01, 2012 8:49 pm    Post subject: Reply with quote

Filed bug 0005596. Why wait?
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Sun Jul 01, 2012 9:30 pm    Post subject: Reply with quote

Good job :wink: I added my alsa-info and some details.
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Tue Jul 03, 2012 6:44 pm    Post subject: Reply with quote

Good news: i found a method to access the mixer while we wait a fix from ALSA people.

You can apply settings with amixer and cget/cset (get, set, sget and sset will crash as usual):
for example, to turn off speakers (but not headphones):
Code:
amixer -c 0 cset numid=1 off

Remember to use the -c option to specify the right card if you have Pulse.
Read this for info about amixer.

Now, if you run amixer contents -c 0 you will notice a very short list of controls, because it crashes as soon as it gets the '2,0,0,Mic-In Capture Volume,0'.
So this is the complete list of channels for Alienware M15x R2 (no idea about others) from alsactl store:
Code:

state.PCH {
        control.1 {
                iface MIXER
                name 'Speaker Playback Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.2 {
                iface MIXER
                name 'Headphone Playback Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.3 {
                iface MIXER
                name 'Headphone Playback Volume'
                value.0 0
                value.1 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 31'
                        dbmin -600
                        dbmax 2500
                        dbvalue.0 -600
                        dbvalue.1 -600
                }
        }
        control.4 {
                iface MIXER
                name 'Mic-In Capture Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.7 {
                iface MIXER
                name 'Line-In Capture Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.8 {
                iface MIXER
                name 'Line-In Capture Volume'
                value.0 0
                value.1 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 99'
                        dbmin -9000
                        dbmax 900
                        dbvalue.0 -9000
                        dbvalue.1 -9000
                }
        }
        control.9 {
                iface CARD
                name 'HDMI/DP,pcm=3 Jack'
                value false
                comment {
                        access read
                        type BOOLEAN
                        count 1
                }
        }
        control.10 {
                iface MIXER
                name 'IEC958 Playback Con Mask'
                value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                comment {
                        access read
                        type IEC958
                        count 1
                }
        }
        control.11 {
                iface MIXER
                name 'IEC958 Playback Pro Mask'
                value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                comment {
                        access read
                        type IEC958
                        count 1
                }
        }
        control.12 {
                iface MIXER
                name 'IEC958 Playback Default'
                value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
                comment {
                        access 'read write'
                        type IEC958
                        count 1
                }
        }
        control.13 {
                iface MIXER
                name 'IEC958 Playback Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.14 {
                iface PCM
                device 3
                name ELD
                value ''
                comment {
                        access read
                        type BYTES
                        count 0
                }
        }
        control.15 {
                iface MIXER
                name 'PCM Playback Volume'
                value.0 255
                value.1 255
                comment {
                        access 'read write user'
                        type INTEGER
                        count 2
                        range '0 - 255'
                        tlv '0000000100000008ffffec1400000014'
                        dbmin -5100
                        dbmax 0
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
        control.16 {
                iface MIXER
                name 'Digital Capture Volume'
                value.0 60
                value.1 60
                comment {
                        access 'read write user'
                        type INTEGER
                        count 2
                        range '0 - 120'
                        tlv '0000000100000008fffff44800000032'
                        dbmin -3000
                        dbmax 3000
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
}

There are 2 controls missing ('2,0,0,Mic-In Capture Volume,0' and '2,0,0,Mic Boost Capture Volume,0') because you can't manipulate them.

If this list doesn't work for you and you feel brave, you can compile your patched alsactl to get the info.

[EDIT]
I found that you can manually query the channels with: amixer -c 0 cget numid=[0-?] so patching alsa-utils is almost useless to get the list.
[/EDIT]

This patch forces alsactl to skip errors while saving mixer's state to file. I have no idea about the consequences of this. TRY AT YOUR RISK.

First, get alsa-utils-1.0.25, untar it and cd to the folder.
Apply the patch:
Code:
--- alsa-utils-1.0.25/alsactl/state.c   2012-01-25 10:43:38.000000000 +0100
+++ alsa-utils-1.0.25-patched/alsactl/state.c   2012-07-03 20:13:15.299087305 +0200
@@ -640,7 +640,8 @@
       snd_ctl_elem_list_get_id(list, idx, elem_id);
       err = get_control(handle, elem_id, control);
       if (err < 0)
-         goto _free;
+         fprintf(stderr, "alsactl: skipping '%li'...\n", idx);
+         //goto _free;
    }      
       
    err = 0;

Compile it (DO NOT make install !!!):
./configure
make

Now you can launch "alsactl/alsactl store -c 0 controls.txt" to get the full list. Alsactl will print the unusable channels.
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Tue Jul 03, 2012 10:22 pm    Post subject: Reply with quote

Thank you pierino_89,

Everything you posted worked wonderfully. I can now listen to my
headphones with the speakers off and the patch worked great.

These are my settings for my Alienware M18x R2:
Code:


state.PCH {
        control.1 {
                iface MIXER
                name 'Speaker Playback Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.2 {
                iface MIXER
                name 'Headphone Playback Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.3 {
                iface MIXER
                name 'Headphone Playback Volume'
                value.0 0
                value.1 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 31'
                        dbmin -600
                        dbmax 2500
                        dbvalue.0 -600
                        dbvalue.1 -600
                }
        }
        control.4 {
                iface MIXER
                name 'Mic-In Capture Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.7 {
                iface MIXER
                name 'Line-In Capture Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.8 {
                iface MIXER
                name 'Line-In Capture Volume'
                value.0 0
                value.1 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 99'
                        dbmin -9000
                        dbmax 900
                        dbvalue.0 -9000
                        dbvalue.1 -9000
                }
        }
        control.9 {
                iface MIXER
                name 'PCM Playback Volume'
                value.0 255
                value.1 255
                comment {
                        access 'read write user'
                        type INTEGER
                        count 2
                        range '0 - 255'
                        tlv '0000000100000008ffffec1400000014'
                        dbmin -5100
                        dbmax 0
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
}


Tony
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Wed Jul 04, 2012 12:47 am    Post subject: Reply with quote

Info from upstream: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5596

If you hate pulseaudio like me, you can try this quick patch. Speakers still don't mute when earphones are plugged, but now you can toggle them from alsamixer. I don't know why, but that switch doesn't appear under kmix.
Set PCM as default channel and enjoy.

Code:

--- /usr/src/linux/sound/pci/hda/patch_ca0132.c.old     2012-07-04 01:58:02.397924695 +0200
+++ /usr/src/linux/sound/pci/hda/patch_ca0132.c 2012-07-04 02:00:11.893389739 +0200
@@ -981,22 +981,15 @@
        spec->multiout.hp_nid = 0;
 
        /* inputs */
-       cfg->num_inputs = 2;  /* Mic-in and line-in */
-       cfg->inputs[0].pin = 0x12;
-       cfg->inputs[0].type = AUTO_PIN_MIC;
-       cfg->inputs[1].pin = 0x11;
-       cfg->inputs[1].type = AUTO_PIN_LINE_IN;
-
-       /* Mic-in */
-       spec->input_pins[0] = 0x12;
-       spec->input_labels[0] = "Mic-In";
-       spec->adcs[0] = 0x07;
+       cfg->num_inputs = 1;  /* Mic-in and line-in */
+       cfg->inputs[0].pin = 0x11;
+       cfg->inputs[0].type = AUTO_PIN_LINE_IN;
 
        /* Line-In */
-       spec->input_pins[1] = 0x11;
-       spec->input_labels[1] = "Line-In";
-       spec->adcs[1] = 0x08;
-       spec->num_inputs = 2;
+       spec->input_pins[0] = 0x11;
+       spec->input_labels[0] = "Line-In";
+       spec->adcs[0] = 0x08;
+       spec->num_inputs = 1;
 }
 
 static void ca0132_init_chip(struct hda_codec *codec)

_________________
Linux registered user 461710
Back to top
View user's profile Send private message
zomeck
n00b
n00b


Joined: 19 Aug 2012
Posts: 5

PostPosted: Sun Aug 19, 2012 5:37 pm    Post subject: Reply with quote

Hi,
I have an Alienware m14x r3 I'm having some sound problems.
I only get audio on the hdmi output and not with all video and audio players.

I'm posting some of my config files:

Code:

cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xd2710000 irq 44
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xd1000000 irq 17


Code:

cat /etc/asound.conf
defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0


Code:

cat /etc/modprobe.d/alsa.conf
# Alsa kernel modules' configuration file.

# ALSA portion
# OSS/Free portion

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.25 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
# --- END: Generated by ALSACONF, do not edit. ---

#It does not work with any of those options
#options snd-hda-intel index=0 model=alienware
options snd-hda-intel model=dell-m6-amic


Code:

lsmod
Module                  Size  Used by
snd_hda_codec_hdmi     23313  2
nvidia              12301301  0
snd_hda_codec_ca0132     8112  1
snd_hda_intel          22937  6
snd_hda_codec          79447  3 snd_hda_codec_hdmi,snd_hda_codec_ca0132,snd_hda_intel
snd_hwdep               5830  1 snd_hda_codec
snd_pcm                71261  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              18089  2 snd_pcm
snd                    55678  17 snd_hda_codec_hdmi,snd_hda_codec_ca0132,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
snd_page_alloc          6841  2 snd_hda_intel,snd_pcm


Do you have any idea of how to fix it?

Thanks!
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Sun Aug 19, 2012 6:11 pm    Post subject: Reply with quote

Probably some applications are still trying to use the main output, kde applications follows phonon rules, vlc follows its own preferences, like mplayer, audacious, etc. etc.
If you have pulse you should check its settings too.

Since you have my same model, you can try my patch (this fixes headphones and speakers):
Code:
*** a/sound/pci/hda/patch_ca0132.c   2012-07-04 01:58:02.397924695 +0200
--- b/sound/pci/hda/patch_ca0132.c   2012-07-04 02:00:11.893389739 +0200
***************
*** 981,1002 ****
     spec->multiout.hp_nid = 0;
 
     /* inputs */
!    cfg->num_inputs = 2;  /* Mic-in and line-in */
!    cfg->inputs[0].pin = 0x12;
!    cfg->inputs[0].type = AUTO_PIN_MIC;
!    cfg->inputs[1].pin = 0x11;
!    cfg->inputs[1].type = AUTO_PIN_LINE_IN;
!
!    /* Mic-in */
!    spec->input_pins[0] = 0x12;
!    spec->input_labels[0] = "Mic-In";
!    spec->adcs[0] = 0x07;
 
     /* Line-In */
!    spec->input_pins[1] = 0x11;
!    spec->input_labels[1] = "Line-In";
!    spec->adcs[1] = 0x08;
!    spec->num_inputs = 2;
  }
 
  static void ca0132_init_chip(struct hda_codec *codec)
--- 981,995 ----
     spec->multiout.hp_nid = 0;
 
     /* inputs */
!    cfg->num_inputs = 1;  /* Mic-in and line-in */
!    cfg->inputs[0].pin = 0x11;
!    cfg->inputs[0].type = AUTO_PIN_LINE_IN;
 
     /* Line-In */
!    spec->input_pins[0] = 0x11;
!    spec->input_labels[0] = "Line-In";
!    spec->adcs[0] = 0x08;
!    spec->num_inputs = 1;
  }
 
  static void ca0132_init_chip(struct hda_codec *codec)

(this is almost the same patch of the post above, but you can apply this with the "patch" command)

If you find strange audio behaviour, suspend to ram and wake up. For example, if you boot windows and then linux, you won't get any sound (or very distorted) until you suspend (reboot won't have any effect).
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
zomeck
n00b
n00b


Joined: 19 Aug 2012
Posts: 5

PostPosted: Mon Aug 20, 2012 4:19 pm    Post subject: Reply with quote

I've suspended and now I have audio but If I modify the volume it does not change so I always have the same level of audio.
I dont know if its important but I'm not using pulseaudio.
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Mon Aug 20, 2012 4:27 pm    Post subject: Reply with quote

You should apply my patch, use pulseaudio or read the above posts about 'amixer cset'.
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Tue Aug 21, 2012 1:39 am    Post subject: Reply with quote

zoemk,

Apply pierino_89's patch. If you follow the steps that are laid out in this thread you should be fine using Alsa or Pulsaudio.
I have tried both and I prefer Pulseaudio with Veromix because I can set the volume past 100%. There is a Veromix Plasma
Widget for KDE, which I use and also Veromix-GTK which I am messing with while customizing FVWM.
Back to top
View user's profile Send private message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Tue Aug 21, 2012 1:42 am    Post subject: Reply with quote

i forgot to tell you that with Veromix you can select Speakers or Headphones from the menu
to select which one to use instead if using amixer cset
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Tue Aug 21, 2012 1:52 am    Post subject: Reply with quote

eusanpe wrote:
i forgot to tell you that with Veromix you can select Speakers or Headphones from the menu
to select which one to use instead if using amixer cset

That's interesting. Did you tune pulseaudio in some way? I get a terrible lag while using skype and any other program.
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
eusanpe
Tux's lil' helper
Tux's lil' helper


Joined: 06 Sep 2002
Posts: 107

PostPosted: Sun Aug 26, 2012 7:21 pm    Post subject: Reply with quote

Quote:
That's interesting. Did you tune pulseaudio in some way? I get a terrible lag while using skype and any other program.


No I didn't. I installed the patch, installed Pulseaudio, gst-plugins-pulse and veromix (the kde plasma applet version) and it is there.
I can left click on the veromix icon, select ports and bith speakers and headphones are there. There is a little bug in it that I haven't
figured out.

When I plug in the headphones and select headphones, the speakers are turned off and the headphones work. When I unplug the
headphones, the speakers automatically turn on even when the headphones is selected. To get headphones to work again I have
to change the settings to speakers and change it back to headphones.


Tony
Back to top
View user's profile Send private message
pierino_89
Guru
Guru


Joined: 03 Oct 2009
Posts: 522

PostPosted: Mon Aug 27, 2012 9:54 pm    Post subject: Reply with quote

I figured out, there is a pulse module (module-role-cork) that mutes all other streams when skype or similar programs are active.
The bug of headphones/speakers is in the alsa module, even without pulse it only reacts when you unplug the headphones.
If you plug headphones again it ignores it, and you have to disable speakers in alsamixer.
That module really need some love.
_________________
Linux registered user 461710
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum