LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-26-2013, 11:01 PM   #16
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled

ok lets clear up what your sound modules are pls as per Daedra. so post your contents pls

Code:
lsmod | grep snd
in reply 4 I said I used google so won't berate myself there if the actual module name is snd-bt87 or something else

it looks like it might be called snd_bt87x

Last edited by aus9; 10-26-2013 at 11:36 PM.
 
1 members found this post helpful.
Old 10-27-2013, 03:50 AM   #17
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
since no-one has replied OP must be asleep?

I shall attempt to correct my index syntax for possible tv card for /etc/modprobe.d/sound.conf

Quote:
options snd-usb-audio index=2
options snd_bt87x index=1
2)
Quote:
AND that bttv is set to card 0 and slot 0 so I am presuming that is the native order for ALL sound devices
since we agree your tv card is not your preferred output device, until you have a correctly working index=n config file,
we can not say too much.

but in terms of trouble shooting, I prefer we don't get excited by alias names.
 
1 members found this post helpful.
Old 10-27-2013, 04:34 AM   #18
waddles
Member
 
Registered: Sep 2012
Posts: 373

Original Poster
Rep: Reputation: 0
I am feeling a little miffed at myself now. I saw "modules" and for whatever reason thought (obviously brain dead) that was something related to the hardware description (like a slot or whatever) talk about getting myself lost. Of course I DO know what a module is DAH! LOLFOF. Thanks!

Is /etc/asound.state the alsa configuration file?

Now if I got it right I will insert:
Code:
alias snd-card-0 snd_via82xx   #V8235 audio
alias sound-slot-0 snd_via82xx
options snd_via82xx index=0
alias snd-card-1 snd_bt87x     #Bt878 tv
alias sound-slot-0 snd_bt87x
options snd_bt87x index=1
alias snd-card-2 sn9c102       #camera webcam
alias sound-slot-0 sn9c102
options sn9c102 index=2
into /etc/modprobe.d/sound.conf
reboot
run alsamixer without a card designator
and all be happy.

Last edited by waddles; 10-27-2013 at 06:33 AM.
 
Old 10-27-2013, 07:08 AM   #19
waddles
Member
 
Registered: Sep 2012
Posts: 373

Original Poster
Rep: Reputation: 0
Followed process outlined in last message but when I ran alsamixer without a card designator I still get the camera.
With -c 2 I get invalid card index: 2 & with -c1 get Bt878.
Was there a problem with the sound.conf file entries? I ran dmesg and saw:
[ 4.880085] cannot find the slot for index 0 (range 0-1), error: -16
[ 4.880206] VIA 82xx Audio: probe of 0000:00:11.5 failed with error -16
Was I supposed to runt alsactl init before reboot?
 
Old 10-27-2013, 09:19 AM   #20
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
waddles

pls post the output of the lsmod grep command as requested in reply 15 & 16

Stop using alias bits for trouble shooting---- please please!

2) if alsamixer -c1 shows your tv card then either your index config file failed and the order gave index=0 to maybe another device
or this line="options snd_bt87x index=1" worked as expected.

3) why are your claiming your webcam is module sn9c102?
me thinks its snd-usb-audio

4) The trouble when people refuse to post the lsmod command is then I have to look at my own kernel config and
guess what you mean is snd_via82xx

could be wrong and its late

5)
Quote:
Was I supposed to runt alsactl init before reboot?
No you were supposed to use my config and not leap ahead

now that I think I know your module it looks like its going to be

Quote:
options snd-usb-audio index=2
options snd_bt87x index=1
Yep it has not changed! It may change if I could see your lsmod output.

If you really want to force it, add a line

options snd_via82xx index=0

6)
Quote:
Is /etc/asound.state
No its a system wide mixer level config file for the default sound device.
Alsa will use other mixer level config files as well.

Don't worry about mixer levels until we get your index right.


good nite Sir
 
Old 10-27-2013, 12:04 PM   #21
waddles
Member
 
Registered: Sep 2012
Posts: 373

Original Poster
Rep: Reputation: 0
In response to UR 1) & 4):
Code:
lsmod | grep snd
snd_seq_dummy           1119  0 
snd_seq_oss            25900  0 
snd_seq_midi_event      4696  1 snd_seq_oss
snd_seq                42680  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            34554  0 
snd_mixer_oss          14726  1 snd_pcm_oss
snd_via82xx            17595  0 
gameport                6861  1 snd_via82xx
snd_ac97_codec         90095  1 snd_via82xx
snd_bt87x               8213  0 
snd_usb_audio          71686  0 
ac97_bus                 834  1 snd_ac97_codec
snd_hwdep               4772  1 snd_usb_audio
snd_mpu401_uart         5095  1 snd_via82xx
snd_usbmidi_lib        15681  1 snd_usb_audio
snd_pcm                59843  5 snd_pcm_oss,snd_via82xx,snd_ac97_codec,snd_bt87x,snd_usb_audio
snd_rawmidi            15638  2 snd_mpu401_uart,snd_usbmidi_lib
snd_seq_device          4505  4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd_timer              15717  2 snd_seq,snd_pcm
snd                    43891  15 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_bt87x,snd_usb_audio,snd_hwdep,snd_mpu401_uart,snd_usbmidi_lib,snd_rawmidi,snd_pcm,snd_seq_device,snd_timer
snd_page_alloc          5925  3 snd_via82xx,snd_bt87x,snd_pcm
soundcore               4641  1 snd
In prior message /etc/modprobe.d/sound.conf had:
alias snd-card-0 snd-bt87x
alias sound-slot-0 snd-bt87x
Note bt878 was slot 0 so figured that is where it would be when I made it card 1 in message #18

/proc/asound/Bt878/pcm0c/info now shows Bt878 as card 1/dev 0
/proc/asound/camera/pcm0c/info shows camera as card 0/dev 0
/proc/asound/V8235/pcm0c/info shows no V8235

2) Doesn't -c1 in alsamixer point at card 1? and in both configs of sound.conf Bt878 has been on card 1 so I must be missing something as I don't see the problem.
3) because that is what the instructions for the camera had set out. I did notice that it did not appear in the lsmod|grep snd list. I thought it may have been snd_usb_audio or snd_hwdep.

5) My sound.conf file is now:
Code:
alias snd-card-0 snd_via82xx   #V8235 audio
alias sound-slot-0 snd_via82xx
options snd_via82xx index=0
alias snd-card-1 snd_bt87x     #Bt878 tv
alias sound-slot-0 snd_bt87x
options snd_bt87x index=1
alias snd-card-2 sn9c102       #camera webcam
alias sound-slot-0 sn9c102
options sn9c102 index=2
From what U say it looks like this file should be corrected for the wrong audio module. Sorry for dropping the lsmod list earlier. Will try to correct later as the sun is up and I forgot to sleep last night. Oh, and yes on the revised order.

Last edited by waddles; 10-27-2013 at 12:09 PM.
 
Old 10-27-2013, 12:57 PM   #22
GazL
Senior Member
 
Registered: May 2008
Posts: 3,447

Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Throw that sound.conf away and use this instead:
options snd slots=snd-via82xx,snd-bt87x,snd-usb-audio


All that alias and index= stuff just over-complicates things.
 
Old 10-27-2013, 08:22 PM   #23
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
I wish someone would listen about trouble shooting

I am getting frustrated but I have sound so its your choice to ignore me

##############

stop all configs for alias until we get your index sorted

#################

2) Your lsmod shows that your onboard module is in fact snd_bt87x
but its codec comes from module snd_ac97_codec

3) That does not impact on your index vaules but lets move on
Quote:
In prior message /etc/modprobe.d/sound.conf had:
alias snd-card-0 snd-bt87x
alias sound-slot-0 snd-bt87x
this tells me, you do not understand anything about alias config
that may sound rude but is the MAIN reason why I continue to rant about you
not use alias in config

GRRRRR

that config line is trying to make a bad syntax snd-bt87x get index=0
no no no

notice your module name is snd_bt87x means understem not hypen

and we were trying to NOT make your tv card index=0 and you continue to try to thwart me.

GRRRRR

Please keep the world simple and allow alsa to to auto configure your onboard card to get index=0
by allowing all other devices forced onto other index values

lets try again shall we....and yes I know multiple people are giving you advice
but I am the expert here and I guarantee we will get it correct but obey me
--sorry if that sounds arrogant but sometimes the truth hurts!

################
FRESH START
###############

A) delete all /etc/asound* files if found
B) delete all home folder .asoundrc files if found
C) delete your current crappy sound.conf and start again
do these commands at your home folder as a local user pls

Code:
sudo rm -rf /etc/asound*
rm -rf .asound*
sudo rm -rf /etc/modprobe.d/sound.conf

sudo echo "options snd-usb-audio index=2
options snd_bt87x index=1 
" > /etc/modprobe.d/sound.conf
D) full reboot

run alsamixer as a local user and press F6 report if order is now correct pls

card 0 via*
card 1 bt*
card 2 (may not show if not inserted) we don't care at this stage)

E) Once we have correct index, we can adjust mixer levels and save them

so assuming I am correct

Code:
sudo alsactl store

good luck

BTW I don't wish to annoy you any more than necessary so if you don't like me just say so
I can move on
 
Old 10-27-2013, 10:07 PM   #24
waddles
Member
 
Registered: Sep 2012
Posts: 373

Original Poster
Rep: Reputation: 0
Sorry to have upset.
In UR #23, 2) I agree with U on the module for TV card and that is what I have claimed consistently.
R U introducing a side topic when U brought up snd_ac97_codec?
What is the relevance?

3) I think U may have locked in on my #5 message where I had cut and pasted from the initial sound.conf where it was hyphenated.
Regarding index(ing), I asked in my #5 if index number was to be the same as
card number. I didn't see a response so presumed true after going back and l
ooking.
Trying again is index#=card#?

Under fresh start, A)-C) I will rename in lieu of removing just in case.
Promise to remove if all is well after reboot.

Could U summarize the reason(s) for use of index= and degredation of aliases from sound.conf?
My recall, dimmed by too many Oreos, has me locked to a degree on the aliases from the prior versions of HOW TO if I am correct. I may need to re-read if that is where the info is at.

Off to do D.
LATER...
Boot successful, alsamixer reported as promised, no related fail messages from dmesg, aplay functional.
NOT ANNOYED AT ALL!! You have been very very helpful. Will now alsactl store.
Awaiting UR responses to above so I can close this.

Last edited by waddles; 10-27-2013 at 10:43 PM.
 
Old 10-28-2013, 12:02 AM   #25
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
codec what is the relevance?
Its the software to assist in the playing of sound files

I will try to give you a link later or you could google it yourself but will shown mine as example

Quote:
snd 54848 8 snd_hwdep,snd_timer,snd_hda_codec_idt,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_device
this can be simplified to say we need a hardware kernel module and we need a software module for the codec.
Actually there are a number of hardware modules in that box and 2 codecs.

2) I assume your sound is now good so have you retested your command in your first post?

3) ahhh now index is kind of the same as card numbers but not the same
thats easy ?

Let me explain further, you can force a device to have an index of say 4 or -1 but alsa counts devices from zero
so keep the world simple. so in my configs yes index is always card number

but other people can force away from true count of devices.

b) now plug in your webcam if its on an usb lead and ensure its index or card number is 2

solve it anytime as I sometimes search for my posts and thanks for confidence in my
 
1 members found this post helpful.
Old 10-28-2013, 12:24 AM   #26
waddles
Member
 
Registered: Sep 2012
Posts: 373

Original Poster
Rep: Reputation: 0
Appreciate U sticking with me as U did. I am sure U also have the synapse jumps like myself where the begin and end are well known but the middle has gotten frayed. Its like typing and fumble fingering.

Still marveling at use of indexing so wondering what the hey alias is for?
 
Old 10-28-2013, 05:37 AM   #27
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
Can you now marked this as solved as your other questions are trivial
and I am not here to spoon feed you even if I admit to making mittakesss

https://www.kernel.org/doc/Documentation/sound/alsa/
has some nice stuff I am sure you will spot

http://alsa.opensrc.org/Asoundrc
Is one of the main uses of alias

I know you know that I know you know what an alias so more
crudely if my name is
johnnyrottenappleatdusk but I call myself dusky which would you prefer
to put into an asoundrc file?

good bye and good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no sound out of aplay Pappy Goodwill Linux - Newbie 9 01-09-2013 03:53 PM
How to play realtime insted of using arecord and aplay? karoy04 Linux - Newbie 1 01-25-2011 10:03 AM
New email sound Thunderbird with aplay? Moloko Linux - Software 0 01-02-2005 02:34 PM
FC2: Sound Card (SiS SI7012) Detect But Donot Play Sound rajanaeem Linux - Hardware 0 10-22-2004 03:41 PM
sound card verified but won't play sound cdoss Linux - Newbie 2 09-11-2004 09:41 PM


All times are GMT -5. The time now is 06:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration