Re: [mythtv-users] RE: Configuring SPDIF digital out. (SOLVED!)
Hello all, Finally broke the wall surrounding me, my Xbox and SPDIF! Since I use the .asoundrc from the DigitalSound HowTo on the Xbox, which has Digital Output but no IEC958 device, I solved the xine troubles I was having by replacing the audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 line in .xine/config with #audio.device.alsa_passthrough_device:default since the mixed-digital .asoundrc defaults to the SPDIF. No more problems in Xine, not even when they switch between 2-channel Stereo in menus, and full 5.1 or DTS on the DVD. Now I see the light in the end of the tunnel (and NO, it's not a train!!!) I'll think I'll go see if the STB is ready for retirement yet, since I now have a reciever to go with AC3 sound on the DVB channels as well. Thanks everybody for the invaluable help and nudges in the right direction! Happy holidays Johan ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out. -- new weirdnesses
On 17/12/05, Marius Schrecker [EMAIL PROTECTED] wrote: I might suggest that all alsa utilities, alsactl, and everything else is NOT required to use digital out with MythTV. I'm using MythTV 0.18.1 on Gentoo and I only have the necessary alsa drivers compiled in the kernel. I've never used alsamixer or alsactl, or installed/emerged alsa-utils, alsamixer, aplay, or anything else alsa related. I'm not starting any alsa services during startup. The only thing I did is: Enable alsa support and driver in the kernel. Put .asoundrc in my home directory. Set MythTV as follows: -Enable AC3 -Device = ALSA:digital -Mixer = digital and that's it. I also have all the other mythplugins working by setting their device to ALSA:digital. Is my setup unique, or are people doing more than need to to get digital audio working? The simpler the better. I don't care how little is installed as long as I can get digital output, so far no go, everything looks as if it should be working, just no sound :( I'd love to know how to test spdiff out as simply as possible, if I can bypass aplay then so much the better! Can I stream a 48KHz file straight to spdiff out? You can use aplay -D pcmdevice and then send it out of your spdif whilst testing. You can get a list of all PCM devices by running aplay -L - choose one that your SPDIF is aliased to (commonly spdif) and see if you get any sound. The digital sound HOWTO really does explain everything you should need to do to get SPDIF output - the one hurdle is commonly determining which controls in the mixer need to be set to allow this. In my most basic asoundrc file (which sounds everything by default to my SPDIF) I have used: pcm.!default { type hw card 0 device 1 } The card/device to specify can be determined using `aplay -l` - for my system my SPDIF was given as device 1 - yours may be different. Note that this device expects 48kHz audio - if it's not the same format it may play back too slow/fast or not at all. The excellent asoundrc in the HOWTO uses the plug and dmix plugins to allow on-the-fly rate conversion. Nick Thanks everyone for keeping this thread alive. Digital sound is now working this morning but NOT as expected (please read on), after upgrading alsa-base to the latest version from Debian, removing arts from the system (startup was not enabled in KDE, but I discovered that artsd was running), and doing a new depmod after removing the oss API related modules. I didn't have time to test this yesterday as domestic Christmas duties are crampinmg my MythTV style ;-). As I mentioned, I did this before with the same hardware, following the Digital Sound Howto, and it was no problem at-all. I connected the computer to the surround amp, fiddled with a couple of sliders in alsamixer and we were watching our first Myth movie within about 30 seconds using ALSA:diital as the output device. Here's what I've done now: Kernel (2.6.14): Sound Card Suport: M ALSA:M Sequencer: M (SND_SEQUENCER) sequencer dummy client: M (SND_SEQ_DUMMY) OSS Mixer API: M (SND_MIXER_OSS) OSS PCM: M (SND_PCM_OSS) OSS Sequencer: *(SND_SEQUENCER_OSS) (No option for module compile) RTC Timer support M (SND_RTCTIMER) Use RTC as default sequencer timer * (SND_SEQ_RTCTIMER_DEFAULT) Verbose printk NOT SET Debug NOT SET (perhaps I should enable this amnd look at the output??) generic devices: Dummy soundcard M (SND_DUMMY) Virtual MIDI soundcard M (SND_VIRMIDI) MOTU MidiTimePiece AV multiport MIDI M (SND_MTPAV) UART16550 serial MIDI driver M (SND_SERIAL_U16550) Generic MPU- UART driver M (SND_MPU401) PCI devices: Intel /SIS/nVidia/AMD/ALI AC97 Controller M (SND_INTEL8X0) ONLY USB devices : NONE OSS: NOT CONFIGURED This is the same config as before (2.6.13 rc6 git4), with the following exceptions for new code: SND_AC97_CODEC did not exist, now M SND_AC97_BUS did not exist, now M SND_HWDEP was M, no longer exists SND_SEQ_RTCTIMER_DEFAULT did not exist, now * SND_ICE1724 was M by mistake, no longer configured SND_USB_AUDIO was M, no longer set SND_USB_USX2Y was M, no longer set loaded sound modules are as follows: $ lsmod |grep snd snd_intel8x0 29596 1 snd_ac97_codec 93472 1 snd_intel8x0 snd_ac97_bus1856 1 snd_ac97_codec snd_pcm80392 2 snd_intel8x0,snd_ac97_codec snd_timer 20548 1 snd_pcm snd46564 6 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer soundcore 7264 1 snd snd_page_alloc 8648 2 snd_intel8x0,snd_pcm (I took out the oss mixer and oss pcm stuff for a clean alsa system and did a depmod in case this was screwing me up) I have modified /etc/modultils/alsa-base and changed: options snd-intel8x0m index=-2 to options snd-intel8x0m index=0 (don't know what this does, but others have done it, so thought I should do the same) Otherwise I'm using the stock alsa-base file
Re: [mythtv-users] RE: Configuring SPDIF digital out. -- new weirdnesses
On 19/12/05, Marius Schrecker [EMAIL PROTECTED] wrote: My current mixer settings (from alsamixer console mode) are: Master: 71% Master Mono: Mute PCM: 100% ... IEC958:PCM IEC958 Playback AC97-SPSA : 0% IEC958 Playback AC97-SPSA Capture : 0% Capture: 100% Mix: Capture set External Amplifier: Set Marius, Although using a different soundcard (ATI IXP150) I checked my mixer settings and have the following (note my IEC958 Playback AC97-SPSA setting is at 3 (100%) whereas yours above is at 0%. I remember having to set this to 100% before anything would come out of my digital receiver). control.33 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'IEC958 Playback Switch' value true } control.34 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 3' iface MIXER name 'IEC958 Playback AC97-SPSA' value 3 } control.35 { comment.access 'read write' comment.type ENUMERATED comment.count 1 comment.item.0 AC-Link comment.item.1 'A/D Converter' iface MIXER name 'IEC958 Playback Source' value AC-Link } What does the output from /proc/asound/devices mean? It looks as if both Card 0 device 2 and card 0 device 0 are set as digital output devices?? I get similar, and only have a single SPDIF-out (no input): [EMAIL PROTECTED] mythtv]$ cat /proc/asound/devices 0: [0- 0]: ctl 17: [0- 1]: digital audio playback 16: [0- 0]: digital audio playback 24: [0- 0]: digital audio capture 33: : timer (I understand that the first number represents the minor number of the device - check the snddevices script that comes with the ALSA source). I'd still check the IEC958 mixer settings (play some audio in a loop whilst you are checking settings) - at least this is the way I determined what settings were required for my card. Nick ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
sön 2005-12-18 klockan 01:15 + skrev Nick: On 18/12/05, Johan Kihlström [EMAIL PROTECTED] wrote: I have a similar setup as above and just did aplay somesoundfile.wav and it went out the right way(through spdif into SurroundrReciever) A lot of hours compiling an googling felt very worthwhile at that point. Now if only I could get Xine to output to spdif instead of crashing... Johan, When I got xine working with my SPDIF output, the only lines I needed to check (in ~/.xine/config) were: # device used for stereo output audio.device.alsa_front_device:default # pass through to SPDIF audio.output.speaker_arrangement:Pass Through My default PCM device is my SPDIF output (configured using Mike Dean excellent Digital Sound HOWTO), after specifying the speaker option, everything worked immediately, and my blue Dolby Digital light lit up as soon as I played a DVD. The other SPDIF related entries were OK left at their defaults: #audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 #audio.device.alsa_surround51_device:plug:surround51:0 Do you get any errors when xine crashes? Nick ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users Hi Nick, I have audio.device.alsa_front_device:default and audio.output.speaker_arrangement:Pass Through set. also the #audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 #audio.device.alsa_surround51_device:plug:surround51:0 bits. When trying to play I get : Audio device not available, please check if yada, yada. Only software running the audio device is Xine AFAIK. In the xine log there's : audio_decoder error : unknown buffer type 0106 audio_decoder error : unknown buffer type 0200 audio_decoder error : unknown buffer type 0400 Been googling and fussing around for a couple of days now and haven't got to the end of it yet. A bit frustrating really, as this was the final hurdle to get a brand new gentoox installation running flawlessly on my Xbox with 5.1 sound from all DVB channels that provide it, besides running the DVD's with the best sound possible. Best regards happy holidays! Johan ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
Does setting the mixer to digital allow volume control from mythtv of the digital out? I'd like to be able to do that. Also I'd like to be able have both analog and digital have the same output, is that possible? Don't think so - by which I mean I haven't been able to get it work! ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
On 18/12/05, Johan Kihlström [EMAIL PROTECTED] wrote: sön 2005-12-18 klockan 01:15 + skrev Nick: On 18/12/05, Johan Kihlström [EMAIL PROTECTED] wrote: I have a similar setup as above and just did aplay somesoundfile.wav and it went out the right way(through spdif into SurroundrReciever) A lot of hours compiling an googling felt very worthwhile at that point. Now if only I could get Xine to output to spdif instead of crashing... Johan, When I got xine working with my SPDIF output, the only lines I needed to check (in ~/.xine/config) were: # device used for stereo output audio.device.alsa_front_device:default # pass through to SPDIF audio.output.speaker_arrangement:Pass Through My default PCM device is my SPDIF output (configured using Mike Dean excellent Digital Sound HOWTO), after specifying the speaker option, everything worked immediately, and my blue Dolby Digital light lit up as soon as I played a DVD. The other SPDIF related entries were OK left at their defaults: #audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 #audio.device.alsa_surround51_device:plug:surround51:0 Do you get any errors when xine crashes? Nick ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users Hi Nick, I have audio.device.alsa_front_device:default and audio.output.speaker_arrangement:Pass Through set. also the #audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 #audio.device.alsa_surround51_device:plug:surround51:0 bits. When trying to play I get : Audio device not available, please check if yada, yada. Only software running the audio device is Xine AFAIK. In the xine log there's : audio_decoder error : unknown buffer type 0106 audio_decoder error : unknown buffer type 0200 audio_decoder error : unknown buffer type 0400 Been googling and fussing around for a couple of days now and haven't got to the end of it yet. A bit frustrating really, as this was the final hurdle to get a brand new gentoox installation running flawlessly on my Xbox with 5.1 sound from all DVB channels that provide it, besides running the DVD's with the best sound possible. What is the output of 'aplay -l' and 'aplay -L' - maybe an incorrect device is being used? Are you using a customised .asoundrc file? I'd also make sure the KDE sound server is disabled (if using KDE). Best regards happy holidays! And to you too! Nick ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
I finally got it working. Here is what I did to enable spdif output to my amp when I switched from a SB Live! 5.1 analog surround card to the on-board audio on my Asus motherboard. The obvious first step was to remove the SB Live! Card from the PC. During the Power On Self Test (POST), I entered the BIOS settings and enabled the on-board audio. Saved the settings ant continued with the boot up. KDE informed me that the default audio device was missing. I went to the Start menu -- System Settings -- Soundcard Detection. KDE found my Soundcard and played a test tune. The analog sound was coming out of my TV Speakers and nothing was coming out of my Receiver. I opened up a terminal and typed alsamixer. I was given an error message : alsamixer: function snd_ctl_open failed for default: no such file or directory. Googling for that error led me to believe that my modprob.conf file was to blame so. . . # (any text editor) /etc/modprob.conf -Before-- alias eth0 sk98lin options snd-emu10k1 index=0 remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 options snd-intel8x0 index=1 remove snd-intel8x0 { /usr/sbin/alsactl store 1 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 The intel8x0 is my on-board audio device, and the emu10k1 was my old card. I commented out the lines referencing my old sound card and made a few number changes in the file. This is my file after editing it. ---After alias eth0 sk98lin #options snd-emu10k1 index=0 #remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 #changed index=1 to index=0 and ... store 1 to store 0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 I rebooted and still no dice. Same error message from alsamixer. I tried creating a .asoundrc file like like the example on the ALSA website. $ vi /home/mythtv/.asoundrc pcm.intel8x0 { type hw card 0 } ctl.intel8x0 { type hw card 0 } Still no digital sound. I attempt to run alsamixer and receive this error message: alsamixer: relocation error: alsamixer: symbol snd_mixer_selem_get_playback_dB, version ALSA_0.9 not defined in file libasound.so.2 with link time reference After a few Googles, I find out what needs to be done. It is time to update drivers and such. But first a little house cleaning. # mv /usr/lib/libasound.so.2 moved.libasound.so.2 # mv /usr/lib/libasound.so.2.0.0 moved.libasound/so/2/0/0 --- I later went back and deleted them but you cant be too careful --- # yum install alsa-utils # yum install alsa-lib # yum install alsa-driver I tried alsamixer again and it worked. In alsamixer I un-muted IEC958, turned ICE958 Playback all the way down, set ICE958 Playback source to [AC-Link], un-muted External Amplifier, turned PCM and Master up to 90%. ESC to exit. --- I dont know if all of this was necessary, but it worked for me. --- I started up mythfrontend, and navigated to Utilities/Setup - Setup - General. On the 3rd page I selected Enable AC3 to SPDIF passthrough and Audio output device was already on /dev/dsp. Finish going through the menus in order to make the settings take effect. After I verified that it worked, I spent a few minutes patting myself on the back, and then decided to save my settings. # /usr/sbin/alsactl store -- Thats it. I hope someone can find this information useful. -Mat I'm baffld about this. Yes I have the libasound2 libraries installed, but these are essential, not only to alsa, but also to about 100 other packages. There is no alternative on my Debian system. Here are the alsa relataed packages I have installed: $ dpkg -l *alsa* |grep ii ii alsa-base 1.0.10-3 ALSA driver configuration files ii alsa-oss 1.0.10-1 ALSA wrapper for OSS applications ii alsa-utils 1.0.10-1
Re: [mythtv-users] RE: Configuring SPDIF digital out.
On 12/17/05, Marius Schrecker [EMAIL PROTECTED] wrote: I finally got it working. Here is what I did to enable spdif output to my amp when I switched from a SB Live! 5.1 analog surround card to the on-board audio on my Asus motherboard. The obvious first step was to remove the SB Live! Card from the PC. During the Power On Self Test (POST), I entered the BIOS settings and enabled the on-board audio. Saved the settings ant continued with the boot up. KDE informed me that the default audio device was missing. I went to the Start menu -- System Settings -- Soundcard Detection. KDE found my Soundcard and played a test tune. The analog sound was coming out of my TV Speakers and nothing was coming out of my Receiver. I opened up a terminal and typed alsamixer.I was given an error message : alsamixer: function snd_ctl_open failed for default: no such file or directory. Googling for that error led me to believe that my modprob.conf file was to blame so. . . # (any text editor) /etc/modprob.conf -Before-- alias eth0 sk98lin options snd-emu10k1 index=0 remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 options snd-intel8x0 index=1 remove snd-intel8x0 { /usr/sbin/alsactl store 1 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 The intel8x0 is my on-board audio device, and the emu10k1 was my old card. I commented out the lines referencing my old sound card and made a few number changes in the file. This is my file after editing it. ---After alias eth0 sk98lin #options snd-emu10k1 index=0 #remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 #changed index=1 to index=0 and ... store 1 to store 0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 I rebooted and still no dice. Same error message from alsamixer. I tried creating a .asoundrc file like like the example on the ALSA website. $ vi /home/mythtv/.asoundrc pcm.intel8x0 {type hwcard 0 } ctl.intel8x0 {type hwcard 0 } Still no digital sound. I attempt to run alsamixer and receive this error message: alsamixer: relocation error: alsamixer: symbol snd_mixer_selem_get_playback_dB, version ALSA_0.9 not defined in file libasound.so.2 with link time reference After a few Google's, I find out what needs to be done. It is time to update drivers and such. But first a little house cleaning. # mv /usr/lib/libasound.so.2 moved.libasound.so.2 # mv /usr/lib/libasound.so.2.0.0 moved.libasound/so/2/0/0 --- I later went back and deleted them but you can't be too careful --- # yum install alsa-utils # yum install alsa-lib # yum install alsa-driver I tried alsamixer again and it worked. In alsamixer I un-muted IEC958, turned ICE958 Playback all the way down, set ICE958 Playback source to [AC-Link], un-muted External Amplifier, turned PCM and Master up to 90%. ESC to exit. --- I don't know if all of this was necessary, but it worked for me. --- I started up mythfrontend, and navigated to Utilities/Setup - Setup - General. On the 3rd page I selected "Enable AC3 to SPDIF passthrough" and "Audio output device" was already on "/dev/dsp". Finish going through the menu's in order to make the settings take effect. After I verified that it worked, I spent a few minutes patting myself on the back, and then decided to save my settings. #/usr/sbin/alsactl store --That's it. I hope someone can find this information useful. -Mat I am trying to get my SPDIF to work. I have an onboard soundcard (ASUS A8V Deluxe with VIA chipset)/sbin/lspci -v00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) Subsystem: ASUSTeK Computer Inc.: Unknown device 812a Flags: medium devsel, IRQ 5 I/O ports at e800 [size=256] Capabilities: [c0] Power Management version 2[EMAIL PROTECTED] ~]$ vi /home/mythtv/.asoundrcpcm.via82xx { type hw card 0}ctl.via82xx { type hw card 0}I can turn up alsamixer just fine but can't get any sound to the SPDIF (connected to a
Re: [mythtv-users] RE: Configuring SPDIF digital out.
On 12/17/05, Joacim J [EMAIL PROTECTED] wrote: On 12/17/05, Marius Schrecker [EMAIL PROTECTED] wrote: I finally got it working. Here is what I did to enable spdif output to my amp when I switched from a SB Live! 5.1 analog surround card to the on-board audio on my Asus motherboard. The obvious first step was to remove the SB Live! Card from the PC. During the Power On Self Test (POST), I entered the BIOS settings and enabled the on-board audio. Saved the settings ant continued with the boot up. KDE informed me that the default audio device was missing. I went to the Start menu -- System Settings -- Soundcard Detection. KDE found my Soundcard and played a test tune. The analog sound was coming out of my TV Speakers and nothing was coming out of my Receiver. I opened up a terminal and typed alsamixer.I was given an error message : alsamixer: function snd_ctl_open failed for default: no such file or directory. Googling for that error led me to believe that my modprob.conf file was to blame so. . . # (any text editor) /etc/modprob.conf -Before-- alias eth0 sk98lin options snd-emu10k1 index=0 remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 options snd-intel8x0 index=1 remove snd-intel8x0 { /usr/sbin/alsactl store 1 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 The intel8x0 is my on-board audio device, and the emu10k1 was my old card. I commented out the lines referencing my old sound card and made a few number changes in the file. This is my file after editing it. ---After alias eth0 sk98lin #options snd-emu10k1 index=0 #remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 #changed index=1 to index=0 and ... store 1 to store 0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 I rebooted and still no dice. Same error message from alsamixer. I tried creating a .asoundrc file like like the example on the ALSA website. $ vi /home/mythtv/.asoundrc pcm.intel8x0 {type hwcard 0 } ctl.intel8x0 {type hwcard 0 } Still no digital sound. I attempt to run alsamixer and receive this error message: alsamixer: relocation error: alsamixer: symbol snd_mixer_selem_get_playback_dB, version ALSA_0.9 not defined in file libasound.so.2 with link time reference After a few Google's, I find out what needs to be done. It is time to update drivers and such. But first a little house cleaning. # mv /usr/lib/libasound.so.2 moved.libasound.so.2 # mv /usr/lib/libasound.so.2.0.0 moved.libasound/so/2/0/0 --- I later went back and deleted them but you can't be too careful --- # yum install alsa-utils # yum install alsa-lib # yum install alsa-driver I tried alsamixer again and it worked. In alsamixer I un-muted IEC958, turned ICE958 Playback all the way down, set ICE958 Playback source to [AC-Link], un-muted External Amplifier, turned PCM and Master up to 90%. ESC to exit. --- I don't know if all of this was necessary, but it worked for me. --- I started up mythfrontend, and navigated to Utilities/Setup - Setup - General. On the 3rd page I selected Enable AC3 to SPDIF passthrough and Audio output device was already on /dev/dsp. Finish going through the menu's in order to make the settings take effect. After I verified that it worked, I spent a few minutes patting myself on the back, and then decided to save my settings. #/usr/sbin/alsactl store --That's it. I hope someone can find this information useful. -Mat I am trying to get my SPDIF to work. I have an onboard soundcard (ASUS A8V Deluxe with VIA chipset)/sbin/lspci -v00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) Subsystem: ASUSTeK Computer Inc.: Unknown device 812a Flags: medium devsel, IRQ 5 I/O ports at e800 [size=256] Capabilities: [c0] Power Management version 2[EMAIL PROTECTED] ~]$ vi /home/mythtv/.asoundrcpcm.via82xx { type hw card 0}ctl.via82xx { type hw card 0}I can turn up alsamixer just fine but can't get
Re: [mythtv-users] RE: Configuring SPDIF digital out.
On 12/17/05, Joacim J [EMAIL PROTECTED] wrote: Hmmm, I have some sound when running: /usr/bin/aplay /usr/share/sounds/KDE_Startup.wav But the volume is very low and having 100% volume in alsamixer Sorry for not testing enough before posting. Increasing VIA DXS was the solution ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
From previous post: Could someone with working spdiff post the output from alsactl store -f somefile ? as it looks like not all the controls are visible in the mixers. I'm still not having any luck with this. Would really love it if someone with a working nVidia CK804 digital out could post the output from alsactl . as it's the only way to see what the mixer settings really are. Here's mine (not working): $ alsactl store -f ~/alsastate [EMAIL PROTECTED]:~$ cat alsastate state.CK804 { control.1 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Master Playback Switch' value true } control.2 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 31' iface MIXER name 'Master Playback Volume' value.0 22 value.1 29 } control.3 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Center Playback Switch' value false } control.4 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 31' iface MIXER name 'Center Playback Volume' value 31 } control.5 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'LFE Playback Switch' value false } control.6 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 31' iface MIXER name 'LFE Playback Volume' value 0 } control.7 { comment.access 'read write' comment.type BOOLEAN comment.count 2 iface MIXER name 'Surround Playback Switch' value.0 false value.1 false } control.8 { comment.access 'read write' comment.type INTEGER comment.count 2 comment.range '0 - 31' iface MIXER name 'Surround Playback Volume' value.0 0 value.1 0 } control.9 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Master Mono Playback Switch' value false } control.10 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 31' iface MIXER name 'Master Mono Playback Volume' value 31 } control.11 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'PC Speaker Playback Switch' value false } control.12 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 15' iface MIXER name 'PC Speaker Playback Volume' value 0 } control.13 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Phone Playback Switch' value true } control.14 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 31' iface MIXER name 'Phone Playback Volume' value 0 } control.15 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Mic Playback Switch' value false } control.16 { comment.access 'read write' comment.type INTEGER comment.count 1 comment.range '0 - 31' iface MIXER name 'Mic Playback Volume' value 0 } control.17 { comment.access 'read write' comment.type BOOLEAN comment.count 1 iface MIXER name 'Mic Boost
RE: [mythtv-users] RE: Configuring SPDIF digital out.
I might suggest that all alsa utilities, alsactl, and everything else is NOT required to use digital out with MythTV. I'm using MythTV 0.18.1 on Gentoo and I only have the necessary alsa drivers compiled in the kernel. I've never used alsamixer or alsactl, or installed/emerged alsa-utils, alsamixer, aplay, or anything else alsa related. I'm not starting any alsa services during startup. The only thing I did is: Enable alsa support and driver in the kernel. Put .asoundrc in my home directory. Set MythTV as follows: -Enable AC3 -Device = ALSA:digital -Mixer = digital and that's it. I also have all the other mythplugins working by setting their device to ALSA:digital. Is my setup unique, or are people doing more than need to to get digital audio working? winmail.dat___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
RE: [mythtv-users] RE: Configuring SPDIF digital out.
I might suggest that all alsa utilities, alsactl, and everything else is NOT required to use digital out with MythTV. I'm using MythTV 0.18.1 on Gentoo and I only have the necessary alsa drivers compiled in the kernel. I've never used alsamixer or alsactl, or installed/emerged alsa-utils, alsamixer, aplay, or anything else alsa related. I'm not starting any alsa services during startup. The only thing I did is: Enable alsa support and driver in the kernel. Put .asoundrc in my home directory. Set MythTV as follows: -Enable AC3 -Device = ALSA:digital -Mixer = digital and that's it. I also have all the other mythplugins working by setting their device to ALSA:digital. Is my setup unique, or are people doing more than need to to get digital audio working? The simpler the better. I don't care how little is installed as long as I can get digital output, so far no go, everything looks as if it should be working, just no sound :( I'd love to know how to test spdiff out as simply as possible, if I can bypass aplay then so much the better! Can I stream a 48KHz file straight to spdiff out? Marius ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
On 17/12/05, Marius Schrecker [EMAIL PROTECTED] wrote: I might suggest that all alsa utilities, alsactl, and everything else is NOT required to use digital out with MythTV. I'm using MythTV 0.18.1 on Gentoo and I only have the necessary alsa drivers compiled in the kernel. I've never used alsamixer or alsactl, or installed/emerged alsa-utils, alsamixer, aplay, or anything else alsa related. I'm not starting any alsa services during startup. The only thing I did is: Enable alsa support and driver in the kernel. Put .asoundrc in my home directory. Set MythTV as follows: -Enable AC3 -Device = ALSA:digital -Mixer = digital and that's it. I also have all the other mythplugins working by setting their device to ALSA:digital. Is my setup unique, or are people doing more than need to to get digital audio working? The simpler the better. I don't care how little is installed as long as I can get digital output, so far no go, everything looks as if it should be working, just no sound :( I'd love to know how to test spdiff out as simply as possible, if I can bypass aplay then so much the better! Can I stream a 48KHz file straight to spdiff out? You can use aplay -D pcmdevice and then send it out of your spdif whilst testing. You can get a list of all PCM devices by running aplay -L - choose one that your SPDIF is aliased to (commonly spdif) and see if you get any sound. The digital sound HOWTO really does explain everything you should need to do to get SPDIF output - the one hurdle is commonly determining which controls in the mixer need to be set to allow this. In my most basic asoundrc file (which sounds everything by default to my SPDIF) I have used: pcm.!default { type hw card 0 device 1 } The card/device to specify can be determined using `aplay -l` - for my system my SPDIF was given as device 1 - yours may be different. Note that this device expects 48kHz audio - if it's not the same format it may play back too slow/fast or not at all. The excellent asoundrc in the HOWTO uses the plug and dmix plugins to allow on-the-fly rate conversion. Nick ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
On 18/12/05, Johan Kihlström [EMAIL PROTECTED] wrote: I have a similar setup as above and just did aplay somesoundfile.wav and it went out the right way(through spdif into SurroundrReciever) A lot of hours compiling an googling felt very worthwhile at that point. Now if only I could get Xine to output to spdif instead of crashing... Johan, When I got xine working with my SPDIF output, the only lines I needed to check (in ~/.xine/config) were: # device used for stereo output audio.device.alsa_front_device:default # pass through to SPDIF audio.output.speaker_arrangement:Pass Through My default PCM device is my SPDIF output (configured using Mike Dean excellent Digital Sound HOWTO), after specifying the speaker option, everything worked immediately, and my blue Dolby Digital light lit up as soon as I played a DVD. The other SPDIF related entries were OK left at their defaults: #audio.device.alsa_passthrough_device:iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2 #audio.device.alsa_surround51_device:plug:surround51:0 Do you get any errors when xine crashes? Nick ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
On Saturday 17 December 2005 04:59 pm, James C. Dastrup wrote: I might suggest that all alsa utilities, alsactl, and everything else is NOT required to use digital out with MythTV. I'm using MythTV 0.18.1 on Gentoo and I only have the necessary alsa drivers compiled in the kernel. I've never used alsamixer or alsactl, or installed/emerged alsa-utils, alsamixer, aplay, or anything else alsa related. I'm not starting any alsa services during startup. The only thing I did is: Enable alsa support and driver in the kernel. Put .asoundrc in my home directory. Set MythTV as follows: -Enable AC3 -Device = ALSA:digital -Mixer = digital and that's it. I also have all the other mythplugins working by setting their device to ALSA:digital. Is my setup unique, or are people doing more than need to to get digital audio working? Does setting the mixer to digital allow volume control from mythtv of the digital out? I'd like to be able to do that. Also I'd like to be able have both analog and digital have the same output, is that possible? Thanks! Paul pgpIfOad3A200.pgp Description: PGP signature ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
I finally got it working. Here is what I did to enable spdif output to my amp when I switched from a SB Live! 5.1 analog surround card to the on-board audio on my Asus motherboard. The obvious first step was to remove the SB Live! Card from the PC. During the Power On Self Test (POST), I entered the BIOS settings and enabled the on-board audio. Saved the settings ant continued with the boot up. KDE informed me that the default audio device was missing. I went to the Start menu -- System Settings -- Soundcard Detection. KDE found my Soundcard and played a test tune. The analog sound was coming out of my TV Speakers and nothing was coming out of my Receiver. I opened up a terminal and typed alsamixer. I was given an error message : alsamixer: function snd_ctl_open failed for default: no such file or directory. Googling for that error led me to believe that my modprob.conf file was to blame so. . . # (any text editor) /etc/modprob.conf -Before-- alias eth0 sk98lin options snd-emu10k1 index=0 remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 options snd-intel8x0 index=1 remove snd-intel8x0 { /usr/sbin/alsactl store 1 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 The intel8x0 is my on-board audio device, and the emu10k1 was my old card. I commented out the lines referencing my old sound card and made a few number changes in the file. This is my file after editing it. ---After alias eth0 sk98lin #options snd-emu10k1 index=0 #remove snd-emu10k1 { /usr/sbin/alsactl store 0 /dev/null 2 1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1 alias char-major-81 cx8800 alias usb-controller ehci-hcd alias usb-controller1 uhci-hcd alias ieee1394-controller ohci1394 # nvidia kernel module alias char-major-195 nvidia-1_0-7174 alias nvidia nvidia-1_0-7174 #changed index=1 to index=0 and ... store 1 to store 0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 options snd-intel8x0 index=0 remove snd-intel8x0 { /usr/sbin/alsactl store 0 /dev/null 21 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0 I rebooted and still no dice. Same error message from alsamixer. I tried creating a .asoundrc file like like the example on the ALSA website. $ vi /home/mythtv/.asoundrc pcm.intel8x0 { type hw card 0 } ctl.intel8x0 { type hw card 0 } Still no digital sound. I attempt to run alsamixer and receive this error message: alsamixer: relocation error: alsamixer: symbol snd_mixer_selem_get_playback_dB, version ALSA_0.9 not defined in file libasound.so.2 with link time reference After a few Googles, I find out what needs to be done. It is time to update drivers and such. But first a little house cleaning. # mv /usr/lib/libasound.so.2 moved.libasound.so.2 # mv /usr/lib/libasound.so.2.0.0 moved.libasound/so/2/0/0 --- I later went back and deleted them but you cant be too careful --- # yum install alsa-utils # yum install alsa-lib # yum install alsa-driver I tried alsamixer again and it worked. In alsamixer I un-muted IEC958, turned ICE958 Playback all the way down, set ICE958 Playback source to [AC-Link], un-muted External Amplifier, turned PCM and Master up to 90%. ESC to exit. --- I dont know if all of this was necessary, but it worked for me. --- I started up mythfrontend, and navigated to Utilities/Setup - Setup - General. On the 3rd page I selected Enable AC3 to SPDIF passthrough and Audio output device was already on /dev/dsp. Finish going through the menus in order to make the settings take effect. After I verified that it worked, I spent a few minutes patting myself on the back, and then decided to save my settings. # /usr/sbin/alsactl store -- Thats it. I hope someone can find this information useful. -Mat Thanks! I may well find the last bit very useful! I have the libasound2 libs installed and have been banging my head tyrying to det spdiff out working (and it was working fine on the same box in a previous incarnation). Will try doing what you suggested with the libasound libraries. Cheers Marius ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
I tried alsamixer again and it worked. In alsamixer I un-muted IEC958, turned ICE958 Playback all the way down, set ICE958 Playback source to [AC-Link], un-muted External Amplifier, turned PCM and Master up to 90%. ESC to exit. I have the same intel8x0 on-board sound as you. I wanted to try what you've done but don't know how to set the IEC958 source in alsamixer - how do you do that? The only thing I can work out how to do in alsamixer is mute/unmute and adjust volume levels. You don't have any screenshots of your alsamixer settings do youm, which you could share? It's easier to underdtand your config that way. Thanks, Phill ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
Thanks! I may well find the last bit very useful! I have the libasound2 libs installed and have been banging my head tyrying to det spdiff out working (and it was working fine on the same box in a previous incarnation). Will try doing what you suggested with the libasound libraries. Interested to see how you get on as I also have libasound2 not libasound. Regards, Phill ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
I tried alsamixer again and it worked. In alsamixer I un-muted IEC958, turned ICE958 Playback all the way down, set ICE958 Playback source to [AC-Link], un-muted External Amplifier, turned PCM and Master up to 90%. ESC to exit. --- I don't know if all of this was necessary, but it worked for me. --- I started up mythfrontend, and navigated to Utilities/Setup - Setup - General. On the 3rd page I selected Enable AC3 to SPDIF passthrough and Audio output device was already on /dev/dsp. Finish going through the menu's in order to make the settings take effect. After I verified that it worked, I spent a few minutes patting myself on the back, and then decided to save my settings. My setup has the 'Audio output device' set to ALS:mixed-digital, Does anyone know what I need to do to be able to control the volume with my Myth remote rather than the receiver's remote? ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] RE: Configuring SPDIF digital out.
I tried alsamixer again and it worked. In alsamixer I un-muted IEC958, turned ICE958 Playback all the way down, set ICE958 Playback source to [AC-Link], un-muted External Amplifier, turned PCM and Master up to 90%. ESC to exit. I have the same intel8x0 on-board sound as you. I wanted to try what you've done but don't know how to set the IEC958 source in alsamixer - how do you do that? The only thing I can work out how to do in alsamixer is mute/unmute and adjust volume levels. You don't have any screenshots of your alsamixer settings do youm, which you could share? It's easier to underdtand your config that way. Thanks, Phill If you're talking about the alsamixer you run from the console then TAB will switch from ouput (mute/vol levels) to input (most of the stuff we want) to all. Otherwise alsamixergui gnome-miser and kde mixer all seem to have the same stuff, but it's confusing as the labelling and way the switches are organized changes. Marius ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users