All of lore.kernel.org
 help / color / mirror / Atom feed
* Intel HDA / ca0132: support for Alienware 15 Creative Sound Core3D-EX
@ 2015-04-25  0:50 Gabriele Martino
  2015-04-27  9:09 ` Takashi Iwai
  0 siblings, 1 reply; 21+ messages in thread
From: Gabriele Martino @ 2015-04-25  0:50 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-05-19  4:59 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-25  0:50 Intel HDA / ca0132: support for Alienware 15 Creative Sound Core3D-EX Gabriele Martino
2015-04-27  9:09 ` 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

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.