I don't get my soundcard to stop working again to do a good test, but nevertheless here is my working asound.state. I have the same strange values for the IEC958 controls, but they do not change when I select the Optical Raw option. The 0482000200...000 value is also the right one for me. I think the -ao alsa:device=spdif option is build-in in mplayer from the mplayer manual: device=<device>Sets the device name. Replace any ’,’ with ’.’ and any ’:’ with ’=’ in the ALSA device name. For hwac3 output via S/PDIF, use an "iec958" or "spdif" device, unless you really know how to set it correctly.
Floris Kyle Husmann schreef:
Floris, Did you get a chance to check your asound.state? Thanks, Kyle On Fri, Jan 9, 2009 at 1:21 AM, Floris <jkfloris@xxxxxx> wrote:I have the same problems with the Creative Audigy 2 using Debian testing my "solution" is to deselect "IEC958 Optical Raw" and "Audigy Analog/Digital Output Jack" options in the alsamixer. I will look to the asound.state if there is the same difference. Floris Kyle Husmann schreef:Hi, With a fresh ubuntu 8.10 install, spdif output worked as expected. I unmuted both IEC958 and IEC958 Digital in alsamixer, and when I played audio with mplayer, I would get audio through my spdif output. Then, fast forward a couple of days, and it randomly stopped working (I have no idea what triggered this). I would try to play something in mplayer, and nothing would come out of the spdif output. However, I discovered that I could get spdif output working with the mplayer option -ao alsa:device=spdif. This was the only way I could get sound to play - I tried different combinations of alsa:device=hw=N,M (N, M being integers), but only spdif worked. So, I figured there was some setting that got flipped when it randomly stopped working, and kept being set back by /etc/init.d/alsa-utils via /var/lib/alsa/asound.state. So, I stopped alsa-utils, renamed asound.state, and restarted the computer, hoping that all previous settings would be blown away. Even though a new asound.state was created, and many of the volumes, etc, looked reset (like the master volume was muted), other volume levels did not seem to be touched. Additionally, this "hidden setting" was also still wrong - mplayer would only play with device=spdif. After a lot of trial and error, and running a lot more programs, (like speaker-test), this magic setting flipped back (who knows when) and mplayer started working again (it would play audio through spdif by default as well as when I used alsa:device=hw=0,M and alsa:device=spdif). Because my old non-working asound.state was saved, I could identify the exact setting. I've attached the diff as asound.diff. By manually changing this setting by stopping the alsa-utils service, chaning the setting and then starting the alsa-utils service, I can toggle between the two behaviors I've been experiencing (mplayer working by default, and mplayer needing the alsa:device=spdif in order to work). Since both asound.state files have the exact same levels in alsamixer, how the heck do I properly make this setting? What do the numbers in the setting mean? If anyone has any knowledge or ideas that could bring some sanity to my situation, it would be greatly appreciated. Thanks, Kyle PS: To add to the mystery here, I've also included the output of aplay -L and aplay -l (it's the same for both asound.state files). Nowhere in here do I see any mention of spdif or of iec958. So why is mplayer working with alsa:device=spdif? Where is that going to? % aplay -l **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC888 Analog [ALC888 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: ALC888 Digital [ALC888 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 % aplay -L default:CARD=NVidia HDA NVidia, ALC888 Analog Default Audio Device front:CARD=NVidia,DEV=0 HDA NVidia, ALC888 Analog Front speakers surround40:CARD=NVidia,DEV=0 HDA NVidia, ALC888 Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=NVidia,DEV=0 HDA NVidia, ALC888 Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=NVidia,DEV=0 HDA NVidia, ALC888 Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=NVidia,DEV=0 HDA NVidia, ALC888 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=NVidia,DEV=0 HDA NVidia, ALC888 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers hdmi:CARD=NVidia,DEV=0 HDA NVidia HDMI Audio Output null Discard all samples (playback) or generate zero samples (capture) ------------------------------------------------------------------------ ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ------------------------------------------------------------------------ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user
state.Audigy2 { control.1 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'PCM Front Playback Volume' value.0 95 value.1 95 } control.2 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'PCM Surround Playback Volume' value.0 95 value.1 95 } control.3 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'PCM Side Playback Volume' value.0 95 value.1 95 } control.4 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'PCM Center Playback Volume' value 95 } control.5 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'PCM LFE Playback Volume' value 96 } control.6 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'PCM Playback Volume' value.0 94 value.1 94 } control.7 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Synth Playback Volume' value.0 0 value.1 0 } control.8 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'PCM Capture Volume' value.0 100 value.1 100 } control.9 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Synth Capture Volume' value.0 100 value.1 100 } control.10 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Mic Playback Volume' value.0 0 value.1 0 } control.11 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Mic Capture Volume' value.0 100 value.1 100 } control.12 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Audigy CD Playback Volume' value.0 0 value.1 0 } control.13 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Audigy CD Capture Volume' value.0 100 value.1 100 } control.14 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'IEC958 Optical Playback Volume' value.0 90 value.1 90 } control.15 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'IEC958 Optical Capture Volume' value.0 100 value.1 100 } control.16 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Line2 Playback Volume' value.0 86 value.1 86 } control.17 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Line2 Capture Volume' value.0 98 value.1 98 } control.18 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Analog Mix Playback Volume' value.0 0 value.1 0 } control.19 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Analog Mix Capture Volume' value.0 100 value.1 100 } control.20 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Aux2 Playback Volume' value.0 84 value.1 84 } control.21 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Aux2 Capture Volume' value.0 100 value.1 100 } control.22 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Front Playback Volume' value.0 0 value.1 0 } control.23 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Surround Playback Volume' value.0 0 value.1 0 } control.24 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Center Playback Volume' value 0 } control.25 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'LFE Playback Volume' value 0 } control.26 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Side Playback Volume' value.0 0 value.1 0 } control.27 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 40' iface MIXER name 'Tone Control - Bass' value.0 21 value.1 21 } control.28 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 40' iface MIXER name 'Tone Control - Treble' value.0 21 value.1 21 } control.29 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Tone Control - Switch' value.0 false value.1 false } control.30 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 100' comment.dbmin -4000 comment.dbmax 0 iface MIXER name 'Master Playback Volume' value 97 } control.31 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'IEC958 Optical Raw Playback Switch' value.0 true value.1 true } control.32 { comment.access 'read write' comment.type BOOLEAN comment.count 64 iface PCM device 2 name 'Captured FX8010 Outputs' value.0 false value.1 false value.2 false value.3 false value.4 false value.5 false value.6 false value.7 false value.8 false value.9 false value.10 false value.11 false value.12 false value.13 false value.14 false value.15 false value.16 false value.17 false value.18 false value.19 false value.20 false value.21 false value.22 false value.23 false value.24 false value.25 false value.26 false value.27 false value.28 false value.29 false value.30 false value.31 false value.32 true value.33 true value.34 true value.35 true value.36 true value.37 true value.38 true value.39 true value.40 true value.41 true value.42 true value.43 true value.44 true value.45 true value.46 true value.47 true value.48 false value.49 false value.50 false value.51 false value.52 false value.53 false value.54 false value.55 false value.56 false value.57 false value.58 false value.59 false value.60 false value.61 false value.62 false value.63 false } control.35 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Headphone Playback Switch' value false } control.36 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 31' comment.dbmin -4650 comment.dbmax 0 iface MIXER name 'Headphone Playback Volume' value.0 0 value.1 0 } control.39 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'PC Speaker Playback Switch' value true } control.40 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 15' comment.dbmin -4500 comment.dbmax 0 iface MIXER name 'PC Speaker Playback Volume' value 13 } control.41 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Phone Playback Switch' value false } control.42 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 31' comment.dbmin -3450 comment.dbmax 1200 iface MIXER name 'Phone Playback Volume' value 0 } control.45 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Mic Boost (+20dB)' value false } control.46 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Line Playback Switch' value true } control.47 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 31' comment.dbmin -3450 comment.dbmax 1200 iface MIXER name 'Line Playback Volume' value.0 28 value.1 28 } control.48 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'CD Playback Switch' value true } control.49 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 31' comment.dbmin -3450 comment.dbmax 1200 iface MIXER name 'CD Playback Volume' value.0 27 value.1 27 } control.52 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Aux Playback Switch' value true } control.53 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 31' comment.dbmin -3450 comment.dbmax 1200 iface MIXER name 'Aux Playback Volume' value.0 28 value.1 28 } control.60 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name '3D Control - Switch' value false } control.63 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 15' iface MIXER name '3D Control - Center' value 8 } control.64 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 15' iface MIXER name '3D Control - Depth' value 8 } control.65 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'External Amplifier' value true } control.210 { comment.access read comment.type IEC958 comment.count 1 iface PCM name 'IEC958 Playback Mask' value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 } control.211 { comment.access read comment.type IEC958 comment.count 1 iface PCM name 'IEC958 Playback Mask' index 1 value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 } control.212 { comment.access read comment.type IEC958 comment.count 1 iface PCM name 'IEC958 Playback Mask' index 2 value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 } control.213 { comment.access 'read write' comment.type IEC958 comment.count 1 iface PCM name 'IEC958 Playback Default' value '0482000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.214 { comment.access 'read write' comment.type IEC958 comment.count 1 iface PCM name 'IEC958 Playback Default' index 1 value '0492100200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.215 { comment.access 'read write' comment.type IEC958 comment.count 1 iface PCM name 'IEC958 Playback Default' index 2 value '0492100200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' } control.216 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Audigy Analog/Digital Output Jack' value true } control.217 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD Analog Front Playback Volume' value.0 0 value.1 0 } control.218 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD Analog Rear Playback Volume' value.0 0 value.1 0 } control.219 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD Analog Center/LFE Playback Volume' value.0 0 value.1 0 } control.220 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD Analog Side Playback Volume' value.0 0 value.1 0 } control.221 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD SPDIF Front Playback Volume' value.0 230 value.1 230 } control.222 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD SPDIF Rear Playback Volume' value.0 209 value.1 209 } control.223 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD SPDIF Center/LFE Playback Volume' value.0 230 value.1 230 } control.224 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 255' comment.dbmin -5175 comment.dbmax 1200 iface MIXER name 'HD SPDIF Side Playback Volume' value.0 222 value.1 222 } control.225 { comment.access 'read write' comment.type ENUMERATED comment.count 1 comment.item.0 SPDIF comment.item.1 I2S comment.item.2 SRC48 comment.item.3 SRCMulti_SPDIF comment.item.4 SRCMulti_I2S comment.item.5 CDIF comment.item.6 FX comment.item.7 AC97 iface MIXER name 'HD source Capture' value AC97 } control.226 { comment.access 'read write' comment.type ENUMERATED comment.count 1 comment.item.0 '0' comment.item.1 '1' comment.item.2 '2' comment.item.3 '3' iface MIXER name 'HD channel Capture' value '0' } } state.Bt878 { control.1 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 15' iface MIXER name 'Capture Volume' value 0 } control.2 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Capture Boost' value false } control.3 { comment.access 'read write' comment.type ENUMERATED comment.count 1 comment.item.0 'TV Tuner' comment.item.1 FM comment.item.2 Mic/Line iface MIXER name 'Capture Source' value 'TV Tuner' } }
------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user