[Alsa-user] midi problem with cmi8330

2007-03-28 Thread Denis Prost
Hi all,

I'm trying to have midi working on my old computer. The chipset is a cmi8330 
(isa pnp card). I can play wav or mp3 files, but not midi ones. When I try to 
play a midi file through GNU solfege, it complains that /dev/sequencer does 
not exist. I googled a lot to search for a solution, butwith  no success.

Below are all relevant informations, I think.
Sorry for this long post, but I'm stuck and hope someone can help

Thanks in advance,

Denis

--
dmesg|grep -i pnp
-
pnp: PnP ACPI: disabled
isapnp: Scanning for PnP cards...
pnp: CMI8330 quirk - fixing interrupts and dma
isapnp: Card 'CMI8330 Audio Adapter'
isapnp: 1 Plug & Play card detected total
PNP: No PS/2 controller found. Probing ports directly.
pnp: Device 00:01.00 activated.
pnp: Device 00:01.03 activated.



/etc/modprobe.d/sound : 

# 1) there might be some useless things inside it, since I don't understand 
everything about it !
# 2) cmi8330 options come from the sound card information I got under Windows

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cmi8330

# module options should go here
options snd-cmi8330 wssdma=00 wssirq=7 wssport=0x530 sbport=0x220 sbirq=5 
sbdma8=01 sbdma16=05 isapnp=0

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# 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

---
lsmod output :

Module  Size  Used by
rtc 6832  0 
snd_seq_oss19200  0 
snd_seq_midi_event  3456  1 snd_seq_oss
snd_seq28144  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device  3724  2 snd_seq_oss,snd_seq
snd_pcm_oss26176  0 
snd_mixer_oss   9984  3 snd_pcm_oss
snd_cmi8330 6792  2 
snd_ad1848_lib  8064  1 snd_cmi8330
snd_sb16_dsp4992  1 snd_cmi8330
snd_pcm38028  4 
snd_pcm_oss,snd_cmi8330,snd_ad1848_lib,snd_sb16_dsp
snd_timer  11784  2 snd_seq,snd_pcm
snd_page_alloc  4616  1 snd_pcm
snd_sb_common   7808  2 snd_cmi8330,snd_sb16_dsp
snd25316  11 
snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_cmi8330,snd_ad1848_lib,snd_sb16_dsp,snd_pcm,snd_timer,snd_sb_common
soundcore   3552  3 snd
.


/boot/config-2.6.20 relevant part
-
#
# Sound
#
CONFIG_SOUND=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
CONFIG_SND_OPL3_LIB=m
CONFIG_SND_VX_LIB=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_DUMMY=m
CONFIG_SND_VIRMIDI=m
CONFIG_SND_MTPAV=m
# CONFIG_SND_MTS64 is not set
CONFIG_SND_SERIAL_U16550=m
CONFIG_SND_MPU401=m

#
# PCI devices
#
CONFIG_SND_AD1889=m
CONFIG_SND_ALS300=m
CONFIG_SND_ALS4000=m
CONFIG_SND_ALI5451=m
CONFIG_SND_ATIIXP=m
CONFIG_SND_ATIIXP_MODEM=m
CONFIG_SND_AU8810=m
CONFIG_SND_AU8820=m
CONFIG_SND_AU8830=m
CONFIG_SND_AZT3328=m
CONFIG_SND_BT87X=m
# CONFIG_SND_BT87X_OVERCLOCK is not set
CONFIG_SND_CA0106=m
CONFIG_SND_CMIPCI=m
CONFIG_SND_CS4281=m
CONFIG_SND_CS46XX=m
CONFIG_SND_CS46XX_NEW_DSP=y
CONFIG_SND_CS5535AUDIO=m
CONFIG_SND_DARLA20=m
CONFIG_SND_GINA20=m
CONFIG_SND_LAYLA20=m
CONFIG_SND_DARLA24=m
CONFIG_SND_GINA24=m
CONFIG_SND_LAYLA24=m
CONFIG_SND_MONA=m
CONFIG_SND_MIA=m
CONFIG_SND_ECHO3G=m
CONFIG_SND_INDIGO=m
CONFIG_SND_INDIGOIO=m
CONFIG_SND_INDIGODJ=m
CONFIG_SND_EMU10K1=m
CONFIG_SND_EMU10K1X=m
CONFIG_SND_ENS1370=m
CONFIG_SND_ENS1371=m
CONFIG_SND_ES1938=m
CONFIG_SND_ES1968=m
CONFIG_SND_FM801=m
CONFIG_SND_FM801_TEA575X_BOOL=y
CONFIG_SND_FM801_TEA575X=m
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDSP=m
CONFIG_SND_HDSPM=m
CONFIG_SND_ICE1712=m
CONFIG_SND_ICE1724=m
CONFIG_SND_INTEL8X0=m
CONFIG_SND_INTEL8X0M=m
CONFIG_SND_KORG1212=m
CONFIG_SND_MAESTRO3=m
CONFIG_SND_MIXART=m
CONFIG_SND_NM256=m
CONFIG_SND_PCXHR=m
CONFIG_SND_RIPTIDE=m
CONFIG_SND_RME32=m
CONFIG_SND_RME96=m
CONFIG_SND_RME9652=m
CONFIG_SND_SONICVIBES=m
CONFIG_SND_TRIDENT=m
CONFIG_SND_VIA82XX=m
CONFIG_SND_VIA82XX_MODEM=m
CONFIG_SND_VX222=m
CONFIG_SND_YMFPCI=m
# CONFIG_SND_AC97_POWER_SAVE is not set

#
# USB devices
#
CONFIG_SND_USB_AUDIO=m
CONFIG_SND_USB_USX2Y=m

#
# PCMCIA devices
#
# CONFIG_S

Re: [Alsa-user] midi problem with cmi8330

2007-03-28 Thread Rene Herman
On 03/28/2007 10:26 AM, Denis Prost wrote:

> I'm trying to have midi working on my old computer. The chipset is a
> cmi8330 (isa pnp card). I can play wav or mp3 files, but not midi
> ones. When I try to play a midi file through GNU solfege, it
> complains that /dev/sequencer does not exist. I googled a lot to
> search for a solution, butwith  no success.

Firstly, /dev/sequencer is an OSS device, not native ALSA. "aplaymidi" 
(from the alsa-utils package, you probably have it installed) can be 
used as a native ALSA MIDI player,

Secondly and most importantly, CMI8330 does not support hardware MIDI.

You do likely have a 26-pin "waveblaster" header available on the card, 
on which you could plug a wavetable MIDI card after which you would have 
hardware MIDI support but the chip itself doesn't (nor does snd-cmi8330 
currently have the required MPU-401 support that would be needed to make 
that header work but that's probably easily fixed).

Nor does snd-cmi8330 supply access to the OPL3 emulation in the CMI8330 
chip that I suspect it does have, but don't regret that much; the sound 
produced by running MIDI through an OPL3 is quite horrible...

A MIDI file is just (heavily simplified) a series of "note on, note off" 
commands and you need something to turn these commands into sound. If 
you dont have the hardware to do so, you will have to use software. Try 
a software synthesizer, such as Timidity. I'm not an expert in setting 
it up, the manual will help...

Rene.

-
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-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] 14rc3 fails to compile on vanilla 2.6.20.3

2007-03-28 Thread Andrea Gozzi
Hi.

This morning I compiled a new kernel, 2.6.20.3, but when I tried to
build alsa 14rc3 it failed.
I also had troubles with the ati fglrx driver (missing declarations in
headers - solved) so it could maybe be related to the new 20.x kernels.
I attached logs for both the "configure" and "make".

Andrea
stariez:/usr/src/alsa/alsa-driver-1.0.14rc3# ./configure --with-debug=full 
--with-cards=hda-intel --with-oss=yes --with-sequencer=yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/src/alsa/alsa-driver-1.0.14rc3
checking cross compile...
checking for directory with kernel source... /lib/modules/2.6.20.3/source
checking for directory with kernel build... /lib/modules/2.6.20.3/build
checking for kernel linux/version.h... yes
checking for kernel linux/autoconf.h... yes
checking for kernel version... 2.6.20.3
checking for GCC version... Kernel compiler: gcc 4.1.2 20061115 (prerelease) 
(Debian 4.1.1-21) Used compiler: gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 
4.1.1-21)
checking for built-in ALSA... no
checking for existing ALSA module... yes
checking for Red Hat kernel... auto
checking for Red Hat kernel... no
checking for SUSE kernel... auto
checking for SUSE kernel... no
checking for CONFIG_EXPERIMENTAL... yes
checking for kernel linux/config.h... no
Creating ...
checking to modify of kernel linux/kmod.h... no
checking for kernel linux/utsrelease.h... yes
checking for kernel linux/compiler.h... yes
checking for kernel linux/pm.h... yes
checking for kernel linux/spinlock.h... yes
checking for kernel linux/irq.h... yes
checking for kernel linux/threads.h... yes
checking for kernel linux/rwsem.h... yes
checking for kernel linux/gameport.h... yes
checking for kernel media/v4l2-dev.h... yes
checking for kernel linux/devfs_fs_kernel.h... no
Creating a dummy ...
checking for kernel linux/highmem.h... yes
checking for kernel linux/workqueue.h... yes
checking for kernel linux/dma-mapping.h... yes
checking for kernel asm/hw_irq.h... yes
checking for kernel linux/device.h... yes
checking for kernel linux/platform_device.h... yes
checking for kernel linux/isa.h... yes
checking for kernel linux/jiffies.h... yes
checking for kernel linux/compat.h... yes
checking for kernel linux/log2.h... yes
checking for kernel linux/adb.h... yes
checking for kernel linux/cuda.h... yes
checking for kernel linux/pmu.h... yes
checking for kernel linux/moduleparam.h... yes
checking for kernel linux/syscalls.h... yes
checking for kernel linux/firmware.h... yes
checking for kernel linux/err.h... yes
checking for kernel linux/bitmap.h... yes
checking for kernel linux/mutex.h... yes
checking for kernel linux/latency.h... yes
checking for kernel asm/irq_regs.h... yes
checking for kernel module symbol versions... yes
checking for PCI support in kernel... yes
checking for I2C driver in kernel... yes
checking for I2C_POWERMAC in kernel... unknown
checking for firmware loader... module
checking for input subsystem in kernel... yes
checking for directory to store kernel modules... 
/lib/modules/2.6.20.3/kernel/sound
checking for verbose procfs... on
checking for verbose printk... on
checking for debug level... full
checking for ISA support in kernel... yes
checking for processor type... unknown
checking for ISA DMA API... yes
checking for SMP... yes
checking for Video device support in kernel... yes
checking for ISA PnP driver in kernel... yes
checking for PnP driver in kernel... yes
checking for Kernel ISA-PnP support... yes
checking for strlcpy... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for scnprintf... yes
checking for sscanf... yes
checking for vmalloc_to_page... no
checking for old kmod... no
checking for PDE... no
checking for pci_set_consistent_dma_mask... no
checking for pci_dev_present... no
checking for msleep... yes
checking for msleep_interrupt... yes
checking for msecs_to_jiffies... yes
checking for tty->count is the atomic type... no
checking for video_get_drvdata... no
checking for V4L1 layer... yes
checking for io_remap_pfn_range... no
checking for new io_remap_page_range... no
checking for kcalloc... no
checking for kstrdup... yes
checking for kzalloc... no
checking for create_workqueue with flags... no
checking for s

[Alsa-user] softvol limits 0-0

2007-03-28 Thread tyler walker

I'm running ALSA 1.0.4 on an embedded ARM machine running a broken down
version of Debian.
My sound device is a generic USB stick with one headphone jack and one mic
jack.
I'm only using it for sound playback.
The sound device has no hardware volume control (<=7% volume is no sound >7%
is full volume) so I'm attempting to add a softvol plug-in to control the
volume.
Here is my asound.conf

pcm.!default {
type plug
slave.pcm "softvol"
slave.channels 2
}

pcm.softvol {
type softvol
slave {
pcm "dmixer"
}
control {
name "Master"
card 0
}
}

pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 32768
rate 44100
}

bindings {
0 0
1 1
}
}

ctl.dmixer {
type hw
card 0
}

The sound card does not have a Master control, so I'm using softvol to make
one.
After I run a sound once, Master shows up, but when I use
amixer sget Master
I get
Simple mixer control 'Master',0
 Capabilities: volume
 Playback channels: Front Left - Front Right - Front Center - Rear Left -
Rear Right - Woofer - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
- ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
 Limits: 0 - 0
 Mono: 0 [0%]
 Front Left:
 Front Right:
 Front Center:
 Rear Left:
 Rear Right:
 Woofer:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:
 ?:

This seems to afford me no volume control.  Calls to
amixer set Master 100
or
amixer set Master 50%
all return the result above, and the sound plays at full volume (I'm using
aplay to play sounds).
I assume it has something to do with the limits being 0-0.
Any help is greatly appreciated.
Best,
Tyler
-
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-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] /dev/snd/mixer missing!

2007-03-28 Thread gisac59
I would thank you, Lee, for your interest. All magically went ok when I
reinstalled all packages, the newest, from repository FC6 of AT. 
Alsalib, alsalibdevel, alsakmdl,libasound, alsadriver and alsadriverdevel.

Probably my error was to accept to update not looking for the source from what
yum was downloading the files, creating so a conflict.

Still thanks - Gisac

P.S. excuse me for my poor english!


-
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-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Intel HDA (SigmaTel 9220D/9223A2)

2007-03-28 Thread Sebastian Schäfer
Hi everybody!

I am using an onboard Intel HD audio card, specifically a SigmaTel
9220D/9223A2 chip.

The card is being used in a 5.1 setup, where another card is attached to
it, which has some condensators, (small) amplifiers and relays on it,
which itself is attached to some Dolby Cinema sound processor. With a
Creative Labs Audigy 4 card this setup works perfectly fine.

Now, _sometimes_ the onboard card (or something else) seems to have some
hickups and wildly swaps the channels around, so that the sound for the
center speaker can be heard on left surround, left surround on front
left and front left on center. But unfortunately this only happens
sometimes, and after a reboot the problem is gone. I cannot really
reproduce this error, it just sometimes happens and sometimes not.

I already suspected the automatic jack sensing to be the source of this
problem, but after reading the source for the driver I think the linux
driver does not support this feature of the chip (on the other side I am
no expert at C...).

Is anyone able to help me please?

Best regards,
-- 
Sebastian Schäfer
ropa GmbH & Co. KG

Goethestraße 5
D-73525 Schwäbisch Gmünd

Tel: +49 (0) 71 71 - 10 41 6 - 0
Fax: +49 (0) 71 71 - 10 41 6 - 2118

Web: http://www.ropa.de

-
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-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] 14rc3 fails to compile on vanilla 2.6.20.3

2007-03-28 Thread Arthur Marsh
Andrea Gozzi wrote, On 28/03/07 23:20:
> Hi.
> 
> This morning I compiled a new kernel, 2.6.20.3, but when I tried to
> build alsa 14rc3 it failed.
> I also had troubles with the ati fglrx driver (missing declarations in
> headers - solved) so it could maybe be related to the new 20.x kernels.
> I attached logs for both the "configure" and "make".
> 
> Andrea

I had a similar problem with a Debian Experimental 2.6.20 snapshot 
against alsa-source 1.0.14-rc1:

CC [M]  /usr/src/modules/alsa-driver/acore/pcm.o
In file included from 
/usr/src/modules/alsa-driver/acore/../alsa-kernel/core/pcm.c:29,
  from /usr/src/modules/alsa-driver/acore/pcm.c:1:
/usr/src/modules/alsa-driver/include/sound/pcm.h: In function 
‘snd_pcm_mmap_data_open’:
/usr/src/modules/alsa-driver/include/sound/pcm.h:977: error: 
dereferencing pointer to incomplete type
/usr/src/modules/alsa-driver/include/sound/pcm.h: In function 
‘snd_pcm_mmap_data_close’:
/usr/src/modules/alsa-driver/include/sound/pcm.h:983: error: 
dereferencing pointer to incomplete type
make[7]: *** [/usr/src/modules/alsa-driver/acore/pcm.o] Error 1
make[6]: *** [/usr/src/modules/alsa-driver/acore] Error 2
make[5]: *** [_module_/usr/src/modules/alsa-driver] Error 2
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/usr/src/linux-source-2.6.20'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/usr/src/modules/alsa-driver'
make[2]: *** [build-stamp] Error 2
make[2]: Leaving directory `/usr/src/modules/alsa-driver'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/alsa-driver'
Module /usr/src/modules/alsa-driver failed.

Regards,

Arthur.


-
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-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Newbie: problem with terratec phase 26 USB

2007-03-28 Thread Gerd Schering
Hi,

I have terratec phase 26 USB which is supposed to work under linux.
I have the following problems:
When the card is in 24/48 mode 'alsamixer -c 1' displays just 1 PCM bar
(=channel?).
When put in 16/48 mode I get 4 bars all labelled PCM.

aplay -l tells:

 List of PLAYBACK Hardware Devices 
card 0: nForce2 [NVidia nForce2], device 0: Intel ICH [NVidia nForce2]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: nForce2 [NVidia nForce2], device 2: Intel ICH - IEC958 [NVidia
nForce2 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: USB1648 [PHASE 26 USB(16/48)], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


But when I try:

'aplay -D hw:1 KDE_Startup_new.wav' (I dont know if this command is correct)

aplay tells me:

Playing WAVE 'KDE_Startup_new.wav' : Signed 16 bit Little Endian, Rate
22050 Hz, Stereo
aplay: set_params:909: Channels count non available


Any Help will be appreciated.

Thanks, Gerd

-- 
--
-- Gerd Schering, Email: [EMAIL PROTECTED]  --
-- TU Berlin, Zentraleinrichtung Rechenzentrum  --
-- Sekr. E-N 50, Einsteinufer 17, 10587 Berlin  --
-- phone: +49 30 314 24383, fax: +49 30 314 21060   --
--



-
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-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user