Fix alc662_dac_nid and change 6stack-dig to 5stack-dig
PATCH 1/1 Fix alc662_dac_nid and change 6stack-dig to 5stack-dig
Fix alc662_dac_nid and change "6stack-dig" to "5stack-dig"
alc662 series only have 3 stereo DAC , so it can only support 5stack-dig instead of 6stack-dig
From b0db958a0a93f7a0ead332e8265a601494da1f4e Mon Sep 17 00:00:00 2001
From: Raymond Yau <[email protected]>
Date: Tue, 5 Apr 2011 22:47:15 +0800
Subject: [PATCH ALSA HDA 1/1] Fix alc662_dac_nid and change "6stack-dig" to "5stack-dig"
alc662 series only have 3 DAC , so it can only support 5stack-dig instead of 6stack-dig
sound/pci/hda/patch_realtek.c +3 -3
@@ -17411,8 +17411,8 @@ static int patch_alc861vd(struct hda_codec *codec)#define ALC662_DIGOUT_NID 0x06#define ALC662_DIGIN_NID 0x0a -static hda_nid_t alc662_dac_nids[4 ] = { -/* front, rear, clfe, rear_surr */ +static hda_nid_t alc662_dac_nids[3 ] = { +/* front, rear, clfe */ 0x02 ,0x03 ,0x04 };
@@ -18670,7 +18670,7 @@ static const char * const alc662_models[ALC662_MODEL_LAST] = { [ALC662_3ST_2ch_DIG] = "3stack-dig", [ALC662_3ST_6ch_DIG] = "3stack-6ch-dig", [ALC662_3ST_6ch] = "3stack-6ch", - [ALC662_5ST_DIG] = "6stack-dig", + [ALC662_5ST_DIG] = "5stack-dig", [ALC662_LENOVO_101E] = "lenovo-101e", [ALC662_ASUS_EEEPC_P701] = "eeepc-p701", [ALC662_ASUS_EEEPC_EP20] = "eeepc-ep20",
Signature · 1 line
1.6.0.6
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 5 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support 5stack-dig instead of 6stack-dig
Applied now. Thanks.
Takashi
2011/4/6 Takashi Iwai <[email protected]>
Quoted 5 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 3 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"
Quoted 8 lines
Quoted 2 lines
alc662 series only have 3 stereo DAC , so it can only support 5stack-dig instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },
http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
ALC892 provides ten DAC channels that simultaneously support 7.1 channel sound playback, plus 2 channels of independent stereo sound output (multiple streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels alc892 from those 6 channels alc6xx
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 21 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 5 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 3 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"Quoted 8 lines
Quoted 2 lines
alc662 series only have 3 stereo DAC , so it can only support 5stack-dig instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },
Quoted 8 lines
http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
ALC892 provides ten DAC channels that simultaneously support 7.1 channel sound playback, plus 2 channels of independent stereo sound output (multiple streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels alc892 from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
2011/4/6 Takashi Iwai <[email protected]>
Quoted 36 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Quoted 8 lines
Quoted 2 lines
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 3 lines
ALC892 provides ten DAC channels that simultaneously support 7.1 channel sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels
alc892
Quoted 1 line
from those 6 channels alc6xx
Quoted 8 lines
Yeah, but there is no quirks specific to alc892.
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
My patch reduce the size of alc662_dac_nid may be wrong if the driver intend to use alc662_auto_fill_dac_nids() to handle 6, 8 , 10 channels
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 45 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 42 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Quoted 8 lines
Quoted 2 lines
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 3 lines
ALC892 provides ten DAC channels that simultaneously support 7.1 channel sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Remember that the final goal is to remove all model-quirks from the driver.
Quoted 5 lines
Quoted 2 lines
Takashi
My patch reduce the size of
alc662_dac_nidmay be wrong if the driver intend to usealc662_auto_fill_dac_nids()to handle 6, 8 , 10 channels
Don't worry, alc662_dac_nids is used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.
Takashi
Sorry for the intrusion,
I've a P7H55D-M Pro motherboard with an hda-intel realtek card (ALC892) i open a ticket in alsa bugtracker and Raymond says me to post here. My motherboard had 6 pinjack behind and optical output on it, from the specification page on asus (
http://uk.asus.com/product.aspx?P_ID=qWmZUAdNKeozTOXb&templete=2 )
Realtek ALC892 8-Channel High Definition Audio CODEC
- BD Audio Layer Content Protection
- Support Jack-dectection, Multi-streaming,Front Panel Jack-Retasking (Mic in port)
- ASUS Noise Filter
- Optical S/PDIF out ports at back I/O
Quoted 1 line
From 2.6.38 kernel i've got a lot of problems with it, sound cracky,
microphone doesnt work or work badly, no sound after a random time of use and some other problems.
I'm now using 2.6.39-rc1 with kernel distribuited alsa build-in with kernel,
About my bios config
[Front Panel] = AC97
[SPDIF OUT] = SPDIF
my latest alsa info is http://valeriotesei.com/alsa/alsainfo
Link to ticket (to see my discussion with Raymond)
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5331
Let me know if i could help in some way, i'm not so skilled to help with source code, but i could be a beta tester.
Sorry if i'm off-topic.
Hope this will help you.
2011/4/6 Takashi Iwai <[email protected]>
Quoted 66 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Quoted 8 lines
Quoted 6 lines
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
My patch reduce the size of
alc662_dac_nidmay be wrong if the driverintend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
2011/4/6 Valerio tesei <[email protected]>
Quoted 73 lines
Sorry for the intrusion,
I've a P7H55D-M Pro motherboard with an hda-intel realtek card (ALC892) i open a ticket in alsa bugtracker and Raymond says me to post here. My motherboard had 6 pinjack behind and optical output on it, from the specification page on asus (
http://uk.asus.com/product.aspx?P_ID=qWmZUAdNKeozTOXb&templete=2 )Realtek ALC892 8-Channel High Definition Audio CODEC
- BD Audio Layer Content Protection
- Support Jack-dectection, Multi-streaming,Front Panel Jack-Retasking (Mic in port)
- ASUS Noise Filter
- Optical S/PDIF out ports at back I/OFrom 2.6.38 kernel i've got a lot of problems with it, sound cracky, microphone doesnt work or work badly, no sound after a random time of use and some other problems.
I'm now using 2.6.39-rc1 with kernel distribuited alsa build-in with kernel,About my bios config
[Front Panel] = AC97
[SPDIF OUT] = SPDIFmy latest alsa info is http://valeriotesei.com/alsa/alsainfo
Link to ticket (to see my discussion with Raymond)
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5331Let me know if i could help in some way, i'm not so skilled to help with source code, but i could be a beta tester.
Sorry if i'm off-topic.
Hope this will help you.
2011/4/6 Takashi Iwai <[email protected]>
Quoted 32 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 30 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10
channels
Quoted 22 lines
Quoted 5 lines
Quoted 5 lines
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Quoted 8 lines
Quoted 6 lines
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
My patch reduce the size of
alc662_dac_nidmay be wrong if the driverintend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.Takashi
I guess the driver still need to provide init_verbs for alc892 for the side channel mixer 0x0f since alc662_parse_auto_config() use different init_verbs for different codec
especially alc662_init_verbs
send: NID=0x15, VERB=0x70c(set_eapd_btl), PARM=0x2 EAPD command to non-capable pin 0x15
This evening i will check out the Takashi sound-2.6 git kernel tree and update it every day to give feedback on problems with this card on my motherboard.
If i could help in any other way (debug, dmesg or others) let me know :)
why alsaconf does not find my card? what i'm wrong?
anyway, thanks for all this work.
V.
2011/4/7 Raymond Yau <[email protected]>
Quoted 123 lines
2011/4/6 Valerio tesei <[email protected]>
Quoted 73 lines
Sorry for the intrusion,
I've a P7H55D-M Pro motherboard with an hda-intel realtek card (ALC892) i open a ticket in alsa bugtracker and Raymond says me to post here. My motherboard had 6 pinjack behind and optical output on it, from the specification page on asus (
http://uk.asus.com/product.aspx?P_ID=qWmZUAdNKeozTOXb&templete=2 )Realtek ALC892 8-Channel High Definition Audio CODEC
- BD Audio Layer Content Protection
- Support Jack-dectection, Multi-streaming,Front Panel Jack-Retasking (Mic in port)
- ASUS Noise Filter
- Optical S/PDIF out ports at back I/OFrom 2.6.38 kernel i've got a lot of problems with it, sound cracky, microphone doesnt work or work badly, no sound after a random time of use and some other problems.
I'm now using 2.6.39-rc1 with kernel distribuited alsa build-in with kernel,About my bios config
[Front Panel] = AC97
[SPDIF OUT] = SPDIFmy latest alsa info is http://valeriotesei.com/alsa/alsainfo
Link to ticket (to see my discussion with Raymond)
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5331Let me know if i could help in some way, i'm not so skilled to help with source code, but i could be a beta tester.
Sorry if i'm off-topic.
Hope this will help you.
2011/4/6 Takashi Iwai <[email protected]>
Quoted 32 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 30 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10
channels
Quoted 22 lines
Quoted 5 lines
Quoted 5 lines
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Quoted 8 lines
Quoted 6 lines
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
My patch reduce the size of
alc662_dac_nidmay be wrong if the driverintend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.Takashi
I guess the driver still need to provide
init_verbsfor alc892 for the side channel mixer0x0fsincealc662_parse_auto_config()use differentinit_verbsfor different codecespecially
alc662_init_verbssend: NID=0x15, VERB=0x70c(set_eapd_btl), PARM=0x2 EAPD command to non-capable pin
0x15
2011/4/7 Valerio tesei <[email protected]>
Quoted 11 lines
This evening i will check out the Takashi sound-2.6 git kernel tree and update it every day to give feedback on problems with this card on my motherboard.
If i could help in any other way (debug, dmesg or others) let me know :)
why alsaconf does not find my card? what i'm wrong?
anyway, thanks for all this work.
You have to find out from system log which hardware cannot ioremap
[ 250.950937] ioremap error for 0xdde70000-0xdde71000, requested 0x10, got
0x0
Is it normal to have so many hda_codec_cleanup_stream ?
[ 369.824424] hda_codec_cleanup_stream: NID=0x9 [ 369.824857] hda_codec_cleanup_stream: NID=0x9 [ 369.825335] hda_codec_cleanup_stream: NID=0x9 [ 369.825764] hda_codec_cleanup_stream: NID=0x9 [ 369.826232] hda_codec_cleanup_stream: NID=0x9 [ 369.826634] hda_codec_cleanup_stream: NID=0x9 [ 369.827095] hda_codec_cleanup_stream: NID=0x9
The HDA controller seem support multi stream capture
[ 6.748965] hda-intel: chipset global capabilities = 0x4401
Two stereo ADCs support 16/20/24-bit PCM format, multiple stereo recording
but the driver only create 1 capture stream.but two capture volume/switches and input sources
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line'
Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line'
Item0: 'Rear Mic'
to find out which hw cannot ioremap just search around dmesg and messages ? Need some debug flag in kernel?
About the stream_cleanup are comed out after enabling verbose messages in kernel config for alsa.
must we rename the subject of the email?
we passed from alc662 to alc892,this may confuse some one else
here is 15.50, at 19.30 i'm back home and could test and compile :)
So write here anything you need, i will post it later.
V.
2011/4/7 Raymond Yau <[email protected]>
Quoted 57 lines
2011/4/7 Valerio tesei <[email protected]>
Quoted 11 lines
This evening i will check out the Takashi sound-2.6 git kernel tree and update it every day to give feedback on problems with this card on my motherboard.
If i could help in any other way (debug, dmesg or others) let me know :)
why alsaconf does not find my card? what i'm wrong?
anyway, thanks for all this work.
You have to find out from system log which hardware cannot ioremap
[ 250.950937] ioremap error for 0xdde70000-0xdde71000, requested 0x10, got
0x0Is it normal to have so many
hda_codec_cleanup_stream?[ 369.824424] hda_codec_cleanup_stream: NID=0x9 [ 369.824857] hda_codec_cleanup_stream: NID=0x9 [ 369.825335] hda_codec_cleanup_stream: NID=0x9 [ 369.825764] hda_codec_cleanup_stream: NID=0x9 [ 369.826232] hda_codec_cleanup_stream: NID=0x9 [ 369.826634] hda_codec_cleanup_stream: NID=0x9 [ 369.827095] hda_codec_cleanup_stream: NID=0x9The HDA controller seem support multi stream capture
[ 6.748965] hda-intel: chipset global capabilities = 0x4401Two stereo ADCs support 16/20/24-bit PCM format, multiple stereo recording
but the driver only create 1 capture stream.but two capture volume/switches and input sources
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line'
Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line'
Item0: 'Rear Mic'
_______________________________________________
Alsa-devel mailing list [email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
I checkout the takashi kernel tree, selected hda-intel and alsa as module and reboot.
After probe i get these debug http://pastebin.com/7hGVe4U3 with (i think) useful informations about,
Looking for the ioremap that Raymond ask about i found :
[ 1048.230360] nvidia: module license 'NVIDIA' taints kernel. [ 1048.230363] Disabling lock debugging due to kernel taint [ 1048.664298] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 1048.664304] nvidia 0000:01:00.0: setting latency timer to 64 [ 1048.664308] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem [ 1048.664529] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 270.18 Tue Jan 18 21:46:26 PST 2011 [ 1048.866318] ioremap error for 0xdde70000-0xdde71000, requested 0x10,
got 0x0
So i could say that ioremap is about nvidia, do you?
This is my latest alsa-info
http://www.alsa-project.org/db/?f=184ce71bf28e38656c1a31a607f9c38c396808a3
Dont care about "failed to load firmware bla bla bla" i found wrong google informations about it :)
Hope to be helpful,
V.
Il 07/04/2011 15:13, Raymond Yau ha scritto:
Quoted 56 lines
2011/4/7 Valerio tesei <[email protected]>
Quoted 11 lines
This evening i will check out the Takashi sound-2.6 git kernel tree and update it every day to give feedback on problems with this card on my motherboard.
If i could help in any other way (debug, dmesg or others) let me know :)
why alsaconf does not find my card? what i'm wrong?
anyway, thanks for all this work.
You have to find out from system log which hardware cannot ioremap
[ 250.950937] ioremap error for 0xdde70000-0xdde71000, requested 0x10, got
0x0Is it normal to have so many
hda_codec_cleanup_stream?[ 369.824424] hda_codec_cleanup_stream: NID=0x9 [ 369.824857] hda_codec_cleanup_stream: NID=0x9 [ 369.825335] hda_codec_cleanup_stream: NID=0x9 [ 369.825764] hda_codec_cleanup_stream: NID=0x9 [ 369.826232] hda_codec_cleanup_stream: NID=0x9 [ 369.826634] hda_codec_cleanup_stream: NID=0x9 [ 369.827095] hda_codec_cleanup_stream: NID=0x9The HDA controller seem support multi stream capture
[ 6.748965] hda-intel: chipset global capabilities = 0x4401Two stereo ADCs support 16/20/24-bit PCM format, multiple stereo recording
but the driver only create 1 capture stream.but two capture volume/switches and input sources
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line'
Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Rear Mic' 'Front Mic' 'Line'
Item0: 'Rear Mic'
_______________________________________________
Alsa-devel mailing list [email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Signature · 4 lines
*Email:* [email protected] *Cellulare:* +39.3394768306 *Gtalk:* [email protected] *LinkedIn:* http://www.linkedin.com/pub/valerio-tesei/22/a87/577
2011/4/8 Valerio Tesei <[email protected]>
Quoted 18 lines
I checkout the takashi kernel tree, selected hda-intel and alsa as module and reboot.
After probe i get these debug http://pastebin.com/7hGVe4U3 with (i think) useful informations about,
Looking for the ioremap that Raymond ask about i found :
[ 1048.230360] nvidia: module license 'NVIDIA' taints kernel. [ 1048.230363] Disabling lock debugging due to kernel taint [ 1048.664298] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 1048.664304] nvidia 0000:01:00.0: setting latency timer to 64 [ 1048.664308] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem [ 1048.664529] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 270.18 Tue Jan 18 21:46:26 PST 2011 [ 1048.866318] ioremap error for 0xdde70000-0xdde71000, requested 0x10,
Quoted 4 lines
got
0x0So i could say that ioremap is about nvidia, do you?
Since your motheboard have hdmi port , you will need to find out whether hdmi port is belonged to nvidia graphic
http://thread.gmane.org/gmane.linux.alsa.devel/81856
Quoted 7 lines
This is my latest alsa-info
http://www.alsa-project.org/db/?f=184ce71bf28e38656c1a31a607f9c38c396808a3Dont care about "failed to load firmware bla bla bla" i found wrong google informations about it :)
It seem that you don't know how to apply patch
you may need to ask Takashi
As for the capture device and two set of capture controls
spec->stream_analog_playback = &alc662_pcm_analog_playback;
spec->stream_analog_capture = &alc662_pcm_analog_capture;+ if (codec->vendor_id == 0x10ec0892)
+ spec->stream_analog_alt_capture =&alc880_pcm_analog_alt_capture;
2011/4/6 Takashi Iwai <[email protected]>
Quoted 53 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Quoted 8 lines
Quoted 6 lines
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
My patch reduce the size of
alc662_dac_nidmay be wrong if the driver
Quoted 9 lines
intend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.Takashi
The bug for 10 channels alc892 is in alc662_mix_to_dac, it should return [Audio Output ]0x5 for [Audiomixer 0x0f] -- side channel if model=auto is used for 6stack
static inline hda_nid_t alc662_mix_to_dac(hda_nid_t nid)
{
if (nid == 0x0f)
return 0x02;
else if (nid >= 0x0c && nid <= 0x0e)
return nid - 0x0c + 0x02;
else if (nid == 0x26) /* ALC887-VD has this DAC too */
return 0x25;
else
return 0;
}At Wed, 6 Apr 2011 20:59:58 +0800,
Quoted 63 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 60 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Quoted 8 lines
Quoted 6 lines
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
My patch reduce the size of
alc662_dac_nidmay be wrong if the driverintend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.
Quoted 6 lines
Quoted 2 lines
Takashi
The bug for 10 channels alc892 is in
alc662_mix_to_dac, it should return [Audio Output ]0x5 for [Audiomixer0x0f] -- side channel if model=auto is used for 6stack
OK, but it's irrelevant with your patch :)
I'll fix it later.
thanks,
Takashi
Quoted 16 lines
static inline
hda_nid_talc662_mix_to_dac(hda_nid_t nid){ if (nid == 0x0f) return 0x02; else if (nid >= 0x0c && nid <= 0x0e) return nid - 0x0c + 0x02; else if (nid == 0x26) /* ALC887-VD has this DAC too */ return 0x25; else return 0; }_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Wed, 06 Apr 2011 15:07:33 +0200,
Quoted 69 lines · Takashi Iwai
At Wed, 6 Apr 2011 20:59:58 +0800,
Quoted 66 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 62 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Quoted 8 lines
Quoted 6 lines
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
My patch reduce the size of
alc662_dac_nidmay be wrong if the driverintend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.Takashi
Quoted 6 lines
Quoted 3 lines
The bug for 10 channels alc892 is in
alc662_mix_to_dac, it should return [Audio Output ]0x5 for [Audiomixer0x0f] -- side channel if model=auto is used for 6stackOK, but it's irrelevant with your patch :)
I'll fix it later.
The fix patch is below.
Takashi
---
From: Takashi Iwai <[email protected]>
Subject: [PATCH] ALSA: hda - Fix mix->DAC deduction for ALC892
The current alc662 parser doesn't set the DAC for the mixer 0x0f properly for ALC892, which has 4 DACs while ALC662 has 3. Fixed by implementing alc662_mix_to_dac() more genericly with the dynamic widget list.
--- sound/pci/hda/patch_realtek.c | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-)
sound/pci/hda/patch_realtek.c +14 -13
@@ -19105,16 +19105,17 @@ static struct alc_config_preset alc662_presets[] = {*/ /* convert from MIX nid to DAC */ -static inline hda_nid_t alc662_mix_to_dac (hda_nid_t nid) -{ -if (nid ==0x0f ) -return 0x02 ; -else if (nid >=0x0c && nid <=0x0e ) -return nid -0x0c +0x02 ; -else if (nid ==0x26 )/* ALC887-VD has this DAC too */ -return 0x25 ; -else -return 0 ; +static hda_nid_t alc662_mix_to_dac (struct hda_codec *codec,hda_nid_t nid) +{ +hda_nid_t list[4 ]; +int i, num; + + num =snd_hda_get_connections (codec, nid, list,ARRAY_SIZE (list)); +for (i =0 ; i < num; i++) { +if (get_wcaps_type (get_wcaps (codec, list[i])) ==AC_WID_AUD_OUT ) +return list[i]; + } +return 0 ; }/* get MIX nid connected to the given pin targeted to DAC */
@@ -19126,7 +19127,7 @@ static hda_nid_t alc662_dac_to_mix(struct hda_codec *codec, hda_nid_t pin, num =snd_hda_get_connections (codec, pin, mix,ARRAY_SIZE (mix));for (i =0 ; i < num; i++) { -if (alc662_mix_to_dac (mix[i]) == dac) +if (alc662_mix_to_dac (codec, mix[i]) == dac)return mix[i]; }return 0 ;
@@ -19143,7 +19144,7 @@ static hda_nid_t alc662_look_for_dac(struct hda_codec *codec, hda_nid_t pin)if (num <0 )return 0 ;for (i =0 ; i < num; i++) { -hda_nid_t nid =alc662_mix_to_dac (srcs[i]); +hda_nid_t nid =alc662_mix_to_dac (codec, srcs[i]);if (!nid)continue ;for (j =0 ; j < spec->multiout.num_dacs; j++)
@@ -19297,7 +19298,7 @@ static void alc662_auto_set_output_and_unmute(struct hda_codec *codec,if (num <=1 )return ;for (i =0 ; i < num; i++) { -if (alc662_mix_to_dac (srcs[i]) != dac) +if (alc662_mix_to_dac (codec, srcs[i]) != dac)continue ;snd_hda_codec_write (codec, nid,0 ,AC_VERB_SET_CONNECT_SEL , i);return ;
Signature · 1 line
1.7.4.2
2011/4/6 Takashi Iwai <[email protected]>
Quoted 52 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 17 lines
Quoted 16 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10 channels
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
Quoted 9 lines
Quoted 1 line
My patch reduce the size of
alc662_dac_nidmay be wrong if the driverintend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.
I wonder why a motherboard with 5 audio jacks on rear panel need alc662_5stack_modes since it already have enough jacks for surround51 and don't need any retasking
static struct hda_channel_mode alc662_5stack_modes[2] = {
{ 2, alc662_sixstack_ch6_init },
{ 6, alc662_sixstack_ch8_init },
};Hi Raymond,
I spent a little time reading sound documentation but doesn't find anything about how to apply a patch to snd-hda-intel, but it is needed? there is no an "patch auto detect"? i enable the patch option in HDA-Intel kernel config, this WE i will study more, Takashi could you please give me documentation about patch applying?
About the NVIDIA video card, do you think that the hdmi on NVIDIA could conflicts with the one in motherboard, creating the problem that I'm experiencing?
I didn't check anything on kernel regarding HDMI, and i use an "edited" NVIDIA driver (by me) to build against 2.6.39 (only rename smp_lock.h to smp.h in the code) version is 270, taken from gentoo repos.
To clarify my self
- I *need* to apply alc662 patch to snd-hda-intel to test if commits work?
- I *need* to solve problems with NVIDIA drivers to make my sound card work? (and if i must specify witch port nvidia must use how i could do that?)
- alsaconf doesn't find my sound card, even when it works (crackly but works) is this problem linked to capture streams problems ?
Some news:
- after module loading I hear a big noise
- after upgrade to Takashi's sound-2.6 kernel tree, i hear dx louder than sx
- some times the sounds mute, after 7/10 seconds sound come back (no changes in alsamixer)
I know that I'm completely usefulness and a little bit annoying, I'm reading about alsa devel but I gess is a little bit hard for me.
V.
2011/4/8 Raymond Yau <[email protected]>
Quoted 78 lines
2011/4/6 Takashi Iwai <[email protected]>
Quoted 32 lines
At Wed, 6 Apr 2011 16:29:56 +0800,
Quoted 29 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 26 lines
At Wed, 6 Apr 2011 15:35:16 +0800,
Quoted 9 lines · Raymond Yau
2011/4/6 Takashi Iwai <[email protected]>
Quoted 6 lines
At Tue, 5 Apr 2011 22:59:29 +0800,
Quoted 4 lines · Raymond Yau
Fix
alc662_dac_nidand change "6stack-dig" to "5stack-dig"alc662 series only have 3 stereo DAC , so it can only support
5stack-dig
Quoted 13 lines
Quoted 7 lines
Quoted 1 line
instead of 6stack-dig
Applied now. Thanks.
Takashi
The other problem is this patch
{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=274693f37090ada2cadd09944ab883f05ea6ebe6
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
ALC892 provides ten DAC channels that simultaneously support 7.1
channel
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
sound playback, plus 2 channels of independent stereo sound output
(multiple
Quoted 3 lines
streaming) through the front panel stereo outputs.
It seem that there is no specific code to distinguish a 10
channels
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
alc892
Quoted 1 line
from those 6 channels alc6xx
Yeah, but there is no quirks specific to alc892.
Remember that the final goal is to remove all model-quirks from the driver.
Takashi
Quoted 9 lines
Quoted 1 line
My patch reduce the size of
alc662_dac_nidmay be wrong if the driverintend
Quoted 1 line
to use
alc662_auto_fill_dac_nids()to handle 6, 8 , 10 channelsDon't worry,
alc662_dac_nidsis used only for the fixed quirks. The auto-parser doesn't use these fixed defined pin arrays.I wonder why a motherboard with 5 audio jacks on rear panel need
alc662_5stack_modessince it already have enough jacks for surround51 and don't need any retaskingstatic struct hda_channel_mode alc662_5stack_modes[2] = { { 2, alc662_sixstack_ch6_init }, { 6, alc662_sixstack_ch8_init }, };_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
OT: applying patches (was: [PATCH ALSA HDA 1/1] Fix alc662_dac_nid and change 6stack-dig to 5stack-dig)
Dear Valerio,
please adhere to the netiquette [1] and use interleaved style [2].
Am Freitag, den 08.04.2011, 10:38 +0200 schrieb Valerio tesei:
Quoted 5 lines
I spent a little time reading sound documentation but doesn't find anything about how to apply a patch to snd-hda-intel, but it is needed? there is no an "patch auto detect"? i enable the patch option in HDA-Intel kernel config, this WE i will study more, Takashi could you please give me documentation about patch applying?
You have to apply the patch file using the following command.
patch -p1 < /path/to/patch/file
I think Takashi put a diff in his message. Just copy those lines into a file and apply it like above from the top source directory.
If you have a patch created using git format-patch you can simply apply that using git am /path/to/patch.
[…]
I hope that helps and I am sorry that I cannot answer the other questions.
Thanks,
Paul
[1] http://en.opensuse.org/openSUSE:Mailing_list_netiquette
[2] https://secure.wikimedia.org/wikipedia/en/wiki/Posting_style#Interleaved_style
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Re: OT: applying patches (was: [PATCH ALSA HDA 1/1] Fix alc662_dac_nid and change 6stack-dig to 5stack-dig)
Sorry for the violation of nettiquete,
I think i misunderstood something, I already know how to patch, I was thinking that "patch=something" was a parameter that I need to pass to modprobe while loading snd-hda-intel.
Anyway thanks for your polite answer, my italian spirit comes up and made this OT :)
Thanks,
V.
2011/4/8 Paul Menzel <[email protected]>
Quoted 48 lines
Dear Valerio,
please adhere to the netiquette [1] and use interleaved style [2].
Am Freitag, den 08.04.2011, 10:38 +0200 schrieb Valerio tesei:
Quoted 1 line
I spent a little time reading sound documentation but doesn't find
anything
Quoted 1 line
about how to apply a patch to snd-hda-intel, but it is needed? there is
no
Quoted 3 lines
an "patch auto detect"? i enable the patch option in HDA-Intel kernel config, this WE i will study more, Takashi could you please give me documentation about patch applying?
You have to apply the patch file using the following command.
patch -p1 < /path/to/patch/file
I think Takashi put a diff in his message. Just copy those lines into a file and apply it like above from the top source directory.
If you have a patch created using
git format-patchyou can simply apply that usinggit am /path/to/patch.[…]
I hope that helps and I am sorry that I cannot answer the other questions.
Thanks,
Paul
[1] http://en.opensuse.org/openSUSE:Mailing_list_netiquette
[2]
https://secure.wikimedia.org/wikipedia/en/wiki/Posting_style#Interleaved_style_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
snd-hda-intel and parameter `patch` (was: OT: applying patches)
Am Freitag, den 08.04.2011, 11:47 +0200 schrieb Valerio tesei:
[…]
Quoted 3 lines
I think i misunderstood something, I already know how to patch, I was thinking that "patch=something" was a parameter that I need to pass to modprobe while loading snd-hda-intel.
$ sudo modinfo snd-hda-intel $ sudo modinfo snd-hda-intel | grep patch parm: patch:Patch file for Intel HD audio interface. (array of charp)
But I do not know what you have to pass as an argument either.
I know that you can change the behavior by passing the parameter model [3].
Thanks,
Paul
[3] http://alsa-project.org/main/index.php/Help_To_Debug_Intel_HDA
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Re: snd-hda-intel and parameter `patch`
Quoted 8 lines · Paul Menzel
Am Freitag, den 08.04.2011, 11:47 +0200 schrieb Valerio tesei:
[…]
Quoted 3 lines
I think i misunderstood something, I already know how to patch, I was thinking that "patch=something" was a parameter that I need to pass to modprobe while loading snd-hda-intel.
Quoted 5 lines
$ sudo modinfo snd-hda-intel $ sudo modinfo snd-hda-intel | grep patch parm: patch:Patch file for Intel HD audio interface. (array of charp)But I do not know what you have to pass as an argument either.
That special patch file and its format is described here:
http://www.kernel.org/pub/linux/kernel/people/tiwai/docs/HD-Audio.html#_early_patching
Signature · 6 lines
David Henningsson, Canonical Ltd. http://launchpad.net/~diwic _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
2011/4/8 Valerio tesei <[email protected]>
Quoted 8 lines
Hi Raymond,
I spent a little time reading sound documentation but doesn't find anything about how to apply a patch to snd-hda-intel, but it is needed? there is no an "patch auto detect"? i enable the patch option in HDA-Intel kernel config, this WE i will study more, Takashi could you please give me documentation about patch applying?
The easy way is to use Takashi 's daily snapshot
since there are a few patches related to alc892
Quoted 8 lines
About the NVIDIA video card, do you think that the hdmi on NVIDIA could conflicts with the one in motherboard, creating the problem that I'm experiencing?
I didn't check anything on kernel regarding HDMI, and i use an "edited" NVIDIA driver (by me) to build against 2.6.39 (only renamesmp_lock.htosmp.hin the code) version is 270, taken from gentoo repos.
you have to ask nvidia hdmi expert or asus forum
Quoted 9 lines
To clarify my self
- I *need* to apply alc662 patch to snd-hda-intel to test if commits work?
- I *need* to solve problems with NVIDIA drivers to make my sound card work?
(and if i must specify witch port nvidia must use how i could do that?)
- alsaconf doesn't find my sound card, even when it works (crackly but works) is this problem linked to capture streams problems ?
No need to do anything if Takashi mention that model="auto" is used to support 6stack motherboard
Quoted 8 lines
Some news:
- after module loading I hear a big noise
- after upgrade to Takashi's sound-2.6 kernel tree, i hear dx louder than sx
- some times the sounds mute, after 7/10 seconds sound come back (no changes
in alsamixer)
Quoted 5 lines
I know that I'm completely usefulness and a little bit annoying, I'm reading
about alsa devel but I gess is a little bit hard for me.
[ 7.111176] SKU: override=0x1 [ 7.111385] hda_codec: ALC892: BIOS auto-probing. [ 7.111389] autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0) -- [ 7.116998] Cannot find slave PCM Playback Switch, skipped [ 7.117657] input: HDA Intel Headphone as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input4
As you have specifed in BIOS setup that "Front Panel Connector" is [AC97] and the BIOS seem set "Misc=NO_PRESENCE"
why does the driver still create /devices/pci0000:00/0000:00:1b.0/sound/card0/input4 for jack reporting ?
Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0001373e: IN OUT HP EAPD Detect Trigger
Vref caps: HIZ 50 GRD 80 100
EAPD 0x2: EAPD
Pin Default 0x02214120: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0xc0: OUT HP VREF_HIZ
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 5
0x0c 0x0d 0x0e 0x0f 0x26*2011/4/10 Raymond Yau <[email protected]>
Quoted 13 lines
2011/4/8 Valerio tesei <[email protected]>
Quoted 8 lines
Hi Raymond,
I spent a little time reading sound documentation but doesn't find anything about how to apply a patch to snd-hda-intel, but it is needed? there is no an "patch auto detect"? i enable the patch option in HDA-Intel kernel config, this WE i will study more, Takashi could you please give me documentation about patch applying?
Quoted 2 lines
The easy way is to use Takashi 's daily snapshot
since there are a few patches related to alc892
I'm using it.
I must wait for a patch, hoping in Takashi? :)
I think i will make some experiment on patch_realtek.c :) For the noise problem if i understand a little, could be a connection problem, i will try to graph it.
For the capture problem i need to read more :)
Quoted 11 lines
Quoted 10 lines
About the NVIDIA video card, do you think that the hdmi on NVIDIA could conflicts with the one in motherboard, creating the problem that I'm experiencing?
I didn't check anything on kernel regarding HDMI, and i use an "edited" NVIDIA driver (by me) to build against 2.6.39 (only renamesmp_lock.htosmp.hin the code) version is 270, taken from gentoo repos.
Quoted 2 lines
you have to ask nvidia hdmi expert or asus forum
Seems to be a common problem from 2.6.37 with 267.10 driver, for the moment i will hope this does not create any problem.
I'm not using hdmi on Mobo neither the one on Video card.
Quoted 11 lines
Quoted 11 lines
To clarify my self
- I *need* to apply alc662 patch to snd-hda-intel to test if commits work?
- I *need* to solve problems with NVIDIA drivers to make my sound card work?
(and if i must specify witch port nvidia must use how i could do that?)
- alsaconf doesn't find my sound card, even when it works (crackly but works) is this problem linked to capture streams problems ?
Quoted 3 lines
No need to do anything if Takashi mention that model="auto" is used to support 6stack motherboard
This mean that tecnicaly my sound card/motherboard must work with the patches that Takashi commited?
Quoted 39 lines
Quoted 9 lines
Some news:
- after module loading I hear a big noise
- after upgrade to Takashi's sound-2.6 kernel tree, i hear dx louder than sx
- some times the sounds mute, after 7/10 seconds sound come back (no changes
in alsamixer)Quoted 5 lines
I know that I'm completely usefulness and a little bit annoying, I'm reading
about alsa devel but I gess is a little bit hard for me.[ 7.111176] SKU: override=0x1
[ 7.111385]hda_codec: ALC892: BIOS auto-probing.
[ 7.111389] autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0) --
[ 7.116998] Cannot find slave PCM Playback Switch, skipped [ 7.117657] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input4As you have specifed in BIOS setup that "Front Panel Connector" is [AC97] and the BIOS seem set "Misc=NO_PRESENCE"
why does the driver still create /devices/pci0000:00/0000:00:1b.0/sound/card0/input4 for jack reporting ?
Node
0x1b[Pin Complex] wcaps0x40058f: Stereo Amp-In Amp-Out Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x000x00]
Pincap0x0001373e: IN OUT HP EAPD Detect Trigger Vref caps: HIZ 50 GRD 80 100
EAPD0x2: EAPD
Pin Default0x02214120: [Jack] HP Out at Ext Front Conn = 1/8, Color = Green
Quoted 9 lines
DefAssociation =
0x2, Sequence =0x0
Misc =NO_PRESENCE
Pin-ctls:0xc0: OUT HPVREF_HIZ
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 5
0x0c0x0d0x0e0x0f0x26*
I disconnected the front panel, before install windows 7 to test if soundcard work, i was thinking that te problem was a short circuit.
___________________________________________
Quoted 3 lines
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Takashi if you need debug or something else just ask.
Il 11/04/2011 10:21, Valerio tesei ha scritto:
Quoted 226 lines
2011/4/10 Raymond Yau <[email protected]>
Quoted 26 lines
2011/4/8 Valerio tesei <[email protected]>
Quoted 6 lines
Hi Raymond,
I spent a little time reading sound documentation but doesn't find anything
Quoted 9 lines
about how to apply a patch to snd-hda-intel, but it is needed? there is no
an "patch auto detect"? i enable the patch option in HDA-Intel kernel
config, this WE i will study more, Takashi could you please give me
documentation about patch applying?
Quoted 3 lines
The easy way is to use Takashi 's daily snapshot
since there are a few patches related to alc892
I'm using it.
I must wait for a patch, hoping in Takashi? :)
I think i will make some experiment on
patch_realtek.c:)For the noise problem if i understand a little, could be a connection
problem, i will try to graph it.
For the capture problem i need to read more :)
Quoted 16 lines
Quoted 15 lines
About the NVIDIA video card, do you think that the hdmi on NVIDIA could
conflicts with the one in motherboard, creating the problem that I'm
experiencing?
I didn't check anything on kernel regarding HDMI, and i use an "edited"
NVIDIA driver (by me) to build against 2.6.39 (only rename
smp_lock.htoQuoted 9 lines
Quoted 3 lines
smp.hin the code) version is 270, taken from gentoo repos.you have to ask nvidia hdmi expert or asus forum
Seems to be a common problem from 2.6.37 with 267.10 driver, for the
moment i will hope this does not create any problem.
I'm not using hdmi on Mobo neither the one on Video card.
Quoted 22 lines
Quoted 10 lines
To clarify my self
- I *need* to apply alc662 patch to snd-hda-intel to test if commits work?
- I *need* to solve problems with NVIDIA drivers to make my sound card
Quoted 11 lines
work?
(and if i must specify witch port nvidia must use how i could do that?)
- alsaconf doesn't find my sound card, even when it works (crackly but
works) is this problem linked to capture streams problems ?
Quoted 5 lines
No need to do anything if Takashi mention that model="auto" is used to
support 6stack motherboard
This mean that tecnicaly my sound card/motherboard must work with the
patches that Takashi commited?
Quoted 86 lines
Quoted 18 lines
Some news:
- after module loading I hear a big noise
- after upgrade to Takashi's sound-2.6 kernel tree, i hear dx louder than
sx
- some times the sounds mute, after 7/10 seconds sound come back (no
changes
in alsamixer)
Quoted 9 lines
I know that I'm completely usefulness and a little bit annoying, I'm
reading
about alsa devel but I gess is a little bit hard for me.
[ 7.111176] SKU: override=0x1[ 7.111385] hda_codec: ALC892: BIOS auto-probing.[ 7.111389] autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0)--
[ 7.116998] Cannot find slave PCM Playback Switch, skipped[ 7.117657] input: HDA Intel Headphone as/devices/pci0000:00/0000:00:1b.0/sound/card0/input4
As you have specifed in BIOS setup that "Front Panel Connector" is [AC97]
and the BIOS seem set "Misc=NO_PRESENCE"
why does the driver still create
/devices/pci0000:00/0000:00:1b.0/sound/card0/input4 for jack reporting ?
Node
0x1b[Pin Complex] wcaps0x40058f: Stereo Amp-In Amp-OutAmp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [
0x000x00]Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [
0x000x00]Pincap
0x0001373e: IN OUT HP EAPD Detect TriggerVref caps: HIZ 50 GRD 80 100EAPD
0x2: EAPDPin Default
0x02214120: [Jack] HP Out at Ext FrontConn = 1/8, Color = Green
DefAssociation =
0x2, Sequence =0x0Misc =
NO_PRESENCEPin-ctls:
0xc0: OUT HPVREF_HIZUnsolicited: tag=00, enabled=0
Quoted 9 lines
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 5
0x0c 0x0d 0x0e 0x0f 0x26*I disconnected the front panel, before install windows 7 to test if
soundcard work, i was thinking that te problem was a short circuit.
___________________________________________
Quoted 1 line
Alsa-devel mailing list
Quoted 7 lines
Takashi if you need debug or something else just ask.
I put "more verbose debug" into my kernel config, I'm starting to describe the issue:
my player is mplayer, I'm playing a divx by alsa output.
I tried the patch suggested by Raymond
if (codec->vendor_id == 0x10ec0892)
spec->stream_analog_alt_capture = &alc880_pcm_analog_alt_capture;Putted into sound/pci/hda/patch_realtek.c , function patch_acl662, but nothing changed, issues are the same.
After module is loaded big noise starts, at first right channel is muted, I hear realy disturbed and bass are crackly, after 10 minutes right channel start crack, after 10 minutes, right channel is low but sounds, only bass cracks, and high frequencies are clear.
Front-Panel is physicaly detached from motherboard, in bios is setted as "AC97", and S/P-DIF is setted as S/P-DIF
New alsa-info are this:
http://www.alsa-project.org/db/?f=cef5e8099352f29c70b20ae2853714a200cb37a4
Signature · 7 lines
Email: [email protected] Cellulare: +39.3394768306 Gtalk: [email protected] LinkedIn: http://www.linkedin.com/pub/valerio-tesei/22/a87/577
2011/4/12 Valerio Tesei <[email protected]>
Quoted 262 lines
Il 11/04/2011 10:21, Valerio tesei ha scritto:
Quoted 13 lines
2011/4/10 Raymond Yau <[email protected]>
Quoted 11 lines
2011/4/8 Valerio tesei <[email protected]>
Quoted 5 lines
Hi Raymond,
I spent a little time reading sound documentation but doesn't find
anything
Quoted 1 line
Quoted 1 line
Quoted 1 line
about how to apply a patch to snd-hda-intel, but it is needed? there is
no
Quoted 22 lines
Quoted 12 lines
Quoted 7 lines
an "patch auto detect"? i enable the patch option in HDA-Intel kernel
config, this WE i will study more, Takashi could you please give me
documentation about patch applying?
Quoted 3 lines
The easy way is to use Takashi 's daily snapshot
since there are a few patches related to alc892
I'm using it.
I must wait for a patch, hoping in Takashi? :)
Quoted 25 lines
I think i will make some experiment on
patch_realtek.c:)For the noise problem if i understand a little, could be a connection
problem, i will try to graph it.
For the capture problem i need to read more :)
Quoted 15 lines
Quoted 15 lines
About the NVIDIA video card, do you think that the hdmi on NVIDIA could
conflicts with the one in motherboard, creating the problem that I'm
experiencing?
I didn't check anything on kernel regarding HDMI, and i use an "edited"
NVIDIA driver (by me) to build against 2.6.39 (only rename
smp_lock.hto
Quoted 12 lines
Quoted 9 lines
Quoted 3 lines
smp.hin the code) version is 270, taken from gentoo repos.you have to ask nvidia hdmi expert or asus forum
Quoted 15 lines
Seems to be a common problem from 2.6.37 with 267.10 driver, for the
moment i will hope this does not create any problem.
I'm not using hdmi on Mobo neither the one on Video card.
Quoted 7 lines
Quoted 7 lines
To clarify my self
- I *need* to apply alc662 patch to snd-hda-intel to test if commits
work?
Quoted 22 lines
Quoted 14 lines
Quoted 13 lines
- I *need* to solve problems with NVIDIA drivers to make my sound card
work?
(and if i must specify witch port nvidia must use how i could do that?)
- alsaconf doesn't find my sound card, even when it works (crackly but
works) is this problem linked to capture streams problems ?
Quoted 5 lines
No need to do anything if Takashi mention that model="auto" is used to
support 6stack motherboard
Quoted 13 lines
This mean that tecnicaly my sound card/motherboard must work with the
patches that Takashi commited?
Quoted 7 lines
Quoted 7 lines
Some news:
- after module loading I hear a big noise
- after upgrade to Takashi's sound-2.6 kernel tree, i hear dx louder
than
Quoted 32 lines
Quoted 31 lines
Quoted 10 lines
sx
- some times the sounds mute, after 7/10 seconds sound come back (no
changes
in alsamixer)
Quoted 9 lines
I know that I'm completely usefulness and a little bit annoying, I'm
reading
about alsa devel but I gess is a little bit hard for me.
[ 7.111176] SKU: override=0x1[ 7.111385] hda_codec: ALC892: BIOS auto-probing.[ 7.111389] autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0)--
[ 7.116998] Cannot find slave PCM Playback Switch, skippedQuoted 7 lines
Quoted 7 lines
[ 7.117657] input: HDA Intel Headphone as/devices/pci0000:00/0000:00:1b.0/sound/card0/input4
As you have specifed in BIOS setup that "Front Panel Connector" is
[AC97]
Quoted 58 lines
Quoted 38 lines
and the BIOS seem set "Misc=NO_PRESENCE"
why does the driver still create
/devices/pci0000:00/0000:00:1b.0/sound/card0/input4 for jack reporting ?
Node
0x1b[Pin Complex] wcaps0x40058f: Stereo Amp-In Amp-OutAmp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [
0x000x00]Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [
0x000x00]Pincap
0x0001373e: IN OUT HP EAPD Detect TriggerVref caps: HIZ 50 GRD 80 100EAPD
0x2: EAPDPin Default
0x02214120: [Jack] HP Out at Ext FrontConn = 1/8, Color = Green
DefAssociation =
0x2, Sequence =0x0Misc =
NO_PRESENCEPin-ctls:
0xc0: OUT HPVREF_HIZUnsolicited: tag=00, enabled=0
Quoted 9 lines
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 5
0x0c 0x0d 0x0e 0x0f 0x26*I disconnected the front panel, before install windows 7 to test if
soundcard work, i was thinking that te problem was a short circuit.
___________________________________________
Quoted 1 line
Alsa-devel mailing list
Quoted 7 lines
Takashi if you need debug or something else just ask.
I put "more verbose debug" into my kernel config, I'm starting to describe the issue:
my player is mplayer, I'm playing a divx by alsa output.
I tried the patch suggested by Raymond
if (codec->vendor_id == 0x10ec0892) spec->stream_analog_alt_capture =
&alc880_pcm_analog_alt_capture;Putted into
sound/pci/hda/patch_realtek.c, functionpatch_acl662, but nothing changed, issues are the same.After module is loaded big noise starts, at first right channel is muted, I hear realy disturbed and bass are crackly, after 10 minutes right channel start crack, after 10 minutes, right channel is low but sounds, only bass cracks, and high frequencies are clear.
Quoted 9 lines
Front-Panel is physicaly detached from motherboard, in bios is setted as "AC97", and S/P-DIF is setted as S/P-DIF
New alsa-info are this:
http://www.alsa-project.org/db/?f=cef5e8099352f29c70b20ae2853714a200cb37a4
--
http://thread.gmane.org/gmane.linux.alsa.devel/79348
your info is different from hda-emu/codecs/alc892-asus-p7h55
http://git.kernel.org/pub/scm/linux/kernel/git/tiwai/hda-emu.git
2010-08-16 Takashi Iwai Add alsa-info of ASUS P7H55 M-Pro with ALC892
codec
Codec: Intel IbexPeak HDMI 491
Address: 3
http://www.intel.com/support/motherboards/desktop/sb/cs-020642.htm#standards
snd_hda_codec_write(codec, srcs[i], 0,
AC_VERB_SET_AMP_GAIN_MUTE,
AMP_IN_UNMUTE(1));The noise may be due to umute of connection 0x0b in 0x0c, 0x0d, 0x0e and 0x0f by alc662_auto_set_output_and_unmute() since those input pins (e.g. Front mic, line and rear mic) 's "playback switch" in audio mixer 0x0b is not muted by alc662_auto_init_analog_input() or alc662_auto_init_input_src()
http://www.intel.com/support/motherboards/desktop/sb/cs-020642.htm#multistream
It depend on whether you want your voice record from front mic appear in speakers connected to all rear panel jacks when ummute "front mic playback switch" if you use it as karaoke or multistreaming playback
Do you get the correct sound from the rear panel and front HP when running "speaker-test -c 8 -t wav -Dhw:0,0" ?
Two set of input sources,capture volume/switches since the number of connections is different in node 0x22 and 0x23 as node 0x22 has the digital mic node 0x12
ode 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Input Source", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
[0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 12
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b 0x12
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Input Source", index=1, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
[0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
2011/4/13 Raymond Yau <[email protected]>:
Quoted 327 lines
2011/4/12 Valerio Tesei <[email protected]>
Quoted 262 lines
Il 11/04/2011 10:21, Valerio tesei ha scritto:
Quoted 13 lines
2011/4/10 Raymond Yau <[email protected]>
Quoted 11 lines
2011/4/8 Valerio tesei <[email protected]>
Quoted 5 lines
Hi Raymond,
I spent a little time reading sound documentation but doesn't find
anything
Quoted 1 line
Quoted 1 line
Quoted 1 line
about how to apply a patch to snd-hda-intel, but it is needed? there is
no
Quoted 22 lines
Quoted 12 lines
Quoted 7 lines
an "patch auto detect"? i enable the patch option in HDA-Intel kernel
config, this WE i will study more, Takashi could you please give me
documentation about patch applying?
Quoted 3 lines
The easy way is to use Takashi 's daily snapshot
since there are a few patches related to alc892
I'm using it.
I must wait for a patch, hoping in Takashi? :)
Quoted 25 lines
I think i will make some experiment on
patch_realtek.c:)For the noise problem if i understand a little, could be a connection
problem, i will try to graph it.
For the capture problem i need to read more :)
Quoted 15 lines
Quoted 15 lines
About the NVIDIA video card, do you think that the hdmi on NVIDIA could
conflicts with the one in motherboard, creating the problem that I'm
experiencing?
I didn't check anything on kernel regarding HDMI, and i use an "edited"
NVIDIA driver (by me) to build against 2.6.39 (only rename
smp_lock.hto
Quoted 12 lines
Quoted 9 lines
Quoted 3 lines
smp.hin the code) version is 270, taken from gentoo repos.you have to ask nvidia hdmi expert or asus forum
Quoted 15 lines
Seems to be a common problem from 2.6.37 with 267.10 driver, for the
moment i will hope this does not create any problem.
I'm not using hdmi on Mobo neither the one on Video card.
Quoted 7 lines
Quoted 7 lines
To clarify my self
- I *need* to apply alc662 patch to snd-hda-intel to test if commits
work?
Quoted 22 lines
Quoted 14 lines
Quoted 13 lines
- I *need* to solve problems with NVIDIA drivers to make my sound card
work?
(and if i must specify witch port nvidia must use how i could do that?)
- alsaconf doesn't find my sound card, even when it works (crackly but
works) is this problem linked to capture streams problems ?
Quoted 5 lines
No need to do anything if Takashi mention that model="auto" is used to
support 6stack motherboard
Quoted 13 lines
This mean that tecnicaly my sound card/motherboard must work with the
patches that Takashi commited?
Quoted 7 lines
Quoted 7 lines
Some news:
- after module loading I hear a big noise
- after upgrade to Takashi's sound-2.6 kernel tree, i hear dx louder
than
Quoted 32 lines
Quoted 31 lines
Quoted 10 lines
sx
- some times the sounds mute, after 7/10 seconds sound come back (no
changes
in alsamixer)
Quoted 9 lines
I know that I'm completely usefulness and a little bit annoying, I'm
reading
about alsa devel but I gess is a little bit hard for me.
[ 7.111176] SKU: override=0x1
[ 7.111385]
hda_codec: ALC892: BIOS auto-probing.[ 7.111389] autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0)
--
[ 7.116998] Cannot find slave PCM Playback Switch, skipped
Quoted 7 lines
Quoted 7 lines
[ 7.117657] input: HDA Intel Headphone as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input4
As you have specifed in BIOS setup that "Front Panel Connector" is
[AC97]
Quoted 58 lines
Quoted 38 lines
and the BIOS seem set "Misc=NO_PRESENCE"
why does the driver still create
/devices/pci0000:00/0000:00:1b.0/sound/card0/input4 for jack reporting ?
Node
0x1b[Pin Complex] wcaps0x40058f: Stereo Amp-In Amp-OutAmp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00
0x00]Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00
0x00]Pincap
0x0001373e: IN OUT HP EAPD Detect TriggerVref caps: HIZ 50 GRD 80 100
EAPD
0x2: EAPDPin Default
0x02214120: [Jack] HP Out at Ext FrontConn = 1/8, Color = Green
DefAssociation =
0x2, Sequence =0x0Misc =
NO_PRESENCEPin-ctls:
0xc0: OUT HPVREF_HIZUnsolicited: tag=00, enabled=0
Quoted 9 lines
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 5
0x0c0x0d0x0e0x0f0x26*I disconnected the front panel, before install windows 7 to test if
soundcard work, i was thinking that te problem was a short circuit.
___________________________________________
Quoted 1 line
Alsa-devel mailing list
Quoted 7 lines
Takashi if you need debug or something else just ask.
I put "more verbose debug" into my kernel config, I'm starting to describe the issue:
my player is mplayer, I'm playing a divx by alsa output.
I tried the patch suggested by Raymond
if (
codec->vendor_id==0x10ec0892)spec->stream_analog_alt_capture =
&alc880_pcm_analog_alt_capture;Putted into
sound/pci/hda/patch_realtek.c, functionpatch_acl662, but nothing changed, issues are the same.After module is loaded big noise starts, at first right channel is muted, I hear realy disturbed and bass are crackly, after 10 minutes right channel start crack, after 10 minutes, right channel is low but sounds, only bass cracks, and high frequencies are clear.
Quoted 9 lines
Front-Panel is physicaly detached from motherboard, in bios is setted as "AC97", and S/P-DIF is setted as S/P-DIF
New alsa-info are this:
http://www.alsa-project.org/db/?f=cef5e8099352f29c70b20ae2853714a200cb37a4
--
http://thread.gmane.org/gmane.linux.alsa.devel/79348
your info is different from hda-emu/codecs/alc892-asus-p7h55
http://git.kernel.org/pub/scm/linux/kernel/git/tiwai/hda-emu.git
2010-08-16 Takashi Iwai Add alsa-info of ASUS P7H55 M-Pro with ALC892 codec
Codec: Intel IbexPeak HDMI 491
Address: 3http://www.intel.com/support/motherboards/desktop/sb/cs-020642.htm#standards
snd_hda_codec_write(codec, srcs[i], 0,
AC_VERB_SET_AMP_GAIN_MUTE,
AMP_IN_UNMUTE(1));The noise may be due to umute of connection
0x0bin0x0c,0x0d,0x0eand0x0fbyalc662_auto_set_output_and_unmute()since those input pins (e.g. Front mic, line and rear mic) 's "playback switch" in audio mixer0x0bis not muted byalc662_auto_init_analog_input()oralc662_auto_init_input_src()http://www.intel.com/support/motherboards/desktop/sb/cs-020642.htm#multistream
It depend on whether you want your voice record from front mic appear in speakers connected to all rear panel jacks when ummute "front mic playback switch" if you use it as karaoke or multistreaming playback
Do you get the correct sound from the rear panel and front HP when running "speaker-test -c 8 -t wav -Dhw:0,0" ?
Two set of input sources,capture volume/switches since the number of connections is different in node
0x22and0x23as node0x22has the digital mic node0x12ode
0x22[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Control: name="Input Source", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x000x00] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
Connection: 12
0x180x190x1a0x1b0x1c0x1d0x140x150x160x170x0b0x12Node0x23[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Control: name="Input Source", index=1, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Quoted 9 lines
Amp-In vals: [0x00
0x00] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
Connection: 11
0x180x190x1a0x1b0x1c0x1d0x140x150x160x170x0b
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Yes but my motherboard is ASUS P7H55D-M PRO not ASUS P7H55-M PRO i dont know the exact differences between h55d and h55 (i think only a 'deluxe' on the package)
On Asus compare, differences are about gigabit lan (realtek obviusly) on p7h55d-pro and more "asus unique features" on p7h55d-pro (wasted money to get nothing more than value mobo)
This is my back panel :
http://img40.imageshack.us/img40/8864/asusp7h55dmpro1156ddr3m.jpg
seems the same as p7h55-pro
are out of my skills.
I will revert sound-2.6-git changes (printk and patch you suggested above), create a new alsa-info, dump the graph by hda-analyzer tool, I will post all these things later (when back home)
Anyway, all of you make a great work. I realy appreciate. Thanks All.
Il 13/04/2011 13:08, Valerio tesei ha scritto:
Quoted 191 lines
2011/4/13 Raymond Yau <[email protected]>:
Quoted 184 lines
2011/4/12 Valerio Tesei <[email protected]>
Quoted 117 lines
Il 11/04/2011 10:21, Valerio tesei ha scritto:
Quoted 4 lines
2011/4/10 Raymond Yau <[email protected]>
Quoted 3 lines
2011/4/8 Valerio tesei <[email protected]>
Quoted 2 lines
Hi Raymond,
I spent a little time reading sound documentation but doesn't findanything
Quoted 1 line
Quoted 1 line
Quoted 1 line
about how to apply a patch to snd-hda-intel, but it is needed? there is
no
Quoted 16 lines
Quoted 5 lines
Quoted 3 lines
an "patch auto detect"? i enable the patch option in HDA-Intel kernel config, this WE i will study more, Takashi could you please give me documentation about patch applying?
The easy way is to use Takashi 's daily snapshot
since there are a few patches related to alc892I'm using it.
I must wait for a patch, hoping in Takashi? :)
I think i will make some experiment onpatch_realtek.c:) For the noise problem if i understand a little, could be a connection problem, i will try to graph it.
For the capture problem i need to read more :)Quoted 5 lines
Quoted 5 lines
About the NVIDIA video card, do you think that the hdmi on NVIDIA could conflicts with the one in motherboard, creating the problem that I'm experiencing?
I didn't check anything on kernel regarding HDMI, and i use an "edited" NVIDIA driver (by me) to build against 2.6.39 (only renamesmp_lock.hto
Quoted 7 lines
Quoted 2 lines
Quoted 1 line
smp.hin the code) version is 270, taken from gentoo repos.you have to ask nvidia hdmi expert or asus forum
Seems to be a common problem from 2.6.37 with 267.10 driver, for the moment i will hope this does not create any problem.
I'm not using hdmi on Mobo neither the one on Video card.Quoted 2 lines
Quoted 2 lines
To clarify my self
- I *need* to apply alc662 patch to snd-hda-intel to test if commitswork?
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
- I *need* to solve problems with NVIDIA drivers to make my sound card work?
(and if i must specify witch port nvidia must use how i could do that?)
- alsaconf doesn't find my sound card, even when it works (crackly but works) is this problem linked to capture streams problems ?Quoted 7 lines
Quoted 2 lines
No need to do anything if Takashi mention that model="auto" is used to support 6stack motherboard
This mean that tecnicaly my sound card/motherboard must work with the patches that Takashi commited?
Quoted 3 lines
Quoted 3 lines
Some news:
- after module loading I hear a big noise
- after upgrade to Takashi's sound-2.6 kernel tree, i hear dx louderthan
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
sx
- some times the sounds mute, after 7/10 seconds sound come back (no changes
in alsamixer)
I know that I'm completely usefulness and a little bit annoying, I'm reading
about alsa devel but I gess is a little bit hard for me.Quoted 8 lines
Quoted 8 lines
[ 7.111176] SKU: override=0x1 [ 7.111385] hda_codec: ALC892: BIOS auto-probing. [ 7.111389] autoconfig: line_outs=4 (0x14/0x15/0x16/0x17/0x0) -- [ 7.116998] Cannot find slave PCM Playback Switch, skipped [ 7.117657] input: HDA Intel Headphone as/devices/pci0000:00/0000:00:1b.0/sound/card0/input4
As you have specifed in BIOS setup that "Front Panel Connector" is[AC97]
Quoted 21 lines
Quoted 20 lines
and the BIOS seem set "Misc=NO_PRESENCE"
why does the driver still create /devices/pci0000:00/0000:00:1b.0/sound/card0/input4 for jack reporting ? Node0x1b[Pin Complex] wcaps0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x000x00]
Pincap0x0001373e: IN OUT HP EAPD Detect Trigger
Vref caps: HIZ 50 GRD 80 100
EAPD0x2: EAPD
Pin Default0x02214120: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
DefAssociation =0x2, Sequence =0x0
Misc =NO_PRESENCE
Pin-ctls:0xc0: OUT HPVREF_HIZ
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 5Quoted 1 line
0x0c 0x0d 0x0e 0x0f 0x26*Quoted 7 lines
I disconnected the front panel, before install windows 7 to test if soundcard work, i was thinking that te problem was a short circuit.
___________________________________________Quoted 3 lines
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-develTakashi if you need debug or something else just ask.
I put "more verbose debug" into my kernel config, I'm starting to describe the issue:
my player is mplayer, I'm playing a divx by alsa output.
I tried the patch suggested by Raymond
if (codec->vendor_id == 0x10ec0892) spec->stream_analog_alt_capture =
&alc880_pcm_analog_alt_capture;Putted into
sound/pci/hda/patch_realtek.c, functionpatch_acl662, but nothing changed, issues are the same.After module is loaded big noise starts, at first right channel is muted, I hear realy disturbed and bass are crackly, after 10 minutes right channel start crack, after 10 minutes, right channel is low but sounds, only bass cracks, and high frequencies are clear.
Quoted 9 lines
Front-Panel is physicaly detached from motherboard, in bios is setted as "AC97", and S/P-DIF is setted as S/P-DIF
New alsa-info are this:
http://www.alsa-project.org/db/?f=cef5e8099352f29c70b20ae2853714a200cb37a4
--
http://thread.gmane.org/gmane.linux.alsa.devel/79348
your info is different from hda-emu/codecs/alc892-asus-p7h55
http://git.kernel.org/pub/scm/linux/kernel/git/tiwai/hda-emu.git
2010-08-16 Takashi Iwai Add alsa-info of ASUS P7H55 M-Pro with ALC892
codecCodec: Intel IbexPeak HDMI 491
Address: 3http://www.intel.com/support/motherboards/desktop/sb/cs-020642.htm#standards
snd_hda_codec_write(codec, srcs[i], 0, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1));The noise may be due to umute of connection
0x0bin0x0c,0x0d,0x0eand0x0fbyalc662_auto_set_output_and_unmute()since those input pins (e.g. Front mic, line and rear mic) 's "playback switch" in audio mixer0x0bis not muted byalc662_auto_init_analog_input()oralc662_auto_init_input_src()http://www.intel.com/support/motherboards/desktop/sb/cs-020642.htm#multistream
It depend on whether you want your voice record from front mic appear in speakers connected to all rear panel jacks when ummute "front mic playback switch" if you use it as karaoke or multistreaming playback
Do you get the correct sound from the rear panel and front HP when running "speaker-test -c 8 -t wav -Dhw:0,0" ?
Two set of input sources,capture volume/switches since the number of connections is different in node
0x22and0x23as node0x22has the digital mic node0x12ode
0x22[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Control: name="Input Source", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x000x00] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
[0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
Connection: 120x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b 0x12Node
0x23[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Control: name="Input Source", index=1, device=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x000x00] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
[0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
Connection: 11Quoted 6 lines
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 14 lines
Yes but my motherboard is ASUS P7H55D-M PRO not ASUS P7H55-M PRO i dont know the exact differences between h55d and h55 (i think only a 'deluxe' on the package)
On Asus compare, differences are about gigabit lan (realtek obviusly) on p7h55d-pro and more "asus unique features" on p7h55d-pro (wasted money to get nothing more than value mobo)
This is my back panel :
http://img40.imageshack.us/img40/8864/asusp7h55dmpro1156ddr3m.jpg
seems the same as p7h55-pro
are out of my skills.
I will revert sound-2.6-git changes (printk and patch you suggested above), create a new alsa-info, dump the graph by hda-analyzer tool, I will post all these things later (when back home)
Anyway, all of you make a great work. I realy appreciate. Thanks All.
http://valeriotesei.com/alsa/codec.svg
This is the codec graph, seems there are block not connected, hope this will help you.
I never work with alsa, but a lot with graphedit on windows and directshow, if is the same, I think is not normal, do you?
V.
Signature · 4 lines
*Email:* [email protected] *Cellulare:* +39.3394768306 *Gtalk:* [email protected] *LinkedIn:* http://www.linkedin.com/pub/valerio-tesei/22/a87/577
2011/4/13 Valerio tesei <[email protected]>
Quoted 17 lines
Yes but my motherboard is ASUS P7H55D-M PRO not ASUS P7H55-M PRO i dont know the exact differences between h55d and h55 (i think only a 'deluxe' on the package)
On Asus compare, differences are about gigabit lan (realtek obviusly) on p7h55d-pro and more "asus unique features" on p7h55d-pro (wasted money to get nothing more than value mobo)
This is my back panel :
http://img40.imageshack.us/img40/8864/asusp7h55dmpro1156ddr3m.jpg
seems the same as p7h55-pro
are out of my skills.
I will revert sound-2.6-git changes (printk and patch you suggested above), create a new alsa-info, dump the graph by hda-analyzer tool, I will post all these things later (when back home)
Anyway, all of you make a great work. I realy appreciate. Thanks All.
I guess those patches are ok since those connections are also unmuted in my 10 channels ad1988a
As alc892 datasheet is available at realtek web site , no need to use codecgraph, just look at the Block diagram and you will able to find out those inputs pins (e.g. Front Mic, Rear Mic ,... ) connected through 0x0b to those output pins
Takashi ,
Is it correct to set spec->multiout.hp_nid = 0 orspec->multiout.no_share_stream in order to disable the multiout to use hp dac
and use alt_dac_nid and stream_analog_alt_playback to enable Front Panel HP playback (multistream playback) like those intel desktop videos ?
This assign headphone and mic at front panel to alt_playback and alt_capture "hw:0,2"
if (!spec->cap_mixer)
set_capture_mixer(codec);+ if (codec->vendor_id == 0x10ec0892) {
+/* enable multistream for front panel hp */
+ if (spec->multiout.hp_nid && spec->autocfg.line_outs == 4) {
+ spec->alt_dac_nid = spec->multiout.hp_nid; + spec->multiout.hp_nid = 0; + spec->stream_analog_alt_playback =
&alc880_pcm_analog_alt_playback;
+ }
+ if (spec->num_adc_nids>1 && spec->autocfg.num_inputs > 2)
+ spec->stream_analog_alt_capture =&alc880_pcm_analog_alt_capture;
+ }
if (has_cdefine_beep(codec)) {Il 14/04/2011 13:11, Raymond Yau ha scritto:
Quoted 55 lines
2011/4/13 Valerio tesei <[email protected]>
Quoted 16 lines
Yes but my motherboard is ASUS P7H55D-M PRO not ASUS P7H55-M PRO i dont know the exact differences between h55d and h55 (i think only a 'deluxe' on the package)
On Asus compare, differences are about gigabit lan (realtek obviusly) on p7h55d-pro and more "asus unique features" on p7h55d-pro (wasted money to get nothing more than value mobo)
This is my back panel :
http://img40.imageshack.us/img40/8864/asusp7h55dmpro1156ddr3m.jpg
seems the same as p7h55-pro
are out of my skills.
I will revert sound-2.6-git changes (printk and patch you suggested above), create a new alsa-info, dump the graph by hda-analyzer tool, I will post all these things later (when back home)
Anyway, all of you make a great work. I realy appreciate. Thanks All.I guess those patches are ok since those connections are also unmuted in my 10 channels ad1988a
As alc892 datasheet is available at realtek web site , no need to use codecgraph, just look at the Block diagram and you will able to find out those inputs pins (e.g. Front Mic, Rear Mic ,... ) connected through
0x0bto those output pinsTakashi ,
Is it correct to setspec->multiout.hp_nid= 0 orspec->multiout.no_share_streamin order to disable the multiout to use hp dacand use
alt_dac_nidandstream_analog_alt_playbackto enable Front Panel HP playback (multistream playback) like those intel desktop videos ?This assign headphone and mic at front panel to
alt_playbackandalt_capture"hw:0,2"if (!spec->cap_mixer) set_capture_mixer(codec);(quoted diff) +6
-0+ if (codec->vendor_id == 0x10ec0892) { +/* enable multistream for front panel hp */ + if (spec->multiout.hp_nid && spec->autocfg.line_outs == 4) { + spec->alt_dac_nid = spec->multiout.hp_nid; + spec->multiout.hp_nid = 0; + spec->stream_analog_alt_playback =
&alc880_pcm_analog_alt_playback;(quoted diff) +3
-0+ } + if (spec->num_adc_nids>1 && spec->autocfg.num_inputs > 2) + spec->stream_analog_alt_capture =
&alc880_pcm_analog_alt_capture;
+ }
Quoted 5 lines
if (has_cdefine_beep(codec)) {_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Double checked all things that could make problems, alsa version, kernel configuration, lib version, i dont find any solution.
Audio is cracky, some times does not work, front and rear mic does not work, I applied the patch you suggested Raymond, nothing changed. Do I open a separate thread?
If could help some times, when I start virutalbox with windows 7 or windows xp machine image, audio starts work well, no noise no problems, but after a little usage (an mp3 with mplayer) noise is back and mic stop working again, i search in dmesg for any info about, but the messages are always the same.
this is my last alsa-info
http://www.alsa-project.org/db/?f=9806a84f0d24e576b8b84524a7fb46a3f3703800
my latest kernel config (sound-2.6 Takashi's git)
http://valeriotesei.com/alsa/kconfig
There is a debug tool to show connections/pinstatus on windows7 to try replicate those connection/pinstatus on alsa?
Signature · 4 lines
*Email:* [email protected] *Cellulare:* +39.3394768306 *Gtalk:* [email protected] *LinkedIn:* http://www.linkedin.com/pub/valerio-tesei/22/a87/577