[Alsa-user] Sound on Asus M3N78-VM - Not sure where to go next
Hi guys, Thanks in advance as I've googled for 3 weeks now. I'm trying to get the Optical SPDIF to work on my ASus M3N78-VM board on FC8. Here is the output of alsa-info from 1.0.18rc3 which doesn't work as far as I can tell: http://www.alsa-project.org/db/?f=26be91e2d46f3ac1b3b7961d58a23eb47215b1dd So I downloaded yesterdays daily snapshot and followed this quide: http://alsa.opensrc.org/index.php/Quick_Install All the makes for driver, lib, utils, and oss seem to succeed, but loading the modules fails: [EMAIL PROTECTED] alsa-oss]# modprobe snd_hda_intel seems to just go forever lsmod/rmmod always error out about being in use. -- Last I downloaded todays snapshot: wget http://ftp.kernel.org/pub/linux/kernel/people/tiwai/alsa/alsa-driver/alsa-dr iver-snapshot.tar.gz But the make fails as shown below: [EMAIL PROTECTED] alsa-driver]# uname -a Linux localhost.localdomain 2.6.26.5-28.fc8 #1 SMP Sat Sep 20 09:32:58 EDT 2008 i686 athlon i386 GNU/Linux [EMAIL PROTECTED] alsa-driver]# [EMAIL PROTECTED] alsa-driver]# lspci 00:00.0 RAM memory: nVidia Corporation Unknown device 0754 (rev a2) 00:01.0 ISA bridge: nVidia Corporation Unknown device 075c (rev a2) 00:01.1 SMBus: nVidia Corporation Unknown device 0752 (rev a1) 00:01.2 RAM memory: nVidia Corporation Unknown device 0751 (rev a1) 00:01.3 Co-processor: nVidia Corporation Unknown device 0753 (rev a2) 00:01.4 RAM memory: nVidia Corporation Unknown device 0568 (rev a1) 00:02.0 USB Controller: nVidia Corporation Unknown device 077b (rev a1) 00:02.1 USB Controller: nVidia Corporation Unknown device 077c (rev a1) 00:04.0 USB Controller: nVidia Corporation Unknown device 077d (rev a1) 00:04.1 USB Controller: nVidia Corporation Unknown device 077e (rev a1) 00:06.0 IDE interface: nVidia Corporation Unknown device 0759 (rev a1) 00:07.0 Audio device: nVidia Corporation Unknown device 0774 (rev a1) 00:08.0 PCI bridge: nVidia Corporation Unknown device 075a (rev a1) 00:09.0 IDE interface: nVidia Corporation Unknown device 0ad0 (rev a2) 00:0a.0 Ethernet controller: nVidia Corporation Unknown device 0760 (rev a2) 00:0b.0 PCI bridge: nVidia Corporation Unknown device 0569 (rev a1) 00:10.0 PCI bridge: nVidia Corporation Unknown device 0778 (rev a1) 00:12.0 PCI bridge: nVidia Corporation Unknown device 075b (rev a1) 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control 01:07.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05) 01:07.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05) 01:07.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05) 02:00.0 VGA compatible controller: nVidia Corporation Unknown device 0849 (rev a2) [EMAIL PROTECTED] alsa-driver]# [EMAIL PROTECTED] alsa-driver]# [EMAIL PROTECTED] alsa-driver]# [EMAIL PROTECTED] alsa-driver]# lsmod Module Size Used by sunrpc154785 3 cpufreq_ondemand 10445 1 powernow_k819269 1 loop 16973 0 ipv6 238405 30 s5h140911973 1 cx88_dvb 19269 11 cx88_vp3054_i2c 6465 1 cx88_dvb videobuf_dvb8517 1 cx88_dvb dvb_core 68673 2 cx88_dvb,videobuf_dvb snd_hda_intel 401581 2 cx88_alsa 14025 1 snd_seq_oss32698 1 snd_seq_midi_event 9856 1 snd_seq_oss snd_seq51184 2 snd_seq_oss,snd_seq_midi_event xc5000 13381 2 snd_seq_device 10508 2 snd_seq_oss,snd_seq tuner 26249 0 snd_mixer_oss 17536 1 snd_pcm70404 2 snd_hda_intel,cx88_alsa cx8800 30673 0 cx8802 17221 1 cx88_dvb cx88xx 64105 4 cx88_dvb,cx88_alsa,cx8800,cx8802 nvidia 6736164 36 snd_timer 22280 2 snd_seq,snd_pcm videodev 31425 3 tuner,cx8800,cx88xx compat_ioctl32 5313 1 cx8800 snd_page_alloc 11528 2 snd_hda_intel,snd_pcm v4l2_common12993 2 tuner,cx8800 snd_hwdep 10884 1 snd_hda_intel v4l1_compat16325 1 videodev lirc_mceusb2 14980 1 lirc_dev 14388 1 lirc_mceusb2 ir_common 38853 1 cx88xx i2c_algo_bit9157 2 cx88_vp3054_i2c,cx88xx tveeprom 14917 1 cx88xx wmi 9961 0 snd54468 10 snd_hda_intel,cx88_alsa,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_devic e,snd_mixer_oss,snd_pcm,snd_timer,snd_hwdep videobuf_dma_sg14149 5
Re: [Alsa-user] ALSA timer interface and accuracy
Julien Claassen wrote: Does the ALSA timter interface take its timing info from the soundcard (sample clock) or from the system's timer (RTC)? ALSA's timer interface can use 1) the system timer (which is not the RTC timer), 2) the RTC timer (if it is available), 3) a sound card timer, if the sound card has a programmable timer (very few actually have one), 4) a PCM slave timer, which generates timer ticks at period boundaries (PCM slave timers are available for every hardware sound device, but only while running, i.e., while sound is actually being played/recorded). If it is the system: Is there a way to get a clock source from the soundcard using the ALSA API? The device name of the timer device hw has several parameters: 1) hw:CLASS=1,DEV=0 2) hw:CLASS=1,DEV=1 3) hw:CLASS=2,CARD=xxx,DEV=yyy 4) hw:CLASS=3,CARD=xxx,DEV=yyy,SUBDEV=zzz HTH Clemens - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] ALSA timer interface and accuracy
Thanks Clemens! If I'd like to use the PCM slave timer, how do I access that? Or were the instructions you gave me at the end of your mail already for that prupose? Kindest regards Julien Music was my first love and it will be my last (John Miles) FIND MY WEB-PROJECT AT: http://ltsb.sourceforge.net the Linux TextBased Studio guide === AND MY PERSONAL PAGES AT: === http://www.juliencoder.de - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] How to use the multiple outputs on intel-hda ALC888 / MSI Wind PC (desktop)
Hello everyone, I have an MSI Wind PC (the new desktop, not the nettop). There is an Realtek ALC888 soundchip in it which has three output jacks in the back and one in the front: 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) alsamixer recognizes these controls: Master, Headphone (which, correctly, turn the front-out on and off), Front, (...), Center, LFE, Side, (..). Now, from my previous Soundblaster Live!24 PCI cards I was used to having three outputs per card (hw:0,0, hw:0,1 and hw:0,2). The ALC888, eventhough it has multiple output jacks in the back, only has hw:0,0 . mplayer for example yields an error when trying to play out on hw:0,1 . There seems to be only one player device, which would explain why I can only use one ;) : [EMAIL PROTECTED]:~# ls /proc/asound/card0/ codec#0 id oss_mixer pcm0c pcm0p pcm4c I have tried the magic of The Google and Them Wiki's - bit to no avail. Is there a way of making the other outputs work so that I can play two or even better three different songs on different outputs? Thanks in advance for pointing me in the right direction, Christian. PS. From also looking at an ALC886 on another mainboard this multiple outs, but only hw:0,0 seems to be an intel-hda thingy?! - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] How to use the multiple outputs on intel-hda ALC888 - asoundrc magic
On Thursday 23 October 2008 02:21:06 Christian Thorge Schmidt wrote: Is there a way of making the other outputs work so that I can play two or even better three different songs on different outputs? Hmm I'm sure its somewhere on the ML. Heres (part of) my setup. I make my .asoundrc include files from a config directory. Much easier to try one thing or the other by including different snippets of config. .asoundrc # Alsa top level configuration file /home/me/asoundrc.d/hda_dmix_split then in /home/me/asoundrc.d/hda_dmix_split # Define multichannel dmix pcm.dmixs40 { type dmix ipc_key 1040 ipc_key_add_uid false # let multiple users share ipc_perm 0660 # IPC permissions (octal, default 0600) slave.pcm hw:0 slave.channels 4 slave.rate 48000 slave.periods 4 slave.period_size 4096 } pcm.s40_rear { type route slave.pcm surround40 slave.channels 4 ttable.0.2 1 ttable.1.3 1 } pcm.dmixs40_front { type route slave.pcm dmixs40 slave.channels 4 ttable.0.0 1 ttable.1.1 1 } pcm.dmixs40_rear { type route slave.pcm dmixs40 slave.channels 4 ttable.0.2 1 ttable.1.3 1 } pcm.dmixs51 { type dmix ipc_key 1051 ipc_key_add_uid false # let multiple users share ipc_perm 0660 # IPC permissions (octal, default 0600) slave.pcm hw:0 slave.channels 6 slave.rate 48000 slave.periods 4 slave.period_size 4096 } pcm.dmixs51_front { type route slave.pcm dmixs51 slave.channels 6 ttable.0.0 1 ttable.1.1 1 } pcm.dmixs51_rear { type route slave.pcm dmixs51 slave.channels 6 ttable.0.2 1 ttable.1.3 1 } pcm.dmixs51_clfe { type route slave.pcm dmixs51 slave.channels 6 ttable.0.4 1 ttable.1.5 1 } pcm.dmixs71 { type dmix ipc_key 1071 ipc_key_add_uid false # let multiple users share ipc_perm 0660 # IPC permissions (octal, default 0600) slave.pcm hw:0 slave.channels 8 slave.rate 48000 slave.periods 4 slave.period_size 4096 } # Green jack : front pcm.dmixs71_green { type route slave.pcm dmixs71 slave.channels 8 ttable.0.0 1 ttable.1.1 1 } # Orange jack : centre+lfe (indep mode) pcm.dmixs71_orange { type route slave.pcm dmixs71 slave.channels 8 ttable.0.2 1 ttable.1.3 1 } # Black jack : (indep, dup-front off) pcm.dmixs71_black { type route slave.pcm dmixs71 slave.channels 8 ttable.0.4 1 ttable.1.5 1 } # Grey jack (doesn't work?) pcm.dmixs71_grey { type route slave.pcm dmixs71 slave.channels 8 ttable.0.6 1 ttable.1.7 1 } -- Eliot Blennerhassett www.audioscience.com - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] ALSA Programming Query
alsa-user@lists.sourceforge.netDear All, I have some doubts on the ALSA programming, 1)My ALSA driver supports minimum Period Bytes size as 32 bytes, but when i set the period size as 512 bytes it is always setting to 1024 bytes.I am using the function snd_pcm_hw_params_set_period_size_near() . What might be wrong here?Is the function what i am using correct? 2)How the Library functions and the Driver functions interact, what is the interface between the library functions and driver functions?Is there any document which explains this. I got a document which explains how to write ALSA driver.But it does not mention the interface with the library. 3)How Can we achive MIC and LINEIN switching using the mixer?What library function do i need to use to achive this? 4)If i want to get the Timestamp for each buffer captured, what library function should be used? 5)I am trying to capture and play the same audio (ALSA duplex). When i capture and store it in a file and play from the file i am able to hear the sound properly. If i capture in a buffer and play the same buffer directly it says Broken PIPE ERROR in the playout. I tried the capture and playout in two different threads, i am able to hear the sound and i am not getting any Broken PIPE error. But along with the audio i am hearing some noise. Do we need to use some kind of synchronisation between the threads for capture and playout? Any help on these things is appreciated. Thank you in advance. Regards, santosh - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user