Hi people.

I am having this problem for a long time ago, and i couldnt find the same on google, or a solution for it.
I also dont know the right way to write the question to google, because almost all are about problems that i dont have.

OpenSUSE 11.4 installed about 2 Months ago.
ASUS laptop n51tp
Athlon X2
ATI Mobility™ Radeon® HD 4650 
Audio System
Built-in Azalia compliant audio chip, with 3D effect & full duplex
Built-in speaker and microphone
Support Audio Jack Detect for Vista Basic Logo
Support Audio CODEC criteria for Vista Premium Logo


AUDIO WORKS with the 2 problems listed below.

ABSTRACT:
- Internal and external speaker both loud at the same time.
- MIC gets broke and an alsa restart is required.


PROBLEM 1:
If i start the laptop with no external headsets or speaker connected in front panel. Audio goes through internal speakers.
When i connect an external speaker or headsets (like to talk with skype), sound is duplicated.
It goes through both. Internal AND External. 
This is undesired behavior and the windows driver doesnt work that way. Internal goes mute when i connect an external.
Causes trouble when speaking with skype, as everyone can heard. Or earing a movie with a better equipment. Internal speaker are the poorest quality.
To only use externals i have to reset alsa with "rcalsasound restart" with externals plugged in.

IF i start the laptop with the headsets pluged in. The internal speakers will not work at all. Always in mute. Both the externals will work.
To use internals again i have to reset alsa with "rcalsasound restart" with nothing plugged in.

PROBLEM 2:
MIC works.
Internal MIC sucks. Nobody can ear me though skype.
External MIC works fine sometimes.

If i start the laptop with the MIC plugged in. It works. No problem.
If i start the laptop with the NO MIC plugged in. It doesnt works. I have to restart alsa.
If i do work with the laptop using different multimedia sources, it brokes.
Most of the time i get called by skype and the MIC is not working anymore. Then i have to close all programs, restart alsa and open skype again to be able to talk.
Thats the main reason to post here.

In the gnome's Audio-preferences dialog, the input tab, the level-bars :
- show as ghosts when it doesnt work.
- shows green changing, when it does works.
- shows as ghosts if no program is using the mic and changes to green if i start the recorder.

Restarting alsa requires closing Opera, Firefox, Skype, Emesene, Banshee, etc. to work or some of them will broke the MIC again. It also requires root privileges.

A broken headset also causes this behavior when i plugg it, and then MIC stops working until a reset.



MY GUESS about the problems:
as almost electronic engineer.

FOR PROBLEM 1:
The driver requires to detect check for high impedance at the front panel and mute the internal ones, and/or provide a way to mute them separately.

FOR PROBLEM 2:
A short-circuit problem may be happening in my front panel, and under some circumstances, like moving the cables, it causes some chipset failure over the MIC controller. The driver is not handling this error and it stays crashed until a reset.
However, it doesnt explains why seeing a video in flashplayer in opera may cause this too.
And it didnt happened on windows, but i dont have it anymore installed.

Also, i dont understand why AMD+ATI laptop uses Intel hda drivers. But i guess it has to do with ALC663 specs.




I will appreciate any help, and thanks to everyone reading this not-short post.

Cheers.
Diego

Below: Data about my system.


============================================================
============================================================
============================================================
Only "Master" and "Capture" are shown on alsa-mixer. Both full. But the problem here is not the volume.

linux-i1zx:/home/diego # cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.23.

linux-i1zx:/home/diego # cat /proc/asound/cards
0 [SB ]: HDA-Intel - HDA ATI SB
HDA ATI SB at 0xfacf4000 irq 16
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xfadec000 irq 42

linux-i1zx:/home/diego # cat /proc/asound/devices
2: : timer
3: [ 0- 1]: digital audio playback
4: [ 0- 0]: digital audio playback
5: [ 0- 0]: digital audio capture
6: [ 0- 0]: hardware dependent
7: [ 0] : control
8: [ 1- 3]: digital audio playback
9: [ 1- 0]: hardware dependent
10: [ 1] : control
11: : sequencer

linux-i1zx:/home/diego # cat /proc/asound/oss/devices
0: [0- 0]: mixer
3: [0- 0]: digital audio
4: [0- 0]: digital audio
12: [0- 1]: digital audio
16: [1- 0]: mixer

linux-i1zx:/home/diego # cat /proc/asound/timers
G0: system timer : 4000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-1-0: PCM playback 0-1-0 : SLAVE
P1-3-0: PCM playback 1-3-0 : SLAVE
linux-i1zx:/home/diego # cat /proc/asound/pcm
00-00: ALC663 Analog : ALC663 Analog : playback 1 : capture 1
00-01: ALC663 Digital : ALC663 Digital : playback 1
01-03: HDMI 0 : HDMI 0 : playback 1

linux-i1zx:/home/diego # cat /etc/modprobe.d/50-sound.conf

options snd slots=snd-hda-intel,snd-hda-intel
# 5Dex.PIu7BLVZl12:SBx00 Azalia (Intel HDA)
alias snd-card-0 snd-hda-intel
# NXNs.yqXoVEq89wB:R700 Audio Device [Radeon HD 4000 Series]
alias snd-card-1 snd-hda-intel

linux-i1zx:/home/diego # lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 1)
00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:07.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 3)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3a)
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor HyperTransport Configuration (rev 40)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Link Control
01:00.0 VGA compatible controller: ATI Technologies Inc M96 [Mobility Radeon HD 4650]
01:00.1 Audio device: ATI Technologies Inc RV710/730
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
03:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
06:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
06:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
06:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
06:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)

linux-i1zx:/home/diego # dmesg | grep sound
[ 9.759600] input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input11
[23782.924422] input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input13
[23897.439740] input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input14
[23924.488713] input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input15
[23999.613391] input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input16
[25937.965371] input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input17

linux-i1zx:/home/diego # dmesg | grep hda
[ 50.625207] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.
[23786.414301] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.
[23900.659802] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.
[23928.322973] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.
[24003.419618] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.
[25940.535502] hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj.

linux-i1zx:/home/diego # lsmod | grep snd
snd_pcm_oss 47887 0
snd_mixer_oss 16849 1 snd_pcm_oss
snd_seq 57361 0
snd_seq_device 6646 1 snd_seq
snd_hda_codec_hdmi 24875 1
snd_hda_codec_realtek 274207 1
snd_hda_intel 24912 2
snd_hda_codec 95606 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6038 1 snd_hda_codec
snd_pcm 87993 4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer 21844 2 snd_seq,snd_pcm
snd 66158 15 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore 6854 1 snd
snd_page_alloc 7897 2 snd_hda_intel,snd_pcm