Skip to contentSkip to conversation

ASUS V1Sn can have digout

DISCUSSION Applied asto 2 participants 3 messages Oct 10, 2008 – Nov 5, 2008 3 messages not in the archive

lore
Share & tools
lore

asto

author
#0 lore raw

Regarding this change:
http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=2522d7359301efadfb5744ebd3c623c3af4a7b30
(Added support for Asus V1Sn)

This card can have digital output, and indeed does in my situation.

The patch above added to patch_realtek.c:
SND_PCI_QUIRK(0x1043, 0x1633, "Asus V1Sn", ALC861VD_LENOVO)

However, ALC861VD_LENOVO definition has no digout

Is it possible to have digital out for this device configured in auto-probe rather than map to lenovo ?

For now, I add a definition for it based on the lenovo and 3stack-660-digout: to patch_realtek.c

       [ALC660VD_V1S] = {
               .mixers = { alc861vd_3st_mixer },
               .init_verbs = { alc861vd_volume_init_verbs,
                                alc861vd_3stack_init_verbs,
                                alc861vd_eapd_verbs,
                                alc861vd_lenovo_unsol_verbs },
               .num_dacs = ARRAY_SIZE(alc660vd_dac_nids),
               .dac_nids = alc660vd_dac_nids,
               .dig_out_nid = ALC861VD_DIGOUT_NID,
               .num_channel_mode = ARRAY_SIZE(alc861vd_3stack_2ch_modes),
               .channel_mode = alc861vd_3stack_2ch_modes,
               .input_mux = &alc861vd_capture_source,
               .unsol_event = alc861vd_lenovo_unsol_event,
               .init_hook = alc861vd_lenovo_automute,
       },
#1 lore raw

At Fri, 10 Oct 2008 17:20:34 +1030,

Quoted 7 lines · asto

Regarding this change:
http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=2522d7359301efadfb5744ebd3c623c3af4a7b30
(Added support for Asus V1Sn)

This card can have digital output, and indeed does in my situation.

Quoted 7 lines

The patch above added to patch_realtek.c:
SND_PCI_QUIRK(0x1043, 0x1633, "Asus V1Sn", ALC861VD_LENOVO)

However, ALC861VD_LENOVO definition has no digout

Is it possible to have digital out for this device configured in auto-probe rather than map to lenovo ?

Just remove the entry of SND_PCI_QUIRK() above, or set ALC861VD_AUTO instead of _LENOVO there.

Quoted 18 lines

For now, I add a definition for it based on the lenovo and 3stack-660-digout: to patch_realtek.c

       [ALC660VD_V1S] = {
               .mixers = { alc861vd_3st_mixer },
               .init_verbs = { alc861vd_volume_init_verbs,
                                alc861vd_3stack_init_verbs,
                                alc861vd_eapd_verbs,
                                alc861vd_lenovo_unsol_verbs },
               .num_dacs = ARRAY_SIZE(alc660vd_dac_nids),
               .dac_nids = alc660vd_dac_nids,
               .dig_out_nid = ALC861VD_DIGOUT_NID,
               .num_channel_mode = ARRAY_SIZE(alc861vd_3stack_2ch_modes),
               .channel_mode = alc861vd_3stack_2ch_modes,
               .input_mux = &alc861vd_capture_source,
               .unsol_event = alc861vd_lenovo_unsol_event,
               .init_hook = alc861vd_lenovo_automute,
       },

... or, create another model with these entries for ASUS V1Sn.

I don't care in which way you fix, but a patch would be appreciated :)

thanks,

Takashi

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

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

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

Applied
#5 lore raw

At Wed, 5 Nov 2008 15:44:03 +1030,

Quoted 7 lines · asto
Quoted 4 lines

Thanks. Could you give a summary line, a chnage log and your sign-off to merge to the upstream?
See $LINUX/Documentation/SubmittingPatches for details.

New version of patch attached.

Quoted 8 lines

ASUS V1S should have digital out

SUMMARY:
Asus V1s series laptops have an ALC660VD with PCI id: 0x1043, 0x1633. 1.) remove the previous behaviour of mapping that to the ALC861VD_LENOVO device. 2.) add a new ALC660VD_V1S device based on ALC861VD_LENOVO, with an added digital out.

Thanks, applied now with a slight modification (ALC660VD_V1s -> ALC660VD_ASUS_V1S).

BTW, your patch couldn't be applied as is because your MUA seems to break tabs. Please fix MUA setting, or use an attachment if it's difficult.

Takashi

Quoted 53 lines

--- alsa-driver/alsa-kernel/pci/hda/patch_realtek.c.orig

2008-11-05 15:26:41.000000000 +1030

+++ alsa-driver/alsa-kernel/pci/hda/patch_realtek.c 2008-11-05
15:26:58.000000000 +1030

(quoted diff) +18 -1
@@ -153,6 +153,7 @@ enum {
 enum {
        ALC660VD_3ST,
        ALC660VD_3ST_DIG,
+       ALC660VD_V1S,
        ALC861VD_3ST,
        ALC861VD_3ST_DIG,
        ALC861VD_6ST_DIG,
@@ -13843,6 +13844,7 @@ static void alc861vd_dallas_unsol_event(
 static const char *alc861vd_models[ALC861VD_MODEL_LAST] = {
        [ALC660VD_3ST]          = "3stack-660",
        [ALC660VD_3ST_DIG]      = "3stack-660-digout",
+       [ALC660VD_V1S]          = "v1s",
        [ALC861VD_3ST]          = "3stack",
        [ALC861VD_3ST_DIG]      = "3stack-digout",
        [ALC861VD_6ST_DIG]      = "6stack-digout",
@@ -13857,7 +13859,7 @@ static struct snd_pci_quirk alc861vd_cfg
        SND_PCI_QUIRK(0x103c, 0x30bf, "HP TX1000", ALC861VD_HP),
        SND_PCI_QUIRK(0x1043, 0x12e2, "Asus z35m", ALC660VD_3ST),
        SND_PCI_QUIRK(0x1043, 0x1339, "Asus G1", ALC660VD_3ST),
-       SND_PCI_QUIRK(0x1043, 0x1633, "Asus V1Sn", ALC861VD_LENOVO),
+       SND_PCI_QUIRK(0x1043, 0x1633, "Asus V1S", ALC660VD_V1S),
        SND_PCI_QUIRK(0x1043, 0x81e7, "ASUS", ALC660VD_3ST_DIG),
        SND_PCI_QUIRK(0x10de, 0x03f0, "Realtek ALC660 demo", ALC660VD_3ST),
        SND_PCI_QUIRK(0x1179, 0xff00, "Toshiba A135", ALC861VD_LENOVO),
@@ -13895,6 +13897,21 @@ static struct alc_config_preset alc861vd
                .channel_mode = alc861vd_3stack_2ch_modes,
                .input_mux = &alc861vd_capture_source,
        },
+       [ALC660VD_V1S] = {
+               .mixers = { alc861vd_lenovo_mixer },
+               .init_verbs = { alc861vd_volume_init_verbs,
+                               alc861vd_3stack_init_verbs,
+                               alc861vd_eapd_verbs,
+                               alc861vd_lenovo_unsol_verbs },
+               .num_dacs = ARRAY_SIZE(alc660vd_dac_nids),
+               .dac_nids = alc660vd_dac_nids,
+               .dig_out_nid = ALC861VD_DIGOUT_NID,
+               .num_channel_mode = ARRAY_SIZE(alc861vd_3stack_2ch_modes),
+               .channel_mode = alc861vd_3stack_2ch_modes,
+               .input_mux = &alc861vd_capture_source,
+               .unsol_event = alc861vd_lenovo_unsol_event,
+               .init_hook = alc861vd_lenovo_automute,
+       },
        [ALC861VD_3ST] = {
                .mixers = { alc861vd_3st_mixer },
                .init_verbs = { alc861vd_volume_init_verbs,