You are not logged in.

#1 2008-08-31 12:00:56

clvn
Member
From: Norway
Registered: 2008-08-31
Posts: 20
Website

ALSA+SPDIF: Only sound in Totem. (Audacious, VLC, MPD+ = silent)

Hi!

I recently bought the Audiotrak Prodigy HD2 (2ch 'hifi' sound card /w SPDIF optical out. Uses the Envy24 chip from VIA). When using the analog output, everything was fine. (allthough the card would only play sounds from one app at the time)

I've never fiddled with ALSA before (recently moved over from Ubuntu), so this is a new field for me.

The thing that is weirdest is that Totem is working. It plays both sound and video just fine. And  gnome-sound-properties output the standard beep when selecting IEC1724 IEC958.

Some ouput:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HD2 [Audiotrak Prodigy HD2], device 0: ICE1724 [ICE1724]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HD2 [Audiotrak Prodigy HD2], device 1: IEC1724 IEC958 [IEC1724 IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L
default:CARD=HD2
    Audiotrak Prodigy HD2, ICE1724
    Default Audio Device
null
    Discard all samples (playback) or generate zero samples (capture)

lspci |grep audio
05:04.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)

lsmod |grep snd
snd_ice1724            90812  1
snd_ice17xx_ak4xxx      5120  1 snd_ice1724
snd_ak4xxx_adda         9728  2 snd_ice1724,snd_ice17xx_ak4xxx
snd_ak4114              9984  1 snd_ice1724
snd_mpu401_uart         8704  1 snd_ice1724
snd_pt2258              5504  1 snd_ice1724
snd_i2c                 6400  2 snd_ice1724,snd_pt2258
snd_emu10k1           141856  0
firmware_class          9088  1 snd_emu10k1
snd_util_mem            5376  1 snd_emu10k1
snd_ac97_codec         99748  2 snd_ice1724,snd_emu10k1
snd_rawmidi            21504  2 snd_mpu401_uart,snd_emu10k1
snd_hwdep               8964  1 snd_emu10k1
snd_seq_oss            31872  0
snd_seq_midi_event      8192  1 snd_seq_oss
snd_seq                49968  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          8332  4 snd_emu10k1,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            40192  0
snd_pcm                69636  5 snd_ice1724,snd_ak4114,snd_emu10k1,snd_ac97_codec,snd_pcm_oss
snd_timer              21384  3 snd_emu10k1,snd_seq,snd_pcm
snd_page_alloc          9608  2 snd_emu10k1,snd_pcm
snd_mixer_oss          16512  1 snd_pcm_oss
snd                    50724  19 snd_ice1724,snd_ak4xxx_adda,snd_ak4114,snd_mpu401_uart,snd_pt2258,snd_i2c,snd_emu10k1,snd_
c97_codec,snd_rawmidi,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd
timer,snd_mixer_oss
soundcore               8032  1 snd
ac97_bus                3584  1 snd_ac97_codec

audacious /path/to/file.flac (this happens with both flac, ogg, mp3 and wav files)
** (audacious:7196): WARNING **: alsa_setup(): Sample format not available for playback: Invalid argument

mplayer -ao alsa /path/to/file.mkv
*snip*
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO_ALSA] alsa-lib: pcm_hw.c:1132:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] Playback open error: Device or resource busy

Would really appreciate a little help here:)

Last edited by clvn (2008-08-31 12:01:58)

Offline

#2 2008-08-31 14:22:39

clvn
Member
From: Norway
Registered: 2008-08-31
Posts: 20
Website

Re: ALSA+SPDIF: Only sound in Totem. (Audacious, VLC, MPD+ = silent)

A little update:

With the gstreamer-properties (i believe Totem uses it?), i found these settings:
Default output:
Plugin: Custom
Device: None (this box is disabled)
Pipeline: halaudiosink udi=/org/freedesktop/Hal/devices/pci_1412_1724_alsa_playback_1

How does that pipeline work?

Last edited by clvn (2008-08-31 14:55:19)

Offline

#3 2008-12-08 20:30:03

clvn
Member
From: Norway
Registered: 2008-08-31
Posts: 20
Website

Re: ALSA+SPDIF: Only sound in Totem. (Audacious, VLC, MPD+ = silent)

Okay, here is my current asound.conf (if anyone else will ever be searching for a solution to this "problem"..)

pcm.!default {
    type plug
    slave.pcm {
        type dmix
        ipc_key 1478
        slave {
            pcm "hw:0,1"
            format S32_LE
            period_time 0 
            period_size 1024
            buffer_size 8192
        }
    }
}

Pasted it together from other config files for the Envy24HT-S. It works fine though, except the volum control slider in gnome.

Offline

Board footer

Powered by FluxBB