[alsa-devel] Smart 5.1 function not working on VIA VT1708S with *three* jacks on mainboard
Hello, for quite some time the "Smart 5.1" function in alsa is not working properly when motherboard has only 3 audio jacks.
Me and Raymond on alsa-bugtracker have been trying to solve the issue for a long time but were unsuccessful.
Please take a look at this alsa bug ticket: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4895
It contains A LOT of info on the problem + steps that we tried, which included patching the code.
Synthom : NO "Surround" , "Center" and "LFE" Control and switch with VT1708S on a motherboard with 3 audio jacks Also NO surround sound.
speaker-test -c 4 -t wav -Dsurround40
Channels count (4) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
Please advise if you can.
Thank you Best Regards Viliam Kubis
Please at least reply, or guide me through the process to fix this bug!
------- Forwarded message ------- From: "Viliam Kubis" viliam.kubis@gmail.com To: alsa-devel@alsa-project.org Cc: lydiawang@viatech.com.cn, loganli@viatech.com.cn, tiwai@suse.de Subject: Smart 5.1 function not working on VIA VT1708S with *three* jacks on mainboard Date: Thu, 01 Jul 2010 00:02:30 +0200
Hello, for quite some time the "Smart 5.1" function in alsa is not working properly when motherboard has only 3 audio jacks.
Me and Raymond on alsa-bugtracker have been trying to solve the issue for a long time but were unsuccessful.
Please take a look at this alsa bug ticket: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4895
It contains A LOT of info on the problem + steps that we tried, which included patching the code.
Synthom : NO "Surround" , "Center" and "LFE" Control and switch with VT1708S on a motherboard with 3 audio jacks Also NO surround sound.
speaker-test -c 4 -t wav -Dsurround40
Channels count (4) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument
Please advise if you can.
Thank you Best Regards Viliam Kubis
Viliam Kubis wrote:
Hello, for quite some time the "Smart 5.1" function in alsa is not working properly when motherboard has only 3 audio jacks.
speaker-test -c 4 -t wav -Dsurround40
Channels count (4) not available for playbacks: Invalid argument
Please try the patch below.
(This function uses 0x12 and 0x13 as the NIDs for the center/LFE and side DACs. Shouldn't these be 0x24 and 0x25, as per the datasheet?)
--- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -2265,6 +2265,13 @@ static int vt1708_auto_fill_dac_nids(str } }
+ /* for Smart 5.1, line/mic inputs double as output pins */ + if (cfg->line_outs == 1) { + spec->multiout.num_dacs = 3; + spec->multiout.dac_nids[AUTO_SEQ_SURROUND] = 0x11; + spec->multiout.dac_nids[AUTO_SEQ_CENLFE] = 0x12; + } + return 0; }
2010/7/8 Clemens Ladisch clemens@ladisch.de
Viliam Kubis wrote:
Hello, for quite some time the "Smart 5.1" function in alsa is not
working
properly when motherboard has only 3 audio jacks.
speaker-test -c 4 -t wav -Dsurround40
Channels count (4) not available for playbacks: Invalid argument
Please try the patch below.
(This function uses 0x12 and 0x13 as the NIDs for the center/LFE and side DACs. Shouldn't these be 0x24 and 0x25, as per the datasheet?)
Node 0x12 seem to be for digital out since it connected to node 0x20
I guess we still lack the info about the retasking of pink and blue jack to the surround output
Node 0x12 [Audio Output] wcaps 0x611: Stereo Digital Control: name="IEC958 Playback Con Mask", index=0, device=0 Control: name="IEC958 Playback Pro Mask", index=0, device=0 Control: name="IEC958 Playback Default", index=0, device=0 Control: name="IEC958 Playback Switch", index=0, device=0 Control: name="IEC958 Default PCM Playback Switch", index=0, device=0 Device: name="VT1708S Digital", type="SPDIF", device=1 Converter: stream=5, channel=0 Digital: Enabled Digital category: 0x0 PCM: rates [0x5e0]: 44100 48000 88200 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 Power: setting=D0, actual=D0
Node 0x20 [Pin Complex] wcaps 0x400701: Stereo Digital Pincap 0x00000010: OUT Pin Default 0x074311f0: [Jack] SPDIF Out at Ext Rear Panel Conn = ATAPI, Color = Black DefAssociation = 0xf, Sequence = 0x0 Misc = NO_PRESENCE Pin-ctls: 0x40: OUT Power states: D0 D1 D2 D3 Power: setting=D0, actual=D0 Connection: 1 0x12
participants (3)
-
Clemens Ladisch
-
Raymond Yau
-
Viliam Kubis