Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Painless sound mixing using ALSA
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
allex87
Apprentice
Apprentice


Joined: 02 Aug 2003
Posts: 154
Location: Ontario, Canada

PostPosted: Thu May 12, 2005 10:37 am    Post subject: Reply with quote

Actually, I experience degraded performance. All it takes for rhythmbox to skip is clicking the back button in Epiphany. I'm going back to using my asound.conf.


Alex.
Back to top
View user's profile Send private message
alinv
Guru
Guru


Joined: 19 Nov 2002
Posts: 395
Location: Bucharest

PostPosted: Thu May 12, 2005 10:49 am    Post subject: Reply with quote

allex87 wrote:
Actually, I experience degraded performance. All it takes for rhythmbox to skip is clicking the back button in Epiphany. I'm going back to using my asound.conf.


I noticed that, too.
I'm using the love-sources kernel in order to have a more responsive system and get rid of skips. Now amarok skips even when it shows the next's song name on osd.
I'm going back to dmix for now.
_________________
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B.
Back to top
View user's profile Send private message
lodder_
Apprentice
Apprentice


Joined: 06 Nov 2004
Posts: 162
Location: Knokke-Heist, Belgium

PostPosted: Thu May 12, 2005 4:50 pm    Post subject: Reply with quote

when i try to use your guide i get this when compiling alsa :

/alsa-kernel/i2c/other/ak4114.c:109: error: (Each undeclared identifier is reported only once
/var/tmp/portage/alsa-driver-1.0.9_rc3/work/alsa-driver-1.0.9rc3/i2c/other/../../alsa-kernel/i2c/other/ak4114.c:109: error: for each function it appears in.)
_________________
delodder.be
Back to top
View user's profile Send private message
michaelg
n00b
n00b


Joined: 11 Jul 2004
Posts: 16

PostPosted: Thu May 12, 2005 5:22 pm    Post subject: Reply with quote

allex87 wrote:
Well, the /dev/dsp is for OSS. Try setting the output driver to ALSA, not OSS. I'll try it right now.



How do I instruct mpg123 to use alsa instead of oss?
Besides that I also tried Firefox running a Flash animation with sound (while xmms was playing in the background) and I couldn't hear anything from Firefox.

Quote:
Using nitro-sources-2.6.12-rc4 which can be found in Unsupported Software


Does that mean that if I'm using 2.6.11-r8 I'm out of luck?
Back to top
View user's profile Send private message
lodder_
Apprentice
Apprentice


Joined: 06 Nov 2004
Posts: 162
Location: Knokke-Heist, Belgium

PostPosted: Thu May 12, 2005 6:12 pm    Post subject: Reply with quote

thx for this nice document. I have updated my kernel now and now everything is working perfect thx man
_________________
delodder.be
Back to top
View user's profile Send private message
xafan
n00b
n00b


Joined: 19 Apr 2005
Posts: 13

PostPosted: Fri May 13, 2005 5:16 am    Post subject: Reply with quote

I keep getting this error

Code:
/etc/init.d/alsasound restart
*Loading ALSA modules...
*Restoring Mixer Levels...
/usr/sbin/alsactl: set_control:1024: bad control.7.value type
Back to top
View user's profile Send private message
robust
n00b
n00b


Joined: 05 Sep 2003
Posts: 53

PostPosted: Fri May 13, 2005 6:05 am    Post subject: Reply with quote

Quote:
How do I instruct mpg123 to use alsa instead of oss?
Besides that I also tried Firefox running a Flash animation with sound (while xmms was playing in the background) and I couldn't hear anything from Firefox.

Using nitro-sources-2.6.12-rc4 which can be found in Unsupported Software

Does that mean that if I'm using 2.6.11-r8 I'm out of luck?


This is a problem with firefox , cause it uses OSS and not ALSA output.
And I have no clue on howto fix mpg123 , but you could try to emerge it with USE="-oss" emerge mpg123.

Good luck!
Back to top
View user's profile Send private message
robust
n00b
n00b


Joined: 05 Sep 2003
Posts: 53

PostPosted: Fri May 13, 2005 6:07 am    Post subject: Reply with quote

xafan , I think I know why you get that "error". Try this:

1 Run alsamixer as root.
2 Adjust the volume to your best desire.
3 Exit alsamixer
4 run "alsactl store"
5 Restart Alsa (/etc/init.d/alsasound restart)
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat May 14, 2005 8:31 am    Post subject: Reply with quote

re alsa-tools alsa-firmaware
yaneurabeya wrote:
True, but it's not required... oh well... I'll add those refs.


You should make clear what is _needed_ for this update rather than confusing the issue. I followed your guide and could not emerge alsa-tools but I dont think I need it , I did not have it before.

Looks like its going to be a couple of days wasted yet again with probably clicky sound at the end of it, so I'll wait for it to mature a bit and go back to non-working dmix and my "audio-challenged" sound card.

Best sort if mixing I get is running my CDs on analogue and other sound apps through alsa.

Thanks for the post , I'll keep an eye open for updates.

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
caslca
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2003
Posts: 85

PostPosted: Sat May 14, 2005 2:58 pm    Post subject: Reply with quote

Not exactly painless over here. I can't get a second stream through - I get ALSA error saying device or resource busy (intel_8x0)
Back to top
View user's profile Send private message
chickengenius
n00b
n00b


Joined: 18 Apr 2005
Posts: 56

PostPosted: Sat May 14, 2005 4:24 pm    Post subject: Reply with quote

bash-2.05b# emerge alsa-driver && emerge --oneshot alsa-tools alsa-lib
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/alsa-driver-1.0.8 to /
>>> md5 files ;-) alsa-driver-1.0.9_rc3.ebuild
>>> md5 files ;-) alsa-driver-1.0.8.ebuild
>>> md5 files ;-) alsa-driver-1.0.3.ebuild
>>> md5 files ;-) ChangeLog
>>> md5 files ;-) metadata.xml
>>> md5 files ;-) files/xbox-1.0.8.patch
>>> md5 files ;-) files/makefile.patch
>>> md5 files ;-) files/digest-alsa-driver-1.0.9_rc3
>>> md5 files ;-) files/digest-alsa-driver-1.0.3
>>> md5 files ;-) files/digest-alsa-driver-1.0.8
>>> md5 files ;-) files/alsa-driver-0.9.8-au-fix.patch
>>> md5 files ;-) files/1.0.8-msi_audigyls.patch
>>> md5 src_uri ;-) alsa-driver-1.0.8.tar.bz2
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.11-gentoo-r7

* getfilevar requires 2 variables, with the second a valid file.
* getfilevar <VARIABLE> <CONFIGFILE>
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so that
* it points to the necessary object directory so that it might find .config.

!!! ERROR: media-sound/alsa-driver-1.0.8 failed.
!!! Function linux-info_pkg_setup, Line 509, Exitcode 1
!!! Unable to calculate Linux Kernel version
!!! If you need support, post the topmost build error, NOT this status message.


Help....
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat May 14, 2005 5:35 pm    Post subject: Reply with quote

cool , emerge outputs smileys now !

I think there is something missing in your kernel setup , poss .config.

try menumake on your kernel and be ready to reset all your options.

I bet you did make mrproper , hope you did the backup of your config as was suggested :?
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
amzuk
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2005
Posts: 79
Location: RF/Krasnodar

PostPosted: Sat May 14, 2005 9:28 pm    Post subject: Reply with quote

Tnx! works great :-)

plays sounds from mpg123, xmms n gaim at the same time

i use:
2.6.11-gentoo-r6
alsa-driver-1.0.9_rc2
ALSA_CARDS="intel8x0"

P4P800SE motherboard

just one problem:
Code:

# dmesg | grep snd

snd_seq_dummy: disagrees about version of symbol snd_seq_create_kernel_client
snd_seq_dummy: Unknown symbol snd_seq_create_kernel_client
snd_rawmidi: disagrees about version of symbol snd_info_register
snd_rawmidi: Unknown symbol snd_info_register
snd_rawmidi: disagrees about version of symbol snd_seq_device_new
snd_rawmidi: Unknown symbol snd_seq_device_new
snd_rawmidi: disagrees about version of symbol snd_info_free_entry
snd_rawmidi: Unknown symbol snd_info_free_entry
snd_rawmidi: disagrees about version of symbol snd_unregister_oss_device
snd_rawmidi: Unknown symbol snd_unregister_oss_device
snd_rawmidi: disagrees about version of symbol snd_register_oss_device
snd_rawmidi: Unknown symbol snd_register_oss_device
snd_rawmidi: disagrees about version of symbol snd_ctl_register_ioctl
snd_rawmidi: Unknown symbol snd_ctl_register_ioctl
snd_rawmidi: disagrees about version of symbol snd_card_file_add
snd_rawmidi: Unknown symbol snd_card_file_add
snd_rawmidi: disagrees about version of symbol snd_unregister_device
snd_rawmidi: Unknown symbol snd_unregister_device
snd_rawmidi: disagrees about version of symbol snd_device_new
snd_rawmidi: Unknown symbol snd_device_new
snd_rawmidi: disagrees about version of symbol snd_ctl_unregister_ioctl
snd_rawmidi: Unknown symbol snd_ctl_unregister_ioctl
snd_rawmidi: disagrees about version of symbol snd_info_create_card_entry
snd_rawmidi: Unknown symbol snd_info_create_card_entry
snd_rawmidi: disagrees about version of symbol snd_device_free
snd_rawmidi: Unknown symbol snd_device_free
snd_rawmidi: disagrees about version of symbol snd_card_file_remove
snd_rawmidi: Unknown symbol snd_card_file_remove
snd_rawmidi: disagrees about version of symbol snd_info_unregister
snd_rawmidi: Unknown symbol snd_info_unregister
snd_rawmidi: disagrees about version of symbol snd_device_register
snd_rawmidi: Unknown symbol snd_device_register
snd_rawmidi: disagrees about version of symbol snd_register_device
snd_rawmidi: Unknown symbol snd_register_device
snd_usb_lib: Unknown symbol snd_rawmidi_receive
snd_usb_lib: Unknown symbol snd_rawmidi_transmit_empty
snd_usb_lib: Unknown symbol snd_rawmidi_transmit
snd_usb_lib: Unknown symbol snd_rawmidi_transmit_ack
snd_usb_lib: Unknown symbol snd_rawmidi_transmit_peek
snd_usb_lib: Unknown symbol snd_rawmidi_new
snd_usb_lib: Unknown symbol snd_rawmidi_set_ops
snd_usb_audio: disagrees about version of symbol snd_ctl_add
snd_usb_audio: Unknown symbol snd_ctl_add
snd_usb_audio: disagrees about version of symbol snd_pcm_new
snd_usb_audio: Unknown symbol snd_pcm_new
snd_usb_audio: disagrees about version of symbol snd_card_register
snd_usb_audio: Unknown symbol snd_card_register
snd_usb_audio: disagrees about version of symbol snd_card_free
snd_usb_audio: Unknown symbol snd_card_free
snd_usb_audio: disagrees about version of symbol snd_card_proc_new
snd_usb_audio: Unknown symbol snd_card_proc_new
snd_usb_audio: Unknown symbol snd_usb_create_midi_interface
snd_usb_audio: disagrees about version of symbol snd_pcm_stop
snd_usb_audio: Unknown symbol snd_pcm_stop
snd_usb_audio: disagrees about version of symbol snd_pcm_hw_constraint_minmax
snd_usb_audio: Unknown symbol snd_pcm_hw_constraint_minmax
snd_usb_audio: disagrees about version of symbol snd_ctl_free_one
snd_usb_audio: Unknown symbol snd_ctl_free_one
snd_usb_audio: disagrees about version of symbol snd_ctl_find_id
snd_usb_audio: Unknown symbol snd_ctl_find_id
snd_usb_audio: disagrees about version of symbol snd_ctl_new1
snd_usb_audio: Unknown symbol snd_ctl_new1
snd_usb_audio: disagrees about version of symbol snd_component_add
snd_usb_audio: Unknown symbol snd_component_add
snd_usb_audio: disagrees about version of symbol snd_pcm_hw_rule_add
snd_usb_audio: Unknown symbol snd_pcm_hw_rule_add
snd_usb_audio: disagrees about version of symbol snd_card_new
snd_usb_audio: Unknown symbol snd_card_new
snd_usb_audio: disagrees about version of symbol snd_pcm_lib_malloc_pages
snd_usb_audio: Unknown symbol snd_pcm_lib_malloc_pages
snd_usb_audio: disagrees about version of symbol snd_pcm_lib_ioctl
snd_usb_audio: Unknown symbol snd_pcm_lib_ioctl
snd_usb_audio: disagrees about version of symbol snd_pcm_lib_free_pages
snd_usb_audio: Unknown symbol snd_pcm_lib_free_pages
snd_usb_audio: disagrees about version of symbol snd_pcm_new_stream
snd_usb_audio: Unknown symbol snd_pcm_new_stream
snd_usb_audio: disagrees about version of symbol snd_pcm_set_ops
snd_usb_audio: Unknown symbol snd_pcm_set_ops
snd_usb_audio: disagrees about version of symbol snd_device_new
snd_usb_audio: Unknown symbol snd_device_new
snd_usb_audio: disagrees about version of symbol snd_card_disconnect
snd_usb_audio: Unknown symbol snd_card_disconnect
snd_usb_audio: disagrees about version of symbol snd_pcm_lib_preallocate_pages
snd_usb_audio: Unknown symbol snd_pcm_lib_preallocate_pages
snd_usb_audio: disagrees about version of symbol snd_card_free_in_thread
snd_usb_audio: Unknown symbol snd_card_free_in_thread
snd_usb_audio: disagrees about version of symbol snd_pcm_lib_preallocate_free_for_all
snd_usb_audio: Unknown symbol snd_pcm_lib_preallocate_free_for_all
snd_usb_audio: disagrees about version of symbol snd_pcm_period_elapsed
snd_usb_audio: Unknown symbol snd_pcm_period_elapsed
snd_usb_audio: Unknown symbol snd_usbmidi_disconnect


maybe somebody knows what's the problem with that?
update kernel?

resolved by getting 2.6.11-gentoo-r8


Last edited by amzuk on Tue May 17, 2005 9:18 am; edited 1 time in total
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Tue May 17, 2005 1:54 am    Post subject: Reply with quote

Gentree: the smilies thing is just a part of the MD5 verification process. Emerge/MD5SUM has been doing that for a long time.

Like I said, I threw this together in a hurry since I was busy and because I wanted people to realize that this existed so they wouldn't have to possibly use dmix anymore. I had such a hard time trying to get dmix to work, and then this solution came along and voila! Easy of course.

Of course, no one solution will solve all problems, but I try to get as many issues solved as possible.

Amzuk: What's you're seeing is most likely some weird sound related modules in the sound section of your kernel and/or USB section that were most likely compiled against the old ALSA headers that you used. Just a hunch though as I am not a kernel expert...

The solution might be just to recompile the modules =\...
Back to top
View user's profile Send private message
amzuk
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2005
Posts: 79
Location: RF/Krasnodar

PostPosted: Tue May 17, 2005 5:33 am    Post subject: Reply with quote

i already had reacomliled kernel n modules. anyways everything works. just annoying. thanks anyways!
_________________
When your problem is resolved, put [SOLVED] in the topic.
Back to top
View user's profile Send private message
Sir-Gentoo
n00b
n00b


Joined: 06 May 2005
Posts: 14

PostPosted: Tue May 17, 2005 8:49 am    Post subject: Reply with quote

So, hey, i installed evrythin, with the 2.6.11 vidalinux drivers, got evrythin working, xmms with alsa and amarok play sounds at the same time, cool, kde's sounds arent workin anymore, ok, nomatter, i dont need em, but theres this one fuckin' prob, i got gaps between the song fade in amarok, that has never been before, and i want it to go, i want gapless playback, so could someone please help me?

thx
Back to top
View user's profile Send private message
amzuk
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2005
Posts: 79
Location: RF/Krasnodar

PostPosted: Tue May 17, 2005 9:17 am    Post subject: Reply with quote

my prob resolved after taking gentoo-r8 sources :-) thanks!
_________________
When your problem is resolved, put [SOLVED] in the topic.
Back to top
View user's profile Send private message
epod69
n00b
n00b


Joined: 22 Apr 2005
Posts: 19

PostPosted: Tue May 17, 2005 6:19 pm    Post subject: NO MASTER CONTROL!!! Reply with quote

Hi all, I have been searching for help everywhere and have been getting help from #gentoo but I have never got my problem solved. The problem is that I dont have a master control at all!! When I type alsamixer I get the following controls: headphone, pcm, line, cd, and mic. And yes, there is no master control in amixer either. I have removed the alsa support from the kernel and followed what was on the first post, and I am using the current alsa-driver: 1.0.9.

I am using a IBM Netvista 6792-22U. The sound card is a: Software-based (done by processor and ICH2), AC '97 interface, ADI 1887 codec. Computer specs HERE. I have the following sound related modules loaded, according to lsmod: snd_pcm_oss, snd_mixer_oss, snd_seq_oss, snd_seq_midi_event, snd_intel8x0, snd_ac97_codec, snd_seq, snd_seq_device, snd_pcm, snd_timer, snd, and snd_page_alloc .

So I am completely clueless on what I should do so any help and suggestions would be great. Thanx all for the help!! =)
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Tue May 17, 2005 10:47 pm    Post subject: Reply with quote

Heh. Ok then epod...

Have you tried using some sort of GUI based volume control program? If you don't already have one, I suggest kamix if you have QT installed or wmix since they require very additional dependencies (and most people are happy about that).

Other than that, I have essentially the same module layout except I have snd_rawmidi compiled and loaded as well, whereas you don't have that.

Did you follow the quick HOWTO to a tee or did you deviate possibly? Also, uname -a output please.
Back to top
View user's profile Send private message
epod69
n00b
n00b


Joined: 22 Apr 2005
Posts: 19

PostPosted: Tue May 17, 2005 11:33 pm    Post subject: Reply with quote

Thanx for the reply yaneurabeya,

I followed the alsa guide tutorial from gentoo.
uname -a output: Linux jesse-gentoo 2.6.11-gentoo-r6 #8 Sun May 15 22:32:46 UTC 2005 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz GenuineIntel GNU/Linux .

I havent installed a gui volume control yet, I do have QT installed. I am using Blackbox, do you know if kamix will be placed in the slit ?
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Tue May 17, 2005 11:55 pm    Post subject: Reply with quote

Uhm, yup if the blackbox tray is a standard one. If you installed the masked version of KDElibs and only have that emerged, then kamix may do weird things but other than that things should work fine.
Back to top
View user's profile Send private message
epod69
n00b
n00b


Joined: 22 Apr 2005
Posts: 19

PostPosted: Wed May 18, 2005 12:47 am    Post subject: Reply with quote

How is kamix going to solve the problem of not having a master control anyways?
Back to top
View user's profile Send private message
epod69
n00b
n00b


Joined: 22 Apr 2005
Posts: 19

PostPosted: Wed May 18, 2005 1:30 am    Post subject: Reply with quote

I went to emerge kamix and its wanting to download blackdown-jdk, how do I stop this. I want to use sun-jdk instead since I am using sun-jde and not blackdown. Any suggestions??
Back to top
View user's profile Send private message
[myrddin]
n00b
n00b


Joined: 14 Jun 2002
Posts: 71
Location: Karlsruhe / Germany

PostPosted: Wed May 18, 2005 11:12 am    Post subject: Reply with quote

Hi,

is there a way to set the sampling rate to 48000?
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Wed May 18, 2005 3:14 pm    Post subject: Reply with quote

epod69 wrote:
I went to emerge kamix and its wanting to download blackdown-jdk, how do I stop this. I want to use sun-jdk instead since I am using sun-jde and not blackdown. Any suggestions??


By emerging kamix I was hoping that you may notice that there was a master volume control or something and work with that.

Another question though... have you run /etc/init.d/alsasound since boot?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
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