View previous topic :: View next topic |
Author |
Message |
GlenCollins n00b
Joined: 11 Apr 2006 Posts: 53 Location: Australia
|
Posted: Thu Feb 28, 2008 8:39 pm Post subject: Alsa Mixer Levels not writing, therefore no sound |
|
|
Hi all,
Am getting the following error when starting alsasound
Code: |
* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* Loading: snd-pcm-oss ... [ ok ]
* Loading: snd-seq ... [ ok ]
* Restoring Mixer Levels ...
alsactl: set_control:970: failed to obtain info for control #1 (No such file or directory)
* Errors while restoring defaults, ignoring [ ok ]
|
When stopping the service I get
Code: |
* Storing ALSA Mixer Levels ...
alsactl: get_control:209: Cannot read control info '2,0,0,Front Playback Volume,0': Invalid argument
* Error saving levels. [ !! ]
* Killing processes using ALSA ... [ ok ]
* Unloading ALSA modules ...
|
The error appears to be in writing the mixer level. Tried "killall udevd" followed by "udevstart" as per Alsa Guide but this didn't help.
Following are some information that may help. I must be missing something simple.
GA-M68SM-S2L Motherboard with NForce 630a chipset with Realtek AL662 codec (High Definition Audio)
.config (sound part only)
Code: |
# Sound
#
CONFIG_SOUND=m
#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
# CONFIG_SND_SEQUENCER_OSS is not set
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
CONFIG_SND_AC97_CODEC=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_MTS64 is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
# CONFIG_SND_PORTMAN2X4 is not set
#
# PCI devices
#
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AZT3328 is not set
CONFIG_SND_BT87X=m
# CONFIG_SND_BT87X_OVERCLOCK is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS5530 is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
CONFIG_SND_INTEL8X0=m
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_AC97_POWER_SAVE is not set
|
"lspci -v | grep -i audio" returns
Code: |
00:07.0 Audio device: nVidia Corporation MCP67 High Definition Audio (rev a1)
01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
|
/etc/modules.d/alsa contains
Code: |
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.14 ---
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
# --- END: Generated by ALSACONF, do not edit. ---
|
and lsmod returns
Code: |
Module Size Used by
snd_seq 50560 0
snd_seq_device 8852 1 snd_seq
snd_pcm_oss 41312 0
snd_mixer_oss 16576 1 snd_pcm_oss
snd_hda_intel 331812 0
snd_pcm 75336 2 snd_pcm_oss,snd_hda_intel
snd_timer 21704 2 snd_seq,snd_pcm
snd 52392 7 snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer
snd_page_alloc 10192 2 snd_hda_intel,snd_pcm
ac97_bus 4672 0
scsi_wait_scan 3584 0
i2c_dev 8392 0
dst_ca 14336 0
zl10353 8136 0
nxt6000 9156 0
cx24110 9668 0
lgdt330x 10564 0
or51211 9732 0
dvb_pll 13316 0
mt352 8516 0
sp887x 9284 0
tuner 63848 0
tvaudio 25500 0
msp3400 30496 0
tda7432 10072 0
ir_kbd_i2c 10256 0
tda9875 9680 0
hwmon_vid 4736 0
sound_firmware 4096 0
nvidia 8842276 24
dst 29064 2 dst_ca
dvb_bt8xx 17092 0
bt878 11880 2 dst,dvb_bt8xx
bttv 191476 2 dvb_bt8xx,bt878
video_buf 23172 1 bttv
ir_common 33732 2 ir_kbd_i2c,bttv
i2c_algo_bit 7876 1 bttv
btcx_risc 6280 1 bttv
tveeprom 18576 1 bttv
i2c_core 22720 21 i2c_dev,zl10353,nxt6000,cx24110,lgdt330x,or51211,dvb_pll,mt352,sp887x,tuner,tvaudio,msp3400,tda7432,ir_kbd_i2c,tda9875,nvidia,dst,dvb_bt8xx,bttv,i2c_algo_bit,tveeprom
soundcore 8800 1 snd
k8temp 7168 0
|
Does anyone have any ideas how to fix the mixer level writing issues or ideas of what I can try?
Thanks |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Mar 02, 2008 12:07 am Post subject: |
|
|
try remove /etc/asound.state (as usual... backup a file before removing it ) |
|
Back to top |
|
|
GlenCollins n00b
Joined: 11 Apr 2006 Posts: 53 Location: Australia
|
Posted: Sun Mar 02, 2008 12:08 am Post subject: |
|
|
(Edit - This post was sent around same time as previous response post. See next post for response)
Have tried rolling back to alsa-utils-1.0.14_rc2-r3, but get same errors.
Tried unmasking latest alsa-utils (alsa-utils-1.0.16_rc1) and associated dependencies.
Get similar error.
Code: |
alsactl: set_control:1269: failed to obtain info for control #1 (No such file or directory)
alsactl: set_control:1269: failed to obtain info for control #2 (No such file or directory)
alsactl: set_control:1269: failed to obtain info for control #3 (Invalid argument)
alsactl: set_control:1269: failed to obtain info for control #5 (No such file or directory)
alsactl: set_control:1269: failed to obtain info for control #6 (No such file or directory)
....<continues>
|
So I've reverted back to stable alsa-utils-1.0.14 (with associated dependencies).
In doing more web searches I've found others with the same issue, but none of them seem to get to a solution.
Any ideas what to try as I'd like to get sound for this system?
Is this some type of bug? If so where to?
Last edited by GlenCollins on Sun Mar 02, 2008 12:52 am; edited 1 time in total |
|
Back to top |
|
|
GlenCollins n00b
Joined: 11 Apr 2006 Posts: 53 Location: Australia
|
Posted: Sun Mar 02, 2008 12:50 am Post subject: |
|
|
Hi krinn,
Tried your suggestion, but it didn't help. Probably should clarify though: sort of already tried this as I'd added
Code: | echo -n "ALSA removing /etc/asound.state >> "
rm /etc/asound.state
echo "#intel_hda workaround" >> /etc/asound.stateThink I'd already eid this from |
into /etc/init.d/alsasound (as suggested at http://forum.paldo.org/index.php?action=topic&topicnr=70&pagenr=2&hilikeywords=a%3A0%3A%7B%7D)
so this had done this, and I was a little silly and didn't back up /etc/asound.state as I didn't read the script properly and backed up /var/lib/alsa/asound.state by mistake (was getting confused by reading other posts).
So why I'm mentioning this is I don't think /etc/asound.state had ever existed before I added this code. I've reverted /etc/init.d/alsasound back, and deleted /etc/asound.state and starting or stopping alsasound doesn't create this file. Presumably this is where it should get created (at startup).
So after all this I still have the issue.
Thoughts anyone? Need me to post something else? Bug? |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Mar 02, 2008 1:53 am Post subject: |
|
|
from /usr/sbin/alsaconf
Code: |
if [ ! -r /etc/asound.state ]; then
xecho "Saving the mixer setup used for this in /etc/asound.state."
$sbindir/alsactl store
|
as u see asound.state is handle by alsaconf, what i think is that you bork your asound.state and now that alsaconf always find it, it try to use it.
my suggestion is still
rm /etc/asound.state
but i will add then
alsaconf or /usr/sbin/alsactl store
so it will try build a new (valid) one for your card
and you shouldn't bork file as /etc/init.d/alsasound with some ugly and stupid workaround like that imo (this guy just always remove mixer settings when he init the soundcard, even it work, it will always have his mixer reset to default, this sucks)
it's something to mess up with a conf file, it's something else to play wizzard with init file.
If anyone suggest you something, they will always think you have a "default" classic init file & not an ugly hazardly patch one. |
|
Back to top |
|
|
GlenCollins n00b
Joined: 11 Apr 2006 Posts: 53 Location: Australia
|
Posted: Sun Mar 02, 2008 12:44 pm Post subject: |
|
|
Hi krinn, I agree the init hack was pretty poor (sucks was better word). It wasn't a normal string I'd added to the init file, I was just trying something, as no one had posted anything on forum. So init file was default until about 1/2 hour before your first reply and then I switched back after it didn't help. So I posted what I tried, to try and clarify how I probably buggered up what you where suggesting.
Ok, back to issue at hand, thought I had been doing what suggest, but can't hurt trying again, details logged below:
Code: |
homepc linux # rm /etc/asound.state
rm: cannot remove `/etc/asound.state': No such file or directory
homepc linux # /usr/sbin/alsactl store
/usr/sbin/alsactl: get_control:209: Cannot read control info '2,0,0,Front Playback Volume,0': Invalid argument
|
also ran alsaconf (only just found out I could scroll up in terminal to see error - always stopped and then started alsaconf to get error to post.) Anyway this error might now be more helpful.
Code: |
* Restoring Mixer Levels ...
alsactl: set_control:970: failed to obtain info for control #1 (No such file or directory)
* Errors while restoring defaults, ignoring [ ok ]
Setting default volumes...
amixer: Mixer default load error: Invalid argument
Saving the mixer setup used for this in /etc/asound.state.
/usr/sbin/alsactl: get_control:209: Cannot read control info '2,0,0,Front Playback Volume,0': Invalid argument
|
Apologies, but usually try and post all info needed, but once again have missed something I didn't think important but probably is. Had issue with a motherboard so have just changed motherboards and this one has a newer nForce chipset. I suppose I didn't think it would be relevant to the issue given I'd deleted /etc/modules.d/alsa and followed the Alsa guide re-emerging things along the way.
I suppose this could mean there are other files that I need to delete that emerging alsa-utils doesn't overwrite? Or is there more info that I need to add to the /etc/modules.d/alsa file?
Don't know if helps, but I have compiled newer kernel on current system, and settings are what I posted in first post.
Thanks for help and suggestions so far. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|