slave problem with audioscience sound card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have an AudioScience card running on a Sun 4100 with Linux Ubuntu 6.10. 
I had to re-compile kernel and alsa with a gcc 3.X as it was not working with gcc4. Now everything is OK.

The card can play/record sound with the aplay/arecord tool like : 

# arecord -fdat -Dhw:0,0,0  -vvv /tmp/test1
Recording WAVE '/tmp/test1' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Hardware PCM card 0 'AudioScience ASI6416' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 85333
  tick_time    : 10000
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 4096
  xfer_align   : 4096
  start_threshold  : 1
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
Max peak (8192 samples): 0x00004e86 #############        61%
Max peak (8192 samples): 0x00005547 ##############       66%
Max peak (8192 samples): 0x00004ab8 ############         58%
Max peak (8192 samples): 0x00004e27 #############        61%
Max peak (8192 samples): 0x000057b9 ##############       68%

I need to have slave devices to use with darkice, so I changed the /etc/asound.conf file to :

pcm.channel0plug {
        type plug
        slave { pcm "channel1" }
}

pcm.channel1 {
        type dsnoop
        ipc_key 147852
        ipc_key_add_uid yes

        slave {
                pcm "hw:0,0,0"
                period_time 0
                period_size 1024
                buffer_size 5461
                format S16_LE
                rate 48000
        }
}


But when I try to record on channel "channel0plug" : 

# arecord -fdat -Dchannel0plug  -vvv /tmp/test1
ALSA lib pcm_direct.c:874:(snd_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dsnoop.c:569:(snd_pcm_dsnoop_open) unable to initialize slave
arecord: main:550: audio open error: Invalid argument

Is this a limitation of the snd-asihpi driver ? 
is it from alsa ?
is it from kernel ?
is it a missconfiguration in asound.conf ?

What can I do to bypass this issue ? 

alsa version is 1.0.13
asi-hpi driver is 3.05.02  
kernel is  2.6.17.13-ubuntu1-custom 

Thanks

sebastien THOMAS - sebastien.thomas@xxxxxx
tel : 01 40 70 40 91


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

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux