Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
{Resolved}Moc player error "No valid sound driver!"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Tefrem34
Guru
Guru


Joined: 14 Sep 2014
Posts: 400
Location: USA, California

PostPosted: Wed Nov 20, 2019 3:19 pm    Post subject: Moc player error "No valid sound driver!" Reply with quote

Hallo,

I have been having an issue with getting my moc player to work. I keep getting this error
Code:
Running the server...
Trying JACK...
Trying ALSA...
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.8/work/alsa-lib-1.1.8/src/pcm/pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Trying OSS...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!


Code:
aplay -l

Code:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 0: CA0132 Analog [CA0132 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 1: CA0132 Digital [CA0132 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Mic [Samson Meteor Mic], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 4: ODACrevB [ODAC-revB], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
cat /etc/modprobe.d/alsa.conf

Code:
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## 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
options snd_hda_intel index=1,0


I have been able to use cmus but I do not like it.

I would appreciate it if someone could help me out with this.

Not sure if this is issue is why I have no sound in Chrome, if it isn't, then I will start another post for that, so I can get that working as well.

Thanks again.


Last edited by Tefrem34 on Fri Dec 27, 2019 4:40 am; edited 4 times in total
Back to top
View user's profile Send private message
Tefrem34
Guru
Guru


Joined: 14 Sep 2014
Posts: 400
Location: USA, California

PostPosted: Thu Nov 21, 2019 1:09 am    Post subject: Reply with quote

So I was going through the "man moc" and was trying the different commands and used the "mocp -S" which I guess got it to load the driver it needed. Then I ran mocp and it started right up.
So now I need to figure out why I have no sound in my Chrome browser.
Back to top
View user's profile Send private message
Tefrem34
Guru
Guru


Joined: 14 Sep 2014
Posts: 400
Location: USA, California

PostPosted: Tue Nov 26, 2019 9:40 pm    Post subject: Reply with quote

So I thought that I had it working, then my computer rebooted and I am back to square one.
I had Chrome sound working as well, but that doesn't work anymore either.

What my ~.asound looks like.
Code:
pcm.!spdif {
     type hw
     card 1
     device 0
}

pcm.!default {
     type plug
     slave {
           pcm "spdif"
     }
}

# Share a single card with multiple applications
#pcm.!default {
#    type plug
#    slave.pcm "dmix:CARD=PCH,DEVICE=1,RATE=48000"
#}

defaults.pcm.!card 1
defaults.pcm.!device 0
defaults.pcm.!ctl PCH


my sound devices.
Code:
arecord --list-devices
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC1150 Alt Analog [ALC1150 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 0: CA0132 Analog [CA0132 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 1: CA0132 Digital [CA0132 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 2: CA0132 What U Hear [CA0132 What U Hear]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Mic [Samson Meteor Mic], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

the pch is the card that I want to be default.

mocp output:
Code:
mocp
Running the server...
Trying JACK...
Trying ALSA...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!


I thought that I had it all figured out, but I guess not. I would like to get this working again

Thank you for your time.
Back to top
View user's profile Send private message
Tefrem34
Guru
Guru


Joined: 14 Sep 2014
Posts: 400
Location: USA, California

PostPosted: Tue Nov 26, 2019 11:46 pm    Post subject: Reply with quote

I just noticed that my sound card is changing order after booting.
My power keeps going out and I have had to restart my computer and I reran
Code:
aplay --list-devices
and you can see what I had in the previous post and now it is showing this:
Code:
aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I have also had issues with my Home partition not loading at boot and having to reboot till it loads. So I do not know what is going on with my system.
Back to top
View user's profile Send private message
Tefrem34
Guru
Guru


Joined: 14 Sep 2014
Posts: 400
Location: USA, California

PostPosted: Thu Nov 28, 2019 6:57 pm    Post subject: Reply with quote

This really strange. I have it working now.
Every time I reboot I have a different result. For now I have chrome sound working. And now moc player is working again.
My ~/.asoundrc config:
Code:
defaults.pcm.!card PCH
defaults.pcm.!device 0
defaults.pcm.!ctl PCH
defaults.pcm.dmix.rate 96000

I went back to my original config, that wasn't working, and now it works again.
So there is something that is going on with my main system that is wrong that makes it more inconsistent.
I am sure the next time I reboot I am going to have to mess with it some more.
Back to top
View user's profile Send private message
Tefrem34
Guru
Guru


Joined: 14 Sep 2014
Posts: 400
Location: USA, California

PostPosted: Fri Dec 27, 2019 4:44 am    Post subject: Reply with quote

Well I do not know what was the issue was, but it is working again.
I don't know if the problem was the dir that I was in, but when I tried running mocp in another dir than my home, it started working and has been working since.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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