All of lore.kernel.org
 help / color / mirror / Atom feed
* Acer Aspire 7730G support
@ 2009-06-24 12:09 Denis Kup
  2009-06-24 12:36 ` Takashi Iwai
  0 siblings, 1 reply; 15+ messages in thread
From: Denis Kup @ 2009-06-24 12:09 UTC (permalink / raw)
  To: alsa-devel

Hey, when i first installed alsa to my laptop, there no sound from
subwoofer, jacks were map very strange (2 surrounds for ex.). I try
all models from the list, but all don't support my subwoofer. After a
weak of hard work i made a patch that enables ACER_ASPIRE_7730G model
for my laptop. It have ALC888S, 3 jacks, 6 channels, stereo internal
frontal speakers and internal subwoofer.You can see acer.com for more
info about hardware and jacks.

It's the changes i made to /alsa-kernel/pci/hda/patch_realtek.c:

> enum {
> ...................
>     ALC888_ACER_ASPIRE_7730G,
> ...................
> };
> //////////////////////////////////////////////////////////////
> static struct hda_verb alc888_acer_aspire_7730G_verbs[] = {
>     {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, /*CHANGE  DIRECT FRONT TO BLACK JACK*/
>     {0x17, AC_VERB_SET_CONNECT_SEL, 0x02}, /* CHANGE: ENABLES SUBWOOFER ON 7730*/
>     {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN}, //CHANGE FOR AUTOMUTE
>     { } /* end */
> };
>
> /*CHANGE ENABLE AUTOMUTING ON ACER 7730G
> //////////////////////////////////////////////////////
> //////////////////////////////////////////////////////*/
>
> static void alc888_acer_aspire_7730G_front_automute(struct hda_codec *codec)
> {
>      unsigned int present;
>
>      present = snd_hda_codec_read(codec, 0x15, 0,
>                      AC_VERB_GET_PIN_SENSE, 0) & 0x80000000;
>     snd_hda_codec_amp_stereo(codec, 0x14, HDA_OUTPUT, 0,
>                  HDA_AMP_MUTE, present ? HDA_AMP_MUTE : 0);
>     snd_hda_codec_amp_stereo(codec, 0x17, HDA_OUTPUT, 0,
>                  HDA_AMP_MUTE, present ? HDA_AMP_MUTE : 0);
> }
>
> static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec *codec,
>                        unsigned int res)
> {
>     if ((res >> 26) == ALC880_HP_EVENT)
>         alc888_acer_aspire_7730G_front_automute(codec);
> }
>
> /*////////////////////////////////////////////////////
> //////////////////////////////////////////////////
> //////////////////////////////////////////////////////*/
> static struct alc_config_preset alc883_presets[] = {
>
>     [ALC888_ACER_ASPIRE_7730G] = {
>         .mixers = { alc883_3ST_6ch_mixer, alc883_chmode_mixer },
>         .init_verbs = { alc883_init_verbs, alc888_acer_aspire_7730G_verbs },
>         .num_dacs = ARRAY_SIZE(alc883_dac_nids),
>         .dac_nids = alc883_dac_nids,
>         .dig_out_nid = ALC883_DIGOUT_NID,
>         .dig_in_nid = ALC883_DIGIN_NID,
>         .num_channel_mode = ARRAY_SIZE(alc883_3ST_6ch_modes),
>         .channel_mode = alc883_3ST_6ch_modes,
>         .need_dac_fix = 1,
>         .input_mux = &alc883_capture_source,
>         .unsol_event = alc888_acer_aspire_7730G_unsol_event, /* CHANGE AUTOMUTE DECLARATION*/
>         .init_hook = alc888_acer_aspire_7730G_front_automute,
>     },
>
> ///////////////////////////////////////////////////////////////
>
> static const char *alc883_models[ALC883_MODEL_LAST] = {
> .................................
>     [ALC888_ACER_ASPIRE_7730G]    = "acer-aspire-7730g",
> .........................
>
> ////////////////////////////////
> static struct snd_pci_quirk alc883_cfg_tbl[] = {
> ......................................
>     SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G", ALC888_ACER_ASPIRE_7730G),
> ..........................................

After changing file i install driver, and it automatically detect its
model (maybe there are old settings from previous install, so i dont
100% sure that it was detected). With this settings subwoofer works
perfect, internal stereo and subwoofer mute when headphone are plugged
all works, except 1 thing: subwoofer uses center channel instead LFE.
To fix it i use such asound.conf file:


> pcm.upmix_20to51 {
>     type plug
>     slave.pcm lowpass_21to21
>     slave.channels 3
>     ttable {
>         0.0 1 # left channel
>         1.1 1 # right channel
>         0.2 1 # mix left and right ...
>         1.2 1 # ... channel for subwoofer
>     }
> }
> pcm.lowpass_21to21 {
>     type ladspa
>     slave.pcm upmix_21to51
>     path "/usr/lib/ladspa"
>     channels 3
>     plugins {
>         0 {
>             id 1098 # Identity (Audio) (1098/identity_audio)
>             policy duplicate
>             input.bindings.0 "Input";
>             output.bindings.0 "Output";
>         }
>         1 {
>             id 1671 # 4 Pole Low-Pass Filter with Resonance (FCRCIA) (1672/lp4pole_fcrcia_oa)
>             policy none
>             input.bindings.2 "Input";
>             output.bindings.2 "Output";
>             input {
>                 controls [ 1000 2 ]
>             }
>         }
>     }
> }
> pcm.upmix_21to51 {
>     type plug
>     slave.pcm surround51
>     slave.channels 6
>     ttable {
>         0.0 1 # front left
>         1.1 1 # front right
>         0.2 1 # rear left
>         1.3 1 # rear right
>         0.5 0.5 # swap channels
>         1.5 0.5
>         2.4 1
>     }
> }
>
> pcm.swapCLFE_51 {
>     type plug
>     slave.pcm surround51
>     slave.channels 6
>     ttable {
>         0.0 1 # front left
>         1.1 1 # front right
>         2.2 1 # rear left
>         3.3 1 # rear right
>         4.5 1 # swap channels
>         5.4 1
>     }
> }

I use upmix_21to51 and swapCLFE_51 devices in Amarok settings.

Is there any chance to swap Center and LFE in patch_realtek.c? And can
my 7730g config be used in future version of alsa? And how can I
detect params for snd_pci_quirk alc883_cfg_tbl ?

And some config settings for my laptop, if needed:

> linux-wpg9:/home/dener # cat /proc/asound/card0/codec*
> Codec: Realtek ALC888
> Address: 0
> Function Id: 0x1
> Vendor Id: 0x10ec0888
> Subsystem Id: 0x10250142
> Revision Id: 0x100202
> No Modem Function Group found
> Default PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
> Default Amp-In caps: N/A
> Default Amp-Out caps: N/A
> GPIO: io=2, o=0, i=0, unsolicited=1, wake=1
>   IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
>   IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
> Node 0x02 [Audio Output] wcaps 0x411: Stereo
>   Converter: stream=5, channel=0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
> Node 0x03 [Audio Output] wcaps 0x411: Stereo
>   Converter: stream=5, channel=0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
> Node 0x04 [Audio Output] wcaps 0x411: Stereo
>   Converter: stream=5, channel=0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
> Node 0x05 [Audio Output] wcaps 0x411: Stereo
>   Converter: stream=0, channel=0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
> Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital
>   Converter: stream=0, channel=0
>   Digital: Enabled GenLevel
>   Digital category: 0x2
>   PCM:
>     rates [0x5e0]: 44100 48000 88200 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
> Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
> Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
>   Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
>   Amp-In vals:  [0x16 0x16]
>   Converter: stream=0, channel=0
>   SDI-Select: 0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
>   Connection: 1
>      0x23
> Node 0x09 [Audio Input] wcaps 0x10051b: Stereo Amp-In
>   Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
>   Amp-In vals:  [0x9f 0x9f]
>   Converter: stream=0, channel=0
>   SDI-Select: 0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
>   Connection: 1
>      0x22
> Node 0x0a [Audio Input] wcaps 0x100711: Stereo Digital
>   Converter: stream=0, channel=0
>   SDI-Select: 0
>   Digital:
>   Digital category: 0x0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
>   Connection: 1
>      0x1f
> Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
>   Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
>   Amp-In vals:  [0x80 0x80] [0x1f 0x1f] [0x00 0x00] [0x80 0x80] [0x17 0x17] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
>   Connection: 10
>      0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
> Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>   Amp-In vals:  [0x00 0x00] [0x00 0x00]
>   Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
>   Amp-Out vals:  [0x12 0x12]
>   Connection: 2
>      0x02 0x0b
> Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>   Amp-In vals:  [0x00 0x00] [0x00 0x00]
>   Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
>   Amp-Out vals:  [0x15 0x15]
>   Connection: 2
>      0x03 0x0b
> Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>   Amp-In vals:  [0x00 0x00] [0x00 0x00]
>   Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
>   Amp-Out vals:  [0x15 0x15]
>   Connection: 2
>      0x04 0x0b
> Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>   Amp-In vals:  [0x80 0x80] [0x80 0x80]
>   Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
>   Amp-Out vals:  [0x00 0x00]
>   Connection: 2
>      0x05 0x0b
> Node 0x10 [Audio Output] wcaps 0x611: Stereo Digital
>   Converter: stream=0, channel=0
>   Digital:
>   Digital category: 0x0
>   PCM:
>     rates [0x5e0]: 44100 48000 88200 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
> Node 0x11 [Pin Complex] wcaps 0x400780: 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
>   Power: setting=D0, actual=D0
>   Connection: 1
>      0x10
> Node 0x12 [Pin Complex] wcaps 0x400401: Stereo
>   Pincap 0x00000020: IN
>   Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
>     Conn = 1/8, Color = Black
>     DefAssociation = 0xf, Sequence = 0x0
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x00:
>   Power: setting=D0, actual=D0
> Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
> Node 0x14 [Pin Complex] wcaps 0x40058f: 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:  [0x00 0x00]
>   Pincap 0x0001003e: IN OUT HP EAPD Detect Trigger
>   EAPD 0x0:
>   Pin Default 0x99130110: [Fixed] Speaker at Int ATAPI
>     Conn = ATAPI, Color = Unknown
>     DefAssociation = 0x1, Sequence = 0x0
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x40: OUT
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c* 0x0d 0x0e 0x0f 0x26
> Node 0x15 [Pin Complex] wcaps 0x40058f: 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:  [0x00 0x00]
>   Pincap 0x0001003e: IN OUT HP EAPD Detect Trigger
>   EAPD 0x0:
>   Pin Default 0x0221101f: [Jack] HP Out at Ext Front
>     Conn = 1/8, Color = Black
>     DefAssociation = 0x1, Sequence = 0xf
>   Pin-ctls: 0x40: OUT
>   Unsolicited: tag=04, enabled=1
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c* 0x0d 0x0e 0x0f 0x26
> Node 0x16 [Pin Complex] wcaps 0x40058f: 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:  [0x00 0x00]
>   Pincap 0x00000036: IN OUT Detect Trigger
>   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
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c 0x0d 0x0e* 0x0f 0x26
> Node 0x17 [Pin Complex] wcaps 0x40058f: 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:  [0x00 0x00]
>   Pincap 0x00000036: IN OUT Detect Trigger
>   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
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c 0x0d 0x0e* 0x0f 0x26
> Node 0x18 [Pin Complex] wcaps 0x40058f: 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:  [0x00 0x00]
>   Pincap 0x0000373e: IN OUT HP Detect Trigger
>     Vref caps: HIZ 50 GRD 80 100
>   Pin Default 0x02a19c30: [Jack] Mic at Ext Front
>     Conn = 1/8, Color = Pink
>     DefAssociation = 0x3, Sequence = 0x0
>   Pin-ctls: 0x40: OUT VREF_HIZ
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c 0x0d 0x0e* 0x0f 0x26
> Node 0x19 [Pin Complex] wcaps 0x40058f: 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 0x0000373e: IN OUT HP Detect Trigger
>     Vref caps: HIZ 50 GRD 80 100
>   Pin Default 0x99a30931: [Fixed] Mic at Int ATAPI
>     Conn = ATAPI, Color = Unknown
>     DefAssociation = 0x3, Sequence = 0x1
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x24: IN VREF_80
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c* 0x0d 0x0e 0x0f 0x26
> Node 0x1a [Pin Complex] wcaps 0x40058f: 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:  [0x00 0x00]
>   Pincap 0x0000373e: IN OUT HP Detect Trigger
>     Vref caps: HIZ 50 GRD 80 100
>   Pin Default 0x0281343f: [Jack] Line In at Ext Front
>     Conn = 1/8, Color = Blue
>     DefAssociation = 0x3, Sequence = 0xf
>   Pin-ctls: 0x40: OUT VREF_HIZ
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c 0x0d* 0x0e 0x0f 0x26
> Node 0x1b [Pin Complex] wcaps 0x40058f: 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:  [0x00 0x00]
>   Pincap 0x0000373e: IN OUT HP Detect Trigger
>     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: 0xc0: OUT HP VREF_HIZ
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
>   Connection: 5
>      0x0c* 0x0d 0x0e 0x0f 0x26
> Node 0x1c [Pin Complex] wcaps 0x400481: Stereo
>   Pincap 0x00000024: IN Detect
>   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
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
> Node 0x1d [Pin Complex] wcaps 0x400400: Mono
>   Pincap 0x00000020: IN
>   Pin Default 0x4016852d: [N/A] Speaker at Ext N/A
>     Conn = Digital, Color = Purple
>     DefAssociation = 0x2, Sequence = 0xd
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x20: IN
>   Power: setting=D0, actual=D0
> Node 0x1e [Pin Complex] wcaps 0x400780: Mono Digital
>   Pincap 0x00000014: OUT Detect
>   Pin Default 0x02451120: [Jack] SPDIF Out at Ext Front
>     Conn = Optical, Color = Black
>     DefAssociation = 0x2, Sequence = 0x0
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x40: OUT
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
>   Connection: 1
>      0x06
> Node 0x1f [Pin Complex] wcaps 0x400680: Mono Digital
>   Pincap 0x00000024: IN Detect
>   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
>   Unsolicited: tag=00, enabled=0
>   Power: setting=D0, actual=D0
> Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
>   Processing caps: benign=0, ncoeff=25
>   Processing Coefficient: 0x00
>   Coefficient Index: 0x09
> Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
> Node 0x22 [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] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
>   Connection: 12
>      0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b 0x12
> Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
>   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>   Amp-In vals:  [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
>   Connection: 11
>      0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
> Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono
> Node 0x25 [Audio Output] wcaps 0x411: Stereo
>   Converter: stream=0, channel=0
>   PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
>     formats [0x1]: PCM
>   Power: setting=D0, actual=D0
> Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>   Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>   Amp-In vals:  [0x00 0x00] [0x80 0x80]
>   Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
>   Amp-Out vals:  [0x00 0x00]
>   Connection: 2
>      0x25 0x0b
> Codec: LSI ID 1040
> Address: 1
> Function Id: 0x2
> Vendor Id: 0x11c11040
> Subsystem Id: 0x1025013d
> Revision Id: 0x100200
> Modem Function Group: 0x1
> Codec: Nvidia MCP78 HDMI
> Address: 3
> Function Id: 0x1
> Vendor Id: 0x10de0006
> Subsystem Id: 0x10de0101
> 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 0x04 [Audio Output] wcaps 0x211: Stereo Digital
>   Converter: stream=0, channel=0
>   Digital: Enabled
>   Digital category: 0x0
>   PCM:
>     rates [0xc0]: 48000 88200
>     bits [0xf]: 8 16 20 24
>     formats [0x1]: PCM
> Node 0x05 [Pin Complex] wcaps 0x400381: Stereo Digital
>   Pincap 0x00000014: OUT Detect
>   Pin Default 0x18560110: [Jack] Digital Out at Int HDMI
>     Conn = Digital, Color = Unknown
>     DefAssociation = 0x1, Sequence = 0x0
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x40: OUT
>   Unsolicited: tag=00, enabled=0
>   Connection: 1
>      0x04
> Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
>   Converter: stream=0, channel=0
>   Digital:
>   Digital category: 0x0
>   PCM:
>     rates [0xc0]: 48000 88200
>     bits [0xf]: 8 16 20 24
>     formats [0x1]: PCM
> Node 0x07 [Pin Complex] wcaps 0x400381: Stereo Digital
>   Pincap 0x00000014: OUT Detect
>   Pin Default 0x58560121: [N/A] Digital Out at Int HDMI
>     Conn = Digital, Color = Unknown
>     DefAssociation = 0x2, Sequence = 0x1
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x00:
>   Unsolicited: tag=00, enabled=0
>   Connection: 1
>      0x06
> Node 0x08 [Audio Output] wcaps 0x211: Stereo Digital
>   Converter: stream=0, channel=0
>   Digital:
>   Digital category: 0x0
>   PCM:
>     rates [0xc0]: 48000 88200
>     bits [0xf]: 8 16 20 24
>     formats [0x1]: PCM
> Node 0x09 [Pin Complex] wcaps 0x400381: Stereo Digital
>   Pincap 0x00000014: OUT Detect
>   Pin Default 0x58560122: [N/A] Digital Out at Int HDMI
>     Conn = Digital, Color = Unknown
>     DefAssociation = 0x2, Sequence = 0x2
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x00:
>   Unsolicited: tag=00, enabled=0
>   Connection: 1
>      0x08
> Node 0x0a [Audio Output] wcaps 0x211: Stereo Digital
>   Converter: stream=0, channel=0
>   Digital:
>   Digital category: 0x0
>   PCM:
>     rates [0xc0]: 48000 88200
>     bits [0xf]: 8 16 20 24
>     formats [0x1]: PCM
> Node 0x0b [Pin Complex] wcaps 0x400381: Stereo Digital
>   Pincap 0x00000014: OUT Detect
>   Pin Default 0x58560123: [N/A] Digital Out at Int HDMI
>     Conn = Digital, Color = Unknown
>     DefAssociation = 0x2, Sequence = 0x3
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x00:
>   Unsolicited: tag=00, enabled=0
>   Connection: 1
>      0x0a
> Node 0x0c [Audio Output] wcaps 0x211: Stereo Digital
>   Converter: stream=0, channel=0
>   Digital:
>   Digital category: 0x0
>   PCM:
>     rates [0xc0]: 48000 88200
>     bits [0xf]: 8 16 20 24
>     formats [0x1]: PCM
> Node 0x0d [Pin Complex] wcaps 0x400381: Stereo Digital
>   Pincap 0x00000014: OUT Detect
>   Pin Default 0x58560124: [N/A] Digital Out at Int HDMI
>     Conn = Digital, Color = Unknown
>     DefAssociation = 0x2, Sequence = 0x4
>     Misc = NO_PRESENCE
>   Pin-ctls: 0x00:
>   Unsolicited: tag=00, enabled=0
>   Connection: 1
>      0x0c
>
> linux-wpg9:/home/dener # cat /proc/asound/version
> Advanced Linux Sound Architecture Driver Version 1.0.20.
> Compiled on Jun 14 2009 for kernel 2.6.27.23-0.1-pae (SMP).
>
> cat /proc/asound/devices
>   0: [ 0]   : control
>   1:        : sequencer
>   4: [ 0- 0]: hardware dependent
>   5: [ 0- 1]: hardware dependent
>   7: [ 0- 3]: hardware dependent
>  16: [ 0- 0]: digital audio playback
>  17: [ 0- 1]: digital audio playback
>  19: [ 0- 3]: digital audio playback
>  24: [ 0- 0]: digital audio capture
>  25: [ 0- 1]: digital audio capture
>  26: [ 0- 2]: digital audio capture
>  33:        : timer
>
> cat /proc/asound/pcm
> 00-00: ALC888 Analog : ALC888 Analog : playback 1 : capture 1
> 00-01: ALC888 Digital : ALC888 Digital : playback 1 : capture 1
> 00-02: ALC888 Analog : ALC888 Analog : capture 1
> 00-03: NVIDIA HDMI : NVIDIA HDMI : playback 1
>
> lspci | grep -i audio
> 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
>



 I have 1.0.20 alsa version and OpenSUSE 11.1 distributive. I hope my
materials are usefull

PS I am from Russia, sorry for my bad English :)

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

* Re: Acer Aspire 7730G support
  2009-06-24 12:09 Acer Aspire 7730G support Denis Kup
@ 2009-06-24 12:36 ` Takashi Iwai
       [not found]   ` <376f0d430906240941k699e494cr325f1c091a609f19@mail.gmail.com>
  0 siblings, 1 reply; 15+ messages in thread
From: Takashi Iwai @ 2009-06-24 12:36 UTC (permalink / raw)
  To: Denis Kup; +Cc: alsa-devel

At Wed, 24 Jun 2009 16:09:58 +0400,
Denis Kup wrote:
> 
> Hey, when i first installed alsa to my laptop, there no sound from
> subwoofer, jacks were map very strange (2 surrounds for ex.). I try
> all models from the list, but all don't support my subwoofer. After a
> weak of hard work i made a patch that enables ACER_ASPIRE_7730G model
> for my laptop. It have ALC888S, 3 jacks, 6 channels, stereo internal
> frontal speakers and internal subwoofer.You can see acer.com for more
> info about hardware and jacks.
> 
> It's the changes i made to /alsa-kernel/pci/hda/patch_realtek.c:

Can you try Emilio's patch recently posted (and pass
model=acer-aspire-6530g) with the very latest alsa-driver-snapshot?
This essentially includes your changes.  It's in:
  From: Emilio López <buhitoescolar@gmail.com>
  Subject: Re: [alsa-devel] Regarding Sound on Acer Aspire 6935G
  Date: Tue, 23 Jun 2009 22:32:45 -0300
  Message-ID: <d54969c50906231832w48ce7315uc5cf8b3f81534c76@mail.gmail.com>

> After changing file i install driver, and it automatically detect its
> model (maybe there are old settings from previous install, so i dont
> 100% sure that it was detected). With this settings subwoofer works
> perfect, internal stereo and subwoofer mute when headphone are plugged
> all works, except 1 thing: subwoofer uses center channel instead LFE.
> To fix it i use such asound.conf file:
...
> Is there any chance to swap Center and LFE in patch_realtek.c?

Unlikely as ALC888* doesn't support the channel-swap feature (although
some other ALC codecs do).


thanks,

Takashi

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

* Re: Acer Aspire 7730G support
       [not found]   ` <376f0d430906240941k699e494cr325f1c091a609f19@mail.gmail.com>
@ 2009-06-24 17:52     ` Denis Kup
  2009-06-24 20:39       ` Emilio López
  0 siblings, 1 reply; 15+ messages in thread
From: Denis Kup @ 2009-06-24 17:52 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

2009/6/24 Denis Kup <dener.kup@gmail.com>:
> 2009/6/24 Takashi Iwai <tiwai@suse.de>:
>> At Wed, 24 Jun 2009 16:09:58 +0400,
>> Denis Kup wrote:
>>>
>>> Hey, when i first installed alsa to my laptop, there no sound from
>>> subwoofer, jacks were map very strange (2 surrounds for ex.). I try
>>> all models from the list, but all don't support my subwoofer. After a
>>> weak of hard work i made a patch that enables ACER_ASPIRE_7730G model
>>> for my laptop. It have ALC888S, 3 jacks, 6 channels, stereo internal
>>> frontal speakers and internal subwoofer.You can see acer.com for more
>>> info about hardware and jacks.
>>>
>>> It's the changes i made to /alsa-kernel/pci/hda/patch_realtek.c:
>>
>> Can you try Emilio's patch recently posted (and pass
>> model=acer-aspire-6530g) with the very latest alsa-driver-snapshot?
>> This essentially includes your changes.  It's in:
>>  From: Emilio López <buhitoescolar@gmail.com>
>>  Subject: Re: [alsa-devel] Regarding Sound on Acer Aspire 6935G
>>  Date: Tue, 23 Jun 2009 22:32:45 -0300
>>  Message-ID: <d54969c50906231832w48ce7315uc5cf8b3f81534c76@mail.gmail.com>
>>
>>> After changing file i install driver, and it automatically detect its
>>> model (maybe there are old settings from previous install, so i dont
>>> 100% sure that it was detected). With this settings subwoofer works
>>> perfect, internal stereo and subwoofer mute when headphone are plugged
>>> all works, except 1 thing: subwoofer uses center channel instead LFE.
>>> To fix it i use such asound.conf file:
>> ...
>>> Is there any chance to swap Center and LFE in patch_realtek.c?
>>
>> Unlikely as ALC888* doesn't support the channel-swap feature (although
>> some other ALC codecs do).
>>
>>
>> thanks,
>>
>> Takashi
>>
>
> You are talking about that
> http://mailman.alsa-project.org/pipermail/alsa-devel/2009-June/018815.html
> ?? Its right link to drivers http://www.alsa-project.org/snapshot/ ??
> And there is easier way to apply patches than manually adding strings
> to files?
>

I manage with installing. I use alsa-driver-snapshot.tar.gz
http://ftp.kernel.org/pub/linux/kernel/people/tiwai/alsa/alsa-driver/
and this Amilo changes
http://mailman.alsa-project.org/pipermail/alsa-devel/2009-June/018815.html
.  But this patch has smaller functionality against i have. There is
advantages and disadvantages of both patches:

My patch:
+ 1) when black jack plugged, internal speakers and subwoofer mute
+ 2) there is 3 maps for jacks: (black/pink/blue) 2ch: front/ext mic/
(something i dont know, it should be line in), 4ch: front/ ext mic/
side 6ch: front/ CLFE / side; (its changes in channel mode option in
mixer)
+ 3) internal mic works
+ 4) there are separate boost mic channels for internal and external mics
- 5) internal subwoofer controls with Center channel in mixer
? 6) i dont know how line in works (i will check it when reinstall to my patch)
? 7) i dont know how spdif works, because i have not any spdif speakers in house

Amilo patch:
- 1) when black jack pluged, only internal speaker mutes, subwoofer
continue to work (it has no meaning when i listen to music in
headphones)
- 2) there is only 1 map for jacks: front/ext mic/ (something i dont
know, it should be line in)
- 3) there no side and center channels
- 3) internal mic dont work
- 4) there no line in in input source menu in mixer
+ 5) Subwoofer controls with LFE channel in mixer
? 7) i dont know how spdif works, because i have not any spdif speakers in house

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

* Re: Acer Aspire 7730G support
  2009-06-24 17:52     ` Denis Kup
@ 2009-06-24 20:39       ` Emilio López
  2009-06-24 21:36         ` Denis Kup
  0 siblings, 1 reply; 15+ messages in thread
From: Emilio López @ 2009-06-24 20:39 UTC (permalink / raw)
  To: Denis Kup; +Cc: Takashi Iwai, alsa-devel

2009/6/24 Denis Kup <dener.kup@gmail.com>:
> 2009/6/24 Denis Kup <dener.kup@gmail.com>:
>> 2009/6/24 Takashi Iwai <tiwai@suse.de>:
>>> At Wed, 24 Jun 2009 16:09:58 +0400,
>>> Denis Kup wrote:
>>>>
>>>> Hey, when i first installed alsa to my laptop, there no sound from
>>>> subwoofer, jacks were map very strange (2 surrounds for ex.). I try
>>>> all models from the list, but all don't support my subwoofer. After a
>>>> weak of hard work i made a patch that enables ACER_ASPIRE_7730G model
>>>> for my laptop. It have ALC888S, 3 jacks, 6 channels, stereo internal
>>>> frontal speakers and internal subwoofer.You can see acer.com for more
>>>> info about hardware and jacks.
>>>>
>>>> It's the changes i made to /alsa-kernel/pci/hda/patch_realtek.c:
>>>
>>> Can you try Emilio's patch recently posted (and pass
>>> model=acer-aspire-6530g) with the very latest alsa-driver-snapshot?
>>> This essentially includes your changes.  It's in:
>>>  From: Emilio López <buhitoescolar@gmail.com>
>>>  Subject: Re: [alsa-devel] Regarding Sound on Acer Aspire 6935G
>>>  Date: Tue, 23 Jun 2009 22:32:45 -0300
>>>  Message-ID: <d54969c50906231832w48ce7315uc5cf8b3f81534c76@mail.gmail.com>
>>>
>>>> After changing file i install driver, and it automatically detect its
>>>> model (maybe there are old settings from previous install, so i dont
>>>> 100% sure that it was detected). With this settings subwoofer works
>>>> perfect, internal stereo and subwoofer mute when headphone are plugged
>>>> all works, except 1 thing: subwoofer uses center channel instead LFE.
>>>> To fix it i use such asound.conf file:
>>> ...
>>>> Is there any chance to swap Center and LFE in patch_realtek.c?
>>>
>>> Unlikely as ALC888* doesn't support the channel-swap feature (although
>>> some other ALC codecs do).
>>>
>>>
>>> thanks,
>>>
>>> Takashi
>>>
>>
>> You are talking about that
>> http://mailman.alsa-project.org/pipermail/alsa-devel/2009-June/018815.html
>> ?? Its right link to drivers http://www.alsa-project.org/snapshot/ ??
>> And there is easier way to apply patches than manually adding strings
>> to files?
>>
>
> I manage with installing. I use alsa-driver-snapshot.tar.gz
> http://ftp.kernel.org/pub/linux/kernel/people/tiwai/alsa/alsa-driver/
> and this Amilo changes
> http://mailman.alsa-project.org/pipermail/alsa-devel/2009-June/018815.html
> .  But this patch has smaller functionality against i have. There is
> advantages and disadvantages of both patches:
>
> My patch:
> + 1) when black jack plugged, internal speakers and subwoofer mute
> + 2) there is 3 maps for jacks: (black/pink/blue) 2ch: front/ext mic/
> (something i dont know, it should be line in), 4ch: front/ ext mic/
> side 6ch: front/ CLFE / side; (its changes in channel mode option in
> mixer)
> + 3) internal mic works
> + 4) there are separate boost mic channels for internal and external mics
> - 5) internal subwoofer controls with Center channel in mixer
> ? 6) i dont know how line in works (i will check it when reinstall to my patch)
> ? 7) i dont know how spdif works, because i have not any spdif speakers in house
>
> Amilo patch:
> - 1) when black jack pluged, only internal speaker mutes, subwoofer
> continue to work (it has no meaning when i listen to music in
> headphones)

I posted a new patch some time ago, can you try it?

> - 2) there is only 1 map for jacks: front/ext mic/ (something i dont
> know, it should be line in)

My laptop, Aspire 6930, has a black jack (headphones), a pink one
(external mic) and a light blue one (line in). What's the difference
with your laptop?

> - 3) there no side and center channels

Subwoofer is LFE, the other speaker is Front. Is any other speaker missing?

> - 3) internal mic dont work

It works here, did you choose "Int mic" and raised the volume to max?

> - 4) there no line in in input source menu in mixer
> + 5) Subwoofer controls with LFE channel in mixer
> ? 7) i dont know how spdif works, because i have not any spdif speakers in house

Same here, unfortunately.

BTW, I'm Emilio, with "E" hehe

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

* Re: Acer Aspire 7730G support
  2009-06-24 20:39       ` Emilio López
@ 2009-06-24 21:36         ` Denis Kup
  2009-08-24 13:10           ` Denis Kup
  0 siblings, 1 reply; 15+ messages in thread
From: Denis Kup @ 2009-06-24 21:36 UTC (permalink / raw)
  To: Emilio López; +Cc: alsa-devel

2009/6/25 Emilio López <buhitoescolar@gmail.com>
>
> I posted a new patch some time ago, can you try it?

Sorry but i have problems with drivers now, after trying your patch i
decided to reinstall drivers with my patch. I install by

su
./configure
make
make install

But after install alsamixer shows that chip of standart device is
NVIDIA mcp78 hdmi (it's is HDMI output). And there is no ALC888
device. I don't know what to do. Any ideas? (please dont send them to
maillist it's not about this theme)

> > - 2) there is only 1 map for jacks: front/ext mic/ (something i dont
> > know, it should be line in)
>
> My laptop, Aspire 6930, has a black jack (headphones), a pink one
> (external mic) and a light blue one (line in). What's the difference
> with your laptop?

In my laptop various functions can be assigned to jacks. For ex. blue
can be side(in 4 channel and 6 channel modes) or line in (in 2channel
mode). So there are 3 maps: for 2, 4, 6 channel modes. In 6 channel
mode i can connect laptop with 5.1 speakers for ex, in 4 ch i can use
quadro speakers and ext mic, in 2ch i can use headphones,ext mic and
line in.

> > - 3) there no side and center channels
>
>>Subwoofer is LFE, the other speaker is Front. Is any other speaker missing?

I think you understand me already (read my second answer)

> > - 3) internal mic dont work
>
> It works here, did you choose "Int mic" and raised the volume to max?
>

Yes, of course.
> > - 4) there no line in in input source menu in mixer
> > + 5) Subwoofer controls with LFE channel in mixer
> > ? 7) i dont know how spdif works, because i have not any spdif speakers in house
>
> Same here, unfortunately.
>
> BTW, I'm Emilio, with "E" hehe

Sorry, Emilio! ))

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

* Re: Acer Aspire 7730G support
  2009-06-24 21:36         ` Denis Kup
@ 2009-08-24 13:10           ` Denis Kup
  2009-08-24 13:30             ` Takashi Iwai
  0 siblings, 1 reply; 15+ messages in thread
From: Denis Kup @ 2009-08-24 13:10 UTC (permalink / raw)
  To: Emilio López, Takashi Iwai; +Cc: alsa-devel

Sorry, I was very busy last two months. We don't finish with this theme.
What about my patch?

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

* Re: Acer Aspire 7730G support
  2009-08-24 13:10           ` Denis Kup
@ 2009-08-24 13:30             ` Takashi Iwai
       [not found]               ` <376f0d430908240857k7c03a392x187fdbb9488757d3@mail.gmail.com>
  0 siblings, 1 reply; 15+ messages in thread
From: Takashi Iwai @ 2009-08-24 13:30 UTC (permalink / raw)
  To: Denis Kup; +Cc: alsa-devel, Emilio López

At Mon, 24 Aug 2009 17:10:10 +0400,
Denis Kup wrote:
> 
> Sorry, I was very busy last two months. We don't finish with this theme.
> What about my patch?

Please check with the latest sound GIT tree (or alsa-driver snapshot)
whether it still work and repost the patch.  There have been lots of
changes in HD-audio driver code, so an old patch might not work any
more.


thanks,

Takashi

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

* Re: Acer Aspire 7730G support
       [not found]               ` <376f0d430908240857k7c03a392x187fdbb9488757d3@mail.gmail.com>
@ 2009-08-24 17:23                 ` Denis Kup
  2009-08-25  5:43                 ` Takashi Iwai
  1 sibling, 0 replies; 15+ messages in thread
From: Denis Kup @ 2009-08-24 17:23 UTC (permalink / raw)
  To: Takashi Iwai, alsa-devel, Emilio López

2009/8/24 Takashi Iwai <tiwai@suse.de>
>
> At Mon, 24 Aug 2009 17:10:10 +0400,
> Denis Kup wrote:
> >
> > Sorry, I was very busy last two months. We don't finish with this theme.
> > What about my patch?
>
> Please check with the latest sound GIT tree (or alsa-driver snapshot)
> whether it still work and repost the patch.  There have been lots of
> changes in HD-audio driver code, so an old patch might not work any
> more.
>
>
> thanks,
>
> Takashi

I tested patch with alsa-driver-1.0.20.40.g13311.579.gcf341. All works
as it should.

It's diff between patched version( patch_realtek_new.c ) and unpatched:

dener@linux-wpg9:~/Documents/1> diff ./patch_realtek_new.c ./patch_realtek_old.c
223d222
<       ALC888_ACER_ASPIRE_7730G,
8341,8366d8339
< static struct hda_verb alc888_acer_aspire_7730G_verbs[] = {
<       {0x15, AC_VERB_SET_CONNECT_SEL, 0x00},
<       {0x17, AC_VERB_SET_CONNECT_SEL, 0x02},
<       {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN},
<       { } /* end */
< };
<
< static void alc888_acer_aspire_7730G_front_automute(struct hda_codec *codec)
< {
<       unsigned int present;
<
<       present = snd_hda_codec_read(codec, 0x15, 0,
<                                    AC_VERB_GET_PIN_SENSE, 0) &
0x80000000;
<       snd_hda_codec_amp_stereo(codec, 0x14, HDA_OUTPUT, 0,
<                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
: 0);
<       snd_hda_codec_amp_stereo(codec, 0x17, HDA_OUTPUT, 0,
<                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE : 0);
< }
<
< static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec *codec,
<                                          unsigned int res)
< {
<       if ((res >> 26) == ALC880_HP_EVENT)
<               alc888_acer_aspire_7730G_front_automute(codec);
< }
<
8558d8530
<       [ALC888_ACER_ASPIRE_7730G]      = "acer-aspire-7730g",
8605d8576
<       SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G",
ALC888_ACER_ASPIRE_7730G),
9094,9107d9064
<       },
<       [ALC888_ACER_ASPIRE_7730G] = {
<               .mixers = { alc883_3ST_6ch_mixer, alc883_chmode_mixer },
<               .init_verbs = { alc883_init_verbs,
alc888_acer_aspire_7730G_verbs },
<               .num_dacs = ARRAY_SIZE(alc883_dac_nids),
<               .dac_nids = alc883_dac_nids,
<               .dig_out_nid = ALC883_DIGOUT_NID,
<               .dig_in_nid = ALC883_DIGIN_NID,
<               .num_channel_mode = ARRAY_SIZE(alc883_3ST_6ch_modes),
<               .channel_mode = alc883_3ST_6ch_modes,
<               .need_dac_fix = 1,
<               .input_mux = &alc883_capture_source,
<               .unsol_event = alc888_acer_aspire_7730G_unsol_event,
<               .init_hook = alc888_acer_aspire_7730G_front_automute,

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

* Re: Acer Aspire 7730G support
       [not found]               ` <376f0d430908240857k7c03a392x187fdbb9488757d3@mail.gmail.com>
  2009-08-24 17:23                 ` Denis Kup
@ 2009-08-25  5:43                 ` Takashi Iwai
  2009-08-25 12:01                   ` Denis Kup
  1 sibling, 1 reply; 15+ messages in thread
From: Takashi Iwai @ 2009-08-25  5:43 UTC (permalink / raw)
  To: Denis Kup; +Cc: alsa-devel, Emilio López

At Mon, 24 Aug 2009 19:57:58 +0400,
Denis Kup wrote:
> 
> 2009/8/24 Takashi Iwai <tiwai@suse.de>
> 
> > At Mon, 24 Aug 2009 17:10:10 +0400,
> > Denis Kup wrote:
> > >
> > > Sorry, I was very busy last two months. We don't finish with this theme.
> > > What about my patch?
> >
> > Please check with the latest sound GIT tree (or alsa-driver snapshot)
> > whether it still work and repost the patch.  There have been lots of
> > changes in HD-audio driver code, so an old patch might not work any
> > more.
> >
> >
> > thanks,
> >
> > Takashi
> 
> 
> I tested patch with alsa-driver-1.0.20.40.g13311.579.gcf341. All works as it
> should.

Try rather with the snapshot tarball in
  ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
The version you tried isn't the latest one.

> It's diff between patched version( patch_realtek_new.c ) and unpatched:

Make a patch with diff -u option (and better with -p, too).



thanks,

Takashi

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

* Re: Acer Aspire 7730G support
  2009-08-25  5:43                 ` Takashi Iwai
@ 2009-08-25 12:01                   ` Denis Kup
  2009-08-25 12:10                     ` Simos Xenitellis
  2009-08-25 12:23                     ` Takashi Iwai
  0 siblings, 2 replies; 15+ messages in thread
From: Denis Kup @ 2009-08-25 12:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Emilio López

2009/8/25 Takashi Iwai <tiwai@suse.de>:
> At Mon, 24 Aug 2009 19:57:58 +0400,
> Denis Kup wrote:
>>
>> 2009/8/24 Takashi Iwai <tiwai@suse.de>
>>
>> > At Mon, 24 Aug 2009 17:10:10 +0400,
>> > Denis Kup wrote:
>> > >
>> > > Sorry, I was very busy last two months. We don't finish with this theme.
>> > > What about my patch?
>> >
>> > Please check with the latest sound GIT tree (or alsa-driver snapshot)
>> > whether it still work and repost the patch.  There have been lots of
>> > changes in HD-audio driver code, so an old patch might not work any
>> > more.
>> >
>> >
>> > thanks,
>> >
>> > Takashi
>>
>>
>> I tested patch with alsa-driver-1.0.20.40.g13311.579.gcf341. All works as it
>> should.
>
> Try rather with the snapshot tarball in
>  ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
> The version you tried isn't the latest one.
>
>> It's diff between patched version( patch_realtek_new.c ) and unpatched:
>
> Make a patch with diff -u option (and better with -p, too).
>
>
>
> thanks,
>
> Takashi
>

I tested with new one. All is OK, but i found strange thing that was
before(with older versions). If i make boost level for front mic very
high, speakers starts
whistle ( I think you understand me). Is it normal, or not?

And diff:

dener@linux-wpg9:~/Documents/1> diff ./patch_realtek_new.c
./patch_realtek_old.c -u -p
--- ./patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400
+++ ./patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400
@@ -220,7 +220,6 @@ enum {
        ALC888_ACER_ASPIRE_4930G,
        ALC888_ACER_ASPIRE_6530G,
        ALC888_ACER_ASPIRE_8930G,
-       ALC888_ACER_ASPIRE_7730G,
        ALC883_MEDION,
        ALC883_MEDION_MD2,
        ALC883_LAPTOP_EAPD,
@@ -8473,32 +8472,6 @@ static struct hda_verb alc883_acer_eapd_
        { }
 };

-static struct hda_verb alc888_acer_aspire_7730G_verbs[] = {
-       {0x15, AC_VERB_SET_CONNECT_SEL, 0x00},
-       {0x17, AC_VERB_SET_CONNECT_SEL, 0x02},
-       {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT |
AC_USRSP_EN},
-       { } /* end */
-};
-
-static void alc888_acer_aspire_7730G_front_automute(struct hda_codec
*codec)
-{
-       unsigned int present;
-
-       present = snd_hda_codec_read(codec, 0x15, 0,
-                                    AC_VERB_GET_PIN_SENSE, 0) &
0x80000000;
-       snd_hda_codec_amp_stereo(codec, 0x14, HDA_OUTPUT, 0,
-                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
: 0);
-       snd_hda_codec_amp_stereo(codec, 0x17, HDA_OUTPUT, 0,
-                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
: 0);
-}
-
-static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec
*codec,
-                                          unsigned int res)
-{
-       if ((res >> 26) == ALC880_HP_EVENT)
-               alc888_acer_aspire_7730G_front_automute(codec);
-}
-
 static void alc888_6st_dell_setup(struct hda_codec *codec)
 {
        struct alc_spec *spec = codec->spec;
@@ -8660,7 +8633,6 @@ static const char *alc882_models[ALC882_
        [ALC888_ACER_ASPIRE_4930G]      = "acer-aspire-4930g",
        [ALC888_ACER_ASPIRE_6530G]      = "acer-aspire-6530g",
        [ALC888_ACER_ASPIRE_8930G]      = "acer-aspire-8930g",
-       [ALC888_ACER_ASPIRE_7730G]      = "acer-aspire-7730g",
        [ALC883_MEDION]         = "medion",
        [ALC883_MEDION_MD2]     = "medion-md2",
        [ALC883_LAPTOP_EAPD]    = "laptop-eapd",
@@ -8707,7 +8679,6 @@ static struct snd_pci_quirk alc882_cfg_t
                ALC888_ACER_ASPIRE_6530G),
        SND_PCI_QUIRK(0x1025, 0x0166, "Acer Aspire 6530G",
                ALC888_ACER_ASPIRE_6530G),
-       SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G",
ALC888_ACER_ASPIRE_7730G),
        /* default Acer -- disabled as it causes more problems.
         *    model=auto should work fine now
         */
@@ -9209,20 +9180,6 @@ static struct alc_config_preset alc882_p
                .setup = alc889_acer_aspire_8930g_setup,
                .init_hook = alc_automute_amp,
        },
-       [ALC888_ACER_ASPIRE_7730G] = {
-               .mixers = { alc883_3ST_6ch_mixer, alc883_chmode_mixer },
-               .init_verbs = { alc883_init_verbs,
alc888_acer_aspire_7730G_verbs },
-               .num_dacs = ARRAY_SIZE(alc883_dac_nids),
-               .dac_nids = alc883_dac_nids,
-               .dig_out_nid = ALC883_DIGOUT_NID,
-               .dig_in_nid = ALC883_DIGIN_NID,
-               .num_channel_mode = ARRAY_SIZE(alc883_3ST_6ch_modes),
-               .channel_mode = alc883_3ST_6ch_modes,
-               .need_dac_fix = 1,
-               .input_mux = &alc883_capture_source,
-               .unsol_event = alc888_acer_aspire_7730G_unsol_event,
/* DENER CHANGE AUTOMUTE DECLARATION*/
-               .init_hook = alc888_acer_aspire_7730G_front_automute,
-       },
        [ALC883_MEDION] = {
                .mixers = { alc883_fivestack_mixer,
                            alc883_chmode_mixer },

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

* Re: Acer Aspire 7730G support
  2009-08-25 12:01                   ` Denis Kup
@ 2009-08-25 12:10                     ` Simos Xenitellis
  2009-08-25 12:23                     ` Takashi Iwai
  1 sibling, 0 replies; 15+ messages in thread
From: Simos Xenitellis @ 2009-08-25 12:10 UTC (permalink / raw)
  To: Denis Kup; +Cc: Takashi Iwai, alsa-devel, Emilio López

On Tue, Aug 25, 2009 at 1:01 PM, Denis Kup<dener.kup@gmail.com> wrote:
> 2009/8/25 Takashi Iwai <tiwai@suse.de>:
>> At Mon, 24 Aug 2009 19:57:58 +0400,
>> Denis Kup wrote:
>>>
>>> 2009/8/24 Takashi Iwai <tiwai@suse.de>
>>>
>>> > At Mon, 24 Aug 2009 17:10:10 +0400,
>>> > Denis Kup wrote:
>>> > >
>>> > > Sorry, I was very busy last two months. We don't finish with this theme.
>>> > > What about my patch?
>>> >
>>> > Please check with the latest sound GIT tree (or alsa-driver snapshot)
>>> > whether it still work and repost the patch.  There have been lots of
>>> > changes in HD-audio driver code, so an old patch might not work any
>>> > more.
>>> >
>>> >
>>> > thanks,
>>> >
>>> > Takashi
>>>
>>>
>>> I tested patch with alsa-driver-1.0.20.40.g13311.579.gcf341. All works as it
>>> should.
>>
>> Try rather with the snapshot tarball in
>>  ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
>> The version you tried isn't the latest one.
>>
>>> It's diff between patched version( patch_realtek_new.c ) and unpatched:
>>
>> Make a patch with diff -u option (and better with -p, too).
>>
>>
>>
>> thanks,
>>
>> Takashi
>>
>
> I tested with new one. All is OK, but i found strange thing that was
> before(with older versions). If i make boost level for front mic very
> high, speakers starts
> whistle ( I think you understand me). Is it normal, or not?

Is it “whistle” or is it a background noise? That is, the microphone
is too sensitive and picks up too much of the background noise.

We would say 'whistle' if the speakers play at the same time what is
recorded by the microphone, so it gets in a loop and you hear the
annoying high pitch noise.

simos

>
> And diff:
>
> dener@linux-wpg9:~/Documents/1> diff ./patch_realtek_new.c
> ./patch_realtek_old.c -u -p
> --- ./patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400
> +++ ./patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400
> @@ -220,7 +220,6 @@ enum {
>        ALC888_ACER_ASPIRE_4930G,
>        ALC888_ACER_ASPIRE_6530G,
>        ALC888_ACER_ASPIRE_8930G,
> -       ALC888_ACER_ASPIRE_7730G,
>        ALC883_MEDION,
>        ALC883_MEDION_MD2,
>        ALC883_LAPTOP_EAPD,
> @@ -8473,32 +8472,6 @@ static struct hda_verb alc883_acer_eapd_
>        { }
>  };
>
> -static struct hda_verb alc888_acer_aspire_7730G_verbs[] = {
> -       {0x15, AC_VERB_SET_CONNECT_SEL, 0x00},
> -       {0x17, AC_VERB_SET_CONNECT_SEL, 0x02},
> -       {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT |
> AC_USRSP_EN},
> -       { } /* end */
> -};
> -
> -static void alc888_acer_aspire_7730G_front_automute(struct hda_codec
> *codec)
> -{
> -       unsigned int present;
> -
> -       present = snd_hda_codec_read(codec, 0x15, 0,
> -                                    AC_VERB_GET_PIN_SENSE, 0) &
> 0x80000000;
> -       snd_hda_codec_amp_stereo(codec, 0x14, HDA_OUTPUT, 0,
> -                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
> : 0);
> -       snd_hda_codec_amp_stereo(codec, 0x17, HDA_OUTPUT, 0,
> -                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
> : 0);
> -}
> -
> -static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec
> *codec,
> -                                          unsigned int res)
> -{
> -       if ((res >> 26) == ALC880_HP_EVENT)
> -               alc888_acer_aspire_7730G_front_automute(codec);
> -}
> -
>  static void alc888_6st_dell_setup(struct hda_codec *codec)
>  {
>        struct alc_spec *spec = codec->spec;
> @@ -8660,7 +8633,6 @@ static const char *alc882_models[ALC882_
>        [ALC888_ACER_ASPIRE_4930G]      = "acer-aspire-4930g",
>        [ALC888_ACER_ASPIRE_6530G]      = "acer-aspire-6530g",
>        [ALC888_ACER_ASPIRE_8930G]      = "acer-aspire-8930g",
> -       [ALC888_ACER_ASPIRE_7730G]      = "acer-aspire-7730g",
>        [ALC883_MEDION]         = "medion",
>        [ALC883_MEDION_MD2]     = "medion-md2",
>        [ALC883_LAPTOP_EAPD]    = "laptop-eapd",
> @@ -8707,7 +8679,6 @@ static struct snd_pci_quirk alc882_cfg_t
>                ALC888_ACER_ASPIRE_6530G),
>        SND_PCI_QUIRK(0x1025, 0x0166, "Acer Aspire 6530G",
>                ALC888_ACER_ASPIRE_6530G),
> -       SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G",
> ALC888_ACER_ASPIRE_7730G),
>        /* default Acer -- disabled as it causes more problems.
>         *    model=auto should work fine now
>         */
> @@ -9209,20 +9180,6 @@ static struct alc_config_preset alc882_p
>                .setup = alc889_acer_aspire_8930g_setup,
>                .init_hook = alc_automute_amp,
>        },
> -       [ALC888_ACER_ASPIRE_7730G] = {
> -               .mixers = { alc883_3ST_6ch_mixer, alc883_chmode_mixer },
> -               .init_verbs = { alc883_init_verbs,
> alc888_acer_aspire_7730G_verbs },
> -               .num_dacs = ARRAY_SIZE(alc883_dac_nids),
> -               .dac_nids = alc883_dac_nids,
> -               .dig_out_nid = ALC883_DIGOUT_NID,
> -               .dig_in_nid = ALC883_DIGIN_NID,
> -               .num_channel_mode = ARRAY_SIZE(alc883_3ST_6ch_modes),
> -               .channel_mode = alc883_3ST_6ch_modes,
> -               .need_dac_fix = 1,
> -               .input_mux = &alc883_capture_source,
> -               .unsol_event = alc888_acer_aspire_7730G_unsol_event,
> /* DENER CHANGE AUTOMUTE DECLARATION*/
> -               .init_hook = alc888_acer_aspire_7730G_front_automute,
> -       },
>        [ALC883_MEDION] = {
>                .mixers = { alc883_fivestack_mixer,
>                            alc883_chmode_mixer },
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: Acer Aspire 7730G support
  2009-08-25 12:01                   ` Denis Kup
  2009-08-25 12:10                     ` Simos Xenitellis
@ 2009-08-25 12:23                     ` Takashi Iwai
  2009-08-25 16:11                       ` Denis Kup
  1 sibling, 1 reply; 15+ messages in thread
From: Takashi Iwai @ 2009-08-25 12:23 UTC (permalink / raw)
  To: Denis Kup; +Cc: alsa-devel, Emilio López

At Tue, 25 Aug 2009 16:01:15 +0400,
Denis Kup wrote:
> 
> 2009/8/25 Takashi Iwai <tiwai@suse.de>:
> > At Mon, 24 Aug 2009 19:57:58 +0400,
> > Denis Kup wrote:
> >>
> >> 2009/8/24 Takashi Iwai <tiwai@suse.de>
> >>
> >> > At Mon, 24 Aug 2009 17:10:10 +0400,
> >> > Denis Kup wrote:
> >> > >
> >> > > Sorry, I was very busy last two months. We don't finish with this theme.
> >> > > What about my patch?
> >> >
> >> > Please check with the latest sound GIT tree (or alsa-driver snapshot)
> >> > whether it still work and repost the patch.  There have been lots of
> >> > changes in HD-audio driver code, so an old patch might not work any
> >> > more.
> >> >
> >> >
> >> > thanks,
> >> >
> >> > Takashi
> >>
> >>
> >> I tested patch with alsa-driver-1.0.20.40.g13311.579.gcf341. All works as it
> >> should.
> >
> > Try rather with the snapshot tarball in
> >  ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
> > The version you tried isn't the latest one.
> >
> >> It's diff between patched version( patch_realtek_new.c ) and unpatched:
> >
> > Make a patch with diff -u option (and better with -p, too).
> >
> >
> >
> > thanks,
> >
> > Takashi
> >
> 
> I tested with new one. All is OK, but i found strange thing that was
> before(with older versions). If i make boost level for front mic very
> high, speakers starts
> whistle ( I think you understand me). Is it normal, or not?

As Simos already mentioned, it's likely a loopback from the built-in
mic via the analog mixer.  Check the mixer status whether "Mic
Playback Volume" or "Front Mic Playback Volume" is unmuted /
adjusted.  They should be muted unless you really need the analog
loopback.


> And diff:

It's a wrong direction, i.e. to remove your change.  Make for a
different direction.

Also, your MUA breaks the embedded patch, converting tabs into spaces,
fold lines, etc.  Either fix your MUA setting or use attachments if
it's hard to fix.

A bit more comments below:

> dener@linux-wpg9:~/Documents/1> diff ./patch_realtek_new.c
> ./patch_realtek_old.c -u -p
> --- ./patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400
> +++ ./patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400
> @@ -220,7 +220,6 @@ enum {
>         ALC888_ACER_ASPIRE_4930G,
>         ALC888_ACER_ASPIRE_6530G,
>         ALC888_ACER_ASPIRE_8930G,
> -       ALC888_ACER_ASPIRE_7730G,
>         ALC883_MEDION,
>         ALC883_MEDION_MD2,
>         ALC883_LAPTOP_EAPD,
> @@ -8473,32 +8472,6 @@ static struct hda_verb alc883_acer_eapd_
>         { }
>  };
> 
> -static struct hda_verb alc888_acer_aspire_7730G_verbs[] = {
> -       {0x15, AC_VERB_SET_CONNECT_SEL, 0x00},
> -       {0x17, AC_VERB_SET_CONNECT_SEL, 0x02},
> -       {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT |
> AC_USRSP_EN},
> -       { } /* end */
> -};
> -
> -static void alc888_acer_aspire_7730G_front_automute(struct hda_codec
> *codec)
> -{
> -       unsigned int present;
> -
> -       present = snd_hda_codec_read(codec, 0x15, 0,
> -                                    AC_VERB_GET_PIN_SENSE, 0) &
> 0x80000000;
> -       snd_hda_codec_amp_stereo(codec, 0x14, HDA_OUTPUT, 0,
> -                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
> : 0);
> -       snd_hda_codec_amp_stereo(codec, 0x17, HDA_OUTPUT, 0,
> -                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
> : 0);
> -}

Recently, we use the common automute function instead of the
own one as much as possible.  Set up the pins in setup callback,
instead.  See other acer-aspire models as examples.

> -static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec
> *codec,
> -                                          unsigned int res)
> -{
> -       if ((res >> 26) == ALC880_HP_EVENT)
> -               alc888_acer_aspire_7730G_front_automute(codec);
> -}

This is no longer needed with the common automute.


Could you fix and repost?  Don't forget to add a changelog and your
sign-off line together with the patch.  The page below is a guidance
for creating a kernel patch:
	http://userweb.kernel.org/~akpm/stuff/tpp.txt


thanks,

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

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

* Re: Acer Aspire 7730G support
  2009-08-25 12:23                     ` Takashi Iwai
@ 2009-08-25 16:11                       ` Denis Kup
  2009-08-25 16:28                         ` Takashi Iwai
  0 siblings, 1 reply; 15+ messages in thread
From: Denis Kup @ 2009-08-25 16:11 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Emilio López

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

Patch for ALSA driver.
Adds full audio support on Acer Aspire 7730G notebook.

Change log:

1) Added support of internal subwoofer (it sounds!!!)
2) Auto muting front speakers and internal subwoofer on headphones plug.
3) Internal mic works.
4) 3 channel mods (jack maps):
       black  pink         blue
2ch: front   ext mic     line in
4ch: front   ext mic     surround
6ch: front   CLFE        surround
  Can be changed in mixer.
5) Sound can be recorded from:
 Internal mic
 Ext mic
 Cd
 Line in
6) 2 separate capture channels.

Denis Kuplyakov <dener.kup@gmail.com>
25.08.09 16:06:36

[-- Attachment #2: patch_acer_7730G_alsa_support.txt --]
[-- Type: text/plain, Size: 2548 bytes --]

--- ./alsa-driver/alsa-kernel/pci/hda/patch_realtek.c	2009-08-25 10:53:13.000000000 +0400
+++ ./alsa-driver-patched/alsa-kernel/pci/hda/patch_realtek.c	2009-08-25 18:30:48.000000000 +0400
@@ -220,6 +220,7 @@ enum {
 	ALC888_ACER_ASPIRE_4930G,
 	ALC888_ACER_ASPIRE_6530G,
 	ALC888_ACER_ASPIRE_8930G,
+	ALC888_ACER_ASPIRE_7730G,
 	ALC883_MEDION,
 	ALC883_MEDION_MD2,
 	ALC883_LAPTOP_EAPD,
@@ -8472,6 +8473,13 @@ static struct hda_verb alc883_acer_eapd_
 	{ }
 };
 
+static struct hda_verb alc888_acer_aspire_7730G_verbs[] = {
+	{0x15, AC_VERB_SET_CONNECT_SEL, 0x00},
+	{0x17, AC_VERB_SET_CONNECT_SEL, 0x02},
+	{0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN},
+	{ } /* end */
+};
+
 static void alc888_6st_dell_setup(struct hda_codec *codec)
 {
 	struct alc_spec *spec = codec->spec;
@@ -8633,6 +8641,7 @@ static const char *alc882_models[ALC882_
 	[ALC888_ACER_ASPIRE_4930G]	= "acer-aspire-4930g",
 	[ALC888_ACER_ASPIRE_6530G]	= "acer-aspire-6530g",
 	[ALC888_ACER_ASPIRE_8930G]	= "acer-aspire-8930g",
+	[ALC888_ACER_ASPIRE_7730G]	= "acer-aspire-7730g",
 	[ALC883_MEDION]		= "medion",
 	[ALC883_MEDION_MD2]	= "medion-md2",
 	[ALC883_LAPTOP_EAPD]	= "laptop-eapd",
@@ -8679,6 +8688,8 @@ static struct snd_pci_quirk alc882_cfg_t
 		ALC888_ACER_ASPIRE_6530G),
 	SND_PCI_QUIRK(0x1025, 0x0166, "Acer Aspire 6530G",
 		ALC888_ACER_ASPIRE_6530G),
+	SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G",
+		ALC888_ACER_ASPIRE_7730G),
 	/* default Acer -- disabled as it causes more problems.
 	 *    model=auto should work fine now
 	 */
@@ -9180,6 +9191,26 @@ static struct alc_config_preset alc882_p
 		.setup = alc889_acer_aspire_8930g_setup,
 		.init_hook = alc_automute_amp,
 	},
+	[ALC888_ACER_ASPIRE_7730G] = {
+		.mixers = { alc883_3ST_6ch_mixer,
+				alc883_chmode_mixer },
+		.init_verbs = { alc883_init_verbs, alc880_gpio1_init_verbs,
+				alc888_acer_aspire_7730G_verbs },
+		.num_dacs = ARRAY_SIZE(alc883_dac_nids),
+		.dac_nids = alc883_dac_nids,
+		.num_adc_nids = ARRAY_SIZE(alc883_adc_nids_rev),
+		.adc_nids = alc883_adc_nids_rev,
+		.capsrc_nids = alc883_capsrc_nids_rev,
+		.dig_out_nid = ALC883_DIGOUT_NID,
+		.num_channel_mode = ARRAY_SIZE(alc883_3ST_6ch_modes),
+		.channel_mode = alc883_3ST_6ch_modes,
+		.need_dac_fix = 1,
+		.const_channel_count = 6,
+		.input_mux = &alc883_capture_source,
+		.unsol_event = alc_automute_amp_unsol_event,
+		.setup = alc888_acer_aspire_6530g_setup,
+		.init_hook = alc_automute_amp,
+	},
 	[ALC883_MEDION] = {
 		.mixers = { alc883_fivestack_mixer,
 			    alc883_chmode_mixer },

[-- Attachment #3: 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] 15+ messages in thread

* Re: Acer Aspire 7730G support
  2009-08-25 16:11                       ` Denis Kup
@ 2009-08-25 16:28                         ` Takashi Iwai
       [not found]                           ` <376f0d430908251005w4fbfc81ax465dfe22759c08ad@mail.gmail.com>
  0 siblings, 1 reply; 15+ messages in thread
From: Takashi Iwai @ 2009-08-25 16:28 UTC (permalink / raw)
  To: Denis Kup; +Cc: alsa-devel, Emilio López

At Tue, 25 Aug 2009 20:11:32 +0400,
Denis Kup wrote:
> 
> Patch for ALSA driver.
> Adds full audio support on Acer Aspire 7730G notebook.
> 
> Change log:
> 
> 1) Added support of internal subwoofer (it sounds!!!)
> 2) Auto muting front speakers and internal subwoofer on headphones plug.
> 3) Internal mic works.
> 4) 3 channel mods (jack maps):
>        black  pink         blue
> 2ch: front   ext mic     line in
> 4ch: front   ext mic     surround
> 6ch: front   CLFE        surround
>   Can be changed in mixer.
> 5) Sound can be recorded from:
>  Internal mic
>  Ext mic
>  Cd
>  Line in
> 6) 2 separate capture channels.
> 
> Denis Kuplyakov <dener.kup@gmail.com>

Applied now.  Thanks.

BTW, did you check, as I suggested, whether acer-aspire-6530g with
changing the channel mode from 2ch to 6ch works for 7730g?
I guess we can merge acer-aspire-* variants to one or two models.


Takashi

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

* Re: Acer Aspire 7730G support
       [not found]                           ` <376f0d430908251005w4fbfc81ax465dfe22759c08ad@mail.gmail.com>
@ 2009-08-25 17:12                             ` Denis Kup
  0 siblings, 0 replies; 15+ messages in thread
From: Denis Kup @ 2009-08-25 17:12 UTC (permalink / raw)
  To: alsa-devel

2009/8/25 Takashi Iwai <tiwai@suse.de>


> BTW, did you check, as I suggested, whether acer-aspire-6530g with
> changing the channel mode from 2ch to 6ch works for 7730g?
> I guess we can merge acer-aspire-* variants to one or two models.
>

Can you describe in details what I need to do, please?

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

end of thread, other threads:[~2009-08-25 17:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24 12:09 Acer Aspire 7730G support Denis Kup
2009-06-24 12:36 ` Takashi Iwai
     [not found]   ` <376f0d430906240941k699e494cr325f1c091a609f19@mail.gmail.com>
2009-06-24 17:52     ` Denis Kup
2009-06-24 20:39       ` Emilio López
2009-06-24 21:36         ` Denis Kup
2009-08-24 13:10           ` Denis Kup
2009-08-24 13:30             ` Takashi Iwai
     [not found]               ` <376f0d430908240857k7c03a392x187fdbb9488757d3@mail.gmail.com>
2009-08-24 17:23                 ` Denis Kup
2009-08-25  5:43                 ` Takashi Iwai
2009-08-25 12:01                   ` Denis Kup
2009-08-25 12:10                     ` Simos Xenitellis
2009-08-25 12:23                     ` Takashi Iwai
2009-08-25 16:11                       ` Denis Kup
2009-08-25 16:28                         ` Takashi Iwai
     [not found]                           ` <376f0d430908251005w4fbfc81ax465dfe22759c08ad@mail.gmail.com>
2009-08-25 17:12                             ` Denis Kup

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.