Title: RE: [Alsa-user] FW: Ice 1712 problems

Thanks to Stephane and Lee for helping out.  I was able to get both of their recommended solutions working (Stephane - OSS, Lee - JACK).  However being as stubborn as I am I was determined to getting it to work using only .asound.rc, so here it is for all that are interested.

#Start
pcm.44_share {
         type dsnoop
         ipc_key 5551212
         ipc_key_add_uid yes
         slave {
                 pcm "hw:0,0"
                 format S32_LE
                 channels 12
                 period_size 1024
                 buffer_size 4096
                 rate 44100
                 periods 0
                 period_time 0
         }
         bindings {
                 0 0
                 1 1
                 2 2
                 3 3
         }
}

pcm.in12 {
         type plug
         slave {
                 pcm "44_share"
                 channels 4
         }
         ttable.0.0 1
         ttable.1.1 1
}

pcm.in34 {
         type plug
         slave {
                 pcm "44_share"
                 channels 4
         }
         ttable.0.2 1
         ttable.1.3 1
}

#end



-Bobby

Senior Systems Engineer
Colorado Public Radio
Englewood, CO 80112
303 871 9191 x252




-----Original Message-----
From: Lee Revell [mailto:[EMAIL PROTECTED]]
Sent: Mon 3/20/2006 5:29 PM
To: Bobby Acha
Cc: alsa-user@lists.sourceforge.net
Subject: RE: [Alsa-user] FW: Ice 1712 problems

On Mon, 2006-03-20 at 17:22 -0700, Bobby Acha wrote:
> I am able to play and record using plughw:0,0.  My main issue is that
> I am only able to record the first 2 channels with this solution.  I
> need to record all 4 input channels and I have no idea how to do this.
> I figured I would play with the .asoundrc file and that has led to
> nothing but more confusion for me.  How do I specify recording from
> channels 3&4 using the plughw solution?
>
I would just use JACK, it's MUCH easier than all this .asoundrc stuff.

> Thanks
>
> -Bobby
>
> Senior Systems Engineer
> Colorado Public Radio
> Englewood, CO 80112
> 303 871 9191 x252
>
>
>
>
> -----Original Message-----
> From: Lee Revell [mailto:[EMAIL PROTECTED]]
> Sent: Mon 3/20/2006 4:49 PM
> To: Bobby Acha
> Cc: alsa-user@lists.sourceforge.net
> Subject: Re: [Alsa-user] FW: Ice 1712 problems
>
> On Mon, 2006-03-20 at 16:04 -0700, Bobby Acha wrote:
> >
> > Hi all,
> >
> >
> >
> >   Here is my problem.  I have set up a Delta 44 (ice1712) soundcard.
> > It is functioning, but I am having great difficulty in setting up
> the
> > ability to record or play from multiple pairs of channels at the
> same
> > time.  I also am having a hard time playing directly to the hw:0,0
> > device.  I am however able to use plughw:0,0.
> >
> >
> >
> > [EMAIL PROTECTED] ~]# aplay test.wav
> >
> > Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100
> Hz,
> > Stereo Aborted by signal Interrupt...
> >
> >
> >
> >
> >
> > [EMAIL PROTECTED] ~]# aplay -D hw:0,0 test.wav Playing WAVE
> > 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
> >
> > aplay: set_params:896: Sample format non available
> >
> This won't work as you are trying to play an S16_LE .wav file to the
> hw
> device which only supports S32_LE.  You must use plughw to play
> normal .wav files on this device.
> >
> >
> > [EMAIL PROTECTED] ~]# arecord -D ch12 test.wav ALSA lib
> > pcm_dshare.c:613:(snd_pcm_dshare_open) The dshare plugin supports
> only
> > playback stream
> >
> > arecord: main:544: audio open error: Invalid argument
> >
> I think you want dsnoop not dshare here.
> >
> >  [EMAIL PROTECTED] ~]# arecord -D hw:0,0 test.wav Recording WAVE
> > 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
> >
> > arecord: set_params:896: Sample format non available
> >
> See above - you are trying to capture 8 bit audio from the hw: device
> which only supports S32_LE.  Plughw should work.
>
> > Following is my asound.conf file.  I have checked sing aplay and
> > arecord with the -l flag, and the conf file is being used.
> >
> >
> >
> >
> >
> > pcm_slave.delta {
> >
> >   pcm "hw:0,0"
> >
> >   channels 4
> >
> >   rate 44100
> >
> >   buffer_size 4096
> >
> >   period_size 2048
> >
> >   periods 0
> >
> >   period_time 0
> >
> > }
> >
> >
> >
> > pcm.ch12 {
> >
> >   type dshare
> >
> >   ipc_key 47110815
> >
> >   slave delta
> >
> >   bindings.0 0
> >
> >   bindings.1 1
> >
> > }
> >
> >
> >
> > pcm.ch34 {
> >
> >   type dshare
> >
> >   ipc_key 47110815
> >
> >   slave delta
> >
> >   bindings.0 2
> >
> >   bindings.1 3
> >
> > }
> >
> >
> >
> >
> >
> > I have also tried using the pcm as "plughw:0,0".
> >
> >
> >
> >
> >
> > [EMAIL PROTECTED] ~]# aplay -D ch12 test.wav ALSA lib
> > pcm_dshare.c:687:(snd_pcm_dshare_open) dshare plugin can be only
> > connected to hw plugin Segmentation fault
> >
> >
> >
> > Any help would be greatly appreciated.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Bobby
> >
> >
> >
> > Senior Systems Engineer
> >
> > Colorado Public Radio
> >
> > Englewood, CO 80012
> >
> > 303 871 9191 x 252
> >
> >
> >
> >
>
>
>
>




Reply via email to