Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Baselayout2 vs multiple sound cards
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
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Sun Aug 02, 2009 8:14 pm    Post subject: Baselayout2 vs multiple sound cards Reply with quote

I have two sound cards:
Code:

$ cat /proc/asound/cards
 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xf9ff4000 irq 16
 1 [M2496          ]: ICE1712 - M Audio Audiophile 24/96
                      M Audio Audiophile 24/96 at 0xe800, irq 21

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: M2496 [M Audio Audiophile 24/96], device 0: ICE1712 multi [ICE1712 multi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



I'm trying to get M2496 to be the primary card and integrated SB the secondary. If possible both card should just output the same thing and audio input should be from the SB. I don't use digital connections from the computer right now.

Right now I get sound from the SB but not from the M2496. I'm not sure if the audio goes to the digital out though because I have no way of testing that.
So,
Code:

mplayer -ao alsa:device=hw=0.0 audio.wav

outputs sound from the SB but
Code:

mplayer -ao alsa:device=hw=0.1 audio.wav

seems to play but I can't hear anything. Other choices just won't even play.

I have set the volume levels as full as possible from the "$ alsamixer -c 0" and "$ alsamixer -c 1" and unmuted all options.

/etc/conf.d/modules:
Code:

modules_2_6="snd-ice1712"
modules_2_6="snd-via82xx"


/etc/modules.conf:
Code:

alias char-major-116 snd
alias char-major-14 soundcore
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
alias snd-card-0 snd-ice1712
alias sound-slot-0 snd-ice1712

alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
alias snd-card-1 snd-hda-intel
alias sound-slot-1 snd-hda-intel
options snd-ice1712 snd_index=0
options snd-hda-intel snd_index=1


/etc/modprobe.conf:
Code:


alias char-major-116-* snd
alias char-major-14-* soundcore
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
alias snd-card-0 snd-ice1712
alias sound-slot-0 snd-ice1712

alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
alias snd-card-1 snd-hda-intel
alias sound-slot-1 snd-hda-intel

options snd-ice1712 snd_index=0
options snd-hda-intel snd_index=1

...

alias char-major-116 snd
alias char-major-14 soundcore

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

alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-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

options snd-ice1712 snd_index=0
options snd-hda-intel snd_index=1

options snd cards_limit=2

...


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

alias char-major-116 snd

alias char-major-14 soundcore

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

alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss

options snd-ice1712 snd_index=0
options snd-hda-intel snd_index=1

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

options snd cards_limit=2


/etc/modules.d/alsa:
Code:

alias char-major-116 snd
alias char-major-14 soundcore
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
alias snd-card-0 snd-ice1712
alias sound-slot-0 snd-ice1712

alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
alias snd-card-1 snd-hda-intel
alias sound-slot-1 snd-hda-intel

options snd-ice1712 snd_index=0
options snd-hda-intel snd_index=1


So, the M2496 should be the primary card but it isn't for some reason.

I have updated to the baselayout 2 so, I'm not sure if the options for the cards should be in /etc/conf.d/modules. It seems that the "/etc/init.d/alsasound restart" reacts to the problems in /etc/modprobe.conf and /etc/modprobe.d/alsa.conf.

Where do I go wrong?
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Sun Aug 02, 2009 9:03 pm    Post subject: Reply with quote

To get both sound cards working the same output or a quadro setup, you can use pulseaudio.
Take a look at PulseAudio gentoo wiki
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
AkhIL
n00b
n00b


Joined: 15 Jul 2005
Posts: 48
Location: Siberia

PostPosted: Sun Aug 02, 2009 11:26 pm    Post subject: Reply with quote

try to setup your M-Audio with alsaconf. After you get it work add your SB to /etc/modprobe.d/alsa.conf

This is my one. I have three sound cards:
Code:

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel

alias snd-card-1 snd-usb-audio
alias sound-slot-1 snd-usb-audio

alias snd-card-2 snd-usb-audio
alias sound-slot-2 snd-usb-audio

options snd-hda-intel index=0
# 1 - terratec aureon 5.1
# 2 - gembird headset
options snd-usb-audio index=1,2 vid=0x0ccd,0x0d8c pid=0x0028,0x000c async_unlink=1


And then you can easely get your output duplicated using only alsa.
find "Plugin: Multiple streams to One" in http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html or google something like "asound.rc type multi"
_________________
http://akhilman.blogspot.com
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Mon Aug 03, 2009 6:27 pm    Post subject: Reply with quote

Okay.
Tried the alsaconf after removing all audio related options from the files. In file /etc/conf.d/modules I left only modules_2_6="snd-ice1712". Still I get the same thing from "cat /proc/asound/cards " and "aplay -l" after reboot.

So, I get sound from:
aplay -c 2 -N -v --device=default:CARD=SB /usr/lib64/openoffice/basis3.0/share/gallery/sounds/roll.wav

But only silence from:
aplay -c 2 -N -v --device=default:CARD=M2496 /usr/lib64/openoffice/basis3.0/share/gallery/sounds/roll.wav

Should this really go to the analog out?

Same thing after alsaconf.

Code:

# lspci | grep -i audi
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
03:06.0 Multimedia audio controller: VIA Technologies Inc. ICE1712 [Envy24] PCI Multi-Channel I/O Controller (rev 02)


Code:

$ aplay -L
default:CARD=SB
    HDA ATI SB, ALC888 Analog
    Default Audio Device
front:CARD=SB,DEV=0
    HDA ATI SB, ALC888 Analog
    Front speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC888 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC888 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC888 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC888 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC888 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
    HDA ATI SB, ALC888 Digital
    IEC958 (S/PDIF) Digital Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=M2496
    M Audio Audiophile 24/96, ICE1712 multi
    Default Audio Device
front:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    Front speakers
surround40:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    4.0 Surround output to Front and Rear speakers
surround41:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=M2496,DEV=0
    M Audio Audiophile 24/96, ICE1712 multi
    IEC958 (S/PDIF) Digital Audio Output
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Tue Aug 04, 2009 7:02 pm    Post subject: Reply with quote

Argh...

A critical audio control was muted under Capture.

Anyway thanks!
I shall continue from your help
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Tue Aug 04, 2009 10:52 pm    Post subject: Reply with quote

So, now I get sound from:
$ aplay -D default:CARD=M2496 test.vaw

but instead:
$ mplayer -ao alsa:device=hw=0.1 audio.wav
gives only silence.

and no matter what I do
$ mplayer -ao alsa:device=hw=0.0 audio.wav
plays from integrated card

Where can I find what exactly is this default:CARD=M2496 and how to access it from the hw= option?
Should I build the audio devices in kernels or as modules?
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Tue Aug 04, 2009 11:24 pm    Post subject: Reply with quote

Dheath wrote:
So, now I get sound from:
$ aplay -D default:CARD=M2496 test.vaw

but instead:
$ mplayer -ao alsa:device=hw=0.1 audio.wav
gives only silence.

and no matter what I do
$ mplayer -ao alsa:device=hw=0.0 audio.wav
plays from integrated card

Where can I find what exactly is this default:CARD=M2496 and how to access it from the hw= option?
Should I build the audio devices in kernels or as modules?

Give
Code:
mplayer -ao alsa:device=hw=1.0 audio.wav
a try ...

HTH
swimmer
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Wed Aug 05, 2009 6:36 am    Post subject: Reply with quote

swimmer wrote:

Give
Code:
mplayer -ao alsa:device=hw=1.0 audio.wav
a try ...


This wont even play.
I actually have tested all hw=[0-20].[0-20] and only ones that start playing somewhere are 0.0 and 0.1.

Right now the Alsa drivers are build to the kernel but I think I'm going to try to build them as a module.

The M2496 card has two analog connectors (two right and two left), two digital connectors and two midi connectors but why then aplay -L says that there is a surround system for that card?

It seems that /etc/modules.conf, /etc/modprobe.conf, /etc/modprobe.d/alsa.conf and /etc/modules.d/alsa won't have any effect on the system.
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Wed Aug 05, 2009 8:14 pm    Post subject: Reply with quote

It seems that there is no difference now that I build sound systems as a module. Still I get the integrated card loaded for first card no matter what and /etc/modules.conf, /etc/modprobe.conf, /etc/modprobe.d/alsa.conf and /etc/modules.d/alsa files can only give me error. There is no change no matter how I change them on my own or with alsaconf.

I tried installing audacity and see what I can do with it. It sees that there actually is M2496 in hw:1,0 and it works from there.
So, I tried looking mplayer output more carefully with hw:1,0:
Code:

$ mplayer -ao alsa:device=hw=1.0 /usr/lib64/openoffice/basis3.0/share/gallery/sounds/roll.wav -v
MPlayer SVN-r29463-4.3.2 (C) 2000-2009 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 5
CPU: AMD Phenom(tm) II X4 945 Processor (Family: 16, Model: 4, Stepping: 2)
extended cpuid-level: 27
extended cache-info: 33587520
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/dheath/.mplayer/codecs.conf'
Reading /home/dheath/.mplayer/codecs.conf: Can't open '/home/dheath/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --cc=x86_64-pc-linux-gnu-gcc --host-cc=x86_64-pc-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib64 --enable-network --disable-arts --disable-ftp --disable-lirc --disable-lircc --disable-apple-ir --disable-libnut --enable-menu --enable-joystick --disable-cdparanoia --charset=UTF-8 --disable-tv-bsdbt848 --disable-ivtv --enable-radio --enable-radio-capture --disable-liba52 --disable-musepack --xanimcodecsdir=/usr/lib/xanim/mods --realcodecsdir=/usr/lib64/codecs --disable-dxr3 --disable-vesa --disable-vdpau --disable-vidix --disable-vidix-pcidb --disable-gui --enable-xvmc --with-xvmclib=XvMCW --disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-ladspa
CommandLine: '-ao' 'alsa:device=hw=1.0' '/usr/lib64/openoffice/basis3.0/share/gallery/sounds/roll.wav' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/dheath/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/dheath/.mplayer/input.conf'
Can't open input config file /home/dheath/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 90 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
get_path('roll.wav.conf') -> '/home/dheath/.mplayer/roll.wav.conf'

Playing /usr/lib64/openoffice/basis3.0/share/gallery/sounds/roll.wav.
get_path('sub/') -> '/home/dheath/.mplayer/sub/'
[file] File size is 242648 bytes
STREAM: [file] /usr/lib64/openoffice/basis3.0/share/gallery/sounds/roll.wav
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: WAV format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /usr/lib64/openoffice/basis3.0/share/gallery/sounds/roll.wav ext: .wav
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 22050
avg byte/sec: 44100
Block align: 2
bits/sample: 16
cbSize: 0
==========================================================================
demux_audio: audio data 0x2C - 0x3B3D8
Audio only file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 22050 Hz, 1 ch, s16le, 352.8 kbit/100.00% (ratio: 44100->44100)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 22050Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 22050Hz/1ch/s16le
[dummy] Was reinitialized: 22050Hz/1ch/s16le
Trying preferred audio driver 'alsa', options 'device=hw=1.0'
alsa-init: requested format: 22050 Hz, 1 channels, 9
alsa-init: using ALSA 1.0.19
alsa-init: setup for 1/2 channel(s)
alsa-init: using device hw:1,0
alsa-init: pcm opened in blocking mode
[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Failed to initialize audio driver 'alsa:device=hw=1.0'
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: pcm
Audio: no sound
Freeing 0 unused audio chunks.
Video: no video
Freeing 0 unused video chunks.

vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)



With something that doesn't exist for sure I get:
Code:

...
alsa-init: using device hw:2,0
[AO_ALSA] alsa-lib: pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=hw=2.0'
...

What does this error even mean?
Code:

[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Thu Aug 06, 2009 10:48 am    Post subject: Reply with quote

Dheath wrote:
Code:

Channels: 1
Samplerate: 22050


Mono 22kHz is not good, try at least 32kHz stereo.
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Fri Aug 07, 2009 2:14 pm    Post subject: Reply with quote

Code:

$ mplayer -ao alsa:device=hw=1.0 Why_is_the_Rum_Gone_MP3.mp3 -v
MPlayer SVN-r29463-4.3.2 (C) 2000-2009 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 5
CPU: AMD Phenom(tm) II X4 945 Processor (Family: 16, Model: 4, Stepping: 2)
extended cpuid-level: 27
extended cache-info: 33587520
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/dheath/.mplayer/codecs.conf'
Reading /home/dheath/.mplayer/codecs.conf: Can't open '/home/dheath/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --cc=x86_64-pc-linux-gnu-gcc --host-cc=x86_64-pc-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib64 --enable-network --disable-arts --disable-ftp --disable-lirc --disable-lircc --disable-apple-ir --disable-libnut --enable-menu --enable-joystick --disable-cdparanoia --charset=UTF-8 --disable-tv-bsdbt848 --disable-ivtv --enable-radio --enable-radio-capture --disable-liba52 --disable-musepack --xanimcodecsdir=/usr/lib/xanim/mods --realcodecsdir=/usr/lib64/codecs --disable-dxr3 --disable-vesa --disable-vdpau --disable-vidix --disable-vidix-pcidb --disable-gui --enable-xvmc --with-xvmclib=XvMCW --disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-ladspa
CommandLine: '-ao' 'alsa:device=hw=1.0' 'Why_is_the_Rum_Gone_MP3.mp3' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/dheath/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/dheath/.mplayer/input.conf'
Can't open input config file /home/dheath/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 90 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
get_path('Why_is_the_Rum_Gone_MP3.mp3.conf') -> '/home/dheath/.mplayer/Why_is_the_Rum_Gone_MP3.mp3.conf'

Playing Why_is_the_Rum_Gone_MP3.mp3.
get_path('sub/') -> '/home/dheath/.mplayer/sub/'
[file] File size is 2869874 bytes
STREAM: [file] Why_is_the_Rum_Gone_MP3.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: MPEG audio layer 2/3
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename Why_is_the_Rum_Gone_MP3.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: seeking from 0x2BC9F5 to start pos 0x868
demux_audio: audio data 0x868 - 0x2BCA72
Audio only file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 160 kbit Joint-Stereo, BPF: 522
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Trying preferred audio driver 'alsa', options 'device=hw=1.0'
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.20
alsa-init: setup for 1/2 channel(s)
alsa-init: using device hw:1,0
alsa-init: pcm opened in blocking mode
[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Failed to initialize audio driver 'alsa:device=hw=1.0'
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: mp3lib
Audio: no sound
Freeing 0 unused audio chunks.
Video: no video
Freeing 0 unused video chunks.

vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)


I think that was not it either... :?
Thank you.
Any idea would now help right now. :roll:
I'm trying to compile my hole system right now with -j2 and see if it has any help. Before my system was compiled with -j5.
Back to top
View user's profile Send private message
cjubon
Guru
Guru


Joined: 03 Jul 2007
Posts: 450
Location: Vienna/Europe

PostPosted: Sat Aug 08, 2009 9:44 am    Post subject: Reply with quote

Dheath, I didn't read through the whole thread, but I guess your config files use the wrong syntax. This may have changed recently. Instead of "options snd-ice1712 snd_index=0", I'd rather use "options card-ice1712 index=0". Further, you need the "slots..." option for determining your default card.

This is my /etc/modprobe.d/alsa file:
Code:
# Alsa kernel modules' configuration file.

### Number of cards
options snd cards-limit=2 slots=snd-ice1712

### M-Audio Audiophile 2496
options card-ice1712 index=0

### SoundBlaster Live
options card-emu10k1 index=1


I'd suggest to remove any "option" lines in all the other files (etc/modprobe.d/alsa.conf and so on), since modprobe.d/alsa is the relevant file. Don't forget to run update-modules when you're done with editing.

Have a good day.
_________________
Mandrake Dec 2001 · Debian "Woody" Aug 2002 · Gentoo Jan 2004 · Funtoo Oct 2009
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Sat Aug 08, 2009 11:07 am    Post subject: Reply with quote

cjubon wrote:
[SNIP]
I'd suggest to remove any "option" lines in all the other files (etc/modprobe.d/alsa.conf and so on), since modprobe.d/alsa is the relevant file. Don't forget to run update-modules when you're done with editing.

Have a good day.

Are you sure about that? Today my emerge of alsa-utils bailed out because there was still a /etc/modprobe.d/alsa ... the error message was
Code:
 * Obsolete config /etc/modprobe.d/alsa found.
 *
 * ERROR: media-sound/alsa-utils-1.0.20-r4 failed.
 * Call stack:
 *                     ebuild.sh, line   49:  Called pkg_setup
 *   alsa-utils-1.0.20-r4.ebuild, line   39:  Called die
 * The specific snippet of code:
 *              die "Move /etc/modprobe.d/alsa to /etc/modprobe.d/alsa.conf."
 *  The die message:
 *   Move /etc/modprobe.d/alsa to /etc/modprobe.d/alsa.conf.
 *


The nice day may be yours ;-)

swimmer
Back to top
View user's profile Send private message
cjubon
Guru
Guru


Joined: 03 Jul 2007
Posts: 450
Location: Vienna/Europe

PostPosted: Sat Aug 08, 2009 12:18 pm    Post subject: Reply with quote

@swimmer: Thanks for the hint. It works with alsa-utils-1.0.19-r2 (current stable x86). Anyhow, adding those three lines to /etc/modprobe.d/alsa.conf and removing /etc/modprobe.d/alsa won't do any harm either.

Cheers
_________________
Mandrake Dec 2001 · Debian "Woody" Aug 2002 · Gentoo Jan 2004 · Funtoo Oct 2009
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Sun Aug 09, 2009 5:42 pm    Post subject: Reply with quote

I have everything written to this post.

Right now I have:

Alsa is build as modules.
Module names are: snd_ice1712 and snd_hda_intel

/etc/conf.d/modules:
Code:

modules_2_6="snd-ice1712"


/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

#alias snd-card-0 snd-ice1712 # if this is set I will get two "Loading: snd-card-0..." when doing /etc/init.d/alsasound restart
alias sound-slot-0 snd-ice1712
#alias snd-card-1 snd-hda-intel # if this is set I will get two "Loading: snd-card-1..." when doing /etc/init.d/alsasound restart
alias sound-slot-1 snd-hda-intel

# Alsa kernel modules' configuration file.

### Number of cards
options snd cards-limit=2 slots=snd-ice1712

### M-Audio Audiophile 2496
options card-ice1712 index=0

### SoundBlaster Live
options card-hda-intel index=1

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

I have removed everything related to snd from other files after I edited this file.


Code:

# update-modules
* Updating modprobe.conf by hand...                                       [ ok ]


Code:

# /etc/init.d/alsasound restart
* WARNING: you are stopping a boot service
* Stopping Music Player Daemon...                                         [ ok ]
* Storing ALSA Mixer Levels...                                            [ ok ]
* Loading ALSA modules...
*   Loading: snd-card-0...                                                [ ok ]
*   Loading: snd-card-1...                                                [ ok ]
* Restoring Mixer Levels...                                               [ ok ]
# * Starting Music Player Daemon...                         [ ok ]


Code:

$ pulseaudio --log-level=4
N: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
N: main.c: We are not in group 'realtime' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
N: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'realtime', or increase the       RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: main.c: Page size is 4096 bytes
I: main.c: Fresh high-resolution timers available! Bon appetit!
W: alsa-util.c: Device hw:1,0 doesn't support 2 channels, changed to 12.
W: alsa-util.c: Device hw:1,0 doesn't support sample format s16le, changed to s32le.
I: module-alsa-source.c: Successfully opened device hw:1,0.
I: module-alsa-source.c: Successfully enabled mmap() mode.
ALSA lib conf.c:3843:(parse_args) Unknown parameter 1
ALSA lib conf.c:3969:(snd_config_expand) Parse arguments error: No such file or directory
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL hw:1,0
I: alsa-util.c: Unable to attach to mixer hw:1,0: No such file or directory
I: alsa-util.c: Unable to attach to mixer hw:(null): No such device
D: source.c: pa_source_new: Assertion <map && pa_channel_map_valid(map)> failed.
E: module-alsa-source.c: Failed to create source object
E: module.c: Failed to load  module "module-alsa-source" (argument: "device=hw:1,0"): initialization failed.
E: main.c: Module load failed.
E: main.c: failed to initialize daemon.
I: main.c: Daemon terminated.


Code:

$ mplayer -ao alsa:device=hw=1.0 Why_is_the_Rum_Gone_MP3.mp3 -v
MPlayer SVN-r29463-4.3.2 (C) 2000-2009 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 5
CPU: AMD Phenom(tm) II X4 945 Processor (Family: 16, Model: 4, Stepping: 2)
extended cpuid-level: 27
extended cache-info: 33587520
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/dheath/.mplayer/codecs.conf'
Reading /home/dheath/.mplayer/codecs.conf: Can't open '/home/dheath/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --cc=x86_64-pc-linux-gnu-gcc --host-cc=x86_64-pc-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib64 --enable-network --disable-arts --disable-ftp --disable-lirc --disable-lircc --disable-apple-ir --disable-libnut --enable-menu --enable-joystick --disable-cdparanoia --charset=UTF-8 --disable-tv-bsdbt848 --disable-ivtv --enable-radio --enable-radio-capture --disable-liba52 --disable-musepack --xanimcodecsdir=/usr/lib/xanim/mods --realcodecsdir=/usr/lib64/codecs --disable-dxr3 --disable-vesa --disable-vdpau --disable-vidix --disable-vidix-pcidb --disable-gui --enable-xvmc --with-xvmclib=XvMCW --disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-ladspa
CommandLine: '-ao' 'alsa:device=hw=1.0' 'Why_is_the_Rum_Gone_MP3.mp3' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/dheath/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/dheath/.mplayer/input.conf'
Can't open input config file /home/dheath/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 90 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
get_path('Why_is_the_Rum_Gone_MP3.mp3.conf') -> '/home/dheath/.mplayer/Why_is_the_Rum_Gone_MP3.mp3.conf'

Playing Why_is_the_Rum_Gone_MP3.mp3.
get_path('sub/') -> '/home/dheath/.mplayer/sub/'
[file] File size is 2869874 bytes
STREAM: [file] Why_is_the_Rum_Gone_MP3.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: MPEG audio layer 2/3
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename Why_is_the_Rum_Gone_MP3.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: seeking from 0x2BC9F5 to start pos 0x868
demux_audio: audio data 0x868 - 0x2BCA72
Audio only file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 160 kbit Joint-Stereo, BPF: 522
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Trying preferred audio driver 'alsa', options 'device=hw=1.0'
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.20
alsa-init: setup for 1/2 channel(s)
alsa-init: using device hw:1,0
alsa-init: pcm opened in blocking mode
[AO_ALSA] Format s16le is not supported by hardware, trying default.
[AO_ALSA] Unable to set format: Invalid argument
Failed to initialize audio driver 'alsa:device=hw=1.0'
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: mp3lib
Audio: no sound
Freeing 0 unused audio chunks.
Video: no video
Freeing 0 unused video chunks.

vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)



Despite all this the "hw:0,0" is integrated Intel card and "hw:1,0" is ice1712.
"hw:0,1" is something related with integrated Intel card but I don't know how.

According to Audacity I have:
Code:

ALSA: HDA ATI SB: ALC888 Digital (hw:0,1)
ALSA:  M Audio Audiophile 24/96 ICE1712 multi (hw:1,0)
ALSA: iec 958
ALSA: spdif
ALSA: default
ALSA: dmix
OSS: /dev/dsp1


Pointing out any minor thing that is wrong will help! :roll:
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Sun Aug 09, 2009 11:39 pm    Post subject: Reply with quote

This is my (working) alsa.conf
Code:
alias char-major-116 snd
alias char-major-14 soundcore

alias snd-card-0 snd-emu10k1
alias snd-card-1 snd-hda-intel

# card #1
alias sound-slot-0 snd-card-0
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
## card #2
alias sound-slot-1 snd-card-1
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/dsp snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/midi snd-seq-oss


HTH
swimmer
Back to top
View user's profile Send private message
Dheath
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 131

PostPosted: Mon Aug 10, 2009 5:43 pm    Post subject: Reply with quote

Now it is working. Thank you for the help!

I put the my alsa.conf according to swimmer.

Found something on s16le issue from here:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/204809

Changed /etc/pulse/default.pa
Code:

# load-module module-hal-detect

load-module module-alsa-sink sink_name=dmx_out device=hw:0 channels=10 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=dmx_in device=hw:0 channels=12 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9

.else
# load-module module-detect


Finally started pulse audio without errors.

Seems that automatic module detection is the issue here.
I just wonder if this is worth a bug report or is it just me.
Back to top
View user's profile Send private message
jquinte
n00b
n00b


Joined: 01 May 2007
Posts: 74
Location: Berlin, Germany

PostPosted: Fri Dec 11, 2009 5:42 am    Post subject: Reply with quote

Don't forget to add SOLVED to the Post subject! :)
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