Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no sound

2006-02-27 Thread Ducky Z.
Hello,

Here are some more interesting output from dmesg while I was trying to
play a sound file.

PCI: Setting latency timer of device :00:1e.2 to 64
intel8x0_measure_ac97_clock: measured 50457 usecs
intel8x0: clocking to 48000
ACPI: PCI interrupt for device :00:1e.2 disabled
ACPI: PCI Interrupt :00:1e.2[A] -> Link [LNKB] -> GSI 10 (level,
low) -> IRQ 10

Thanks.


On 2/27/06, Ducky Z. <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've removed kernel support for ALSA and using alsa-driver instead.
> Still no luck and same error. And I still don't have /etc/asound.conf
> or ~/.asoundrc. Is that a problem?
>
> Thanks.
>
> On 2/27/06, Boyd Stephen Smith Jr. <[EMAIL PROTECTED]> wrote:
> > On Sunday 26 February 2006 22:46, Zac Slade <[EMAIL PROTECTED]> wrote
> > about 'Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no
> > sound':
> > > On Sunday 26 February 2006 22:17, Ducky Z. wrote:
> > > > I'm using the modules provided by the kernel, which is 2.6.15.
> > > > alsa-lib is 1.0.10.
> > >
> > > This should be fine.
> >
> > Hrm, is alsa-lib 1.0 backwards compatible to 0.9?  'Cause the kernel
> > shipped with 0.9 support for a while and my kernel now has to have an
> > option to provide the 0.9 abi/api.
> >
> > You could try either upgrading your kernel or downgrading your alsa-lib.
> > Or, you could abandon the kernel-provide modules and use alsa-drivers.
> >
> > > > When I aplay a file, it shows:
> > > >
> > > > ALSA lib pcm_direct.c:900:(snd_pcm_direct_initialize_slave) unable to
> > > > install hw params
> > > > ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
> > > > aplay: main:544: audio open error: Inappropriate ioctl for device
> > >
> > > Hrm  Is this being done as root?  I think your /etc/asound.conf file
> > > might need some help.  I'm not sure here, but it might not be able to
> > > play because the wrong information is in the asound.conf file.
> >
> > Yeah, try as root and if that works, check permissions on stuff
> > in /dev/sound.
> >
> > If you can get the 1.0 alsa-lib to work with your kernel, you can probably
> > blow away your asound.conf file anyway.  The move to 1.0 made dmix
> > automatic for devices that don't do hw mixing.
> >
> > --
> > "If there's one thing we've established over the years,
> > it's that the vast majority of our users don't have the slightest
> > clue what's best for them in terms of package stability."
> > -- Gentoo Developer Ciaran McCreesh
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no sound

2006-02-27 Thread Ducky Z.
Hello,

I've removed kernel support for ALSA and using alsa-driver instead.
Still no luck and same error. And I still don't have /etc/asound.conf
or ~/.asoundrc. Is that a problem?

Thanks.

On 2/27/06, Boyd Stephen Smith Jr. <[EMAIL PROTECTED]> wrote:
> On Sunday 26 February 2006 22:46, Zac Slade <[EMAIL PROTECTED]> wrote
> about 'Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no
> sound':
> > On Sunday 26 February 2006 22:17, Ducky Z. wrote:
> > > I'm using the modules provided by the kernel, which is 2.6.15.
> > > alsa-lib is 1.0.10.
> >
> > This should be fine.
>
> Hrm, is alsa-lib 1.0 backwards compatible to 0.9?  'Cause the kernel
> shipped with 0.9 support for a while and my kernel now has to have an
> option to provide the 0.9 abi/api.
>
> You could try either upgrading your kernel or downgrading your alsa-lib.
> Or, you could abandon the kernel-provide modules and use alsa-drivers.
>
> > > When I aplay a file, it shows:
> > >
> > > ALSA lib pcm_direct.c:900:(snd_pcm_direct_initialize_slave) unable to
> > > install hw params
> > > ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
> > > aplay: main:544: audio open error: Inappropriate ioctl for device
> >
> > Hrm  Is this being done as root?  I think your /etc/asound.conf file
> > might need some help.  I'm not sure here, but it might not be able to
> > play because the wrong information is in the asound.conf file.
>
> Yeah, try as root and if that works, check permissions on stuff
> in /dev/sound.
>
> If you can get the 1.0 alsa-lib to work with your kernel, you can probably
> blow away your asound.conf file anyway.  The move to 1.0 made dmix
> automatic for devices that don't do hw mixing.
>
> --
> "If there's one thing we've established over the years,
> it's that the vast majority of our users don't have the slightest
> clue what's best for them in terms of package stability."
> -- Gentoo Developer Ciaran McCreesh
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no sound

2006-02-26 Thread Ducky Z.
Hello,

When I ran aplay as non-root user, the output seems worse :(

ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3493:(_snd_config_evaluate) function
snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat
returned error: No such device
ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer
returned error: No such device
ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:544: audio open error: No such device

I've re-checked all the mixer levels :)

And finally, I don't have asound.conf in my /etc. Where does it come from?

Thanks again.
DZ

On 2/27/06, Zac Slade <[EMAIL PROTECTED]> wrote:
> On Sunday 26 February 2006 22:17, Ducky Z. wrote:
> > I'm using the modules provided by the kernel, which is 2.6.15.
> > alsa-lib is 1.0.10.
> This should be fine.
>
> > When I aplay a file, it shows:
> >
> > ALSA lib pcm_direct.c:900:(snd_pcm_direct_initialize_slave) unable to
> > install hw params
> > ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
> > aplay: main:544: audio open error: Inappropriate ioctl for device
> Hrm  Is this being done as root?  I think your /etc/asound.conf file might
> need some help.  I'm not sure here, but it might not be able to play because
> the wrong information is in the asound.conf file.
>
> > > In addition to being unmuted are the outputs actually turned up?
> >
> > Output means?
> Means that PCM, MASTER are not set to 0 in alsamixer.  You said earlier that
> they were unmuted and turned up so I think you have this covered, but you
> should double check.
>
> > > You appear to have the right modules loaded, but those dmesg errors are
> > > likely because the userland is having problems talking to the kernel.
> >
> > Is there any workaround?
> Well the workaround is to get programs using the alsa libraries to properly
> initialize the device.  Not sure what the configuration issue is.
>
> --
> Zac Slade
> [EMAIL PROTECTED]
> ICQ:1415282 YM:krakrjak AIM:ttyp99
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no sound

2006-02-26 Thread Ducky Z.
Hello,

On 2/26/06, Boyd Stephen Smith Jr. <[EMAIL PROTECTED]> wrote:
> On Sunday 26 February 2006 02:20, "Ducky Z." <[EMAIL PROTECTED]>
> wrote about '[gentoo-user] ALSA: All modules loaded, mixer unmuted, still
> no sound':
> > Hello,
> >
> > The sound card works fine with Ubuntu in my other partition. I've
> > followed Gentoo's Alsa Guide and currently with kernel modules. But no
> > sound comes out when I play music or any other things.
>
> Are use using alsa provided by the kernel, or the kernel modules provided
> by alsa-driver?  What version of either the kernel or alsa-driver?  What
> version of alsa-lib?
>

I'm using the modules provided by the kernel, which is 2.6.15.
alsa-lib is 1.0.10.

> Can you play wav files through aplay?  There should be some samples
> in /usr/share/sounds if you don't have other .wav files.
When I aplay a file, it shows:

ALSA lib pcm_direct.c:900:(snd_pcm_direct_initialize_slave) unable to
install hw params
ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:544: audio open error: Inappropriate ioctl for device

> In addition to being unmuted are the outputs actually turned up?
Output means?

> You appear to have the right modules loaded, but those dmesg errors are
> likely because the userland is having problems talking to the kernel.
Is there any workaround?

> > My 'uname -a':
> > Linux rolling-machine 2.6.15-nitro3 #3 PREEMPT Sun Feb 26 13:23:00 MMT
> > 2006 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel
> > GNU/Linux
>
> What's -nitro?  Is that your own kernel version string or is that like
> ck-sources?
It's nitro-sources. I've used gentoo-sources, and I'm now trying nitro-sources.

Thanks a lot.
DZ

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no sound

2006-02-26 Thread Ducky Z.
Hello,

I've played through mplayer as well. While mplayer plays through the
file, I can hear no sound. mpg321 plays the files too except that it
shows some errors at first.

Regards,

On 2/26/06, Zac Slade <[EMAIL PROTECTED]> wrote:
> On Sunday 26 February 2006 02:50, Ducky Z. wrote:
> > I've already unmuted all channels. Still no sound.
> My aplogies I didn't read far enough
>
> Do you have any programs that will play sound?  I think I may have to bow out
> of this discussion.  It's always worked for me just fine (emu10k driver
> here).
> --
> Zac Slade
> [EMAIL PROTECTED]
> ICQ:1415282 YM:krakrjak AIM:ttyp99
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA: All modules loaded, mixer unmuted, still no sound

2006-02-26 Thread Ducky Z.
I've already unmuted all channels. Still no sound.

Regards,


On 2/26/06, Zac Slade <[EMAIL PROTECTED]> wrote:
> On Sunday 26 February 2006 02:20, Ducky Z. wrote:
> > Hello,
> >
> > The sound card works fine with Ubuntu in my other partition. I've
> > followed Gentoo's Alsa Guide and currently with kernel modules. But no
> > sound comes out when I play music or any other things.
> >
> > The 'lspci' for my card is:
> >
> > 00:1e.2 Multimedia audio controller: Intel Corporation
> > 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
> >   Subsystem: Toshiba America Info Systems Unknown device ff10
> >   Flags: bus master, medium devsel, latency 0, IRQ 10
> >   I/O ports at e100 [size=256]
> >   I/O ports at e200 [size=64]
> >   Memory at d018 (32-bit, non-prefetchable) [size=512]
> >   Memory at d0180200 (32-bit, non-prefetchable) [size=256]
> >   Capabilities: [50] Power Management version 2
> >
> > The 'lsmod' for the OS is:
> >
> > Module  Size  Used by
> > ipw220089900  0
> > ieee80211  29256  1 ipw2200
> > ieee80211_crypt 4736  1 ieee80211
> > firmware_class  8192  1 ipw2200
> > sky2   32640  0
> > snd_seq48080  0
> > snd_seq_device  6924  1 snd_seq
> > snd_pcm_oss48160  0
> > snd_mixer_oss  17024  1 snd_pcm_oss
> > snd_intel8x0   29468  0
> > snd_ac97_codec 91168  1 snd_intel8x0
> > snd_ac97_bus1920  1 snd_ac97_codec
> > snd_pcm79240  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
> > snd_timer  21508  2 snd_seq,snd_pcm
> > snd46180  8
> > snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_code
> >c,snd_pcm,snd_timer soundcore   7776  1 snd
> > snd_page_alloc  8456  2 snd_intel8x0,snd_pcm
> > xfs   543448  1
> > ntfs   99440  1
> Did you look at your mixer?  Try alsamixer.
>
> --
> Zac Slade
> [EMAIL PROTECTED]
> ICQ:1415282 YM:krakrjak AIM:ttyp99
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] ALSA: All modules loaded, mixer unmuted, still no sound

2006-02-26 Thread Ducky Z.
Hello,

The sound card works fine with Ubuntu in my other partition. I've
followed Gentoo's Alsa Guide and currently with kernel modules. But no
sound comes out when I play music or any other things.

The 'lspci' for my card is:

00:1e.2 Multimedia audio controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
Subsystem: Toshiba America Info Systems Unknown device ff10
Flags: bus master, medium devsel, latency 0, IRQ 10
I/O ports at e100 [size=256]
I/O ports at e200 [size=64]
Memory at d018 (32-bit, non-prefetchable) [size=512]
Memory at d0180200 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2

The 'lsmod' for the OS is:

Module  Size  Used by
ipw220089900  0
ieee80211  29256  1 ipw2200
ieee80211_crypt 4736  1 ieee80211
firmware_class  8192  1 ipw2200
sky2   32640  0
snd_seq48080  0
snd_seq_device  6924  1 snd_seq
snd_pcm_oss48160  0
snd_mixer_oss  17024  1 snd_pcm_oss
snd_intel8x0   29468  0
snd_ac97_codec 91168  1 snd_intel8x0
snd_ac97_bus1920  1 snd_ac97_codec
snd_pcm79240  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer  21508  2 snd_seq,snd_pcm
snd46180  8
snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore   7776  1 snd
snd_page_alloc  8456  2 snd_intel8x0,snd_pcm
xfs   543448  1
ntfs   99440  1

Some dmesg'es related to my card:
ACPI: PCI Interrupt :00:1e.2[A] -> Link [LNKB] -> GSI 10 (level,
low) -> IRQ 10
PCI: Setting latency timer of device :00:1e.2 to 64
intel8x0_measure_ac97_clock: measured 50459 usecs
intel8x0: clocking to 48000

My alsaconf generated:

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.10 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---

When I play an mp3 file with mpg321, the first two lines show:
ALSA lib pcm_direct.c:900: (snd_pcm_direct_initialize_slave) unable to
install hw params
ALSA lib pcm_dmix.c:831: (snd_pcm_dmix_open) unable to initialize slave

There's no sound when #cat /dev/random > /dev/dsp

My /proc/asound/cards:
 0 [ICH6   ]: ICH4 - Intel ICH6
  Intel ICH6 with AD1981B at 0xd018, irq 10


My 'uname -a':
Linux rolling-machine 2.6.15-nitro3 #3 PREEMPT Sun Feb 26 13:23:00 MMT
2006 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel
GNU/Linux

I've  searched in forums, and haven't found any solution yet. All
channels are unmuted and set to full. I hope some could help me out.

Thanks,
DZ.

-- 
gentoo-user@gentoo.org mailing list