Skip to contentSkip to conversation

Acer Aspire 7730G support

DISCUSSION Denis Kup 4 participants 15 messages Jun 24, 2009 – Aug 25, 2009 3 messages not in the archive

lore
Share & tools
lore

Denis Kup

author
#0 lore raw

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:

Quoted 60 lines

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] = {
.................................

Quoted 8 lines
    [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:

Quoted 49 lines

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
    }
}
Quoted 13 lines
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:

Quoted 473 lines

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

Quoted 9 lines

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 :)

#1 lore raw

At Wed, 24 Jun 2009 16:09:58 +0400,

Quoted 10 lines · Denis Kup

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 <[email protected]>
Subject: Re: [alsa-devel] Regarding Sound on Acer Aspire 6935G
Date: Tue, 23 Jun 2009 22:32:45 -0300
Message-ID: <[email protected]>

Quoted 6 lines

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:

...

Quoted 1 line

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#3 lore raw

2009/6/24 Denis Kup <[email protected]>:

Quoted 37 lines

2009/6/24 Takashi Iwai <[email protected]>:

Quoted 36 lines

At Wed, 24 Jun 2009 16:09:58 +0400,

Quoted 10 lines · Denis Kup

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 <[email protected]>
 Subject: Re: [alsa-devel] Regarding Sound on Acer Aspire 6935G
 Date: Tue, 23 Jun 2009 22:32:45 -0300
 Message-ID: <[email protected]>

Quoted 6 lines

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:

...

Quoted 1 line

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,

Quoted 9 lines
Quoted 2 lines

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

#4 lore raw

2009/6/24 Denis Kup <[email protected]>:

Quoted 67 lines

2009/6/24 Denis Kup <[email protected]>:

Quoted 37 lines

2009/6/24 Takashi Iwai <[email protected]>:

Quoted 36 lines

At Wed, 24 Jun 2009 16:09:58 +0400,

Quoted 10 lines · Denis Kup

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 <[email protected]>
 Subject: Re: [alsa-devel] Regarding Sound on Acer Aspire 6935G
 Date: Tue, 23 Jun 2009 22:32:45 -0300
 Message-ID: <[email protected]>

Quoted 6 lines

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:

...

Quoted 1 line

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,

Quoted 9 lines
Quoted 2 lines

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

Quoted 4 lines

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?

Quoted 2 lines

- 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?

Quoted 1 line

- 3) there no side and center channels

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

Quoted 1 line

- 3) internal mic dont work

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

Quoted 3 lines

- 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

author
#5 lore raw

2009/6/25 Emilio López <[email protected]>

Quoted 2 lines

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)

Quoted 6 lines
Quoted 2 lines

- 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.

Quoted 3 lines
Quoted 3 lines

- 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)

Quoted 4 lines
Quoted 1 line

- 3) internal mic dont work

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

Yes, of course.

Quoted 7 lines
Quoted 3 lines

- 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! ))

author
#6 lore raw

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

#7 lore raw

At Mon, 24 Aug 2009 17:10:10 +0400,

Quoted 3 lines · Denis Kup

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#9 lore raw

2009/8/24 Takashi Iwai <[email protected]>

Quoted 13 lines

At Mon, 24 Aug 2009 17:10:10 +0400,

Quoted 3 lines · Denis Kup

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.

Quoted 3 lines

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,

#10 lore raw
In reply to a message not in the archive

At Mon, 24 Aug 2009 19:57:58 +0400,

Quoted 15 lines · Denis Kup

2009/8/24 Takashi Iwai <[email protected]>

Quoted 12 lines

At Mon, 24 Aug 2009 17:10:10 +0400,

Quoted 3 lines · Denis Kup

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.

Quoted 7 lines
Quoted 3 lines

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.

Quoted 1 line

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

author
#11 lore raw

2009/8/25 Takashi Iwai <[email protected]>:

Quoted 31 lines

At Mon, 24 Aug 2009 19:57:58 +0400,

Quoted 15 lines · Denis Kup

2009/8/24 Takashi Iwai <[email protected]>

Quoted 12 lines

At Mon, 24 Aug 2009 17:10:10 +0400,

Quoted 3 lines · Denis Kup

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.

Quoted 7 lines
Quoted 3 lines

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.

Quoted 1 line

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

Quoted 8 lines

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_old.c 2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c 2009-08-25 13:44:34.000000000 +0400 +0 -5
@@ -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 },
#12 lore raw
Quoted 38 lines · Denis Kup

2009/8/25 Takashi Iwai <[email protected]>:

Quoted 37 lines

At Mon, 24 Aug 2009 19:57:58 +0400,

Quoted 15 lines · Denis Kup

2009/8/24 Takashi Iwai <[email protected]>

Quoted 12 lines

At Mon, 24 Aug 2009 17:10:10 +0400,

Quoted 3 lines · Denis Kup

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.

Quoted 7 lines
Quoted 3 lines

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.

Quoted 1 line

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,

Quoted 7 lines
Quoted 2 lines

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

Quoted 92 lines

And diff:

dener@linux-wpg9:~/Documents/1> diff ./patch_realtek_new.c ./patch_realtek_old.c -u -p

patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400 +0 -16
@@ -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);

patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400 +0 -3
-}
-
-static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec

*codec,
-                                          unsigned int res)

patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400 +0 -5
-{
-       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;

patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400 +0 -2
@@ -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

        */

patch_realtek_old.c       2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c       2009-08-25 13:44:34.000000000 +0400 +0 -14
@@ -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] = {
Quoted 7 lines

               .mixers = { alc883_fivestack_mixer, alc883_chmode_mixer },
_______________________________________________
Alsa-devel mailing list [email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#13 lore raw
In reply to Denis Kup

At Tue, 25 Aug 2009 16:01:15 +0400,

Quoted 39 lines · Denis Kup

2009/8/25 Takashi Iwai <[email protected]>:

Quoted 37 lines

At Mon, 24 Aug 2009 19:57:58 +0400,

Quoted 15 lines · Denis Kup

2009/8/24 Takashi Iwai <[email protected]>

Quoted 12 lines

At Mon, 24 Aug 2009 17:10:10 +0400,

Quoted 3 lines · Denis Kup

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.

Quoted 7 lines
Quoted 3 lines

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.

Quoted 1 line

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,

Quoted 7 lines
Quoted 2 lines

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.

Quoted 1 line

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:

Quoted 37 lines

dener@linux-wpg9:~/Documents/1> diff ./patch_realtek_new.c ./patch_realtek_old.c -u -p

patch_realtek_old.c 2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c 2009-08-25 13:44:34.000000000 +0400 +0 -16
@@ -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);

patch_realtek_old.c 2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c 2009-08-25 13:44:34.000000000 +0400 +0 -2
-       snd_hda_codec_amp_stereo(codec, 0x17, HDA_OUTPUT, 0,
-                                HDA_AMP_MUTE, present ? HDA_AMP_MUTE
Quoted 2 lines

: 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.

patch_realtek_old.c 2009-08-25 10:53:13.000000000 +0400

Quoted 7 lines

-static void alc888_acer_aspire_7730G_unsol_event(struct hda_codec *codec,

patch_realtek_old.c 2009-08-25 10:53:13.000000000 +0400 renamed from patch_realtek_new.c 2009-08-25 13:44:34.000000000 +0400 +0 -5
-                                          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
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

author
#14 lore raw

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 <[email protected]>
25.08.09 16:06:36

alsa-driver-patched/alsa-kernel/pci/hda/patch_realtek.c renamed from alsa-driver/alsa-kernel/pci/hda/patch_realtek.c +31 -0
@@ -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 },

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#15 lore raw

At Tue, 25 Aug 2009 20:11:32 +0400,

Quoted 22 lines · Denis Kup

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.

Quoted 1 line

Denis Kuplyakov <[email protected]>

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#17 lore raw

2009/8/25 Takashi Iwai <[email protected]>

Quoted 4 lines

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?