Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb-audio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Thu Jul 15, 2004 12:01 pm    Post subject: usb-audio Reply with quote

I followed the ALSA guide at gentoo.org and even followed the guide to usb-audio at alsa-project.org, but I only hear some static coming from my Harman/Kardon speakers. I did notice the static loudness and softness when I adjust the volume. I don't know what to do, I've already emerged alsa-driver a couple of times!
I guess the problem is that the kernel doens't pass the audio to the rate card? Because I can adjust the volume of my speakers via Gnome Volume Control.
cat /proc/asound/cards gives me:
0 [SoundSticks ]: USB-Audio - SoundSticks
harman/kardon SoundSticks at usb-0001:01:18.0-1, full speed

And also in during start up I hear the speakers go on and off a couple of times, but they're always on when I'm in Gnome. In the start up messages the Soundsticks are also mentioned.

So what is the f-ing problem?? I've been trying to get this working for a week now ...
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Thu Jul 15, 2004 2:18 pm    Post subject: Reply with quote

I wonder what your hardware is i.e powermac, powerbook etc ...?
Also the Harman/Kardon speakers. How are the connected to your computer, via usb ? I often get confused with the
Code:
snd-usb-audio.ko
and
Code:
audio.ko
kernel modules (kernel 2.6 series). I think "audio.ko" may be the one for usb speakers.
Also maybe audio.ko is getting loaded before snd-usb-audio.ko or vice versa and I think in that case things won't work.
Which kernel series (2.4 or 2.6) are you using also.

Perhaps post output of "lsmod" and "/etc/modules.d/alsa".

Anyway just some ideas.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sun Jul 18, 2004 10:08 am    Post subject: Reply with quote

Sorry for replying so late, I was out of town for a couple of days.

My hardware is a G4 tower. The Harman/Kardon speakers are connected via USB, as there is no other way to connect them ...
I have snd-usb-audio.ko in /lib/modules/2.6.7/kernel/sound
Kernel 2.6.7 as you can see.

lsmod:
Module Size Used by
ipv6 285560 6
hfs 54604 0
snd_seq_oss 43508 0
snd_seq_midi_event 8928 1 snd_seq_oss
snd_seq 66044 4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 69800 0
snd_mixer_oss 24000 2 snd_pcm_oss
snd_usb_audio 87140 1
snd_rawmidi 30116 1 snd_usb_audio
snd_seq_device 10212 3 snd_seq_oss,snd_seq,snd_rawmidi
snd_pcm 121236 2 snd_pcm_oss,snd_usb_audio
snd_page_alloc 13608 1 snd_pcm
snd_timer 29728 2 snd_seq,snd_pcm
snd 68708 10 snd_seq_oss,snd_seq_midi_event,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_usb_audio,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer
soundcore 12068 2 snd
airport 7808 0
orinoco 53676 1 airport
hermes 15136 2 airport,orinoco


/etc/modules/alsa.d:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-usb-audio
# OSS/Free portion
alias char-major-14 soundcore
alias snd-slot-0 snd-card-0

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

#alias /dev/mixer snd-mixer-oss
#alias /dev/dsp snd-pcm-oss
#alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Wed Jul 21, 2004 10:21 am    Post subject: Reply with quote

any help?
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed Jul 21, 2004 4:17 pm    Post subject: Reply with quote

2 suggestions:

(1) Check your mixer setting via alsamixer or amixer or kmix. Perhaps speakers have been muted.

(2)
Quote:
My hardware is a G4 tower.

Does the G4 tower has an on board sound card? If so try to enable that by putting the correct module to load in
Code:
/etc/modules.d/alsa
.
i.e change
Code:
alias snd-card-0 snd-usb-audio
accordingly. I'm guessing but valid modules to try are either "dmasound_pmac" or "snd-powermac".

Then make sure you have also the module "audio.ko"; you will probably have to recompile your kernel if it does not already exist I think under
Code:
/lib/modules/2.6.7/kernel/drivers/usb/class/audio.ko


Stop and start alsa:
Code:
/etc/init.d/alsasound stop
/etc/init.d/alsasound start



Plug and unplug speakers. Check in
Code:
/var/log/messages
for results.

These are my quick suggestions. Perhaps be more specific which G4 tower model you have. I'm curious also to know if your usb speakers have a built-in soundcard as welll as being speakers or are they just usb speakers? If they are just usb speakers then my guess is that the module "audio.ko" must get loaded somehow.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sat Jul 24, 2004 7:32 pm    Post subject: Reply with quote

Unplugging and plugging back in resulted in my keyboard seizing to function! This is what is in /var/log/messages:
Code:

Jul 24 20:11:01 athena usb 1-1: USB disconnect, address 2
Jul 24 20:11:02 athena hub 1-0:1.0: connect-debounce failed, port 1 disabled
Jul 24 20:11:03 athena usb 1-1: new full speed USB device using address 3
Jul 24 20:11:08 athena usb 1-1: control timeout on ep0out


I logged out and got this: (athena being my computer, joris being me, of course ...)
Code:

Jul 24 20:11:45 athena gdm(pam_unix)[5474]: session closed for user joris
Jul 24 20:11:45 athena drivers/usb/input/hid-core.c: ctrl urb status -32 received
Jul 24 20:11:45 athena input: USB HID v1.00 Device [harman/kardon SoundSticks] on usb-0001:01:18.0-1
Jul 24 20:11:47 athena drivers/usb/input/hid-input.c: event field not found
Jul 24 20:12:01 athena gdm(pam_unix)[5474]: session opened for user joris by (uid=0)


I tried to stop alsasound:
Code:

Shutting down sound driver: ERROR: Module snd_mixer_oss is in use
ERROR: Module snd_usb_audio is in use
ERROR: Module snd_rawmidi is in use by snd_usb_audio
ERROR: Module snd_seq_device is in use by snd_rawmidi
ERROR: Module snd_pcm is in use by snd_usb_audio
ERROR: Module snd_timer is in use by snd_pcm
ERROR: Module snd is in use by snd_mixer_oss,snd_usb_audio,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer
done


Alsamixer showed me that all channels except Bass Boost and Auto Gain Control where not muted (Bass, Treble and PCM).
The module audio.ko is compiled and in that location.
I'm trying to use dmasound_pmac and snd-powermac, but I don't really know how to use them.[/code]


Last edited by Brennos on Sat Jul 24, 2004 7:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sat Jul 24, 2004 7:42 pm    Post subject: Reply with quote

I got dmasound_pmac working (snd-powermac was not found), when using the terminal I got this really annoying alert sound, but when I inserted a cd no sound came out.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Jul 24, 2004 10:01 pm    Post subject: Reply with quote

Quote:
I got dmasound_pmac working (snd-powermac was not found), when using the terminal I got this really annoying alert sound, but when I inserted a cd no sound came
out.


How do you know that dmasound_pmac is working? Did you see some indication
in /var/log/messages?
What cd-application do you use to play cd and which window manager (eg, kde, gnome??) do you use ?


Really my suggestion, use it at your own risk, is to re-compile your kernel and remove the "snd-usb-audio" related modules. Then reboot with your usb speakers plugged in and I think it should then load the "audio.ko" module.
Hopefully alsa should also be started and the module "dmasound_pmac" should also be loaded. Check things with lsmod after reboot.

My guess is that the module "audio.ko" is needed by your speakers and that the on-board sound in your G4 tower, i,e dmasound_pmac, handles the actual sound. Of course I could be wrong.
I have no idea why your keyboard froze. I don't think it should.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sun Jul 25, 2004 8:40 am    Post subject: Reply with quote

I got sound from my built-in soundcard after I modprobed dmasound_pmac, so I guess it was working. I also saw some activitty in /var/log/messages, but I modprobed audio.ko before that which gave me something about a new address.
I'll try your suggestion next week, I'm out off town for a couple of days.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Wed Jul 28, 2004 9:19 am    Post subject: Reply with quote

Which option should I activate in the kernel configuration?
There are so much stuff that handles about sound, I selected everything. But just for USB audio which ones should I select?
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Wed Jul 28, 2004 4:34 pm    Post subject: Reply with quote

Yes I suppose select everything from the begining but to get rid of the "snd_usb_audio" module then don't activate in the kernel configuration:
Code:
< > USB Audio/MIDI driver

i.e
Code:

Device Drivers  --->
     Sound  --->
            <M> Sound card support                                               
            <M> PowerMac DMA sound support
            Advanced Linux Sound Architecture  --->
                 <M> Advanced Linux Sound Architecture
                 .
                 .
                 .
                ALSA USB devices  --->   
                     < > USB Audio/MIDI driver                                 
 


To get the "audio.ko" in the kernel config do as follows:

Code:
Device Drivers  --->
       USB support  --->
              < >   USB Audio support


The description (Help) part for the
Code:
< >   USB Audio support

states
Code:
CONFIG_USB_AUDIO:                                                                                                                                                                     
Say Y here if you want to connect USB audio equipment such as speakers to your computer's USB port.                                                           

To compile this driver as a module, choose M here: the                                         
module will be called audio.

After the above follow the alsa guide closely to see if sound works. Good luck!
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Thu Jul 29, 2004 9:50 am    Post subject: Reply with quote

Everything got quite messed up on my system, so I decided to reinstall Gentoo, that's giving me again a lot off problems ... but I'll get out of it!
What is the problem when modprobe searches the modules in the wrong directory? I've got a 2.6.7 kernel "running" but when I try to modprobe airport he gives me an error: /lib/modules/2.6.5-G4 or something is missing. I guess that kernel version would be the one used on the LiveCD. I don't know if it's gonna be a problem in the future because couldn't get the kernel up and running yet.
Thanks for the advice btw.
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sat Jul 31, 2004 8:41 am    Post subject: Reply with quote

Hi,
I'm back in Linux! What should I enter as soundcard? Because that stands in the ALSA guide

I followed the ALSA guide at gentoo.org very precisely. But when I tried to start alsasound:
athena drivers # /etc/init.d/alsasound start
* Loading ALSA drivers...
* Using ALSA OSS emulation
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly?
* Running card-dependent scripts
* ERROR: Failed to load necessary drivers
* Restoring Mixer Levels
* No mixer config in /etc/asound.state, you have to unmute your card!

Some help on what went wrong?
I also can't start amixer or alsamixer:
athena drivers # amixer
amixer: Mixer attach default error: No such file or directory
athena drivers # alsamixer

alsamixer: function snd_ctl_open failed for default: No such file or directory
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sat Jul 31, 2004 9:00 am    Post subject: Reply with quote

Is this like a good guide?
http://www.alsa-project.org/alsa-doc/doc-php/template.php?module=usb-audio
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sat Jul 31, 2004 9:28 am    Post subject: Reply with quote

Yeah BABY! IT WORKS!!!
I don't know what I did, amixer and alsamixer don't work but I've got sound from my beautiful Harman/Kardon Speakers!
Thanks to everybody who helped me!
Back to top
View user's profile Send private message
Brennos
n00b
n00b


Joined: 25 Jun 2004
Posts: 43
Location: Belgium

PostPosted: Sun Aug 01, 2004 10:53 am    Post subject: Reply with quote

I was to early with cheering, OSS is working, ALSA not. So I've still got the same problem!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
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