All of lore.kernel.org
 help / color / mirror / Atom feed
* "modprobe snd_hda_intel" crashes on my hardware
@ 2011-09-27  5:42 Abdelghani Ouchabane
  2011-09-27  5:46 ` Abdelghani Ouchabane
  0 siblings, 1 reply; 28+ messages in thread
From: Abdelghani Ouchabane @ 2011-09-27  5:42 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 5922 bytes --]

Description of problem:

I have a customized sound hardware, it looks that it doesn't follow the
standard 100 %.

I had to patch the sound driver under fedora 9 ( 2.6.27.25-78.2.56.fc9.i686 ),
exactly I patched ./sound/pci/hda/patch_via.c by forcing the driver to program
the codec. It was working fine in Fedora 9.

But in Fedora 15, I have tried the patch the ./sound/pci/hda/patch_via.c, but
unfortunately the path doesn't work.

Please : could you help me to figure out how to patch
./sound/pci/hda/patch_via.c to make sound works in my hardware.


Version-Release number of selected component (if applicable):

kernel-2.6.40.3-0.fc15.i686.rpm


Additional info:

****************************************************************************************************************************************************************************

dmesg log :

[   95.366164] HDA Intel 0000:00:1b.0: PCI INT A -> Link[LNKA] -> GSI 10
(level, low) -> IRQ 10
[   95.366209] HDA Intel 0000:00:1b.0: setting latency timer to 64
[   95.398391] hda_codec: Cannot set up configuration from BIOS.  Using genenic
mode...
[   95.398470] BUG: unable to handle kernel NULL pointer dereference at  
(null)
[   95.398477] IP: [<f83740ac>] via_build_pcms+0x60/0xdc [snd_hda_codec_via]
[   95.398494] *pde = 3173f067 *pte = 00000000 
[   95.398501] Oops: 0000 [#1] PREEMPT 
[   95.398509] Modules linked in: snd_hda_codec_via snd_hda_intel(+)
snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd soundcore
snd_page_alloc ipv6 fakephp cgosdrv(P) joydev mcs7830 usbnet mii usbtouchscreen
iTCO_wdt i2c_i801 pciehp iTCO_vendor_support serio_raw xfs i915 drm_kms_helper
drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan]
[   95.398558] 
[   95.398564] Pid: 4208, comm: modprobe Tainted: P           
2.6.40.3-0.119.delos.i686 #1  
[   95.398572] EIP: 0060:[<f83740ac>] EFLAGS: 00010246 CPU: 0
[   95.398581] EIP is at via_build_pcms+0x60/0xdc [snd_hda_codec_via]
[   95.398587] EAX: f174f000 EBX: 00000000 ECX: 00000000 EDX: dd58f400
[   95.398592] ESI: f837c760 EDI: f174f120 EBP: f17afd28 ESP: f17afd20
[   95.398597]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[   95.398603] Process modprobe (pid: 4208, ti=f17ae000 task=f0e5be30
task.ti=f17ae000)
[   95.398607] Stack:
[   95.398610]  dd58f400 00000001 f17afd68 f81ef28a 00000050 f81f6511 f16aa960
f16aa968
[   95.398622]  00000001 11061708 2d646e73 2d616468 65646f63 64692d63 3031313a
dd58f400
[   95.398634]  f578642c 00000001 f17afd78 f81f5aaf f171da00 f5786424 f17afde4
f816e6fd
[   95.398645] Call Trace:
[   95.398665]  [<f81ef28a>] snd_hda_codec_build_pcms+0x25/0x230
[snd_hda_codec]
[   95.398685]  [<f81f5aaf>] snd_hda_build_pcms+0x17/0x2e [snd_hda_codec]
[   95.398699]  [<f816e6fd>] azx_probe+0x9a6/0xa44 [snd_hda_intel]
[   95.398713]  [<f816d1cd>] ? azx_pcm_open+0x1c8/0x1c8 [snd_hda_intel]
[   95.398725]  [<f816d394>] ? azx_acquire_irq+0x9b/0x9b [snd_hda_intel]
[   95.398737]  [<f816dbb9>] ? kzalloc.constprop.5+0x14/0x14 [snd_hda_intel]
[   95.398749]  [<f816db45>] ? azx_resume+0xfa/0xfa [snd_hda_intel]
[   95.398761]  [<f816d9e7>] ? azx_init_chip+0x1d5/0x1d5 [snd_hda_intel]
[   95.398775]  [<c05dfcc1>] pci_device_probe+0x5e/0xa7
[   95.398787]  [<c06616ef>] driver_probe_device+0x121/0x1fc
[   95.398794]  [<c05dfc39>] ? pci_match_device+0x5d/0x68
[   95.398802]  [<c0661812>] __driver_attach+0x48/0x64
[   95.398810]  [<c0660931>] bus_for_each_dev+0x42/0x6b
[   95.398817]  [<c0661350>] driver_attach+0x1f/0x23
[   95.398824]  [<c06617ca>] ? driver_probe_device+0x1fc/0x1fc
[   95.398832]  [<c0660fcb>] bus_add_driver+0xca/0x210
[   95.398840]  [<c0661c2a>] driver_register+0x84/0xe3
[   95.398848]  [<c05e03f7>] __pci_register_driver+0x34/0x91
[   95.398862]  [<f820c017>] alsa_card_azx_init+0x17/0x19 [snd_hda_intel]
[   95.398871]  [<c0401173>] do_one_initcall+0x8b/0x138
[   95.398878]  [<f820c000>] ? 0xf820bfff
[   95.398889]  [<c045945f>] sys_init_module+0x12bd/0x14dc
[   95.398905]  [<c07c0e94>] syscall_call+0x7/0xb
[   95.398909] Code: 00 f3 a5 8d b8 f0 00 00 00 8b 48 50 8b 70 3c 0f b7 09 66
89 88 cc 00 00 00 b9 0c 00 00 00 f3 a5 8b 88 9c 00 00 00 66 83 78 5c 00 <0f> b7
09 66 89 88 fc 00 00 00 8b 48 64 89 88 c8 00 00 00 75 0a 
[   95.398972] EIP: [<f83740ac>] via_build_pcms+0x60/0xdc [snd_hda_codec_via]
SS:ESP 0068:f17afd20
[   95.398984] CR2: 0000000000000000
[   95.488158] ---[ end trace e7a4603bcd7d8946 ]---

****************************************************************************************************************************************************************************

lspci -v :

 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio
 Controller (rev 02)
 Flags: bus master, fast devsel, latency 0, IRQ 10
 Memory at fea38000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: [50] Power Management version 2
 Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
 Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
 Capabilities: [100] Virtual Channel
 Capabilities: [130] Root Complex Link
 Kernel driver in use: HDA Intel
 Kernel modules: snd-hda-intel

****************************************************************************************************************************************************************************

* Please, I need your great help to make my sound card works as I did for
Fedora 9.

   * Or any workaround.


   * If you need any information, please don't hesitate.

****************************************************************************************************************************************************************************

 * I have used the attached patch to force the driver to program the code.

****************************************************************************************************************************************************************************


Thanks a lot in advance.
 


[-- Attachment #2: linux-2.6.27-sound-ezono.patch --]
[-- Type: text/x-patch, Size: 3030 bytes --]

diff -auNrp kernel-2.6.26.orig/sound/pci/hda/patch_via.c kernel-2.6.26.new/sound/pci/hda/patch_via.c
--- kernel-2.6.26.orig/sound/pci/hda/patch_via.c	2008-10-17 18:58:06.000000000 +0200
+++ kernel-2.6.26.new/sound/pci/hda/patch_via.c	2008-10-17 19:01:21.000000000 +0200
@@ -891,6 +891,49 @@ static int via_auto_init(struct hda_code
 	return 0;
 }
 
+static int ezono_vt1708_init(struct hda_codec *codec)
+{
+    /* THis is added because Ezono sound card doesn't support auto detection */
+    
+    /* Port_A PW0 */
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x00);
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_B Pw1 */
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x40);
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0xa0);
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_D PW3 */
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x10);
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x01);
+
+    /* Port_E PW4 */
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x00);
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x20);
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_G PW6 */
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x02);
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_H PW7 */
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x04);
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+    
+    return 0;
+}
+
 static int patch_vt1708(struct hda_codec *codec)
 {
 	struct via_spec *spec;
@@ -902,7 +945,10 @@ static int patch_vt1708(struct hda_codec
 		return -ENOMEM;
 
 	codec->spec = spec;
-
+	
+	/* Init Ezono Sound card */
+	ezono_vt1708_init(codec);
+	
 	/* automatic parse from the BIOS config */
 	err = vt1708_parse_auto_config(codec);
 	if (err < 0) {

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 28+ messages in thread
* "modprobe snd_hda_intel" crashes on my hardware
@ 2011-09-27  6:41 Abdelghani Ouchabane
  2011-09-27 13:18 ` Clemens Ladisch
  2011-09-28  6:00 ` Takashi Iwai
  0 siblings, 2 replies; 28+ messages in thread
From: Abdelghani Ouchabane @ 2011-09-27  6:41 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: linux-2.6.27-sound-ezono.patch --]
[-- Type: text/x-patch, Size: 3030 bytes --]

diff -auNrp kernel-2.6.26.orig/sound/pci/hda/patch_via.c kernel-2.6.26.new/sound/pci/hda/patch_via.c
--- kernel-2.6.26.orig/sound/pci/hda/patch_via.c	2008-10-17 18:58:06.000000000 +0200
+++ kernel-2.6.26.new/sound/pci/hda/patch_via.c	2008-10-17 19:01:21.000000000 +0200
@@ -891,6 +891,49 @@ static int via_auto_init(struct hda_code
 	return 0;
 }
 
+static int ezono_vt1708_init(struct hda_codec *codec)
+{
+    /* THis is added because Ezono sound card doesn't support auto detection */
+    
+    /* Port_A PW0 */
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x00);
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x1c, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_B Pw1 */
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x40);
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0xa0);
+    snd_hda_codec_write(codec, 0x1d, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_D PW3 */
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x10);
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x1f, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x01);
+
+    /* Port_E PW4 */
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x00);
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x20);
+    snd_hda_codec_write(codec, 0x20, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_G PW6 */
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x02);
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x22, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+
+    /* Port_H PW7 */
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_0, 0x04);
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_1, 0xf0);
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_2, 0x00);
+    snd_hda_codec_write(codec, 0x23, 0, AC_VERB_SET_CONFIG_DEFAULT_BYTES_3, 0x00);
+    
+    return 0;
+}
+
 static int patch_vt1708(struct hda_codec *codec)
 {
 	struct via_spec *spec;
@@ -902,7 +945,10 @@ static int patch_vt1708(struct hda_codec
 		return -ENOMEM;
 
 	codec->spec = spec;
-
+	
+	/* Init Ezono Sound card */
+	ezono_vt1708_init(codec);
+	
 	/* automatic parse from the BIOS config */
 	err = vt1708_parse_auto_config(codec);
 	if (err < 0) {

[-- Attachment #3: alsa-info.txt.GvL1bsgeRt --]
[-- Type: text/plain, Size: 18348 bytes --]

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

!!Script ran on: Mon Aug 22 22:33:45 UTC 2011


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

Fedora release 15 (Lovelock) Fedora release 15 (Lovelock) Fedora release 15 (Lovelock) Fedora release 15 (Lovelock)


!!DMI Information
!!---------------

Manufacturer:      
Product Name:      
Product Version:   


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

Kernel release:    2.6.40.3-0.119.delos.i686
Operating System:  GNU/Linux
Architecture:      i686
Processor:         i686
SMP Enabled:       No


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

Driver version:     1.0.24
Library version:    
Utilities version:  1.0.24.1


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

snd_hda_intel


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

No sound servers found.


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

 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfea38000 irq 10


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

00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)


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

00:1b.0 0403: 8086:27d8 (rev 02)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-


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

!!Module: snd_hda_intel
	bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	beep_mode : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
	enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
	enable_msi : -1
	id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	single_cmd : N


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

Codec: VIA VT1708
Address: 2
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x11061708
Subsystem Id: 0xffffffff
Revision Id: 0x100700
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=0, o=0, i=0, unsolicited=0, wake=0
Node 0x10 [Audio Output] wcaps 0x411: Stereo
  Device: name="VT1708 Analog", type="Audio", device=0
  Converter: stream=0, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1
  Power: setting=D0, actual=D0
Node 0x11 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1
  Power: setting=D0, actual=D0
Node 0x12 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1
  Power: setting=D0, actual=D0
Node 0x13 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1
  Power: setting=D0, actual=D0
Node 0x14 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xa]: 16 24
    formats [0x5]: PCM AC3
Node 0x15 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="VT1708 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x00, nsteps=0x14, stepsize=0x06, mute=1
  Amp-In vals:  [0x0f 0x0f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x440]: 48000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1
  Power: setting=D0, actual=D0
  Connection: 1
     0x18
Node 0x16 [Audio Input] wcaps 0x100311: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital: Validity
  Digital category: 0x0
  PCM:
    rates [0x1f0]: 32000 44100 48000 88200 96000
    bits [0xa]: 16 24
    formats [0x5]: PCM AC3
  Connection: 1
     0x26
Node 0x17 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Control: name="Master Front Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Master Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x06, mute=1
  Amp-In vals:  [0x18 0x18] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 6
     0x10 0x24 0x1d 0x1e 0x21 0x13
Node 0x18 [Audio Selector] wcaps 0x300101: Stereo
  Control: name="Input Source", index=0, device=0
  Connection: 5
     0x17* 0x24 0x1d 0x1e 0x21
Node 0x19 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x00 0x00]
  Connection: 1
     0x11
Node 0x1a [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x00 0x00]
  Connection: 1
     0x12
Node 0x1b [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x00 0x00]
  Connection: 1
     0x13
Node 0x1c [Pin Complex] wcaps 0x40010d: Stereo Amp-Out
  Amp-Out caps: N/A
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x0000f000: [Jack] Line Out at Ext N/A
    Conn = Unknown, Color = Other
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
  Connection: 1
     0x19
Node 0x1d [Pin Complex] wcaps 0x400101: Stereo
  Control: name="Smart 5.1", index=0, device=0
  Pincap 0x00000334: IN OUT Detect
    Vref caps: HIZ 50
  Pin Default 0x00a0f040: [Jack] Mic at Ext N/A
    Conn = Unknown, Color = Other
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x41: OUT VREF_50
  Connection: 1
     0x1a
Node 0x1e [Pin Complex] wcaps 0x400101: Stereo
  Pincap 0x00000334: IN OUT Detect
    Vref caps: HIZ 50
  Pin Default 0xfffff7ff: [Both] Other at Oth UNKNOWN
    Conn = Other, Color = Other
    DefAssociation = 0xf, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Connection: 1
     0x19
Node 0x1f [Pin Complex] wcaps 0x40010d: Stereo Amp-Out
  Control: name="Front Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x15 0x15]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x0100f010: [Jack] Line Out at Ext Rear
    Conn = Unknown, Color = Other
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x17
Node 0x20 [Pin Complex] wcaps 0x40010d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x1b, nsteps=0x1b, stepsize=0x06, mute=1
  Amp-Out vals:  [0x1b 0x1b]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x0020f000: [Jack] HP Out at Ext N/A
    Conn = Unknown, Color = Other
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Connection: 1
     0x17
Node 0x21 [Pin Complex] wcaps 0x400101: Stereo
  Pincap 0x00000334: IN OUT Detect
    Vref caps: HIZ 50
  Pin Default 0xffffffff: [Both] Other at Oth UNKNOWN
    Conn = Other, Color = Other
    DefAssociation = 0xf, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Connection: 1
     0x1b
Node 0x22 [Pin Complex] wcaps 0x400101: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x0000f002: [Jack] Line Out at Ext N/A
    Conn = Unknown, Color = Other
    DefAssociation = 0x0, Sequence = 0x2
  Pin-ctls: 0x00:
  Connection: 1
     0x1a
Node 0x23 [Pin Complex] wcaps 0x400101: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x0000f004: [Jack] Line Out at Ext N/A
    Conn = Unknown, Color = Other
    DefAssociation = 0x0, Sequence = 0x4
  Pin-ctls: 0x00:
  Connection: 1
     0x1b
Node 0x24 [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x00000020: IN
  Pin Default 0xfffbffff: [Both] Other at Oth UNKNOWN
    Conn = Comb, Color = Other
    DefAssociation = 0xf, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
Node 0x25 [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0xffffffff: [Both] Other at Oth UNKNOWN
    Conn = Other, Color = Other
    DefAssociation = 0xf, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Connection: 1
     0x14
Node 0x26 [Pin Complex] wcaps 0x400201: Stereo Digital
  Pincap 0x00010030: IN OUT EAPD
  EAPD 0x2: EAPD
  Pin Default 0xffffffff: [Both] Other at Oth UNKNOWN
    Conn = Other, Color = Other
    DefAssociation = 0xf, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
Node 0x27 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x14, stepsize=0x06, mute=1
  Amp-In vals:  [0x0f 0x0f]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x440]: 48000 192000
    bits [0xa]: 16 24
    formats [0x1]: PCM
  Power states:  D0 D1
  Power: setting=D0, actual=D0
  Connection: 1
     0x21
--endcollapse--


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

crw-rw---- 1 root cyclades 116,  5 Aug 23 00:33 /dev/snd/controlC0
crw-rw---- 1 root cyclades 116,  4 Aug 23 00:33 /dev/snd/hwC0D2
crw-rw---- 1 root cyclades 116,  3 Aug 23 00:33 /dev/snd/pcmC0D0c
crw-rw---- 1 root cyclades 116,  2 Aug 23 00:33 /dev/snd/pcmC0D0p
crw-rw---- 1 root cyclades 116,  1 Aug 23 00:33 /dev/snd/seq
crw-rw---- 1 root cyclades 116, 33 Aug 23 00:33 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Aug 23 00:33 .
drwxr-xr-x 3 root root 180 Aug 23 00:33 ..
lrwxrwxrwx 1 root root  12 Aug 23 00:33 pci-0000:00:1b.0 -> ../controlC0


!!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: VT1708 Analog [VT1708 Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1708 Analog [VT1708 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 0xfea38000 irq 10'
  Mixer name	: 'VIA VT1708'
  Components	: 'HDA:11061708,ffffffff,00100700'
  Controls      : 15
  Simple ctrls  : 9
Simple mixer control 'Master Front',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 24 [77%] [1.75dB] [on]
  Front Right: Playback 24 [77%] [1.75dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 27
  Mono:
  Front Left: Playback 27 [100%] [0.00dB] [on]
  Front Right: Playback 27 [100%] [0.00dB] [on]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 27
  Mono:
  Front Left: Playback 21 [78%] [-10.50dB] [on]
  Front Right: Playback 21 [78%] [-10.50dB] [on]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-40.25dB] [off]
  Front Right: Playback 0 [0%] [-40.25dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 20
  Front Left: Capture 15 [75%] [26.25dB] [on]
  Front Right: Capture 15 [75%] [26.25dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 20
  Front Left: Capture 15 [75%] [26.25dB] [on]
  Front Right: Capture 15 [75%] [26.25dB] [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Stereo Mixer' 'Mic'
  Item0: 'Stereo Mixer'
Simple mixer control 'Jack Detect',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Smart 5.1',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]


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

--startcollapse--
state.Intel {
	control.1 {
		iface MIXER
		name 'Jack Detect'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.2 {
		iface MIXER
		name 'Master Front Playback Volume'
		value.0 24
		value.1 24
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4025
			dbmax 1400
			dbvalue.0 175
			dbvalue.1 175
		}
	}
	control.3 {
		iface MIXER
		name 'Master Front Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.4 {
		iface MIXER
		name 'Front Playback Volume'
		value.0 21
		value.1 21
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 -1050
			dbvalue.1 -1050
		}
	}
	control.5 {
		iface MIXER
		name 'Front Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.6 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 27
		value.1 27
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 27'
			dbmin -4725
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.7 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -4025
			dbmax 1400
			dbvalue.0 -4025
			dbvalue.1 -4025
		}
	}
	control.9 {
		iface MIXER
		name 'Mic Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.10 {
		iface MIXER
		name 'Smart 5.1'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.11 {
		iface MIXER
		name 'Capture Volume'
		value.0 15
		value.1 15
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 20'
			dbmin 0
			dbmax 3500
			dbvalue.0 2625
			dbvalue.1 2625
		}
	}
	control.12 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.13 {
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 15
		value.1 15
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 20'
			dbmin 0
			dbmax 3500
			dbvalue.0 2625
			dbvalue.1 2625
		}
	}
	control.14 {
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.15 {
		iface MIXER
		name 'Input Source'
		value 'Stereo Mixer'
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 'Stereo Mixer'
			item.1 Mic
		}
	}
}
--endcollapse--


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

Module
snd_hda_codec_via
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_seq
snd_seq_device
snd_pcm
snd_timer
snd
soundcore
snd_page_alloc
ipv6
fakephp
cgosdrv
joydev
mcs7830
usbnet
mii
usbtouchscreen
iTCO_wdt
iTCO_vendor_support
i2c_i801
serio_raw
pciehp
xfs
i915
drm_kms_helper
drm
i2c_algo_bit
i2c_core
video


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

/sys/class/sound/hwC0D2/init_pin_configs:
0x1c 0x0000f000
0x1d 0x00a0f040
0x1e 0xfffff7ff
0x1f 0x0100f010
0x20 0x0020f000
0x21 0xffffffff
0x22 0x0000f002
0x23 0x0000f004
0x24 0xfffbffff
0x25 0xffffffff
0x26 0xffffffff

/sys/class/sound/hwC0D2/driver_pin_configs:

/sys/class/sound/hwC0D2/user_pin_configs:

/sys/class/sound/hwC0D2/init_verbs:


!!ALSA/HDA dmesg
!!------------------

[   43.978457] XFS (sda2): Ending clean mount
[  153.600185] HDA Intel 0000:00:1b.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, low) -> IRQ 10
[  153.600227] HDA Intel 0000:00:1b.0: setting latency timer to 64



[-- Attachment #4: codec#2 --]
[-- Type: text/plain, Size: 0 bytes --]



[-- Attachment #5: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2011-09-28 15:22 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27  5:42 "modprobe snd_hda_intel" crashes on my hardware Abdelghani Ouchabane
2011-09-27  5:46 ` Abdelghani Ouchabane
  -- strict thread matches above, loose matches on Subject: below --
2011-09-27  6:41 Abdelghani Ouchabane
2011-09-27 13:18 ` Clemens Ladisch
2011-09-27 12:20   ` Abdelghani Ouchabane
2011-09-28  4:01   ` Raymond Yau
2011-09-28  6:15   ` Abdelghani Ouchabane
2011-09-28  6:50   ` Abdelghani Ouchabane
2011-09-28  6:54   ` Abdelghani Ouchabane
2011-09-28  7:10   ` Abdelghani Ouchabane
2011-09-28  6:00 ` Takashi Iwai
2011-09-28  6:24   ` Abdelghani Ouchabane
2011-09-28  9:07     ` Takashi Iwai
2011-09-28  9:50       ` Paul Menzel
2011-09-28  8:34         ` Abdelghani Ouchabane
2011-09-28 13:42         ` Takashi Iwai
2011-09-28  6:51   ` Abdelghani Ouchabane
2011-09-28  7:00   ` Abdelghani Ouchabane
2011-09-28  7:54   ` Abdelghani Ouchabane
2011-09-28  8:20     ` Abdelghani Ouchabane
2011-09-28 13:43     ` Takashi Iwai
2011-09-28 12:22       ` Abdelghani Ouchabane
2011-09-28 14:23         ` Takashi Iwai
2011-09-28 12:51           ` Abdelghani Ouchabane
2011-09-28 14:58             ` Takashi Iwai
2011-09-28 13:19               ` Abdelghani Ouchabane
2011-09-28 15:01             ` Clemens Ladisch
2011-09-28 13:22               ` Abdelghani Ouchabane

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.