Skip to contentSkip to conversation

Intel HDA using VIA vt1708s

DISCUSSION Chrissi k 2 participants 9 messages Jul 2, 2009 – Jul 7, 2009 4 messages not in the archive

lore
Share & tools
lore

Chrissi k

author
#0 lore raw

Hi, i'd like to report a bug in alsa, up to 1.0.20, in combination with the via vt1708s codec used for example in the asus X5DIJ laptop
per default, patch_via.c enables EAPD during initialization. That's not the case especially for the 1708S, so theres no sound at all from internal laptop speakers and
line-out.
Enabling EAPD using hda_analyzer fixes this issue.
I believe there should be some easy fix by initializing the codec with EAPD. I myself can't commit a patch, because my C -kills suck ;)

i'd be really glad if someone could take a look at patch_via.c

regards
didi2002

#1 lore raw

At Thu, 2 Jul 2009 12:02:22 +0200,

Quoted 11 lines · Chrissi k

Hi, i'd like to report a bug in alsa, up to 1.0.20, in combination with the via vt1708s codec used for example in the asus X5DIJ laptop
per default, patch_via.c enables EAPD during initialization. That's not the case especially for the 1708S, so theres no sound at all from internal laptop speakers and
line-out.
Enabling EAPD using hda_analyzer fixes this issue.
I believe there should be some easy fix by initializing the codec with EAPD. I myself can't commit a patch, because my C -kills suck ;)

Quoted 1 line

i'd be really glad if someone could take a look at patch_via.c

Could you try the very latest alsa-driver snapshot first?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

If this still doesn't work, please run alsa-info.sh with --no-upload option, and attach the generated file.

thanks,

Takashi

author
#2 lore raw
Quoted 5 lines

Could you try the very latest alsa-driver snapshot first?

ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Quoted 8 lines

If this still doesn't work, please run alsa-info.sh with --no-upload option, and attach the generated file.

thanks,

Takashi

Ok i tried a snapshot from 07/07/09, still no sound ootb. Once I run
"hda-verb /dev/snd/hwC0D0 0x1c SET_EAPD_BTLENABLE 2" sound is working perfectly.
Hope I can help you fix this issue.

regards

Chris

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.56
!!################################

!!Script ran on: Tue Jul 7 09:38:48 UTC 2009

!!Linux Distribution
!!------------------

Fedora release 11 (Leonidas) Fedora release 11 (Leonidas) Fedora release 11 (Leonidas) Fedora release 11 (Leonidas)

!!Kernel Information
!!------------------

Kernel release:    2.6.29.5-191.fc11.i586
Operating System:  GNU/Linux
Architecture:      i686
Processor:         i686
SMP Enabled:       Yes

!!ALSA Version
!!------------

Driver version: 1.0.20
Library version:
Utilities version: 1.0.20

!!Loaded ALSA modules
!!-------------------

snd_hda_intel

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes

!!Soundcards recognised by ALSA
!!-----------------------------

0 [Intel ]: HDA-Intel - HDA Intel

                      HDA Intel at 0xfdef4000 irq 22

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------

00:1b.0 0403: 8086:293e (rev 03)

	Subsystem: 1111:1043

!!Loaded sound module options
!!--------------------------

!!Module: snd_hda_intel
bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1
enable : Y,Y,Y,Y,Y,Y,Y,Y
enable_msi : 0
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> index : -1,-1,-1,-1,-1,-1,-1,-1
model : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> patch : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> position_fix : 0,0,0,0,0,0,0,0
power_save : 0
power_save_controller : Y
probe_mask : -1,-1,-1,-1,-1,-1,-1,-1
probe_only : N,N,N,N,N,N,N,N
single_cmd : N

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: VIA VT1708S
Address: 0
Function Id: 0x1
Vendor Id: 0x11060397
Subsystem Id: 0x10431111
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=1, o=0, i=0, unsolicited=1, wake=0
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x10 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0 Amp-Out vals: [0x2a 0x2a]
Converter: stream=5, channel=0
PCM:

    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power: setting=D0, actual=D0
Node 0x11 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0 Amp-Out vals: [0x2a 0x2a]
Converter: stream=0, channel=0
PCM:

    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power: setting=D0, actual=D0
Node 0x12 [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 0x13 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x14 0x14]
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
     0x17

Node 0x14 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x00 0x00]
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
     0x1e

Node 0x15 [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 0x16 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x1b 0x1b] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x97 0x97] [0x97 0x97]
Power: setting=D0, actual=D0
Connection: 7

     0x10 0x1f 0x1a 0x1b 0x1e 0x1d 0x25
Node 0x17 [Audio Selector] wcaps 0x300501: Stereo
  Power: setting=D0, actual=D0
  Connection: 6
     0x1f 0x1a* 0x1b 0x1e 0x1d 0x16

Node 0x18 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Power: setting=D0, actual=D0
Connection: 1

     0x11

Node 0x19 [Pin Complex] wcaps 0x400581: Stereo
Pincap 0x00000014: OUT Detect
Pin Default 0x410110f2: [N/A] Line Out at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x2
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Connection: 1

     0x18
Node 0x1a [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
  Pin Default 0x01a19038: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x8
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=00, enabled=0
  Power: setting=D0, actual=D0
  Connection: 1
     0x26
Node 0x1b [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
  Pin Default 0x418130f9: [N/A] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0xf, Sequence = 0x9
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power: setting=D0, actual=D0
  Connection: 1
     0x18

Node 0x1c [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0001001c: OUT HP EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x90070110: [Fixed] Line Out at Int N/A
Conn = Analog, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Connection: 1

     0x16

Node 0x1d [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0000233c: IN OUT HP Detect

    Vref caps: HIZ 50 100
  Pin Default 0x0121401f: [Jack] HP Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP VREF_HIZ
  Unsolicited: tag=01, enabled=1
  Power: setting=D0, actual=D0
  Connection: 2
     0x16* 0x25

Node 0x1e [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000233c: IN OUT HP Detect

    Vref caps: HIZ 50 100
  Pin Default 0x90a7013e: [Fixed] Mic at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x3, Sequence = 0xe
    Misc = NO_PRESENCE
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=00, enabled=0
  Power: setting=D0, actual=D0
  Connection: 2
     0x16* 0x25

Node 0x1f [Pin Complex] wcaps 0x400401: Stereo
Pincap 0x00000020: IN
Pin Default 0x593701f7: [N/A] CD at Int ATAPI
Conn = Analog, Color = Unknown
DefAssociation = 0xf, Sequence = 0x7
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power: setting=D0, actual=D0
Node 0x20 [Pin Complex] wcaps 0x400701: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x474411f0: [N/A] SPDIF Out at Ext Rear Panel
Conn = RCA, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Power: setting=D0, actual=D0
Connection: 1

     0x12

Node 0x21 [Pin Complex] wcaps 0x400701: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x474411f0: [N/A] SPDIF Out at Ext Rear Panel
Conn = RCA, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Power: setting=D0, actual=D0
Connection: 1

     0x15

Node 0x22 [Pin Complex] wcaps 0x400581: Stereo
Pincap 0x00000014: OUT Detect
Pin Default 0x410160f1: [N/A] Line Out at Ext Rear
Conn = 1/8, Color = Orange DefAssociation = 0xf, Sequence = 0x1
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Connection: 1

     0x26

Node 0x23 [Pin Complex] wcaps 0x400581: Stereo
Pincap 0x00000014: OUT Detect
Pin Default 0x410120f4: [N/A] Line Out at Ext Rear
Conn = 1/8, Color = Grey
DefAssociation = 0xf, Sequence = 0x4
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Connection: 1

     0x27

Node 0x24 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0 Amp-Out vals: [0x2a 0x2a]
Converter: stream=0, channel=0
PCM:

    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power: setting=D0, actual=D0
Node 0x25 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0 Amp-Out vals: [0x24 0x24]
Converter: stream=5, channel=0
PCM:

    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power: setting=D0, actual=D0
Node 0x26 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Power: setting=D0, actual=D0
Connection: 1

     0x24

Node 0x27 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Power: setting=D0, actual=D0
Connection: 1

     0x25

--endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw----+ 1 root audio 116,  0 Jul  7 11:35 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  4 Jul  7 11:35 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116, 24 Jul  7 11:36 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 16 Jul  7 11:36 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 33 Jul  7 11:35 /dev/snd/timer

!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

#
# Place your global alsa-lib configuration here... #

@hooks [

	{
		func load
		files [
			"/etc/alsa/pulse-default.conf"
		]
		errors false
	}

]

!!Aplay/Arecord output
!!------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog]
Subdevices: 1/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [Intel]

Card hw:0 'Intel'/'HDA Intel at 0xfdef4000 irq 22'
Mixer name : 'VIA VT1708S'
Components : 'HDA:11060397,10431111,00100000'
Controls : 19
Simple ctrls : 12
Simple mixer control 'Master Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 27 [87%] [6.00dB] [on] Front Right: Playback 27 [87%] [6.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 42
Mono:
Front Left: Playback 36 [86%] [-9.00dB] [on] Front Right: Playback 36 [86%] [-9.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 198 [78%] [-11.40dB] Front Right: Playback 198 [78%] [-11.40dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 42
Mono:
Front Left: Playback 42 [100%] [0.00dB] [on] Front Right: Playback 42 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on] Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Front Mic Boost',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 3
Front Left: Capture 0 [0%] [0.00dB] Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [on] Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Mic Boost',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 3
Front Left: Capture 0 [0%] [0.00dB] Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 20 [65%] [13.50dB] [on] Front Right: Capture 20 [65%] [13.50dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 0 [0%] [-16.50dB] [on] Front Right: Capture 0 [0%] [-16.50dB] [on]
Simple mixer control 'Independent HP',0
Capabilities: enum
Items: 'OFF' 'ON'
Item0: 'OFF'
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Stereo Mixer' 'Mic' 'Front Mic'
Item0: 'Mic'

!!Alsactl output
!!-------------

--startcollapse--

state.Intel {
	control.1 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -3450
		comment.dbmax 1200
		iface MIXER
		name 'Master Front Playback Volume'
		value.0 27
		value.1 27
	}
	control.2 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Master Front Playback Switch'
		value.0 true
		value.1 true
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 42'
		comment.dbmin -6300
		comment.dbmax 0
		iface MIXER
		name 'Front Playback Volume'
		value.0 42
		value.1 42
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Front Playback Switch'
		value.0 true
		value.1 true
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 42'
		comment.dbmin -6300
		comment.dbmax 0
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 36
		value.1 36
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -3450
		comment.dbmax 1200
		iface MIXER
		name 'Mic Playback Volume'
		value.0 0
		value.1 0
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Mic Playback Switch'
		value.0 true
		value.1 true
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -3450
		comment.dbmax 1200
		iface MIXER
		name 'Front Mic Playback Volume'
		value.0 0
		value.1 0
	}
	control.10 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Front Mic Playback Switch'
		value.0 true
		value.1 true
	}
	control.11 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 OFF
		comment.item.1 ON
		iface MIXER
		name 'Independent HP'
		value OFF
	}
	control.12 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -1650
		comment.dbmax 3000
		iface MIXER
		name 'Capture Volume'
		value.0 20
		value.1 20
	}
	control.13 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
	}
	control.14 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -1650
		comment.dbmax 3000
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 0
		value.1 0
	}
	control.15 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 true
		value.1 true
	}
	control.16 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 3'
		comment.dbmin 0
		comment.dbmax 3000
		iface MIXER
		name 'Mic Boost Capture Volume'
		value.0 0
		value.1 0
	}
	control.17 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 3'
		comment.dbmin 0
		comment.dbmax 3000
		iface MIXER
		name 'Front Mic Boost Capture Volume'
		value.0 0
		value.1 0
	}
	control.18 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'Stereo Mixer'
		comment.item.1 Mic
		comment.item.2 'Front Mic'
		iface MIXER
		name 'Input Source'
		value Mic
	}
	control.19 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		comment.tlv '0000000100000008ffffec1400000014'
		comment.dbmin -5100
		comment.dbmax 0
		iface MIXER
		name 'PCM Playback Volume'
		value.0 198
		value.1 198
	}
}

--endcollapse--

!!All Loaded Modules
!!------------------

Module
aes_i586
aes_generic
fuse
sco
bridge
stp
llc
bnep
l2cap
bluetooth
sunrpc
ip6t_REJECT
nf_conntrack_ipv6
ip6table_filter
ip6_tables
ipv6
cpufreq_ondemand
acpi_cpufreq
dm_multipath
uinput
snd_hda_codec_via
snd_hda_intel
snd_hda_codec
snd_hwdep
arc4
ecb
snd_pcm
snd_timer
ath9k
snd
serio_raw
uvcvideo
pcspkr
mac80211
soundcore
cfg80211
snd_page_alloc
iTCO_wdt
iTCO_vendor_support
asus_laptop
videodev
v4l1_compat
atl1e
i915
drm
i2c_algo_bit
i2c_core
video
output

!!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x19 0x410110f2
0x1a 0x01a19038
0x1b 0x418130f9
0x1c 0x90070110
0x1d 0x0121401f
0x1e 0x90a7013e
0x1f 0x593701f7
0x20 0x474411f0
0x21 0x474411f0
0x22 0x410160f1
0x23 0x410120f4

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

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

#3 lore raw

At Tue, 7 Jul 2009 11:46:11 +0200,

Quoted 10 lines · Chrissi k

Could you try the very latest alsa-driver snapshot first? ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/ alsa-driver-snapshot.tar.gz

If this still doesn't work, please run alsa-info.sh with --no-upload option, and attach the generated file.

thanks,

Quoted 7 lines

Takashi

Ok i tried a snapshot from 07/07/09, still no sound ootb. Once I run
"hda-verb /dev/snd/hwC0D0 0x1c SET_EAPD_BTLENABLE 2" sound is working perfectly.
Hope I can help you fix this issue.

Thanks. Try the latest alsa-driver unstable snapshot (not the stable
one):
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-unstable-snapshot.tar.gz

Fix patches are included there. If this works, I'll propagate them to the upstream.

Takashi

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

#5 lore raw

At Tue, 7 Jul 2009 14:38:44 +0200,

Quoted 6 lines · Chrissi k

 Thanks for the advice, i tried
./configure && make && make install && halt

After a reboot, sound is instantly working, even playing >2 streams at the same time (mplayer+youtube+totem) works now, too =)

OK, I'll merge to the upstream.

Quoted 4 lines

But then i started recording something with Audacity, using the external mic-in. There is the usual peak, so i saved the file and tried re-playing it, but now the sound is dead again. EAPD is indeed still enabled, but no more sound from any source. After a reboot, everything works again.

Make sure that it's no application problem or mixer setup problem. Try to reproduce with more simpler command sequence, such as,

% arecord -fdat -vv foo.wav
% aplay foo.wav

thanks,

Takashi

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

#7 lore raw

At Tue, 7 Jul 2009 14:57:13 +0200,

Quoted 7 lines · Chrissi k

You were so right, arecord + aplay are working fine. Seems to be a problem with Audacity.
Only thing that's still not showing any sign of life is the internal mic. Is that part of alsa or should i consider asking the asus-laptop-module guys? I tried unchecking any "mute" flags using hda-analyzer, but i don't get a peak using the internal mic.

Did you change "Input Source" mixer element to "Front Mic" (or "Mic") properly?
The vt170x support code has still no automatic switch via mic jack detection, thus you have to change the recording source manually.

Also, there are "Mic Boost" and "Front Mic Boost" volumes that change the input level, too.

Takashi

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

#9 lore raw

At Tue, 7 Jul 2009 15:23:45 +0200,

Quoted 6 lines · Chrissi k

Here's what I do after a fresh reboot:
Change "input source" from "mic" to "front mic"
Turn up all recording mixers to 80%, including "mic boost" and "front mic boost"

Quoted 7 lines

% arecord -fdat -vv foo.wav

shouting at the mic...after 10 seconds I do ^C

% aplay foo.wav

*silence*

OK. Just to be sure, could you try
% arecord -fdat -c1 -vv foo.wav
??
Also, attach the alsa-info output during recording with the internal mic.

Quoted 2 lines

Is it possible, that the mic is not really connected with the vt1708s, but rather linked to the internal webcam (which is not working at all btw)?

Hm, not impossible, but I don't guess so.
The webcam is usually a usb device, and the vendor doesn't do a complicated wiring.

Quoted 6 lines

That would explain, why I still get a peak from the external mic-in, even when I set the input-source to "front mic".

Thanks for your great help with the unstable-snapshot. Did you actually write the fix, or was it available all the time? (I thought about using the unstable-snapshot before but didn't)

I wrote the fix shortly. You can see two commits in
http://git.kernel.org/?p=linux/kernel/git/tiwai/sound-2.6.git;a=shortlog;h=fix/hda

BTW, the patches are now in the normal sound tree, so you can use alsa-driver snapshot (no unstable version) from now on again :)

thanks,

Takashi

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

#11 lore raw

At Tue, 7 Jul 2009 15:49:30 +0200,

Quoted 9 lines · Chrissi k

Nope, no luck recording anything. changing the input source doesn't seem to change anything at all. When I do "arecord..." using "stereo mix", I get a peak from the external mic-in, same goes for "mic" and "front mic". I also noticed, the external mic-in does not monitor, e.g. I can't directly hear the signal, although it should play, as "mic" and "front" are both turned on in the playback tab.

here's an alsa-info, taken during recording.

Thanks. Looks like the driver doesn't work well for selecting the capture source. Will check tomorrow.

(Meanwhile you can change the connection selection of the widget 0x17
via hda-verb to choose the capture source manually.)

Takashi

#12 lore raw

At Tue, 07 Jul 2009 18:01:20 +0200,

Quoted 11 lines · I wrote:

At Tue, 7 Jul 2009 15:49:30 +0200,

Quoted 8 lines · Chrissi k

Nope, no luck recording anything. changing the input source doesn't seem to change anything at all. When I do "arecord..." using "stereo mix", I get a peak from the external mic-in, same goes for "mic" and "front mic". I also noticed, the external mic-in does not monitor, e.g. I can't directly hear the signal, although it should play, as "mic" and "front" are both turned on in the playback tab.

Quoted 4 lines
Quoted 1 line

here's an alsa-info, taken during recording.

Thanks. Looks like the driver doesn't work well for selecting the capture source. Will check tomorrow.

It could be fixed before tomorrow. Now updated alsa-driver snapshot with the fix. Give it a try later.
(It might take some time until the server is sync'ed. Check
alsa-driver/HEAD and alsa-driver/alsa-kernel/HEAD files whether any
relevant fix is contained.)

Let me know if it still doesn't work.

Takashi