Bug 740118 - No sound with VIA VT1802 codec
No sound with VIA VT1802 codec
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE 12.1
Classification: openSUSE
Component: Sound
Final
x86-64 Other
: P5 - None : Normal (vote)
: ---
Assigned To: Takashi Iwai
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-08 11:53 UTC by Iakov Karpov
Modified: 2012-01-23 10:01 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Result of "alsa-info.sh --no-upload" (34.27 KB, text/plain)
2012-01-09 14:55 UTC, Iakov Karpov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iakov Karpov 2012-01-08 11:53:54 UTC
User-Agent:       Opera/9.80 (X11; Linux x86_64; U; ru) Presto/2.10.229 Version/11.60

I have asus u30sd laptop. Sound does not play from laptop speakers, but it does from headphone out (very quiet and distorted, although). Recordings from microphone are also too quiet and sound ugly.
Same problem seems to present with kernel 3.2 from obs:Kernel repository, but used to work fine in openSUSE 11.4 with 3.0 kernel.
HDMI out works fine.

Reproducible: Always

Steps to Reproduce:
1. make sure u r using vt1802
2. start any program which plays sounds



# grep Codec /proc/asound/card*/codec*
/proc/asound/card0/codec#0:Codec: VIA VT1802
/proc/asound/card0/codec#3:Codec: Intel CougarPoint HDMI
---------
# lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
---------
# hwinfo --sound
13: PCI 1b.0: 0403 Audio device                                 
  [Created at pci.319]
  Unique ID: u1Nb.8z5fa5aeCX3
  SysFS ID: /devices/pci0000:00/0000:00:1b.0
  SysFS BusID: 0000:00:1b.0
  Hardware Class: sound
  Model: "Intel Audio device"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x1c20 
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x1053 
  Revision: 0x05
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xdf600000-0xdf603fff (rw,non-prefetchable)
  IRQ: 43 (71116 events)
  Module Alias: "pci:v00008086d00001C20sv00001043sd00001053bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Config Status: cfg=yes, avail=yes, need=no, active=unknown
---------
# cat /etc/modprobe.d/50-sound.conf

options snd slots=snd-hda-intel
# u1Nb.8z5fa5aeCX3:Intel Corporation
alias snd-card-0 snd-hda-intel
---------
# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, VT1802 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, VT1802 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
Comment 1 Takashi Iwai 2012-01-09 11:52:33 UTC
Could you give alsa-info.sh output (run with --no-upload option, and attach the output to this bug)?
Comment 2 Iakov Karpov 2012-01-09 14:55:41 UTC
Created attachment 470256 [details]
Result of "alsa-info.sh --no-upload"
Comment 3 Takashi Iwai 2012-01-10 11:58:46 UTC
The lack of speaker output seems because of the invalid NID in the connection list of the pin widget 0x24.  This confused the parser.

I fixed it in the upstream code now.  Please try alsa-driver-kmp on OBS multimedia:audio:KMP repo later.  The changelog should contain the changelog entry:
- DRIVER-HEAD:292bfbafb6231221450d19a3c48f1ca6434a384b
- KERNEL-HEAD:4ff2f904c91f27021ea3ffe58309541e0cd5061a
 * ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs

About the output level.  Make sure that you raise both "Heaphone" and "Master" volume.  Now both influence on the output level of the headphone.  Ditto for speaker.  Raise both "Speaker" and "Master".

The cause of the bad audio quality is hard to guess.  From the driver side, there is no change.  It might be the difference of sound backend, e.g. now using PulseAudio while it wasn't formerly.

For testing, try aplay like
    % pasuspender -- aplay -Dsysdefault SOME-YOUR-FILE.wav
If the sound works better with this, the problem is likely in PulseAudio (and/or the driver setup).

Last but not least, don't forget to reset NEEDINFO flag after you providing the requested information.  Thanks.
Comment 4 Iakov Karpov 2012-01-10 14:38:06 UTC
ОК, now speakers seem to work fine. Thank you! As for headphone out, it's my bad, with external amplifier it also sounds good.
About microphone: previously I've tried to record only in mono (using audacity), and the recording was very distorted. But when I've tried recording in stereo it worked out just fine. I don't know if it is okay, but it's quite strange to me, because I'm absolutely sure my microphone is mono.

Will there be a kernel update? Or it's till 12.2 release?
Comment 5 Takashi Iwai 2012-01-10 14:45:08 UTC
The mono-recording problem is likely because the laptop has a digital-mic of ForteMedia.  It's a stereo d-mic and it's known to send a reverse-phased signal in one channel, thus summing stereo to mono results in almost nothing but background noises.

Unfortunately there is no good workaround for this as long as you use PulseAudio and mono recording.  Just try recording in stereo, or use ALSA-native directly (hw:0 or such) instead of "default" in the applications if possible.

I can put the patch to 12.1 kernel as clearly it's a bug.  The patch will be sent to both upstream and stable kernels, so the change won't be lost.
Comment 6 Takashi Iwai 2012-01-10 14:50:42 UTC
I committed the patch to 12.1 kernel git tree.  The next (or later) update kernel will contain this fix.  Until then, you can keep using alsa-driver-kmp.

Let's close the bug now.
Comment 7 Bernhard Wiedemann 2012-01-23 10:01:53 UTC
This is an autogenerated message for OBS integration:
This bug (740118) was mentioned in
https://build.opensuse.org/request/show/101098 12.1 / kernel-source