Elimar, your script is wonderful, I only restarted my script the alsa-utils service, but not stopped before restart.
I sending a new patch.
I increased the Master and PCM volume values, because if the Speaker volume is setted, too low the sound volume. I changed Mic Boost and Front Mic Boost values with 0, and Decreased the Digital volume meter with 50%. Now when I recorded text with external or internal microphone, the recorded sound is not distorted.

If you want and need, feel free modify my patch with compatibility purposes with other sound cards if need defining general standard values (Master, PCM volume meters for example).

I sending amixer-after-restart.txt file, this file shows right all volume values is setted right with I want. I tested the patched alsa-utils working with your script. After alsa is stopped and restarted, volume values is setted up right, and I hear sound with speaker, possible use internal and external michrophone.

Attila
*** alsa-utils.orig	2010-11-18 13:30:54.523870664 +0100
--- alsa-utils	2010-11-18 13:28:54.951868973 +0100
*************** sanify_levels_on_card()
*** 206,211 ****
--- 206,219 ----
  	# On MacBookPro5,3 and later models (See Bug#597791)
  	unmute_and_set_level "Front Speaker" "80%"
  
+ 	# On Intel 82801H (See Bug#603550)
+ 	unmute_and_set_level "Master" "100%"
+ 	unmute_and_set_level "PCM" "100%"
+ 	unmute_and_set_level "Speaker" "80%"
+ 	unmute_and_set_level "Capture" "100%"
+ 	unmute_and_set_level "Mic Boost" "0%"
+ 	unmute_and_set_level "Front Mic Boost" "0%"
+ 	unmute_and_set_level "Digital" "50%"
  	return 0
  }
  
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 45 [70%] [-19.00dB] [on]
  Front Right: Playback 45 [70%] [-19.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 52 [81%] [-12.00dB] [on]
  Front Right: Playback 52 [81%] [-12.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 2
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'Mic Boost',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 2
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 12
  Mono:
  Front Left: Playback 0 [0%] [-24.00dB] [off]
  Front Right: Playback 0 [0%] [-24.00dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [30.00dB] [on]
  Front Right: Capture 31 [100%] [30.00dB] [on]
Simple mixer control 'Digital',0
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]

Reply via email to