[VIA VT1708S] ALSA test tone NOT correctly played back for headphone but works fine for speakers

Bug #607482 reported by Elly on 2010-07-19
72
This bug affects 16 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Undecided
Unassigned

Bug Description

Hi

Speaker is fine but headphone jack isn't!!!!!

I have followed this guideline http://ubuntuforums.org/showthread.php?p=6589810#post6589810 and it's not made any difference.

I've tried numerous model types for the /etc/modprobe.d/alsa-base.conf which I used with sudo gedit command.

I've out of ideas of how to get around this bug.

I've tried with the Lucid Lynx 10.04 LTS Live CD and that was great - it was perfect for speakers AND for headphones!

I'm baffled why it works perfectly in Live CD and not in the Lucid Lynx I've installed.....is there a file that stops it from performing properly??

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: alsa-base 1.0.22.1+dfsg-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic x86_64
AlsaVersion:
 Advanced Linux Sound Architecture Driver Version 1.0.23.
 Compiled on Jul 19 2010 for kernel 2.6.32-23-generic (SMP).
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: elly 1983 F.... gnome-alsamixer
 /dev/snd/controlC0: elly 1552 F.... pulseaudio
                      elly 1983 F.... gnome-alsamixer
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe6f4000 irq 16'
   Mixer name : 'VIA VT1708S'
   Components : 'HDA:11060397,1043836c,00100000'
   Controls : 36
   Simple ctrls : 21
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xfe8e8000 irq 28'
   Mixer name : 'ATI RS690/780 HDMI'
   Components : 'HDA:1002791a,00791a00,00100000'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Mon Jul 19 22:50:13 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
PackageArchitecture: all
ProcEnviron:
 LC_TIME=en_GB.UTF-8
 LANG=en_GB.utf8
 SHELL=/bin/bash
SelectedCard: 0 SB HDA-Intel - HDA ATI SB
SourcePackage: alsa-driver
Symptom: audio
Title: [VIA VT1708S] ALSA test tone not correctly played back
dmi.bios.date: 09/04/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0807
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: M4A785TD-M EVO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0807:bd09/04/2009:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM4A785TD-MEVO:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Elly (elaineci37) wrote :
Ryan Wells (roamer) wrote :

I finally got it working on mine in 10.04, but I forgot how I did it. Then silly me upgraded to 10.10RC and it's broken again. Great. I'll try to get my fix implemented again and post back if I do.

Yuriy Tkachenko (yuriytk) wrote :

The same problem appeared in 10.10RC -- headphones disabled in alsamixer.
In 10.04 it worked without any trouble.

Yuriy Tkachenko (yuriytk) wrote :
Yuriy Tkachenko (yuriytk) wrote :

Headphones enabled when the system booted from Ubuntu 10.10 RC 64 bit live CD, but no sound presents, too.

fivetonsofflax (gibmirspam) wrote :

I use the VT1708S codec as well. The "Headphone" mixer in alsamixer is grayed-out for me, too. However, the headphones do work, sort of. Whenever I plug in my headphones, the "Front" mixer mutes and no sound is played through either the built-in speakers of my laptop or the headphones. When I unmute the mixer, both the speakers and the headphones play sound.

David Henningsson (diwic) wrote :

Would you folks mind testing the following:
1) Make sure you don't have upgraded your alsa drivers, if you have, please uninstall them first.
2) Download and install http://people.canonical.com/~diwic/temp/alsa-intel-hda-diwic-via-automute-dkms_1.0.23.diwic_all.deb
3) Reboot

Does this make a difference?

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Ryan Wells (roamer) wrote :

I tried to get it going using my old workaround, and it's not working. I'll give the new deb a shot, David.

Ryan Wells (roamer) wrote :

Seems to work. I checked alsamixer, and the headphones option is still "grayed out."

I adjusted the volume for the front speakers in alsamixer, and lost audio in both headphones and speakers. Although, after a second reboot, the headphones were working again. (Still grayed out in alsamixer though.) I can adjust volume from the sound menu, as well as within applications and in the notification area without losing audio. Other than that slight glitch when adjusting front speaker volume only, I haven't had any trouble from your patch.

Ryan Wells (roamer) wrote :

Here's the alsa-info from my system.

David Henningsson (diwic) wrote :

Hmm...I think the Headphone is grayed out unless "HP independent" is set. VIA definitely has its own way of setting up things compared to the other codeces... :-/

fivetonsofflax (gibmirspam) wrote :

David Henningsson: It's much better with the package you linked to. The system now correctly mutes the speakers and plays sound only through the headphones. The "Headphone" mixer in alsamixer is still grayed-out, though.
Another minor bug: When I manually mute the output with my headphones plugged in and then turn the volume back up, both the speakers and the headphones play audio. This can be fixed by re-plugging the headphones, so it isn't much of an issue.
By the way, I use Ubuntu 10.10 with Alsa 1.0.23.

Yuriy Tkachenko (yuriytk) wrote :

Nothing changed for me after installing alsa-intel-hda-diwic-via-automute-dkms_1.0.23.diwic_all.deb. Headphones still don't work and grayed out in alsamixer.

Yuriy Tkachenko (yuriytk) wrote :

In addition my old working configuration from Ubuntu 9.10 (32 bit)

David Henningsson (diwic) wrote :

Yuriy, thanks for the diff between working and non-working, that was most helpful. There were quite a few differences though, but I noticed one thing I'd like you to confirm:
1) Is your output otherwise working, i e you have working internal speakers?
2) When you issued your alsa-info in comment #15, was the headphones plugged in? If they weren't, would you mind posting a new one with the headphones plugged in? Thanks!

Yuriy Tkachenko (yuriytk) wrote :

David:
1) Yes, I have always working speakers (but not internal, it's a desktop :) ).
2) Yes, headphones were plugged in. However I think there is no difference -- it seems my motherboard (Asus M4N68T) doesn't mute speakers when headphones plugged in.

Yuriy Tkachenko (yuriytk) wrote :

David, also there was no sound from tv-tuner with your deb (line in stopped working?). Sound from tv-tuner appeared again after uninstalling your deb and rebooting.

David Henningsson (diwic) wrote :

Yuriy, looks like the jack detection of the pin is somehow broken, as in the "broken" version, the headphone pin is in powersave mode. It would be good to verify that this is not just your hardware that is broken, but the entire model.
With your headphones plugged in, can you please try download and install snd-hda-tools from my PPA, then issue the following command:
hda-verb /dev/snd/hwC0D0 0x1d SET_POWER_STATE 0
...and see if it helps? It should take effect immediately. After that, please post an alsa-info. Thanks!

foret (popfalushi) wrote :

David, tried your trick with snd-hda-tools. Headphones turned on, they are working perfectly, but in alsamixer they're still disabled. Moreover, i could not block speakers to isolate sound from them, so sound goes to them and to headphones simultaneously.
Here is additional info: headphones turn off if i touch any of the following options in alsamixer (they all listed in playback):
* front mic
* line
* CD (i don't have cd-rom)
* mic
* smart 5.1 - this option can only mute and unmute.
In this case, sound in headphones can be restored only with snd-hda-tools.
I'll attach my alsa info with working headphones just in case.
PS: in windows 7 headphones are working, but automatic detection in front jack is corrupted. There i turned off detection and switch default output device between speakers and headphones.

foret (popfalushi) wrote :

Oh, by the way, right now i accidentally discovered that headphones turn on even if i print: hda-verb /dev/snd/hwC0D0 0x1d SET_POWER_STATE 1 . So maybe it is not a power_state issue.

Yuriy Tkachenko (yuriytk) wrote :

David,
hda-verb /dev/snd/hwC0D0 0x1d SET_POWER_STATE 0
does't help.

Yuriy Tkachenko (yuriytk) wrote :

Interesting experience with Ubuntu 9.10 on my system:
* Headphones do work if "Sound preferences"-"Output" connector set to "Analog output". Setting to "Analog Headphones" mutes headphones
* Changing alsamixer's "Headphon" volume bar does not affect volume changes in the headphones
* Headphones' volume changes only with "Front" volume bar changing in alsamixer

David Henningsson (diwic) wrote :

@foret, the opposite of SET_POWER_STATE 0 (fully on) is SET_POWER_STATE 3 (power-save).
Anyway, it seems like at least Yuriy and foret has different problems if set-power-state works for foret but not for yuriy.
Note that some driver versions might mute "front playback switch" when the HP is inserted. This is known to confuse PulseAudio.

foret (popfalushi) wrote :

Well. I've found (semi)solution for myself, so i will describe my end situation:
I've set independent hp on
restarted.
Headphones become enabled. Their level has influence on headphones, but if i make it mute - sound mutes everywhere (hp and speakers).
Master channel has influence only on speakers. If i mute it, however, it mutes everything. It unmutes normally, so i don't have to do
SET_POWER_STATE 0.
Headphones level influence only on headphones. It mutes everything, unmutes normally.
PCM - can't be muted. Has influence on everything.
Front - has effect on speakers only. If it mutes, mutes everything. Unmutes normally.
Front Mic - any change mutes hp. must do SET_POWER_STATE.
Surround - level doesn't matter. Mutes everything. Unmutes normally.
Center - level doesn't matter. Mutes everything. Unmutes normally.
LFE - level doesn't matter. Mutes everything. Unmutes normally.
Side - level matters only for hp. mutes everything. Unmutes normally.
Line, CD, Mic - any change mutes hp. must do SET_POWER_STATE.

Solution is just playing with Master and Headphones levels with amixer. However, it could be almost normal without obligatory SET_POWER_STATE in the beginning of session

flint2000 (sergey-sidore) wrote :

I have Asus K50AF with VIA VT1708S. After installation ubuntu 10.04 I had Yury's Tkachenko problems and the microphone didn't work for me.
Then I have install kubuntu 10.04, headphones and external dynamics have earned normally, but the microphone and hasn't earned.
Most likely a problem of headphones in PulseAudio.

Mitya (gmetrofun) wrote :

I have ASUS K40AB and experienced the same problems wiyh audio system, but with http://people.canonical.com/~diwic/temp/alsa-intel-hda-diwic-via-automute-dkms_1.0.23.diwic_all.deb everything seems to be going fine

Mitya (gmetrofun) wrote :

just updated installed new ubuntu updates (there was alsa) and again the same, no mic, nor normal headphones.
http://people.canonical.com/~diwic/temp/alsa-intel-hda-diwic-via-automute-dkms_1.0.23.diwic_all.deb doesn't help

Mitya (gmetrofun) wrote :

Bug is still there

Mitya (gmetrofun) wrote :

Bump, maybe you need some additional information to fix this bug - i'll provide all asked info

David Henningsson (diwic) wrote :

@Mitya, apart from the front-mutes-on-headphones-plugin issue, which seems to help some people, I'm currently out of ideas. In addition, this bug is a little confusing as there seem to be several people having slightly different bugs.

Mitya (gmetrofun) wrote :

After this - http://people.canonical.com/~diwic/temp/alsa-intel-hda-diwic-via-automute-dkms_1.0.23.diwic_all.deb, everything was cool, even mic has began to work, but after updating alsa from repository to new version, bug appeared again,May be it can help

David Henningsson (diwic) wrote :

@Mitya, can you elaborate on what part of alsa was updated? Also, what's the output of "modinfo snd-hda-codec" ?

Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
tgckpg (tgckpg) wrote :

I've the same issue to #24.

tgckpg (tgckpg) wrote :

This is the output of "modinfo snd-hda-codec" :

filename: /lib/modules/2.6.35-25-generic/updates/dkms/snd-hda-codec.ko
license: GPL
description: HDA codec core
srcversion: AB0927D5B5147A50728D052
depends: snd-pcm,snd,snd-hwdep
vermagic: 2.6.35-25-generic SMP mod_unload modversions

Ryan Wells (roamer) wrote :

Any new status on this?

William King (quentusrex) wrote :

I have an ASUS k50AB with a VIA VT1708S sound card. I am having the same problem as #8. Currently I am running the latest 11.04. After trying multiple combinations of alsa-base.conf configs there is no change.

https://answers.launchpad.net/ubuntu/+question/164708

William King (quentusrex) wrote :

Resolved now. Thanks to all those that helped along the way. The final fix was spelled out here:

https://wiki.ubuntu.com/Audio/InstallingLinuxAlsaDriverModules

On irc in the channel #alsa dtchen mentioned that the VIA codecs have been significantly recently.

Fixed in these packages:

ii alsa-base 1.0.24+dfsg-0ubuntu1 ALSA driver configuration files
ii alsa-utils 1.0.24.2-0ubuntu6 Utilities for configuring and using ALSA
ii bluez-alsa 4.91-0ubuntu1 Bluetooth ALSA support
ii gnome-alsamixer 0.9.7~cvs.20060916.ds.1-2 ALSA sound mixer for GNOME
ii gstreamer0.10-alsa 0.10.32-1ubuntu5 GStreamer plugin for ALSA
ii linux-alsa-driver-modules-2.6.38-10-generic 2.6.38-10.201107131605 Ubuntu-supplied Linux modules for version 2.6.38-10-generic ALSA snapshots

To post a comment you must log in.