Skip to contentSkip to conversation

The alsa 1.0.14rc1 Can't work in my PC

DISCUSSION thomas 1 participant 1 message Dec 26, 2006

lore
Share & tools
lore

thomas

author
#0 lore raw

hi,all,
i have compiled the alsa driver 1.0.14 with the linux 2.6.19 kernel.the compile working is fine,i meet some trouble in the alsa config. i have run the alsaconf. all things is ok,
but can't play music. it's sames that the alsa is difficult to using.
who can help me?
thanks

[root@localhost asound]# cat cards
0 [I82801DBICH4 ]: ICH4 - Intel 82801DB-ICH4

                      Intel 82801DB-ICH4 with ALC203 at 0xd0100c00, irq 11
 1 [Modem          ]: ICH-MODEM - Intel 82801DB-ICH4 Modem
                      Intel 82801DB-ICH4 Modem at 0x1c00, irq 11

/etc/asound.conf
# Set default sound card
pcm.snd-card-0 {
type hw
card 0
device 0
}

pcm.snd_card1 {
type hw
card 1
device 0
}

# Allow mixing of multiple output streams to this device

pcm.output {
     type dmix
     ipc_key 1029
     ipc_perm 0777 # Sound for everybody in your group!
     slave.pcm "snd-card-0"

     slave {
          # This stuff provides some fixes for latency issues.
          # buffer_size should be set for your audio chipset.
          period_time 0
          period_size 1024
          buffer_size 8192
          # buffer_size 4096
          # buffer_size 2048
     }

     bindings {
          0 0
          1 1
     }
}
pcm.input {
     type dsnoop
     ipc_key 2048
     slave.pcm "snd_card0"

## Possible artsd full duplex fix:
# slave {

#          period_time 0
#          period_size 1024
#          buffer_size 8192

# }

     bindings {
          0 0
          1 1
     }
}
# Allow reading from the default device.
# Also known as record or capture.
pcm.input1 {
     type dsnoop
     ipc_key 2049
     slave.pcm "snd_card1"

## Possible artsd full duplex fix:

     slave {
          period_time 0
          period_size 1024
          buffer_size 8192
          # buffer_size 4096
          # buffer_size 2048
     }

     bindings {
          0 0
          1 1
     }
}
# This is what we want as our default device
# a fully duplex (read/write) audio device.
pcm.duplex {
     type asym
     playback.pcm "output"
     capture.pcm "input"
#     capture.pcm "input1"
}

###################
# CONVERSION PLUG #
###################
# Setting the default pcm device allows the conversion

# rate to be selected on the fly.
# duplex mode allows any alsa enabled app to read/write
# to the dmix plug (Fixes a problem with wine).
pcm.!default {
     type plug
     slave.pcm "duplex"
}
########
# AOSS #
########
# OSS dsp0 device (OSS needs only output support, duplex will break some stuff)
pcm.dsp0 {
     type plug
     slave.pcm "output"
}

#
pcm.dsp1 {
type plug
slave.pcm "output1"
}
/////////////////////////////////////////////

aplay
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
aplay: main:545: audio open error: No such device

[root@localhost ~]# aplay -l
aplay: device_list:204: no soundcards found...

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel