alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
@ 2010-04-02 13:54 Luca Bruno
  2010-04-04 10:32 ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Luca Bruno @ 2010-04-02 13:54 UTC (permalink / raw)
  To: alsa-devel

Vaio E Series laptops need a slightly modified config for their ALC269.
This patch adds a new 'vaio' model, plus initial quirk for them.
It fixes alsa-bugs #4941, #4934 and #4945

Signed-off-by: Luca Bruno <lucab@debian.org>
---
 Documentation/sound/alsa/HD-Audio-Models.txt |    1 +
 sound/pci/hda/patch_realtek.c                |   24 +++++++++++++++++++++++-
 2 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/Documentation/sound/alsa/HD-Audio-Models.txt b/Documentation/sound/alsa/HD-Audio-Models.txt
index 1d38b0d..416f1f5 100644
--- a/Documentation/sound/alsa/HD-Audio-Models.txt
+++ b/Documentation/sound/alsa/HD-Audio-Models.txt
@@ -87,6 +87,7 @@ ALC269
   eeepc-p901	ASUS Eeepc P901 S101
   fujitsu	FSC Amilo
   lifebook	Fujitsu Lifebook S6420
+  vaio		Sony Vaio (E Series)
   auto		auto-config reading BIOS (default)
 
 ALC662/663/272
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 22b7c94..c2b78a1 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -137,6 +137,7 @@ enum {
 	ALC269VB_DMIC,
 	ALC269_FUJITSU,
 	ALC269_LIFEBOOK,
+	ALC269_VAIO,
 	ALC269_AUTO,
 	ALC269_MODEL_LAST /* last tag */
 };
@@ -13546,6 +13547,11 @@ static struct hda_verb alc269_quanta_fl1_verbs[] = {
 	{ }
 };
 
+static struct hda_verb alc269_vaio_verbs[] = {
+	{0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREFGRD},
+	{ }
+};
+
 static struct hda_verb alc269_lifebook_verbs[] = {
 	{0x15, AC_VERB_SET_CONNECT_SEL, 0x01},
 	{0x1a, AC_VERB_SET_CONNECT_SEL, 0x01},
@@ -14002,6 +14008,7 @@ static const char *alc269_models[ALC269_MODEL_LAST] = {
 	[ALC269_DMIC]			= "laptop-dmic",
 	[ALC269_FUJITSU]		= "fujitsu",
 	[ALC269_LIFEBOOK]		= "lifebook",
+	[ALC269_VAIO]			= "vaio",
 	[ALC269_AUTO]			= "auto",
 };
 
@@ -14051,7 +14058,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
 		      ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005HA", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS P1005HA", ALC269_DMIC),
-	SND_PCI_QUIRK(0x104d, 0x9071, "SONY XTB", ALC269_DMIC),
+	SND_PCI_QUIRK(0x104d, 0x9071, "SONY Vaio", ALC269_VAIO),
 	SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook ICH9M-based", ALC269_LIFEBOOK),
 	SND_PCI_QUIRK(0x152d, 0x1778, "Quanta ON1", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1734, 0x115d, "FSC Amilo", ALC269_FUJITSU),
@@ -14073,6 +14080,21 @@ static struct alc_config_preset alc269_presets[] = {
 		.channel_mode = alc269_modes,
 		.input_mux = &alc269_capture_source,
 	},
+	[ALC269_VAIO] = {
+		.mixers = { alc269_laptop_mixer },
+		.cap_mixer = alc269_laptop_digital_capture_mixer,
+		.init_verbs = { alc269_init_verbs,
+				alc269_vaio_verbs,
+				alc269_laptop_dmic_init_verbs },
+		.num_dacs = ARRAY_SIZE(alc269_dac_nids),
+		.dac_nids = alc269_dac_nids,
+		.hp_nid = 0x03,
+		.num_channel_mode = ARRAY_SIZE(alc269_modes),
+		.channel_mode = alc269_modes,
+		.unsol_event = alc269_laptop_unsol_event,
+		.setup = alc269_laptop_dmic_setup,
+		.init_hook = alc269_laptop_inithook,
+        },
 	[ALC269_QUANTA_FL1] = {
 		.mixers = { alc269_quanta_fl1_mixer },
 		.init_verbs = { alc269_init_verbs, alc269_quanta_fl1_verbs },
-- 
1.7.0.3

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-02 13:54 [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series Luca Bruno
@ 2010-04-04 10:32 ` Takashi Iwai
  2010-04-04 11:38   ` Luca Bruno
  0 siblings, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2010-04-04 10:32 UTC (permalink / raw)
  To: Luca Bruno; +Cc: alsa-devel

At Fri,  2 Apr 2010 15:54:02 +0200,
Luca Bruno wrote:
> 
> Vaio E Series laptops need a slightly modified config for their ALC269.
> This patch adds a new 'vaio' model, plus initial quirk for them.
> It fixes alsa-bugs #4941, #4934 and #4945
> 
> Signed-off-by: Luca Bruno <lucab@debian.org>

Doesn't it work with model=auto with the latest version?  I'm willing
apply your quirk patch but I also would like to avoid unnecessary
quirks as much as possible.

Please give alsa-info.sh output, anyway, for further analysis. 


thanks,

Takashi

> ---
>  Documentation/sound/alsa/HD-Audio-Models.txt |    1 +
>  sound/pci/hda/patch_realtek.c                |   24 +++++++++++++++++++++++-
>  2 files changed, 24 insertions(+), 1 deletions(-)
> 
> diff --git a/Documentation/sound/alsa/HD-Audio-Models.txt b/Documentation/sound/alsa/HD-Audio-Models.txt
> index 1d38b0d..416f1f5 100644
> --- a/Documentation/sound/alsa/HD-Audio-Models.txt
> +++ b/Documentation/sound/alsa/HD-Audio-Models.txt
> @@ -87,6 +87,7 @@ ALC269
>    eeepc-p901	ASUS Eeepc P901 S101
>    fujitsu	FSC Amilo
>    lifebook	Fujitsu Lifebook S6420
> +  vaio		Sony Vaio (E Series)
>    auto		auto-config reading BIOS (default)
>  
>  ALC662/663/272
> diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> index 22b7c94..c2b78a1 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -137,6 +137,7 @@ enum {
>  	ALC269VB_DMIC,
>  	ALC269_FUJITSU,
>  	ALC269_LIFEBOOK,
> +	ALC269_VAIO,
>  	ALC269_AUTO,
>  	ALC269_MODEL_LAST /* last tag */
>  };
> @@ -13546,6 +13547,11 @@ static struct hda_verb alc269_quanta_fl1_verbs[] = {
>  	{ }
>  };
>  
> +static struct hda_verb alc269_vaio_verbs[] = {
> +	{0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREFGRD},
> +	{ }
> +};
> +
>  static struct hda_verb alc269_lifebook_verbs[] = {
>  	{0x15, AC_VERB_SET_CONNECT_SEL, 0x01},
>  	{0x1a, AC_VERB_SET_CONNECT_SEL, 0x01},
> @@ -14002,6 +14008,7 @@ static const char *alc269_models[ALC269_MODEL_LAST] = {
>  	[ALC269_DMIC]			= "laptop-dmic",
>  	[ALC269_FUJITSU]		= "fujitsu",
>  	[ALC269_LIFEBOOK]		= "lifebook",
> +	[ALC269_VAIO]			= "vaio",
>  	[ALC269_AUTO]			= "auto",
>  };
>  
> @@ -14051,7 +14058,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
>  		      ALC269_DMIC),
>  	SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005HA", ALC269_DMIC),
>  	SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS P1005HA", ALC269_DMIC),
> -	SND_PCI_QUIRK(0x104d, 0x9071, "SONY XTB", ALC269_DMIC),
> +	SND_PCI_QUIRK(0x104d, 0x9071, "SONY Vaio", ALC269_VAIO),
>  	SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook ICH9M-based", ALC269_LIFEBOOK),
>  	SND_PCI_QUIRK(0x152d, 0x1778, "Quanta ON1", ALC269_DMIC),
>  	SND_PCI_QUIRK(0x1734, 0x115d, "FSC Amilo", ALC269_FUJITSU),
> @@ -14073,6 +14080,21 @@ static struct alc_config_preset alc269_presets[] = {
>  		.channel_mode = alc269_modes,
>  		.input_mux = &alc269_capture_source,
>  	},
> +	[ALC269_VAIO] = {
> +		.mixers = { alc269_laptop_mixer },
> +		.cap_mixer = alc269_laptop_digital_capture_mixer,
> +		.init_verbs = { alc269_init_verbs,
> +				alc269_vaio_verbs,
> +				alc269_laptop_dmic_init_verbs },
> +		.num_dacs = ARRAY_SIZE(alc269_dac_nids),
> +		.dac_nids = alc269_dac_nids,
> +		.hp_nid = 0x03,
> +		.num_channel_mode = ARRAY_SIZE(alc269_modes),
> +		.channel_mode = alc269_modes,
> +		.unsol_event = alc269_laptop_unsol_event,
> +		.setup = alc269_laptop_dmic_setup,
> +		.init_hook = alc269_laptop_inithook,
> +        },
>  	[ALC269_QUANTA_FL1] = {
>  		.mixers = { alc269_quanta_fl1_mixer },
>  		.init_verbs = { alc269_init_verbs, alc269_quanta_fl1_verbs },
> -- 
> 1.7.0.3
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-04 10:32 ` Takashi Iwai
@ 2010-04-04 11:38   ` Luca Bruno
  2010-04-05  9:14     ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Luca Bruno @ 2010-04-04 11:38 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 679 bytes --]

Takashi Iwai scrisse:

> > It fixes alsa-bugs #4941, #4934 and #4945
>
> Doesn't it work with model=auto with the latest version?  I'm willing
> apply your quirk patch but I also would like to avoid unnecessary
> quirks as much as possible.
> Please give alsa-info.sh output, anyway, for further analysis. 

It doesn't seem so.
You can find all the needed details attached to
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4934

Cheers, Luca

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-04 11:38   ` Luca Bruno
@ 2010-04-05  9:14     ` Takashi Iwai
  2010-04-06 10:21       ` Luca Bruno
  0 siblings, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2010-04-05  9:14 UTC (permalink / raw)
  To: Luca Bruno; +Cc: alsa-devel

At Sun, 4 Apr 2010 13:38:02 +0200,
Luca Bruno wrote:
> 
> [1  <multipart/signed (7bit)>]
> [1.1  <text/plain; US-ASCII (quoted-printable)>]
> Takashi Iwai scrisse:
> 
> > > It fixes alsa-bugs #4941, #4934 and #4945
> >
> > Doesn't it work with model=auto with the latest version?  I'm willing
> > apply your quirk patch but I also would like to avoid unnecessary
> > quirks as much as possible.
> > Please give alsa-info.sh output, anyway, for further analysis. 
> 
> It doesn't seem so.
> You can find all the needed details attached to
> https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4934

Could you attach alsa-info.sh output rather to mail?


thanks,

Takashi

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-05  9:14     ` Takashi Iwai
@ 2010-04-06 10:21       ` Luca Bruno
  2010-04-06 10:30         ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Luca Bruno @ 2010-04-06 10:21 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 808 bytes --]

Takashi Iwai scrisse:

> > > > It fixes alsa-bugs #4941, #4934 and #4945
> > >
> > > Doesn't it work with model=auto with the latest version?  I'm
> > > willing apply your quirk patch but I also would like to avoid
> > > unnecessary quirks as much as possible.
> > > Please give alsa-info.sh output, anyway, for further analysis. 
> > 
> > It doesn't seem so.
> > You can find all the needed details attached to
> > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4934
> 
> Could you attach alsa-info.sh output rather to mail?

Here it is, thanks a lot.

Cheers, Luca

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

[-- Attachment #1.1.2: alsa-info.txt --]
[-- Type: text/plain, Size: 23329 bytes --]

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.59
!!################################

!!Script ran on: Tue Apr  6 10:15:07 UTC 2010


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

Debian GNU/Linux squeeze/sid \n \l


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

Manufacturer:      Sony Corporation
Product Name:      VPCEB1J1E


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

Kernel release:    2.6.33-2-amd64
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes


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

Driver version:     1.0.22.1
Library version:    1.0.22
Utilities version:  1.0.22


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

snd_hda_intel


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

No sound servers found.


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

 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xf6000000 irq 31


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

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)


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

00:1b.0 0403: 8086:3b56 (rev 05)
	Subsystem: 104d:9071


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

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2
snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2


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

!!Module: snd_hda_intel
	bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1
	beep_mode : 1,1,1,1,1,1,1,1
	enable : Y,Y,Y,Y,Y,Y,Y,Y
	enable_msi : -1
	id : (null),(null),(null),(null),(null),(null),(null),(null)
	index : -1,-1,-1,-1,-1,-1,-1,-1
	model : (null),(null),(null),(null),(null),(null),(null),(null)
	patch : (null),(null),(null),(null),(null),(null),(null),(null)
	position_fix : 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
	probe_only : N,N,N,N,N,N,N,N
	single_cmd : N


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

Codec: Realtek ALC269
Address: 0
Function Id: 0x1
Vendor Id: 0x10ec0269
Subsystem Id: 0x104d4600
Revision Id: 0x100004
No Modem Function Group found
Default PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    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 0x1d: Stereo Amp-Out
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC269 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x2e 0x2e]
  Converter: stream=0, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x2d 0x2d]
  Converter: stream=0, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x07 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
  Amp-In vals:  [0x90 0x90]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x24
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Volume", index=0, device=0
  Control: name="Capture Switch", index=0, device=0
  Control: name="Mic Boost", index=0, device=0
  Device: name="ALC269 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1
  Amp-In vals:  [0x2e 0x2e]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x23
Node 0x09 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x80 0x80]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010a: Mono Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00] [0x00]
  Connection: 2
     0x0c 0x0d
Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x10 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x11 [Pin Complex] wcaps 0x400380: Mono Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x10
Node 0x12 [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x00000020: IN
  Pin Default 0x90a60920: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40010d: Stereo Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00010050: OUT EAPD Balanced
  EAPD 0x2: EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Connection: 2
     0x0c* 0x0d
Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0221101f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=04, enabled=1
  Connection: 2
     0x0c 0x0d*
Node 0x16 [Pin Complex] wcaps 0x40010c: Mono Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80]
  Pincap 0x00000010: OUT
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x0e
Node 0x17 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Mic Boost", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x01 0x01]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00003734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x02a15830: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Red
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=08, enabled=1
  Connection: 2
     0x0c* 0x0d
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00003734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x22: IN VREF_GRD
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00003734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x00000020: IN
  Pin Default 0x40138205: [N/A] Speaker at Ext N/A
    Conn = ATAPI, Color = Purple
    DefAssociation = 0x0, Sequence = 0x5
  Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400380: Mono Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=33
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x23 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 7
     0x18 0x19 0x1a 0x1b 0x1d 0x12* 0x0b
Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 6
     0x18 0x19 0x1a 0x1b 0x1d 0x0b
Codec: Intel ID 2804
Address: 3
Function Id: 0x1
Vendor Id: 0x80862804
Subsystem Id: 0x104d4600
Revision Id: 0x100000
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=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3
  Power: setting=D0, actual=D0
Node 0x04 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560010: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560020: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560030: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
--endcollapse--


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

crw-rw----+ 1 root audio 116,  0 Apr  6 10:42 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  4 Apr  6 10:42 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116,  7 Apr  6 10:42 /dev/snd/hwC0D3
crw-rw----+ 1 root audio 116, 24 Apr  6 10:42 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 16 Apr  6 11:17 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116,  1 Apr  6 10:42 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Apr  6 10:42 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Apr  6 10:42 .
drwxr-xr-x 3 root root 200 Apr  6 10:42 ..
lrwxrwxrwx 1 root root  12 Apr  6 10:42 pci-0000:00:1b.0 -> ../controlC0


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

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

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

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

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

Card hw:0 'Intel'/'HDA Intel at 0xf6000000 irq 31'
  Mixer name	: 'Intel ID 2804'
  Components	: 'HDA:10ec0269,104d4600,00100004 HDA:80862804,104d4600,00100000'
  Controls      : 13
  Simple ctrls  : 8
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 46 [72%] [-18.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 63 [98%] [0.00dB] [on]
  Front Right: Playback 63 [98%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [1.00dB] [on]
  Front Right: Playback 64 [100%] [1.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 1 [33%]
  Front Right: 1 [33%]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 46 [100%] [29.00dB] [on]
  Front Right: Capture 46 [100%] [29.00dB] [on]
Simple mixer control 'Digital',0
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 23 [19%] [-18.50dB]
  Front Right: Capture 23 [19%] [-18.50dB]


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

--startcollapse--
state.Intel {
	control.1 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 true
		value.1 true
	}
	control.2 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 64'
		comment.dbmin -6300
		comment.dbmax 100
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 64
		value.1 64
	}
	control.3 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 64'
		comment.dbmin -6300
		comment.dbmax 100
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 63
		value.1 63
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 46'
		comment.dbmin -1700
		comment.dbmax 2900
		iface MIXER
		name 'Capture Volume'
		value.0 46
		value.1 46
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 3'
		comment.dbmin 0
		comment.dbmax 3000
		iface MIXER
		name 'Mic Boost'
		value.0 1
		value.1 1
	}
	control.8 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -3450
		comment.dbmax 1200
		iface MIXER
		name 'Beep Playback Volume'
		value.0 0
		value.1 0
	}
	control.9 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Beep Playback Switch'
		value.0 false
		value.1 false
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 64'
		comment.dbmin -6400
		comment.dbmax 0
		iface MIXER
		name 'Master Playback Volume'
		value 46
	}
	control.11 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.12 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		comment.tlv '0000000100000008ffffec1400000014'
		comment.dbmin -5100
		comment.dbmax 0
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 255
	}
	control.13 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 120'
		comment.tlv '0000000100000008fffff44800000032'
		comment.dbmin -3000
		comment.dbmax 3000
		iface MIXER
		name 'Digital Capture Volume'
		value.0 23
		value.1 23
	}
}
--endcollapse--


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

Module
usbhid
hid
vboxnetadp
vboxnetflt
vboxdrv
ppdev
lp
parport
tun
sit
tunnel4
deflate
zlib_deflate
ctr
twofish
twofish_common
camellia
serpent
blowfish
cast5
des_generic
cbc
cryptd
aes_x86_64
aes_generic
xcbc
rmd160
sha512_generic
sha256_generic
sha1_generic
hmac
crypto_null
af_key
nls_utf8
nls_cp437
vfat
fat
ext3
jbd
loop
acpi_cpufreq
uvcvideo
arc4
snd_hda_codec_realtek
ecb
videodev
v4l1_compat
v4l2_compat_ioctl32
snd_hda_intel
snd_hda_codec
ath9k
snd_hwdep
ath9k_common
snd_pcm
mac80211
snd_seq
snd_timer
snd_seq_device
snd
ath9k_hw
ath
sony_laptop
soundcore
tpm_tis
cfg80211
tpm
snd_page_alloc
rfkill
pcspkr
tpm_bios
i2c_i801
serio_raw
ac
battery
processor
evdev
psmouse
ext4
mbcache
jbd2
crc16
dm_mod
sg
sr_mod
cdrom
sd_mod
i915
crc_t10dif
drm_kms_helper
drm
i2c_algo_bit
ahci
libata
sdhci_pci
sdhci
scsi_mod
ehci_hcd
mmc_core
led_class
i2c_core
button
sky2
video
output
usbcore
nls_base
intel_agp
thermal
fan
thermal_sys


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

/sys/class/sound/hwC0D0/init_pin_configs:
0x11 0x411111f0
0x12 0x90a60920
0x14 0x90170110
0x15 0x0221101f
0x16 0x411111f0
0x18 0x02a15830
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40138205
0x1e 0x411111f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D3/init_pin_configs:
0x04 0x58560010
0x05 0x58560020
0x06 0x18560030

/sys/class/sound/hwC0D3/driver_pin_configs:

/sys/class/sound/hwC0D3/user_pin_configs:

/sys/class/sound/hwC0D3/init_verbs:


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

[    9.867869]   alloc kstat_irqs on node -1
[    9.867883] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[    9.867983]   alloc irq_desc for 31 on node -1
[    9.867987]   alloc kstat_irqs on node -1
[    9.868005] HDA Intel 0000:00:1b.0: irq 31 for MSI/MSI-X
[    9.868055] HDA Intel 0000:00:1b.0: setting latency timer to 64
[    9.925818] Linux video capture interface: v2.00
[   10.142533] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input9
[   10.143572] phy0: Selected rate control algorithm 'ath9k_rate_control'
--
[   41.706929] sit0: Disabled Privacy Extensions
[ 2114.354639] hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
[ 3490.407033] usb 2-1.6: new low speed USB device using ehci_hcd and address 3



[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-06 10:21       ` Luca Bruno
@ 2010-04-06 10:30         ` Takashi Iwai
  2010-04-06 12:47           ` Luca Bruno
  0 siblings, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2010-04-06 10:30 UTC (permalink / raw)
  To: Luca Bruno; +Cc: alsa-devel

At Tue, 6 Apr 2010 12:21:36 +0200,
Luca Bruno wrote:
> 
> Takashi Iwai scrisse:
> 
> > > > > It fixes alsa-bugs #4941, #4934 and #4945
> > > >
> > > > Doesn't it work with model=auto with the latest version?  I'm
> > > > willing apply your quirk patch but I also would like to avoid
> > > > unnecessary quirks as much as possible.
> > > > Please give alsa-info.sh output, anyway, for further analysis. 
> > > 
> > > It doesn't seem so.
> > > You can find all the needed details attached to
> > > https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4934
> > 
> > Could you attach alsa-info.sh output rather to mail?
> 
> Here it is, thanks a lot.

Thanks.  And what actually doesn't work with model=auto?
With the very latest driver, both mic and HP auto-switching seems
working.


Takashi

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-06 10:30         ` Takashi Iwai
@ 2010-04-06 12:47           ` Luca Bruno
  2010-04-06 14:30             ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Luca Bruno @ 2010-04-06 12:47 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 868 bytes --]

Takashi Iwai scrisse:

> Thanks.  And what actually doesn't work with model=auto?
> With the very latest driver, both mic and HP auto-switching seems
> working.

Mic was working, but got no sound via internal speakers nor through
headphones. Switching VREF did the magic.

At the time, I tried various git revision till 
http://git.alsa-project.org/?p=alsa-kernel.git;a=commitdiff;h=bcd10cdee90866f7c03256a23bc77d7e3c976731
when I decided to cook up a quirk.

If you have a particular revision to suggest, I can re-try that without
my patch. Also, are the bleeding-edge drivers on kernel.org or on
alsa-project.org git? 

Cheers, Luca

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-06 12:47           ` Luca Bruno
@ 2010-04-06 14:30             ` Takashi Iwai
  2010-04-10 18:35               ` Luca Bruno
  0 siblings, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2010-04-06 14:30 UTC (permalink / raw)
  To: Luca Bruno; +Cc: alsa-devel

At Tue, 6 Apr 2010 14:47:06 +0200,
Luca Bruno wrote:
> 
> Takashi Iwai scrisse:
> 
> > Thanks.  And what actually doesn't work with model=auto?
> > With the very latest driver, both mic and HP auto-switching seems
> > working.
> 
> Mic was working, but got no sound via internal speakers nor through
> headphones. Switching VREF did the magic.

Do you mean setting the pinctl 0x22 (PIN_VREFGRD) to NID 0x19?
Changing this via hda-verb with model=auto state also fixes the issue?


> At the time, I tried various git revision till 
> http://git.alsa-project.org/?p=alsa-kernel.git;a=commitdiff;h=bcd10cdee90866f7c03256a23bc77d7e3c976731
> when I decided to cook up a quirk.
> 
> If you have a particular revision to suggest, I can re-try that without
> my patch. Also, are the bleeding-edge drivers on kernel.org or on
> alsa-project.org git? 

For the kernel, try:
  git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git

For alsa-driver snapshot, try:
  ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz


thanks,

Takashi

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-06 14:30             ` Takashi Iwai
@ 2010-04-10 18:35               ` Luca Bruno
  2010-04-12  7:06                 ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Luca Bruno @ 2010-04-10 18:35 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 1019 bytes --]

Takashi Iwai scrisse:

> Do you mean setting the pinctl 0x22 (PIN_VREFGRD) to NID 0x19?

Yes. It was mentioned that PIN_VREFHIZ works too.

> Changing this via hda-verb with model=auto state also fixes the issue?

Yes, that's how the quirk-patch came out (I've zero knowledge of
sound/alsa development, I was just asked to cook a patch based on that
suggestion, as nobody was doing it).
 
> For the kernel, try:
>   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git 
> For alsa-driver snapshot, try:
>   ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Tried latest of both, yet no luck out-of-the-box.
Still have to apply the quirk-patch or manually change via hda-verb
each time to have a working sound output. 

Ciao, Luca

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-10 18:35               ` Luca Bruno
@ 2010-04-12  7:06                 ` Takashi Iwai
  2010-04-13  5:58                   ` Luca Bruno
  0 siblings, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2010-04-12  7:06 UTC (permalink / raw)
  To: Luca Bruno; +Cc: alsa-devel

At Sat, 10 Apr 2010 20:35:30 +0200,
Luca Bruno wrote:
> 
> [1  <text/plain; US-ASCII (quoted-printable)>]
> Takashi Iwai scrisse:
> 
> > Do you mean setting the pinctl 0x22 (PIN_VREFGRD) to NID 0x19?
> 
> Yes. It was mentioned that PIN_VREFHIZ works too.
> 
> > Changing this via hda-verb with model=auto state also fixes the issue?
> 
> Yes, that's how the quirk-patch came out (I've zero knowledge of
> sound/alsa development, I was just asked to cook a patch based on that
> suggestion, as nobody was doing it).
>  
> > For the kernel, try:
> >   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git 
> > For alsa-driver snapshot, try:
> >   ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
> 
> Tried latest of both, yet no luck out-of-the-box.
> Still have to apply the quirk-patch or manually change via hda-verb
> each time to have a working sound output. 

OK, could you try the patch below?


thanks,

Takashi
---
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 8d60b1f..4b35176 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1390,22 +1390,31 @@ struct alc_fixup {
 
 static void alc_pick_fixup(struct hda_codec *codec,
 			   const struct snd_pci_quirk *quirk,
-			   const struct alc_fixup *fix)
+			   const struct alc_fixup *fix,
+			   int pre_init)
 {
 	const struct alc_pincfg *cfg;
 
 	quirk = snd_pci_quirk_lookup(codec->bus->pci, quirk);
 	if (!quirk)
 		return;
-
 	fix += quirk->value;
 	cfg = fix->pins;
-	if (cfg) {
+	if (pre_init && cfg) {
+#ifdef CONFIG_SND_DEBUG_VERBOSE
+		snd_printdd(KERN_INFO "hda_codec: %s: Apply pincfg for %s\n",
+			    codec->chip_name, quirk->name);
+#endif
 		for (; cfg->nid; cfg++)
 			snd_hda_codec_set_pincfg(codec, cfg->nid, cfg->val);
 	}
-	if (fix->verbs)
+	if (!pre_init && fix->verbs) {
+#ifdef CONFIG_SND_DEBUG_VERBOSE
+		snd_printdd(KERN_INFO "hda_codec: %s: Apply fix-verbs for %s\n",
+			    codec->chip_name, quirk->name);
+#endif
 		add_verb(codec->spec, fix->verbs);
+	}
 }
 
 static int alc_read_coef_idx(struct hda_codec *codec,
@@ -10439,7 +10448,8 @@ static int patch_alc882(struct hda_codec *codec)
 		board_config = ALC882_AUTO;
 	}
 
-	alc_pick_fixup(codec, alc882_fixup_tbl, alc882_fixups);
+	if (board_config == ALC882_AUTO)
+		alc_pick_fixup(codec, alc882_fixup_tbl, alc882_fixups, 1);
 
 	if (board_config == ALC882_AUTO) {
 		/* automatic parse from the BIOS config */
@@ -10512,6 +10522,9 @@ static int patch_alc882(struct hda_codec *codec)
 	set_capture_mixer(codec);
 	set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);
 
+	if (board_config == ALC882_AUTO)
+		alc_pick_fixup(codec, alc882_fixup_tbl, alc882_fixups, 0);
+
 	spec->vmaster_nid = 0x0c;
 
 	codec->patch_ops = alc_patch_ops;
@@ -14064,6 +14077,27 @@ static void alc269_auto_init(struct hda_codec *codec)
 		alc_inithook(codec);
 }
 
+enum {
+	ALC269_FIXUP_SONY_VAIO,
+};
+
+const static struct hda_verb alc269_sony_vaio_fixup_verbs[] = {
+	{0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREFGRD},
+	{}
+};
+
+static const struct alc_fixup alc269_fixups[] = {
+	[ALC269_FIXUP_SONY_VAIO] = {
+		.verbs = alc269_sony_vaio_fixup_verbs
+	},
+};
+
+static struct snd_pci_quirk alc269_fixup_tbl[] = {
+	SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_FIXUP_SONY_VAIO),
+	{}
+};
+
+
 /*
  * configuration and preset
  */
@@ -14123,7 +14157,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
 		      ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005HA", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS P1005HA", ALC269_DMIC),
-	SND_PCI_QUIRK(0x104d, 0x9071, "SONY XTB", ALC269_DMIC),
+	SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_AUTO),
 	SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook ICH9M-based", ALC269_LIFEBOOK),
 	SND_PCI_QUIRK(0x152d, 0x1778, "Quanta ON1", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1734, 0x115d, "FSC Amilo", ALC269_FUJITSU),
@@ -14277,6 +14311,9 @@ static int patch_alc269(struct hda_codec *codec)
 		board_config = ALC269_AUTO;
 	}
 
+	if (board_config == ALC269_AUTO)
+		alc_pick_fixup(codec, alc269_fixup_tbl, alc269_fixups, 1);
+
 	if (board_config == ALC269_AUTO) {
 		/* automatic parse from the BIOS config */
 		err = alc269_parse_auto_config(codec);
@@ -14329,6 +14366,9 @@ static int patch_alc269(struct hda_codec *codec)
 		set_capture_mixer(codec);
 	set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT);
 
+	if (board_config == ALC269_AUTO)
+		alc_pick_fixup(codec, alc269_fixup_tbl, alc269_fixups, 0);
+
 	spec->vmaster_nid = 0x02;
 
 	codec->patch_ops = alc_patch_ops;
@@ -15417,7 +15457,8 @@ static int patch_alc861(struct hda_codec *codec)
 		board_config = ALC861_AUTO;
 	}
 
-	alc_pick_fixup(codec, alc861_fixup_tbl, alc861_fixups);
+	if (board_config == ALC861_AUTO)
+		alc_pick_fixup(codec, alc861_fixup_tbl, alc861_fixups, 1);
 
 	if (board_config == ALC861_AUTO) {
 		/* automatic parse from the BIOS config */
@@ -15454,6 +15495,9 @@ static int patch_alc861(struct hda_codec *codec)
 
 	spec->vmaster_nid = 0x03;
 
+	if (board_config == ALC861_AUTO)
+		alc_pick_fixup(codec, alc861_fixup_tbl, alc861_fixups, 0);
+
 	codec->patch_ops = alc_patch_ops;
 	if (board_config == ALC861_AUTO) {
 		spec->init_hook = alc861_auto_init;
@@ -16388,7 +16432,8 @@ static int patch_alc861vd(struct hda_codec *codec)
 		board_config = ALC861VD_AUTO;
 	}
 
-	alc_pick_fixup(codec, alc861vd_fixup_tbl, alc861vd_fixups);
+	if (board_config == ALC861VD_AUTO)
+		alc_pick_fixup(codec, alc861vd_fixup_tbl, alc861vd_fixups, 1);
 
 	if (board_config == ALC861VD_AUTO) {
 		/* automatic parse from the BIOS config */
@@ -16436,6 +16481,9 @@ static int patch_alc861vd(struct hda_codec *codec)
 
 	spec->vmaster_nid = 0x02;
 
+	if (board_config == ALC861VD_AUTO)
+		alc_pick_fixup(codec, alc861vd_fixup_tbl, alc861vd_fixups, 0);
+
 	codec->patch_ops = alc_patch_ops;
 
 	if (board_config == ALC861VD_AUTO)

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-12  7:06                 ` Takashi Iwai
@ 2010-04-13  5:58                   ` Luca Bruno
  2010-04-13  7:53                     ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Luca Bruno @ 2010-04-13  5:58 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 516 bytes --]

Takashi Iwai scrisse:

> > Tried latest of both, yet no luck out-of-the-box.
> > Still have to apply the quirk-patch or manually change via hda-verb
> > each time to have a working sound output. 
> 
> OK, could you try the patch below?

Fine, it worked perfectly. Thanks a lot.

Ciao, Luca

-- 
 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series
  2010-04-13  5:58                   ` Luca Bruno
@ 2010-04-13  7:53                     ` Takashi Iwai
  0 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2010-04-13  7:53 UTC (permalink / raw)
  To: Luca Bruno; +Cc: alsa-devel

At Tue, 13 Apr 2010 07:58:57 +0200,
Luca Bruno wrote:
> 
> Takashi Iwai scrisse:
> 
> > > Tried latest of both, yet no luck out-of-the-box.
> > > Still have to apply the quirk-patch or manually change via hda-verb
> > > each time to have a working sound output. 
> > 
> > OK, could you try the patch below?
> 
> Fine, it worked perfectly. Thanks a lot.

Merged patches now.  Thanks for testing.


Takashi

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

end of thread, other threads:[~2010-04-13  7:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-02 13:54 [PATCH] ALSA: hda - Add quirk and model 'vaio' for ALC269-based Sony Vaio E Series Luca Bruno
2010-04-04 10:32 ` Takashi Iwai
2010-04-04 11:38   ` Luca Bruno
2010-04-05  9:14     ` Takashi Iwai
2010-04-06 10:21       ` Luca Bruno
2010-04-06 10:30         ` Takashi Iwai
2010-04-06 12:47           ` Luca Bruno
2010-04-06 14:30             ` Takashi Iwai
2010-04-10 18:35               ` Luca Bruno
2010-04-12  7:06                 ` Takashi Iwai
2010-04-13  5:58                   ` Luca Bruno
2010-04-13  7:53                     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).