Skip to contentSkip to conversation

: "alsactl restore" always fails

ALSA - driver 0000337 [email protected] 1 participant 1 message Sep 24, 2004

lore
Share & tools
lore
#0 lore raw

The following bug has been CLOSED
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000337
======================================================================

Reported By:                kuulasma
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Bug ID:                     337
Category:                   PCI - nm256
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Distribution:               Debian sarge
Kernel Version:             Linux 2.6.6-1-686
======================================================================
Date Submitted:             06-16-2004 22:04 CEST
Last Modified:              09-24-2004 13:40 CEST

======================================================================
Summary: "alsactl restore" always fails
Description:
Dell Latitude CPt with an NM256ZX fails always to restore previously saved state. Command "alsactl store" succesfully stores current state but "alsactl restore" always fails to restore previous state. The OSS driver works fine.

Example:
----------------------------------------------------------

# alsactl restore
alsactl: set_control:966: Cannot write control '2:0:0:CD Playback
Switch:0' : Invalid argument
----------------------------------------------------------
======================================================================

----------------------------------------------------------------------
tiwai - 06-22-2004 18:51 CEST
----------------------------------------------------------------------
Can you toggle CD mute on alsamixer, or like 'amixer set CD mute'?

----------------------------------------------------------------------
kuulasma - 06-22-2004 21:35 CEST
----------------------------------------------------------------------
I tried to toggle CD mute but new setting are not stored. If I try to mute CD or change volyme, new settings are ignored. alsamixer doesn't save CD volyme and mute state. Other controls work just like I expect them to work. Once I open alsamixer CD settings are as follows: volyme 100 and unmuted.

If I edit /var/lib/alsa/asound.state file manually and remove sections control.14 and control.15, I can issue command 'alsactl restore' succesfully (without error message). But once I store settings ('alsactl store'), illegal control.14 and control.15 are stored in asound.state file.

Just in case you need following information:

# lsmod | grep snd
snd_nm256              69188  1 
snd_ac97_codec         65188  1 snd_nm256
snd_pcm_oss            54436  0 
snd_mixer_oss          20096  2 snd_pcm_oss
snd_pcm                98148  2 snd_nm256,snd_pcm_oss
snd_page_alloc         11460  1 snd_pcm
snd_timer              25380  1 snd_pcm
snd                    54692  6
snd_nm256,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              10336  2 snd

----------------------------------------------------------------------
tiwai - 06-30-2004 16:29 CEST
----------------------------------------------------------------------
The attached patch will allow the access to the CD mute/volume. Please give a try.

----------------------------------------------------------------------
kuulasma - 07-02-2004 07:12 CEST
----------------------------------------------------------------------
YES!

I patched the kernel (2.6.6) and compiled. After boot new kernel with nm256-cd.diff worked. Thank you!

When will the patch land in official kernel source repository?

Regards

Teemu

----------------------------------------------------------------------
tiwai - 07-16-2004 12:02 CEST
----------------------------------------------------------------------
fixed on cvs now.

Bug History
Date Modified Username Field Change
======================================================================

06-16-04 22:04 kuulasma       New Bug                                      
06-16-04 22:04 kuulasma       Distribution              => Debian sarge    
06-16-04 22:04 kuulasma       Kernel Version            => Linux 2.6.6-1-686
06-17-04 14:12 kuulasma       Bug Monitored: kuulasma                      
06-22-04 18:51 tiwai          Bugnote Added: 0001333                       
06-22-04 21:35 kuulasma       Bugnote Added: 0001334                       
06-30-04 16:29 tiwai          Bugnote Added: 0001355                       
06-30-04 16:30 tiwai          File Added: nm256-cd.dif                     
07-02-04 07:12 kuulasma       Bugnote Added: 0001373                       
07-16-04 12:02 tiwai          Bugnote Added: 0001444                       
07-16-04 12:02 tiwai          Resolution               open => fixed       
07-16-04 12:02 tiwai          Status                   assigned => resolved
09-24-04 13:40 tiwai          Status                   resolved => closed  

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php