All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gabriele Martino <g.martino@gmx.com>
To: alsa-devel@alsa-project.org
Subject: Intel HDA / ca0132: support for Alienware 15 Creative Sound Core3D-EX
Date: Sat, 25 Apr 2015 02:50:23 +0200	[thread overview]
Message-ID: <553AE4CF.3070805@gmx.com> (raw)

Hi,
the new Alienware 15 laptop (2015, not the M15x) has a Creative Sound
Core3D-EX Audio which seems to work with ca0132.
I'm using a 4.0.0 kernel with gentoo patchset, but with the default
configuration:
- the line out/headphone jack doesn't work, it only outputs some white noise
- alsamixer shows only "Master" and "PCM" channel, no "Front", "Line
Out" or similar
- alsamixer has a toggle switch for the "HP/Speaker" but no
headphone/line out switch
- the jack detection is enabled on the "line in" jack instead of the
"line out" (if I plug something on the "line in", the speakers are muted)
- if I play too much with these switches, the speakers stop working
until suspend/reboot

To fix the first issue I run "hdajacksensetest" to get the headphone
jack pin:
hdajacksensetest -c 1 -a
Pin 0x0b (Internal Speaker): present = Yes
Pin 0x0c (Not connected): present = No
Pin 0x0d (Not connected): present = No
Pin 0x0e (Not connected): present = No
Pin 0x0f (Not connected): present = Yes
Pin 0x10 (Not connected): present = No
Pin 0x11 (Black Line In, Left side): present = No
Pin 0x12 (Internal Mic, Mobile-In): present = No
Pin 0x13 (Not connected): present = No
Pin 0x18 (Not connected): present = No

and replaced the pin number:

--- /usr/src/linux-4.0.0-gentoo/sound/pci/hda/patch_ca0132.c.old       
2015-04-13 00:12:50.000000000 +0200
+++ /usr/src/linux-4.0.0-gentoo/sound/pci/hda/patch_ca0132.c   
2015-04-25 01:43:09.607531550 +0200
@@ -4625,7 +4625,7 @@
 
        spec->num_outputs = 2;
        spec->out_pins[0] = 0x0b; /* speaker out */
-       spec->out_pins[1] = 0x10; /* headphone out */
+       spec->out_pins[1] = 0x0f; /* default: 0x10 - headphone out -0x0f
on Alienware 15 2015 */
        spec->shared_out_nid = 0x2;
 
        spec->num_inputs = 3;

Now the "HP/Speaker Auto Detect" is ignored on both jacks, but I can
switch between headphones and speakers manually with the "HP/Speaker" item.

This is a dirty hack (and probably won't work on different cards), is
there a better way to fix this and get at least the jack detection working?

Regards,
Gabriele

             reply	other threads:[~2015-04-25  0:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-25  0:50 Gabriele Martino [this message]
2015-04-27  9:09 ` Intel HDA / ca0132: support for Alienware 15 Creative Sound Core3D-EX Takashi Iwai
2015-04-27 18:08   ` Gabriele Martino
2015-04-27 18:51     ` Takashi Iwai
2015-04-27 22:17       ` Gabriele Martino
2015-04-28  6:15         ` Takashi Iwai
2015-04-28 22:47           ` Gabriele Martino
2015-04-29 13:38             ` Takashi Iwai
2015-04-29 15:42               ` Gabriele Martino
2015-04-29 18:42                 ` Takashi Iwai
2015-04-29 23:40                   ` Gabriele Martino
2015-04-30  5:51                     ` Takashi Iwai
2015-05-01  0:36                       ` Gabriele Martino
2015-05-03 23:53                       ` Gabriele Martino
2015-05-04 12:30                         ` Takashi Iwai
2015-05-04 23:28                           ` Gabriele Martino
2015-05-11 20:17                           ` Gabriele Martino
2015-05-18  9:39                             ` Takashi Iwai
2015-05-18 19:15                               ` Gabriele Martino
2015-05-19  4:59                                 ` Takashi Iwai
2015-04-29 13:40             ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=553AE4CF.3070805@gmx.com \
    --to=g.martino@gmx.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.