Connexant HDA codec support
Hi.
I am trying to put microphone on Connexant HDA codec to work (codec PCI ID 14f1:5045, "lspci -v" and
"cat /proc/asound/card0/codec#0" output attached).
Currently (with kernel 2.6.17 and alsa-driver 1.0.12rc1) playback works, but there is no Mic support (no Mic control in alsamixer, no sound recording).
AFAIK, Connexant codecs are not supported due to missing specs. However, it seems that I've manged to intercept CORBs sent to codec in Windows.
Maybe someone familiar with HDA internals can help me?
Andrew.
00:00.0 Host bridge: Intel Corp.: Unknown device 27a0 (rev 03)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information
00:01.0 PCI bridge: Intel Corp.: Unknown device 27a1 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: dc000000-ddffffff
Prefetchable memory behind bridge: 00000000c0000000-00000000cff00000
Capabilities: [88] #0d [0000]
Capabilities: [80] Power Management version 2
Capabilities: [90] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
Capabilities: [a0] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel
Capabilities: [140] Unknown (5)
00:1b.0 Class 0403: Intel Corp.: Unknown device 27d8 (rev 02)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0, IRQ 58
Memory at de300000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [70] Express Unknown type IRQ 0
Capabilities: [100] Virtual Channel
Capabilities: [130] Unknown (5)
00:1c.0 PCI bridge: Intel Corp.: Unknown device 27d0 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Capabilities: [40] Express Root Port (Slot+) IRQ 0
Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
Capabilities: [90] #0d [0000]
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel
Capabilities: [180] Unknown (5)
00:1c.1 PCI bridge: Intel Corp.: Unknown device 27d2 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=08, subordinate=08, sec-latency=0 I/O behind bridge: 00002000-00002fff Memory behind bridge: d8000000-d9ffffff Prefetchable memory behind bridge: 00000000d2000000-00000000d3f00000 Capabilities: [40] Express Root Port (Slot+) IRQ 0 Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+ Capabilities: [90] #0d [0000] Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Unknown (5)
00:1c.2 PCI bridge: Intel Corp.: Unknown device 27d4 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 00003000-00003fff
Memory behind bridge: da000000-dbffffff
Prefetchable memory behind bridge: 00000000d4000000-00000000d5f00000
Capabilities: [40] Express Root Port (Slot+) IRQ 0
Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
Capabilities: [90] #0d [0000]
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel
Capabilities: [180] Unknown (5)
00:1d.0 USB Controller: Intel Corp.: Unknown device 27c8 (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 66
I/O ports at 1800 [size=32]
00:1d.1 USB Controller: Intel Corp.: Unknown device 27c9 (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 233
I/O ports at 1820 [size=32]
00:1d.2 USB Controller: Intel Corp.: Unknown device 27ca (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 185
I/O ports at 1840 [size=32]
00:1d.3 USB Controller: Intel Corp.: Unknown device 27cb (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 169
I/O ports at 1860 [size=32]
00:1d.7 USB Controller: Intel Corp.: Unknown device 27cc (rev 02) (prog-if 20 [EHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 66
Memory at de304000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port
00:1e.0 PCI bridge: Intel Corp. 82801 Mobile PCI Bridge (rev e2) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=05, subordinate=05, sec-latency=32 I/O behind bridge: 00004000-00004fff Memory behind bridge: de000000-de0fffff Prefetchable memory behind bridge: 0000000030000000-0000000031f00000 Capabilities: [50] #0d [0000]
00:1f.0 ISA bridge: Intel Corp.: Unknown device 27b9 (rev 02)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information
00:1f.2 IDE interface: Intel Corp.: Unknown device 27c4 (rev 02) (prog-if 80 [Master])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 233
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at 18b0 [size=16]
Capabilities: [70] Power Management version 2
00:1f.3 SMBus: Intel Corp.: Unknown device 27da (rev 02)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
I/O ports at 18e0 [size=32]
01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 01d8 (rev a1) (prog-if 00 [VGA])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at dd000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at dc000000 (64-bit, non-prefetchable) [size=16M]
Capabilities: [60] Power Management version 2
Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [78] Express Endpoint IRQ 0
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting
04:00.0 Ethernet controller: Marvell Technology Group Ltd.: Unknown device 4363 (rev 10)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0, IRQ 50
Memory at da000000 (64-bit, non-prefetchable) [size=16K]
[virtual] Memory at 00003000 (32-bit, non-prefetchable) [size=256] [virtual] Expansion ROM at d4000000 [disabled] [size=128K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+
Capabilities: [e0] Express Legacy Endpoint IRQ 0
Capabilities: [100] Advanced Error Reporting
05:01.0 CardBus bridge: Texas Instruments: Unknown device 8039
Subsystem: QUANTA Computer Inc: Unknown device 0753 Flags: bus master, medium devsel, latency 168, IRQ 185 Memory at de006000 (32-bit, non-prefetchable) [size=4K] Bus: primary=05, secondary=06, subordinate=07, sec-latency=176 Memory window 0: 30000000-31fff000 (prefetchable) Memory window 1: 32000000-33fff000 I/O window 0: 00004000-000040ff I/O window 1: 00004400-000044ff 16-bit legacy interface ports at 0001
05:01.1 FireWire (IEEE 1394): Texas Instruments: Unknown device 803a (prog-if 10 [OHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
Memory at de005000 (32-bit, non-prefetchable) [disabled] [size=2K] Memory at de000000 (32-bit, non-prefetchable) [disabled] [size=16K]
Capabilities: [44] Power Management version 2
05:01.2 Unknown mass storage controller: Texas Instruments: Unknown device 803b
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
Memory at de004000 (32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: [44] Power Management version 2
05:01.3 Class 0805: Texas Instruments: Unknown device 803c (prog-if 01)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
Memory at de005800 (32-bit, non-prefetchable) [disabled] [size=256]
Capabilities: [80] Power Management version 2
Codec: Generic 14f1 ID 5045
Address: 0
Vendor Id: 0x14f15045
Subsystem Id: 0x152d0753
Revision Id: 0x100100
Default PCM: rates 0x140, bits 0x0e, types 0x1 Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x2b 0x2b]
Pincap 0x0810014: OUT
Pin Default 0x92170010: [Fixed] Speaker at Int Front
Conn = Analog, Color = Unknown
Pin-ctls: 0x40: OUT
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x11 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08113c: IN OUT HP
Pin Default 0x01214020: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x12 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0xab 0xab]
Pincap 0x08113c: IN OUT HP
Pin Default 0x01813030: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x00:
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x13 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x21447040: [Jack] SPDIF Out at Sep Rear
Conn = RCA, Color = Yellow
Pin-ctls: 0x00:
Connection: 1
0x18
Node 0x14 [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x081124: IN
Pin Default 0x97a70050: [Fixed] Mic at Int Riser
Conn = Analog, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x99330060: [Fixed] CD at Int ATAPI
Conn = ATAPI, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x16 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0b, mute=1 Amp-Out vals: [0x06]
Node 0x17 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
Amp-In caps: ofs=0x14, nsteps=0x2b, stepsize=0x05, mute=1 Amp-In vals: [0x94 0x94] [0x17 0x17] [0x94 0x94] [0x94 0x94] [0x94 0x94]
Power: 0x0
Connection: 5
0x19 0x14 0x12 0x11 0x15
Node 0x18 [Audio Output] wcaps 0x211: Stereo Digital
PCM: rates 0x040, bits 0x06, types 0x5
Node 0x19 [Audio Output] wcaps 0xc11: Stereo
PCM: rates 0x540, bits 0x0e, types 0x1
Power: 0x0
Node 0x1a [Audio Input] wcaps 0x100d0b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x05, mute=1 Amp-In vals: [0x17 0x17] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Power: 0x0
Connection: 5
0x17 0x14* 0x12 0x11 0x15
Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Wed, 16 Aug 2006 13:45:44 +0400,
Quoted 10 lines · Andrew L. Neporada
Hi.
I am trying to put microphone on Connexant HDA codec to work (codec PCI ID 14f1:5045, "lspci -v" and
"cat /proc/asound/card0/codec#0" output attached).Currently (with kernel 2.6.17 and alsa-driver 1.0.12rc1) playback works, but there is no Mic support (no Mic control in alsamixer, no sound recording).
Good to hear that playback actually works on some machine. How is the mixer status? Check the generated file via "alsactl -f somefile store".
The problem looks like that the input amp value isn't raised for the audio-input node 0x1a. Could be a bug of generic parser routine.
Takashi
Quoted 257 lines
AFAIK, Connexant codecs are not supported due to missing specs. However, it seems that I've manged to intercept CORBs sent to codec in Windows.
Maybe someone familiar with HDA internals can help me?
Andrew.
[2 lspci.txt <text/plain; UTF-8 (7bit)>]
00:00.0 Host bridge: Intel Corp.: Unknown device 27a0 (rev 03)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information00:01.0 PCI bridge: Intel Corp.: Unknown device 27a1 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: dc000000-ddffffff
Prefetchable memory behind bridge: 00000000c0000000-00000000cff00000
Capabilities: [88] #0d [0000]
Capabilities: [80] Power Management version 2
Capabilities: [90] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
Capabilities: [a0] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel
Capabilities: [140] Unknown (5)00:1b.0 Class 0403: Intel Corp.: Unknown device 27d8 (rev 02)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0, IRQ 58
Memory atde300000(64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [70] Express Unknown type IRQ 0
Capabilities: [100] Virtual Channel
Capabilities: [130] Unknown (5)00:1c.0 PCI bridge: Intel Corp.: Unknown device 27d0 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Capabilities: [40] Express Root Port (Slot+) IRQ 0
Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
Capabilities: [90] #0d [0000]
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel
Capabilities: [180] Unknown (5)00:1c.1 PCI bridge: Intel Corp.: Unknown device 27d2 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=08, subordinate=08, sec-latency=0 I/O behind bridge: 00002000-00002fff Memory behind bridge: d8000000-d9ffffff Prefetchable memory behind bridge: 00000000d2000000-00000000d3f00000 Capabilities: [40] Express Root Port (Slot+) IRQ 0 Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+ Capabilities: [90] #0d [0000] Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Unknown (5)00:1c.2 PCI bridge: Intel Corp.: Unknown device 27d4 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 00003000-00003fff
Memory behind bridge: da000000-dbffffff
Prefetchable memory behind bridge: 00000000d4000000-00000000d5f00000
Capabilities: [40] Express Root Port (Slot+) IRQ 0
Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
Capabilities: [90] #0d [0000]
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel
Capabilities: [180] Unknown (5)00:1d.0 USB Controller: Intel Corp.: Unknown device 27c8 (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 66
I/O ports at 1800 [size=32]00:1d.1 USB Controller: Intel Corp.: Unknown device 27c9 (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 233
I/O ports at 1820 [size=32]00:1d.2 USB Controller: Intel Corp.: Unknown device 27ca (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 185
I/O ports at 1840 [size=32]00:1d.3 USB Controller: Intel Corp.: Unknown device 27cb (rev 02) (prog-if 00 [UHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 169
I/O ports at 1860 [size=32]00:1d.7 USB Controller: Intel Corp.: Unknown device 27cc (rev 02) (prog-if 20 [EHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0, IRQ 66
Memory atde304000(32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port00:1e.0 PCI bridge: Intel Corp. 82801 Mobile PCI Bridge (rev e2) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=05, subordinate=05, sec-latency=32 I/O behind bridge: 00004000-00004fff Memory behind bridge: de000000-de0fffff Prefetchable memory behind bridge: 0000000030000000-0000000031f00000 Capabilities: [50] #0d [0000]00:1f.0 ISA bridge: Intel Corp.: Unknown device 27b9 (rev 02)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information00:1f.2 IDE interface: Intel Corp.: Unknown device 27c4 (rev 02) (prog-if 80 [Master])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 233
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at 18b0 [size=16]
Capabilities: [70] Power Management version 200:1f.3 SMBus: Intel Corp.: Unknown device 27da (rev 02)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
I/O ports at 18e0 [size=32]01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 01d8 (rev a1) (prog-if 00 [VGA])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory atdd000000(32-bit, non-prefetchable) [size=16M]
Memory atc0000000(64-bit, prefetchable) [size=256M]
Memory atdc000000(64-bit, non-prefetchable) [size=16M]
Capabilities: [60] Power Management version 2
Capabilities: [68] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [78] Express Endpoint IRQ 0
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting04:00.0 Ethernet controller: Marvell Technology Group Ltd.: Unknown device 4363 (rev 10)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: bus master, fast devsel, latency 0, IRQ 50
Memory atda000000(64-bit, non-prefetchable) [size=16K]
[virtual] Memory at 00003000 (32-bit, non-prefetchable) [size=256] [virtual] Expansion ROM atd4000000[disabled] [size=128K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable+
Capabilities: [e0] Express Legacy Endpoint IRQ 0
Capabilities: [100] Advanced Error Reporting05:01.0 CardBus bridge: Texas Instruments: Unknown device 8039
Subsystem: QUANTA Computer Inc: Unknown device 0753 Flags: bus master, medium devsel, latency 168, IRQ 185 Memory at de006000 (32-bit, non-prefetchable) [size=4K] Bus: primary=05, secondary=06, subordinate=07, sec-latency=176 Memory window 0: 30000000-31fff000 (prefetchable) Memory window 1: 32000000-33fff000 I/O window 0: 00004000-000040ff I/O window 1: 00004400-000044ff 16-bit legacy interface ports at 000105:01.1 FireWire (IEEE 1394): Texas Instruments: Unknown device 803a (prog-if 10 [OHCI])
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
Memory atde005000(32-bit, non-prefetchable) [disabled] [size=2K] Memory atde000000(32-bit, non-prefetchable) [disabled] [size=16K]
Capabilities: [44] Power Management version 205:01.2 Unknown mass storage controller: Texas Instruments: Unknown device 803b
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
Memory atde004000(32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: [44] Power Management version 205:01.3 Class 0805: Texas Instruments: Unknown device 803c (prog-if 01)
Subsystem: QUANTA Computer Inc: Unknown device 0753
Flags: medium devsel, IRQ 10
Memory atde005800(32-bit, non-prefetchable) [disabled] [size=256]
Capabilities: [80] Power Management version 2[3 proc.txt <text/plain; UTF-8 (7bit)>]
Codec: Generic 14f1 ID 5045
Address: 0
Vendor Id:0x14f15045
Subsystem Id:0x152d0753
Revision Id:0x100100
Default PCM: rates0x140, bits0x0e, types0x1Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node0x10[Pin Complex] wcaps0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x2b0x2b]
Pincap0x0810014: OUT
Pin Default0x92170010: [Fixed] Speaker at Int Front
Conn = Analog, Color = Unknown
Pin-ctls:0x40: OUT
Power:0x0
Connection: 20x19* 0x17Node
0x11[Pin Complex] wcaps0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x000x00]
Pincap0x08113c: IN OUT HP
Pin Default0x01214020: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls:0xc0: OUT HP
Power:0x0
Connection: 20x19* 0x17Node
0x12[Pin Complex] wcaps0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0xab0xab]
Pincap0x08113c: IN OUT HP
Pin Default0x01813030: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls:0x00:
Power:0x0
Connection: 20x19* 0x17Node
0x13[Pin Complex] wcaps0x400301: Stereo Digital
Pincap0x0810: OUT
Pin Default0x21447040: [Jack] SPDIF Out at Sep Rear
Conn = RCA, Color = Yellow
Pin-ctls:0x00:
Connection: 10x18Node
0x14[Pin Complex] wcaps0x400081: Stereo
Pincap0x081124: IN
Pin Default0x97a70050: [Fixed] Mic at Int Riser
Conn = Analog, Color = Unknown
Pin-ctls:0x20: IN
Node0x15[Pin Complex] wcaps0x400001: Stereo
Pincap0x0820: IN
Pin Default0x99330060: [Fixed] CD at Int ATAPI
Conn = ATAPI, Color = Unknown
Pin-ctls:0x20: IN
Node0x16[Beep Generator Widget] wcaps0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0b, mute=1 Amp-Out vals: [0x06]
Node0x17[Audio Mixer] wcaps0x20050b: Stereo Amp-In
Amp-In caps: ofs=0x14, nsteps=0x2b, stepsize=0x05, mute=1 Amp-In vals: [0x940x94] [0x170x17] [0x940x94] [0x940x94] [0x940x94]
Power:0x0
Connection: 50x19 0x14 0x12 0x11 0x15Node
0x18[Audio Output] wcaps0x211: Stereo Digital
PCM: rates0x040, bits0x06, types0x5
Node0x19[Audio Output] wcaps0xc11: Stereo
PCM: rates0x540, bits0x0e, types0x1
Power:0x0
Node0x1a[Audio Input] wcaps0x100d0b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x05, mute=1 Amp-In vals: [0x170x17] [0x000x00] [0x000x00] [0x000x00] [0x000x00]
Power:0x0
Connection: 50x17 0x14* 0x12 0x11 0x15
Quoted 12 lines
Node
0x1b[Vendor Defined Widget] wcaps0xf00000: Mono
[4 <text/plain; us-ascii (7bit)>]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[5 <text/plain; us-ascii (7bit)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Wed, 16 Aug 2006 15:00:47 +0200,
Quoted 14 lines · I wrote:
At Wed, 16 Aug 2006 13:45:44 +0400,
Quoted 10 lines · Andrew L. Neporada
Hi.
I am trying to put microphone on Connexant HDA codec to work (codec PCI ID 14f1:5045, "lspci -v" and
"cat /proc/asound/card0/codec#0" output attached).Currently (with kernel 2.6.17 and alsa-driver 1.0.12rc1) playback works, but there is no Mic support (no Mic control in alsamixer, no sound recording).
Quoted 6 lines
Good to hear that playback actually works on some machine. How is the mixer status? Check the generated file via "alsactl -f somefile store".
The problem looks like that the input amp value isn't raised for the audio-input node
0x1a. Could be a bug of generic parser routine.
Could you try the patch below? Then you'll have "Mic Capture Volume", etc. Raise it via alsamixer after changing to the capture mode via tab key, for example.
Takashi
pci/hda/hda_generic.c +46 -17
@@ -743,28 +743,57 @@ static int build_input_controls(struct h {struct hda_gspec *spec = codec->spec;struct hda_gnode *adc_node = spec->adc_node; -int err; - -if (! adc_node) +int i, err; +static struct snd_kcontrol_new cap_sel = { + .iface =SNDRV_CTL_ELEM_IFACE_MIXER , + .name ="Capture Source" , + .info = capture_source_info, + .get = capture_source_get, + .put = capture_source_put, + }; + +if (! adc_node || ! spec->input_mux.num_items)return 0 ;/* not found */ + spec->cur_cap_src =0 ; +select_input_connection (codec, adc_node, + spec->input_mux.items[0 ].index); +/* create capture volume and switch controls if the ADC has an amp */ - err =create_mixer (codec, adc_node,0 ,NULL ,"Capture" ); +/* do we have only a single item? */ +if (spec->input_mux.num_items ==1 ) { + err =create_mixer (codec, adc_node, + spec->input_mux.items[0 ].index, +NULL ,"Capture" ); +if (err <0 ) +return err; +return 0 ; + }/* create input MUX if multiple sources are available */ -if (spec->input_mux.num_items >1 ) { -static struct snd_kcontrol_new cap_sel = { - .iface =SNDRV_CTL_ELEM_IFACE_MIXER , - .name ="Capture Source" , - .info = capture_source_info, - .get = capture_source_get, - .put = capture_source_put, - }; -if ((err =snd_ctl_add (codec->bus->card,snd_ctl_new1 (&cap_sel, codec))) <0 ) -return err; - spec->cur_cap_src =0 ; -select_input_connection (codec, adc_node, spec->input_mux.items[0 ].index); - } +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&cap_sel, codec))) <0 ) +return err; + +/* no volume control? */ +if (! (adc_node->wid_caps &AC_WCAP_IN_AMP ) || + ! (adc_node->amp_in_caps &AC_AMPCAP_NUM_STEPS )) +return 0 ; + +for (i =0 ; i < spec->input_mux.num_items; i++) { +struct snd_kcontrol_new knew; +char name[32 ]; +sprintf (name,"%s Capture Volume" , + spec->input_mux.items[i].label); + knew = (struct snd_kcontrol_new ) +HDA_CODEC_VOLUME (name, adc_node->nid, + spec->input_mux.items[i].index, +HDA_INPUT ); +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&knew, codec))) <0 ) +return err; + } +return 0 ; }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Hi!
Quoted 4 lines · Takashi Iwai
Could you try the patch below? Then you'll have "Mic Capture Volume", etc. Raise it via alsamixer after changing to the capture mode via tab key, for example.
After applying this patch I have new "Mic" control item, however I still can not record anything via arecord.
Kernel debug output attached.
Quoted 3 lines
Takashi
Andrew
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:663: codec_mask = 0x1 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:568: AUD_IN = 1a ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x1a IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x14 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x17 IDX=0x1 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x17 IDX=0x1 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x17 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x12 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:607: [Capture Source] NID=0x1a, #SRC=2
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:610: [Mic] IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:610: [Line] IDX=0x2
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282: AUD_OUT found 19 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x10 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x10 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282: AUD_OUT found 19 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x11 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x11 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x1a IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:675: [Master Playback Switch] NID=0x10, DIR=OUT ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:695: [Master Playback Volume] NID=0x10, DIR=OUT
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Thu, 17 Aug 2006 15:02:47 +0400,
Quoted 10 lines · Andrew L. Neporada
Hi!
Quoted 4 lines · Takashi Iwai
Could you try the patch below? Then you'll have "Mic Capture Volume", etc. Raise it via alsamixer after changing to the capture mode via tab key, for example.
Quoted 4 lines
After applying this patch I have new "Mic" control item, however I still can not record anything via arecord.
Kernel debug output attached.
Also post codec#* and "alsactl -f xxx store" contents, please.
thanks,
Takashi
Quoted 23 lines
Quoted 4 lines
Takashi
Andrew
[2 alsa-debug.txt <text/plain; utf-8 (7bit)>]
ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:663:codec_mask=0x1ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:568:AUD_IN= 1a ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x1a IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x14 IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x17 IDX=0x1 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x17 IDX=0x1 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x17 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x12 IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:607: [Capture Source] NID=0x1a, #SRC=2
ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:610: [Mic] IDX=0x0
ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:610: [Line] IDX=0x2
ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282:AUD_OUTfound 19 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x10 IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x10 IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10
Quoted 9 lines
ALSA
/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282:AUD_OUTfound 19 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x11 IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x11 IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x1a IDX=0x0 ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:675: [Master Playback Switch] NID=0x10, DIR=OUT ALSA/opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:695: [Master Playback Volume] NID=0x10, DIR=OUT
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 3 lines · Takashi Iwai
Also post codec#* and "alsactl -f xxx store" contents, please.
Sorry, forgot this stuff. See attached files.
Andrew.
Codec: Generic 14f1 ID 5045
Address: 0
Vendor Id: 0x14f15045
Subsystem Id: 0x152d0753
Revision Id: 0x100100
Default PCM: rates 0x140, bits 0x0e, types 0x1 Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0810014: OUT EAPD Detect
Pin Default 0x92170010: [Fixed] Speaker at Int Front
Conn = Analog, Color = Unknown
Pin-ctls: 0x40: OUT
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x11 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08113c: IN OUT HP Detect
Pin Default 0x01214020: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x12 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0xab 0xab]
Pincap 0x08113c: IN OUT HP Detect
Pin Default 0x01813030: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x20: IN
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x13 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x21447040: [Jack] SPDIF Out at Sep Rear
Conn = RCA, Color = Yellow
Pin-ctls: 0x00:
Connection: 1
0x18
Node 0x14 [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x081124: IN Detect
Pin Default 0x97a70050: [Fixed] Mic at Int Riser
Conn = Analog, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x99330060: [Fixed] CD at Int ATAPI
Conn = ATAPI, Color = Unknown
Pin-ctls: 0x00:
Node 0x16 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0b, mute=1 Amp-Out vals: [0x06]
Node 0x17 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
Amp-In caps: ofs=0x14, nsteps=0x2b, stepsize=0x05, mute=1 Amp-In vals: [0x94 0x94] [0x17 0x17] [0x94 0x94] [0x94 0x94] [0x94 0x94]
Power: 0x0
Connection: 5
0x19 0x14 0x12 0x11 0x15
Node 0x18 [Audio Output] wcaps 0x211: Stereo Digital
PCM: rates 0x040, bits 0x06, types 0x5
Node 0x19 [Audio Output] wcaps 0xc11: Stereo
PCM: rates 0x540, bits 0x0e, types 0x1
Power: 0x0
Node 0x1a [Audio Input] wcaps 0x100d0b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x05, mute=1 Amp-In vals: [0x17 0x17] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Power: 0x0
Connection: 5
0x17* 0x14 0x12 0x11 0x15
Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
state.Intel {
control.1 {
comment.access 'read write'
comment.type ENUMERATED
comment.item.0 Mic
comment.item.1 Line
iface MIXER
name 'Capture Source'
value Mic
}
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.range '0 - 23'
iface MIXER
name 'Mic Capture Volume'
value.0 23
value.1 23
}
control.3 {
comment.access 'read write'
comment.type INTEGER
comment.range '0 - 23'
iface MIXER
name 'Line Capture Volume'
value.0 0
value.1 0
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
iface MIXER
name 'Master Playback Switch'
value.0 true
value.1 true
}
control.5 {
comment.access 'read write'
comment.type INTEGER
comment.range '0 - 43'
iface MIXER
name 'Master Playback Volume'
value.0 0
value.1 0
}
}-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Thu, 17 Aug 2006 15:48:07 +0400,
Quoted 8 lines · Andrew L. Neporada
Quoted 3 lines · Takashi Iwai
Also post codec#* and "alsactl -f xxx store" contents, please.
Sorry, forgot this stuff. See attached files.
Thanks.
How about the new patch below?
Takashi
pci/hda/hda_generic.c +87 -40
@@ -556,6 +556,29 @@ static int parse_adc_sub_nodes(struct hdreturn 1 ;/* found */ } +/* add a capture source element */ +static void add_cap_src (struct hda_gspec *spec,int idx) +{ +struct hda_input_mux_item *csrc; +char *buf; +int num, ocap; + + num = spec->input_mux.num_items; + csrc = &spec->input_mux.items[num]; + buf = spec->cap_labels[num]; +for (ocap =0 ; ocap < num; ocap++) { +if (!strcmp (buf, spec->cap_labels[ocap])) { +/* same label already exists, +* put the index number to be unique +*/ +sprintf (buf,"%s %d" , spec->cap_labels[ocap], num); +break ; + } + } + csrc->index = idx; + spec->input_mux.num_items++; +} +/* * parse input */
@@ -576,28 +599,26 @@ static int parse_input_path(struct hda_c* if it reaches to a proper input PIN, add the path as the * input path. */ +/* first, check the direct connections to PIN widgets */ for (i =0 ; i < adc_node->nconns; i++) { node =hda_get_node (spec, adc_node->conn_list[i]); -if (! node) -continue ; - err =parse_adc_sub_nodes (codec, spec, node); -if (err <0 ) -return err; -else if (err >0 ) { -struct hda_input_mux_item *csrc = &spec->input_mux.items[spec->input_mux.num_items]; -char *buf = spec->cap_labels[spec->input_mux.num_items]; -int ocap; -for (ocap =0 ; ocap < spec->input_mux.num_items; ocap++) { -if (!strcmp (buf, spec->cap_labels[ocap])) { -/* same label already exists, -* put the index number to be unique -*/ -sprintf (buf,"%s %d" , spec->cap_labels[ocap], - spec->input_mux.num_items); - } - } - csrc->index = i; - spec->input_mux.num_items++; +if (node && node->type ==AC_WID_PIN ) { + err =parse_adc_sub_nodes (codec, spec, node); +if (err <0 ) +return err; +else if (err >0 ) +add_cap_src (spec, i); + } + } +/* ... then check the rests, more complicated connections */ +for (i =0 ; i < adc_node->nconns; i++) { + node =hda_get_node (spec, adc_node->conn_list[i]); +if (node && node->type !=AC_WID_PIN ) { + err =parse_adc_sub_nodes (codec, spec, node); +if (err <0 ) +return err; +else if (err >0 ) +add_cap_src (spec, i); } }
@@ -647,9 +668,6 @@ static int parse_input(struct hda_codec/* * create mixer controls if possible */ -#define DIR_OUT 0x1 -#define DIR_IN 0x2 -static int create_mixer (struct hda_codec *codec,struct hda_gnode *node,unsigned int index,const char *type,const char *dir_sfx) {
@@ -743,28 +761,57 @@ static int build_input_controls(struct h {struct hda_gspec *spec = codec->spec;struct hda_gnode *adc_node = spec->adc_node; -int err; - -if (! adc_node) +int i, err; +static struct snd_kcontrol_new cap_sel = { + .iface =SNDRV_CTL_ELEM_IFACE_MIXER , + .name ="Capture Source" , + .info = capture_source_info, + .get = capture_source_get, + .put = capture_source_put, + }; + +if (! adc_node || ! spec->input_mux.num_items)return 0 ;/* not found */ + spec->cur_cap_src =0 ; +select_input_connection (codec, adc_node, + spec->input_mux.items[0 ].index); +/* create capture volume and switch controls if the ADC has an amp */ - err =create_mixer (codec, adc_node,0 ,NULL ,"Capture" ); +/* do we have only a single item? */ +if (spec->input_mux.num_items ==1 ) { + err =create_mixer (codec, adc_node, + spec->input_mux.items[0 ].index, +NULL ,"Capture" ); +if (err <0 ) +return err; +return 0 ; + }/* create input MUX if multiple sources are available */ -if (spec->input_mux.num_items >1 ) { -static struct snd_kcontrol_new cap_sel = { - .iface =SNDRV_CTL_ELEM_IFACE_MIXER , - .name ="Capture Source" , - .info = capture_source_info, - .get = capture_source_get, - .put = capture_source_put, - }; -if ((err =snd_ctl_add (codec->bus->card,snd_ctl_new1 (&cap_sel, codec))) <0 ) -return err; - spec->cur_cap_src =0 ; -select_input_connection (codec, adc_node, spec->input_mux.items[0 ].index); - } +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&cap_sel, codec))) <0 ) +return err; + +/* no volume control? */ +if (! (adc_node->wid_caps &AC_WCAP_IN_AMP ) || + ! (adc_node->amp_in_caps &AC_AMPCAP_NUM_STEPS )) +return 0 ; + +for (i =0 ; i < spec->input_mux.num_items; i++) { +struct snd_kcontrol_new knew; +char name[32 ]; +sprintf (name,"%s Capture Volume" , + spec->input_mux.items[i].label); + knew = (struct snd_kcontrol_new ) +HDA_CODEC_VOLUME (name, adc_node->nid, + spec->input_mux.items[i].index, +HDA_INPUT ); +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&knew, codec))) <0 ) +return err; + } +return 0 ; }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 9 lines · Takashi Iwai
At Thu, 17 Aug 2006 15:48:07 +0400,
Quoted 7 lines · Andrew L. Neporada
Quoted 3 lines · Takashi Iwai
Also post codec#* and "alsactl -f xxx store" contents, please.
Quoted 6 lines
Quoted 1 line
Sorry, forgot this stuff. See attached files.
Thanks.
How about the new patch below?
Still can not record sound.
Btw, it seems that mic is detected only if
phone jack is inserted at modprobe moment.
There is also "azx_get_response timeout, switching to single_cmd mode..." message in kernel debug output (see attached files).
Quoted 2 lines
Takashi
Andrew
state.Intel {
control.1 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 23'
iface MIXER
name 'Capture Volume'
value.0 0
value.1 0
}
control.3 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Master Playback Switch'
value.0 true
value.1 true
}
control.4 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 43'
iface MIXER
name 'Master Playback Volume'
value.0 0
value.1 0
}
}ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:663: codec_mask = 0x1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:591: AUD_IN = 1a
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x1a IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x14 IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:628: [Capture Source] NID=0x1a, #SRC=1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:631: [Mic] IDX=0x1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282: AUD_OUT found 19
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x10 IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x10 IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282: AUD_OUT found 19
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x11 IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x11 IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:525: hda_intel: azx_get_response timeout, switching to single_cmd mode... ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x1a IDX=0x1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:686: [Capture Switch] NID=0x1a, DIR=IN, IDX=0x1 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:706: [Capture Volume] NID=0x1a, DIR=IN, IDX=0x1 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:693: [Master Playback Switch] NID=0x10, DIR=OUT ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:713: [Master Playback Volume] NID=0x10, DIR=OUT
Codec: Generic 14f1 ID 5045
Address: 0
Vendor Id: 0x14f15045
Subsystem Id: 0x152d0753
Revision Id: 0x100100
Default PCM: rates 0x140, bits 0x0e, types 0x1 Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0810014: OUT EAPD Detect
Pin Default 0x92170010: [Fixed] Speaker at Int Front
Conn = Analog, Color = Unknown
Pin-ctls: 0x40: OUT
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x11 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08113c: IN OUT HP Detect
Pin Default 0x01214020: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x12 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0xab 0xab]
Pincap 0x08113c: IN OUT HP Detect
Pin Default 0x01813030: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x00:
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x13 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x21447040: [Jack] SPDIF Out at Sep Rear
Conn = RCA, Color = Yellow
Pin-ctls: 0x00:
Connection: 1
0x18
Node 0x14 [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x081124: IN Detect
Pin Default 0x97a70050: [Fixed] Mic at Int Riser
Conn = Analog, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x99330060: [Fixed] CD at Int ATAPI
Conn = ATAPI, Color = Unknown
Pin-ctls: 0x00:
Node 0x16 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0b, mute=1 Amp-Out vals: [0x06]
Node 0x17 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
Amp-In caps: ofs=0x14, nsteps=0x2b, stepsize=0x05, mute=1 Amp-In vals: [0x94 0x94] [0x94 0x94] [0x94 0x94] [0x94 0x94] [0x94 0x94]
Power: 0x0
Connection: 5
0x19 0x14 0x12 0x11 0x15
Node 0x18 [Audio Output] wcaps 0x211: Stereo Digital
PCM: rates 0x040, bits 0x06, types 0x5
Node 0x19 [Audio Output] wcaps 0xc11: Stereo
PCM: rates 0x540, bits 0x0e, types 0x1
Power: 0x0
Node 0x1a [Audio Input] wcaps 0x100d0b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x05, mute=1 Amp-In vals: [0x17 0x17] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Power: 0x0
Connection: 5
0x17 0x14* 0x12 0x11 0x15
Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Fri, 18 Aug 2006 11:17:51 +0400,
Quoted 15 lines · Andrew L. Neporada
Quoted 13 lines · Takashi Iwai
At Thu, 17 Aug 2006 15:48:07 +0400,
Quoted 8 lines · Andrew L. Neporada
Quoted 3 lines · Takashi Iwai
Also post codec#* and "alsactl -f xxx store" contents, please.
Sorry, forgot this stuff. See attached files.
Thanks.
Quoted 8 lines
Quoted 2 lines
How about the new patch below?
Still can not record sound.
Btw, it seems that mic is detected only if
phone jack is inserted at modprobe moment.
There is also "azx_get_responsetimeout, switching tosingle_cmdmode..." message in kernel debug output (see attached files).
The azx_get_response could be improved by the patch below (although you may see still a warning message once). It will switch to polling mode if the irq mode fails by some reason.
The fact that the mic gets detected only when "phone" jack is inserted looks interesting. Could you compare codec#0 before and after plugging the jack? Any change? And, could you try inputs from "Line"?
Also, please check snd_hda_queue_unsol_event() is called, e.g. by adding a debug printk. This is used on some devices such as a jack detection mechanism. But we didn't turn it on, so I wonder whether it's really involved.
I suppose you get just a silence data instead of empty or shortened file via arecord, right? If so, it's likely a mixer volume, the input volume of audio-input widget 0x1a.
The problem is that only the first amp-in volume can be changed by the mixer element...
thanks,
Takashi
pci/hda/hda_intel.c +17 -1
@@ -332,6 +332,7 @@ struct azx {int position_fix; unsigned int initialized: 1; unsigned int single_cmd: 1; + unsigned int polling_mode: 1; };/* driver types */
@@ -518,8 +519,23 @@ static unsigned int azx_rirb_get_responsstruct azx *chip = codec->bus->private_data;int timeout =50 ; -while (chip->rirb.cmds) { +for (;;) { +if (chip->polling_mode) { +spin_lock_irq (&chip->reg_lock); +azx_update_rirb (chip); +spin_unlock_irq (&chip->reg_lock); + } +if (! chip->rirb.cmds) +break ;if (! --timeout) { +if (! chip->polling_mode) { +snd_printk (KERN_WARNING "hda_intel: " +"azx_get_response timeout, " +"switching to polling mode...\n" ); + chip->polling_mode =1 ; + timeout =50 ; +continue ; + }snd_printk (KERN_ERR "hda_intel: azx_get_response timeout, " "switching to single_cmd mode...\n" );
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 11 lines · Takashi Iwai
Quoted 6 lines
Still can not record sound.
Btw, it seems that mic is detected only if
phone jack is inserted at modprobe moment.
There is also "azx_get_responsetimeout, switching tosingle_cmdmode..." message in kernel debug output (see attached files).The
azx_get_responsecould be improved by the patch below (although you may see still a warning message once). It will switch to polling mode if the irq mode fails by some reason.
After applying this patch I have no "mic" control present, only "Capture". And it seems that there is no invocation of snd_hda_queue_unsol_events() function with this patch.
Quoted 2 lines
The fact that the mic gets detected only when "phone" jack is inserted looks interesting.
Moreover, microphone jack sense is working only at module init time. After that it is ignored.
Quoted 2 lines
Could you compare codec#0 before and
after plugging the jack? Any change?
Difference between "no mic" and "mic present" cadec#0 files:
2 2006-08-18 23:04:38.140744500 +0400 renamed from 1 2006-08-18 23:03:50.005736250 +0400 +1 -2
@@ -32,7 +32,7 @@ Pincap 0x08113c: IN OUT HP Detect Pin Default 0x01813030: [Jack] Line In at Ext Rear Conn = 1/8, Color = Blue - Pin-ctls: 0x00: + Pin-ctls: 0x20: IN Power: 0x0 Connection: 2 0x19* 0x17
@@ -58,7 +58,7 @@ Amp-Out vals: [0x06] Node 0x17 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In Amp-In caps: ofs=0x14, nsteps=0x2b, stepsize=0x05, mute=1 - Amp-In vals: [0x94 0x94] [0x94 0x94] [0x94 0x94] [0x94 0x94] [0x94
0x94]
+ Amp-In vals: [0x94 0x94] [0x94 0x94] [0x17 0x17] [0x94 0x94] [0x94 0x94]
Power: 0x0
Connection: 5
0x19 0x14 0x12 0x11 0x15
Quoted 2 lines
And, could you try inputs from
"Line"?
Still same result - no sound.
Quoted 7 lines
Also, please check
snd_hda_queue_unsol_event()is called, e.g. by adding a debug printk. This is used on some devices such as a jack detection mechanism. But we didn't turn it on, so I wonder whether it's really involved.
I suppose you get just a silence data instead of empty or shortened file via arecord, right?
Yes, I am getting silent but otherwise pretty normal wav file from arecord.
Quoted 10 lines
If so, it's likely a mixer volume, the input
volume of audio-input widget0x1a.
The problem is that only the first amp-in volume can be changed by the mixer element...thanks,
Takashi
Andrew
state.Intel {
control.1 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 23'
iface MIXER
name 'Capture Volume'
value.0 0
value.1 0
}
control.3 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Master Playback Switch'
value.0 true
value.1 true
}
control.4 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 43'
iface MIXER
name 'Master Playback Volume'
value.0 0
value.1 0
}
}ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:679: codec_mask = 0x1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:591: AUD_IN = 1a
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x1a IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x14 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:628: [Capture Source] NID=0x1a, #SRC=1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:631: [Mic] IDX=0x1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282: AUD_OUT found 19
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x10 IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x10 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x10
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:282: AUD_OUT found 19
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x11 IDX=0x0
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:226: UNMUTE IN: NID=0x11 IDX=0x0 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:210: UNMUTE OUT: NID=0x11
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:534: hda_intel: azx_get_response timeout, switching to polling mode... ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:244: CONNECT: NID=0x1a IDX=0x1
ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:686: [Capture Switch] NID=0x1a, DIR=IN, IDX=0x1 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:706: [Capture Volume] NID=0x1a, DIR=IN, IDX=0x1 ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:693: [Master Playback Switch] NID=0x10, DIR=OUT ALSA /opt/src/asplinux/BUILD/kernel-2.6.17/linux-2.6.17.i686/alsa-driver-1.0.12rc3/pci/hda/../../alsa-kernel/pci/hda/hda_generic.c:713: [Master Playback Volume] NID=0x10, DIR=OUT
Codec: Generic 14f1 ID 5045
Address: 0
Vendor Id: 0x14f15045
Subsystem Id: 0x152d0753
Revision Id: 0x100100
Default PCM: rates 0x140, bits 0x0e, types 0x1 Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x10 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0810014: OUT EAPD Detect
Pin Default 0x92170010: [Fixed] Speaker at Int Front
Conn = Analog, Color = Unknown
Pin-ctls: 0x40: OUT
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x11 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08113c: IN OUT HP Detect
Pin Default 0x01214020: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x12 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
Amp-Out caps: ofs=0x2b, nsteps=0x2b, stepsize=0x05, mute=1 Amp-Out vals: [0xab 0xab]
Pincap 0x08113c: IN OUT HP Detect
Pin Default 0x01813030: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x00:
Power: 0x0
Connection: 2
0x19* 0x17
Node 0x13 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x21447040: [Jack] SPDIF Out at Sep Rear
Conn = RCA, Color = Yellow
Pin-ctls: 0x00:
Connection: 1
0x18
Node 0x14 [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x081124: IN Detect
Pin Default 0x97a70050: [Fixed] Mic at Int Riser
Conn = Analog, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x99330060: [Fixed] CD at Int ATAPI
Conn = ATAPI, Color = Unknown
Pin-ctls: 0x00:
Node 0x16 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0b, mute=1 Amp-Out vals: [0x06]
Node 0x17 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
Amp-In caps: ofs=0x14, nsteps=0x2b, stepsize=0x05, mute=1 Amp-In vals: [0x94 0x94] [0x94 0x94] [0x94 0x94] [0x94 0x94] [0x94 0x94]
Power: 0x0
Connection: 5
0x19 0x14 0x12 0x11 0x15
Node 0x18 [Audio Output] wcaps 0x211: Stereo Digital
PCM: rates 0x040, bits 0x06, types 0x5
Node 0x19 [Audio Output] wcaps 0xc11: Stereo
PCM: rates 0x540, bits 0x0e, types 0x1
Power: 0x0
Node 0x1a [Audio Input] wcaps 0x100d0b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x17, stepsize=0x05, mute=1 Amp-In vals: [0x17 0x17] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Power: 0x0
Connection: 5
0x17 0x14* 0x12 0x11 0x15
Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Hi!
It seems that I've fixed mic problem by adjusting VRef setting on Pin Complex node #0x14.
I am unsure if this is a bug in generic code part or something codec-specific. Patch is attached.
sound/pci/hda/hda_generic.c +86 -38
@@ -551,11 +551,35 @@ static int parse_adc_sub_nodes(struct hd/* unmute the PIN external input */ unmute_input (codec, node,0 );/* index = 0? */ /* set PIN-In enable */ -snd_hda_codec_write (codec, node->nid,0 ,AC_VERB_SET_PIN_WIDGET_CONTROL , pinctl); +snd_hda_codec_write (codec, node->nid,0 ,AC_VERB_SET_PIN_WIDGET_CONTROL , + node->nid ==0x14 ?0x24 : pinctl);return 1 ;/* found */ } +/* add a capture source element */ +static void add_cap_src (struct hda_gspec *spec,int idx) +{ +struct hda_input_mux_item *csrc; +char *buf; +int num, ocap; + + num = spec->input_mux.num_items; + csrc = &spec->input_mux.items[num]; + buf = spec->cap_labels[num]; +for (ocap =0 ; ocap < num; ocap++) { +if (!strcmp (buf, spec->cap_labels[ocap])) { +/* same label already exists, +* put the index number to be unique +*/ +sprintf (buf,"%s %d" , spec->cap_labels[ocap], num); +break ; + } + } + csrc->index = idx; + spec->input_mux.num_items++; +} +/* * parse input */
@@ -576,28 +600,26 @@ static int parse_input_path(struct hda_c* if it reaches to a proper input PIN, add the path as the * input path. */ +/* first, check the direct connections to PIN widgets */ for (i =0 ; i < adc_node->nconns; i++) { node =hda_get_node (spec, adc_node->conn_list[i]); -if (! node) -continue ; - err =parse_adc_sub_nodes (codec, spec, node); -if (err <0 ) -return err; -else if (err >0 ) { -struct hda_input_mux_item *csrc = &spec->input_mux.items[spec->input_mux.num_items]; -char *buf = spec->cap_labels[spec->input_mux.num_items]; -int ocap; -for (ocap =0 ; ocap < spec->input_mux.num_items; ocap++) { -if (!strcmp (buf, spec->cap_labels[ocap])) { -/* same label already exists, -* put the index number to be unique -*/ -sprintf (buf,"%s %d" , spec->cap_labels[ocap], - spec->input_mux.num_items); - } - } - csrc->index = i; - spec->input_mux.num_items++; +if (node && node->type ==AC_WID_PIN ) { + err =parse_adc_sub_nodes (codec, spec, node); +if (err <0 ) +return err; +else if (err >0 ) +add_cap_src (spec, i); + } + } +/* ... then check the rests, more complicated connections */ +for (i =0 ; i < adc_node->nconns; i++) { + node =hda_get_node (spec, adc_node->conn_list[i]); +if (node && node->type !=AC_WID_PIN ) { + err =parse_adc_sub_nodes (codec, spec, node); +if (err <0 ) +return err; +else if (err >0 ) +add_cap_src (spec, i); } }
@@ -647,9 +669,6 @@ static int parse_input(struct hda_codec/* * create mixer controls if possible */ -#define DIR_OUT 0x1 -#define DIR_IN 0x2 -static int create_mixer (struct hda_codec *codec,struct hda_gnode *node,unsigned int index,const char *type,const char *dir_sfx) {
@@ -743,28 +762,57 @@ static int build_input_controls(struct h {struct hda_gspec *spec = codec->spec;struct hda_gnode *adc_node = spec->adc_node; -int err; +int i, err; +static struct snd_kcontrol_new cap_sel = { + .iface =SNDRV_CTL_ELEM_IFACE_MIXER , + .name ="Capture Source" , + .info = capture_source_info, + .get = capture_source_get, + .put = capture_source_put, + }; -if (! adc_node) +if (! adc_node || ! spec->input_mux.num_items)return 0 ;/* not found */ + spec->cur_cap_src =0 ; +select_input_connection (codec, adc_node, + spec->input_mux.items[0 ].index); +/* create capture volume and switch controls if the ADC has an amp */ - err =create_mixer (codec, adc_node,0 ,NULL ,"Capture" ); +/* do we have only a single item? */ +if (spec->input_mux.num_items ==1 ) { + err =create_mixer (codec, adc_node, + spec->input_mux.items[0 ].index, +NULL ,"Capture" ); +if (err <0 ) +return err; +return 0 ; + }/* create input MUX if multiple sources are available */ -if (spec->input_mux.num_items >1 ) { -static struct snd_kcontrol_new cap_sel = { - .iface =SNDRV_CTL_ELEM_IFACE_MIXER , - .name ="Capture Source" , - .info = capture_source_info, - .get = capture_source_get, - .put = capture_source_put, - }; -if ((err =snd_ctl_add (codec->bus->card,snd_ctl_new1 (&cap_sel, codec))) <0 ) +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&cap_sel, codec))) <0 ) +return err; + +/* no volume control? */ +if (! (adc_node->wid_caps &AC_WCAP_IN_AMP ) || + ! (adc_node->amp_in_caps &AC_AMPCAP_NUM_STEPS )) +return 0 ; + +for (i =0 ; i < spec->input_mux.num_items; i++) { +struct snd_kcontrol_new knew; +char name[32 ]; +sprintf (name,"%s Capture Volume" , + spec->input_mux.items[i].label); + knew = (struct snd_kcontrol_new ) +HDA_CODEC_VOLUME (name, adc_node->nid, + spec->input_mux.items[i].index, +HDA_INPUT ); +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&knew, codec))) <0 )return err; - spec->cur_cap_src =0 ; -select_input_connection (codec, adc_node, spec->input_mux.items[0 ].index); } +return 0 ; }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Wed, 23 Aug 2006 16:29:04 +0400,
Quoted 5 lines · Andrew L. Neporada
Hi!
It seems that I've fixed mic problem by adjusting VRef setting on Pin Complex node #0x14.
Good catch.
Could you try the patch below instead?
Takashi
pci/hda/hda_generic.c +90 -40
@@ -461,14 +461,17 @@ static const char *get_input_type(structreturn "Front Line" ;return "Line" ;case AC_JACK_CD : +#if 0 if (pinctl) *pinctl |=AC_PINCTL_VREF_GRD ; +#endif return "CD" ;case AC_JACK_AUX :if ((location &0x0f ) ==AC_JACK_LOC_FRONT )return "Front Aux" ;return "Aux" ;case AC_JACK_MIC_IN : + *pinctl |=AC_PINCTL_VREF_80 ;if ((location &0x0f ) ==AC_JACK_LOC_FRONT )return "Front Mic" ;return "Mic" ;
@@ -556,6 +559,29 @@ static int parse_adc_sub_nodes(struct hdreturn 1 ;/* found */ } +/* add a capture source element */ +static void add_cap_src (struct hda_gspec *spec,int idx) +{ +struct hda_input_mux_item *csrc; +char *buf; +int num, ocap; + + num = spec->input_mux.num_items; + csrc = &spec->input_mux.items[num]; + buf = spec->cap_labels[num]; +for (ocap =0 ; ocap < num; ocap++) { +if (!strcmp (buf, spec->cap_labels[ocap])) { +/* same label already exists, +* put the index number to be unique +*/ +sprintf (buf,"%s %d" , spec->cap_labels[ocap], num); +break ; + } + } + csrc->index = idx; + spec->input_mux.num_items++; +} +/* * parse input */
@@ -576,28 +602,26 @@ static int parse_input_path(struct hda_c* if it reaches to a proper input PIN, add the path as the * input path. */ +/* first, check the direct connections to PIN widgets */ for (i =0 ; i < adc_node->nconns; i++) { node =hda_get_node (spec, adc_node->conn_list[i]); -if (! node) -continue ; - err =parse_adc_sub_nodes (codec, spec, node); -if (err <0 ) -return err; -else if (err >0 ) { -struct hda_input_mux_item *csrc = &spec->input_mux.items[spec->input_mux.num_items]; -char *buf = spec->cap_labels[spec->input_mux.num_items]; -int ocap; -for (ocap =0 ; ocap < spec->input_mux.num_items; ocap++) { -if (!strcmp (buf, spec->cap_labels[ocap])) { -/* same label already exists, -* put the index number to be unique -*/ -sprintf (buf,"%s %d" , spec->cap_labels[ocap], - spec->input_mux.num_items); - } - } - csrc->index = i; - spec->input_mux.num_items++; +if (node && node->type ==AC_WID_PIN ) { + err =parse_adc_sub_nodes (codec, spec, node); +if (err <0 ) +return err; +else if (err >0 ) +add_cap_src (spec, i); + } + } +/* ... then check the rests, more complicated connections */ +for (i =0 ; i < adc_node->nconns; i++) { + node =hda_get_node (spec, adc_node->conn_list[i]); +if (node && node->type !=AC_WID_PIN ) { + err =parse_adc_sub_nodes (codec, spec, node); +if (err <0 ) +return err; +else if (err >0 ) +add_cap_src (spec, i); } }
@@ -647,9 +671,6 @@ static int parse_input(struct hda_codec/* * create mixer controls if possible */ -#define DIR_OUT 0x1 -#define DIR_IN 0x2 -static int create_mixer (struct hda_codec *codec,struct hda_gnode *node,unsigned int index,const char *type,const char *dir_sfx) {
@@ -743,28 +764,57 @@ static int build_input_controls(struct h {struct hda_gspec *spec = codec->spec;struct hda_gnode *adc_node = spec->adc_node; -int err; - -if (! adc_node) +int i, err; +static struct snd_kcontrol_new cap_sel = { + .iface =SNDRV_CTL_ELEM_IFACE_MIXER , + .name ="Capture Source" , + .info = capture_source_info, + .get = capture_source_get, + .put = capture_source_put, + }; + +if (! adc_node || ! spec->input_mux.num_items)return 0 ;/* not found */ + spec->cur_cap_src =0 ; +select_input_connection (codec, adc_node, + spec->input_mux.items[0 ].index); +/* create capture volume and switch controls if the ADC has an amp */ - err =create_mixer (codec, adc_node,0 ,NULL ,"Capture" ); +/* do we have only a single item? */ +if (spec->input_mux.num_items ==1 ) { + err =create_mixer (codec, adc_node, + spec->input_mux.items[0 ].index, +NULL ,"Capture" ); +if (err <0 ) +return err; +return 0 ; + }/* create input MUX if multiple sources are available */ -if (spec->input_mux.num_items >1 ) { -static struct snd_kcontrol_new cap_sel = { - .iface =SNDRV_CTL_ELEM_IFACE_MIXER , - .name ="Capture Source" , - .info = capture_source_info, - .get = capture_source_get, - .put = capture_source_put, - }; -if ((err =snd_ctl_add (codec->bus->card,snd_ctl_new1 (&cap_sel, codec))) <0 ) -return err; - spec->cur_cap_src =0 ; -select_input_connection (codec, adc_node, spec->input_mux.items[0 ].index); - } +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&cap_sel, codec))) <0 ) +return err; + +/* no volume control? */ +if (! (adc_node->wid_caps &AC_WCAP_IN_AMP ) || + ! (adc_node->amp_in_caps &AC_AMPCAP_NUM_STEPS )) +return 0 ; + +for (i =0 ; i < spec->input_mux.num_items; i++) { +struct snd_kcontrol_new knew; +char name[32 ]; +sprintf (name,"%s Capture Volume" , + spec->input_mux.items[i].label); + knew = (struct snd_kcontrol_new ) +HDA_CODEC_VOLUME (name, adc_node->nid, + spec->input_mux.items[i].index, +HDA_INPUT ); +if ((err =snd_ctl_add (codec->bus->card, +snd_ctl_new1 (&knew, codec))) <0 ) +return err; + } +return 0 ; }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 11 lines · Takashi Iwai
At Wed, 23 Aug 2006 16:29:04 +0400,
Quoted 5 lines · Andrew L. Neporada
Hi!
It seems that I've fixed mic problem by adjusting VRef setting on Pin Complex node #0x14.
Good catch.
Could you try the patch below instead?
It works also.
But I am a bit unsure about
case AC_JACK_MIC_IN:
+ *pinctl |= AC_PINCTL_VREF_80;
Shouldn't this be conditional and based on node->pin_caps VREF caps? Maybe we need patch_connexant.c ?
Quoted 2 lines
Takashi
Andrew.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Wed, 23 Aug 2006 18:17:43 +0400,
Quoted 21 lines · Andrew L. Neporada
Quoted 11 lines · Takashi Iwai
At Wed, 23 Aug 2006 16:29:04 +0400,
Quoted 5 lines · Andrew L. Neporada
Hi!
It seems that I've fixed mic problem by adjusting VRef setting on Pin Complex node #0x14.
Good catch.
Could you try the patch below instead?It works also.
But I am a bit unsure about
pci/hda/hda_generic.c +1
-0case AC_JACK_MIC_IN : + *pinctl |=AC_PINCTL_VREF_80 ;
Quoted 1 line
Shouldn't this be conditional and based on
node->pin_capsVREF caps?
Right, it's safer to check the pin caps like:
if (node->pin_caps & (AC_PINCAP_VREF_80 << AC_PINCAP_VREF_SHIFT)) *pinctl |= AC_PINCTL_VREF_80;
Quoted 1 line
Maybe we need
patch_connexant.c?
Yes, it'll be more flexible for changing the code.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 4 lines · Takashi Iwai
Good to hear that playback actually works on some machine. How is the mixer status? Check the generated file via "alsactl -f somefile store".
alsactl output attached
Quoted 3 lines
The problem looks like that the input amp value isn't raised for the audio-input node
0x1a. Could be a bug of generic parser routine.
How can I help to investigate this issue?
Quoted 3 lines
Takashi
Andrew
state.Intel {
control.1 {
comment.access 'read write'
comment.type BOOLEAN
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.2 {
comment.access 'read write'
comment.type INTEGER
comment.range '0 - 23'
iface MIXER
name 'Capture Volume'
value.0 23
value.1 23
}
control.3 {
comment.access 'read write'
comment.type BOOLEAN
iface MIXER
name 'Master Playback Switch'
value.0 true
value.1 true
}
control.4 {
comment.access 'read write'
comment.type INTEGER
comment.range '0 - 43'
iface MIXER
name 'Master Playback Volume'
value.0 0
value.1 0
}
}-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Wed, 16 Aug 2006 17:44:12 +0400,
Quoted 9 lines · Andrew L. Neporada
[1 <text/plain (7bit)>]
Quoted 4 lines · Takashi Iwai
Good to hear that playback actually works on some machine. How is the mixer status? Check the generated file via "alsactl -f somefile store".
alsactl output attached
Thanks. It shows that only one input item was parsed while the codec tree has more.
Please try to build the drivers with detect debug configure option (--with-debug=detect), and see the kernel messages at loading the driver. It must be more verbose.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642