Re: Beginner - Problems with CA0106: capture from line-in, and playing audio CDs

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

 



Aarrgh! Got it working (finally). Turns out that the gnome volume 
control has been lying to me about the capture settings of the ADC 
switch (used to work in fc3). On checking with alsamixer it wasn't set! 
After all these years I should know better than to trust a gui ;-)

So, two different problems in the end - but thanks anyhow.

cheers
guy

Anna Klein wrote:
> Guy,
>
> I was able to get recording to work by changing the sampling rate.  I
> had originally used 44100, but I changed it to 48000, and I used
> plughw:0,0 and that seemed to get things working for me. 
>
> After that started working, I was able to change the sampling rate to
> any of the supported rates and it worked.   Go figure!  ;-)
>
> Good luck,
> Anna
>
> -----Original Message-----
> From: Guy Hindell [mailto:guy.hindell@xxxxxxxxxx] 
> Sent: Monday, January 29, 2007 5:28 AM
> To: Anna Klein; alsa-user@xxxxxxxxxxxxxxxxxxxxx
> Subject:  Beginner - Problems with CA0106: capture from
> line-in, and playing audio CDs
>
> Hi all
>
> Was there any answer to this post? I have a similar set of problems
> having upgraded from Fedora Core 3 to Core 6 (alsa v1.0.13) with a
> Turtle Beach Santa Cruz card - sound plays but capture no longer works
> (haven't tried playing an audio CD, and I don't have access to the
> machine right now to give it a try). As a simple test, running 'arecord
> -d 5 > foo.wav' writes only a header, stops, and doesn't terminate after
> 5 seconds (had to interrupt it). I've tried going back to my Core 3
> install (it's on a different partition) and checking the mixer settings
> - as far as I can tell everything is the same. Can anyone offer a clue?
>
> cheers
> guy
>
> ----
>
> Hi,
>
> I just installed a SB Live! 24-bit card (SB0410) into a Dell Server 1960
> running Redhat Enterprise Linux ES, with kernel 2.6.9.  I also upgraded
> ALSA from 1.0.6 to 1.0.13 by compiling the sources for the drivers,
> libraries and utilities.
>
> Here are some of the things that I *can* do:
> - I am able to hear the test sound from the Sound Detection tool.  
> - I can successfully play (and hear) a wav file using aplay.
> - I can use alsamixer to control volume and select line-in for capture.
> - I can hear white noise when I run speaker-test.
>
> Here are some of the things that I *cannot* do:
> - I can't capture anything from the line-in port.
> - I can't hear anything when I insert an audio CD.
>
> I'd like to capture from the line-in port but I hear nothing when I play
> it back.  If I dump the contents of the buffer after calling
> snd_pcm_readi, there's nothing but NULLs.  I also tried using arecord,
> sending the output to a file.  Using hexdump to examine the file, except
> for the first 48 bytes (or so) of data, the rest of the file contained
> NULLs.  The first 48 bytes appear to be some kind of header info, since
> I see that those bytes are always pretty similar after each attempt to
> record.
>
> When I insert an audio CD, the gnome-cd player automatically starts up
> and says it's playing the CD (it shows the correct track info), but I
> hear nothing.  This was the command that the system used to bring up the
> CD player:
>
>         > ps -ef | grep gnome-cd
>         root     14274     1  0 11:56 ?        00:00:01 gnome-cd
> --unique --play --device /dev/hde
>         root     14741     1  2 12:34 ?        00:00:00 gnome-cd
> --unique --play --device /dev/hde
>
> I am using the plughw:0,0 device.  I tried to open the "default" device
> in my test capture/playback program, but that gave me the following
> error when I attempted the snd_pcm_open:
>
>         ALSA lib pcm_direct.c:1587:(snd_pcm_direct_parse_open_conf) The
> field ipc_gid must be a valid group (create group audio)
>         cannot open audio device default (Invalid argument)
>
> I am doing all work logged in as root.  
>
> Can somebody please help me figure out what's wrong?
>
> Thanks,
> Anna Klein
>
>
> Here's some info that I hope will be helpful in diagnosing the problem:
>
>   
>> cat /proc/asound/version
>>     
> Advanced Linux Sound Architecture Driver Version 1.0.13.
> Compiled on Jan 16 2007 for kernel 2.6.9-42.0.3.ELsmp (SMP).
>
>
>   
>> cat /proc/asound/devices
>>     
>   0: [ 0]   : control
>   1:        : sequencer
>   8: [ 0- 0]: raw midi
>  16: [ 0- 0]: digital audio playback
>  17: [ 0- 1]: digital audio playback
>  18: [ 0- 2]: digital audio playback
>  19: [ 0- 3]: digital audio playback
>  24: [ 0- 0]: digital audio capture
>  25: [ 0- 1]: digital audio capture
>  26: [ 0- 2]: digital audio capture
>  27: [ 0- 3]: digital audio capture
>  33:        : timer
>
>
>   
>> cat /proc/asound/pcm
>>     
> 00-03: ca0106 : CA0106 : playback 1 : capture 1
> 00-02: ca0106 : CA0106 : playback 1 : capture 1
> 00-01: ca0106 : CA0106 : playback 1 : capture 1
> 00-00: ca0106 : CA0106 : playback 1 : capture 1
>
>
>   
>> cat /proc/asound/cards
>>     
>  0 [CA0106         ]: CA0106 - CA0106
>                       Live! 7.1 24bit [SB0410] at 0xece0 irq 201
>
>
>   
>> lsmod | grep snd
>>     
> snd_seq_midi           12704  0
> snd_seq_midi_event     11136  1 snd_seq_midi
> snd_seq                56144  2 snd_seq_midi,snd_seq_midi_event
> snd_ca0106             34736  2
> snd_rawmidi            29096  2 snd_seq_midi,snd_ca0106
> snd_seq_device         12684  3 snd_seq_midi,snd_seq,snd_rawmidi
> snd_ac97_codec         92964  1 snd_ca0106
> snd_pcm_oss            48296  0
> snd_mixer_oss          22912  2 snd_pcm_oss
> snd_pcm                81156  3 snd_ca0106,snd_ac97_codec,snd_pcm_oss
> snd_timer              28420  2 snd_seq,snd_pcm
> snd                    63296  11
> snd_seq,snd_ca0106,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm_oss
> ,snd_mixer_oss,snd_pcm,snd_timer
> soundcore              13089  2 snd
> snd_ac97_bus            6400  1 snd_ac97_codec
> snd_page_alloc         14856  2 snd_ca0106,snd_pcm
>
>
>   
>> amixer
>>     
> Simple mixer control 'Line in',0
>   Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
>   Capture exclusive group: 0
>   Capture channels: Front Left - Front Right
>   Limits: Capture 0 - 255
>   Front Left: Capture 171 [67%] [-18.00dB] [on]
>   Front Right: Capture 171 [67%] [-18.00dB] [on] Simple mixer control
> 'Mic',0
>   Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
>   Capture exclusive group: 0
>   Capture channels: Front Left - Front Right
>   Limits: Capture 0 - 255
>   Front Left: Capture 0 [0%] [-99999.99dB] [off]
>   Front Right: Capture 0 [0%] [-99999.99dB] [off] Simple mixer control
> 'Phone',0
>   Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
>   Capture exclusive group: 0
>   Capture channels: Front Left - Front Right
>   Limits: Capture 0 - 255
>   Front Left: Capture 0 [0%] [-99999.99dB] [off]
>   Front Right: Capture 0 [0%] [-99999.99dB] [off] Simple mixer control
> 'IEC958',0
>   Capabilities: pswitch pswitch-joined
>   Playback channels: Mono
>   Mono: Playback [off]
> Simple mixer control 'IEC958 Center/LFE',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 235 [92%] [7.00dB]
>   Front Right: Playback 235 [92%] [7.00dB] Simple mixer control 'IEC958
> Front',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 232 [91%] [6.25dB]
>   Front Right: Playback 232 [91%] [6.25dB] Simple mixer control 'IEC958
> Rear',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 243 [95%] [9.00dB]
>   Front Right: Playback 243 [95%] [9.00dB] Simple mixer control 'IEC958
> Unknown',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 247 [97%] [10.00dB]
>   Front Right: Playback 247 [97%] [10.00dB] Simple mixer control 'Aux',0
>   Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
>   Capture exclusive group: 0
>   Capture channels: Front Left - Front Right
>   Limits: Capture 0 - 255
>   Front Left: Capture 179 [70%] [-14.00dB] [off]
>   Front Right: Capture 179 [70%] [-14.00dB] [off] Simple mixer control
> 'Analog Center/LFE',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 232 [91%] [6.25dB]
>   Front Right: Playback 232 [91%] [6.25dB] Simple mixer control 'Analog
> Front',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 230 [90%] [5.75dB]
>   Front Right: Playback 230 [90%] [5.75dB] Simple mixer control 'Analog
> Rear',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 235 [92%] [7.00dB]
>   Front Right: Playback 235 [92%] [7.00dB] Simple mixer control 'Analog
> Side',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 232 [91%] [6.25dB]
>   Front Right: Playback 232 [91%] [6.25dB] Simple mixer control 'CAPTURE
> feedback',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 255
>   Mono:
>   Front Left: Playback 207 [81%] [0.00dB]
>   Front Right: Playback 207 [81%] [0.00dB] Simple mixer control 'Digital
> Capture Source',0
>   Capabilities: enum
>   Items: 'IEC958 out' 'i2s mixer out' 'IEC958 in' 'i2s in' 'AC97 in'
> 'SRC out'
>   Item0: 'IEC958 out'
> Simple mixer control 'Shared Mic/Line in',0
>   Capabilities: enum
>   Items: 'Line in' 'Mic in'
>   Item0: 'Line in'
>
>
>   
>> arecord -L
>>     
> PCM list:
> hw {
>         @args.0 CARD
>         @args.1 DEV
>         @args.2 SUBDEV
>         @args.CARD {
>                 type string
>                 default {
>                         @func getenv
>                         vars {
>                                 0 ALSA_PCM_CARD
>                                 1 ALSA_CARD
>                         }
>                         default {
>                                 @func refer
>                                 name 'defaults.pcm.card'
>                         }
>                 }
>         }
>         @args.DEV {
>                 type integer
>                 default {
>                         @func igetenv
>                         vars {
>                                 0 ALSA_PCM_DEVICE
>                         }
>                         default {
>                                 @func refer
>                                 name 'defaults.pcm.device'
>                         }
>                 }
>         }
>         @args.SUBDEV {
>                 type integer
>                 default {
>                         @func refer
>                         name 'defaults.pcm.subdevice'
>                 }
>         }
>         type hw
>         card $CARD
>         device $DEV
>         subdevice $SUBDEV
> }
> plughw {
>         @args.0 CARD
>         @args.1 DEV
>         @args.2 SUBDEV
>         @args.CARD {
>                 type string
>                 default {
>                         @func getenv
>                         vars {
>                                 0 ALSA_PCM_CARD
>                                 1 ALSA_CARD
>                         }
>                         default {
>                                 @func refer
>                                 name 'defaults.pcm.card'
>                         }
>                 }
>         }
>         @args.DEV {
>                 type integer
>                 default {
>                         @func igetenv
>                         vars {
>                                 0 ALSA_PCM_DEVICE
>                         }
>                         default {
>                                 @func refer
>                                 name 'defaults.pcm.device'
>                         }
>                 }
>         }
>         @args.SUBDEV {
>                 type integer
>                 default {
>                         @func refer
>                         name 'defaults.pcm.subdevice'
>                 }
>         }
>         type plug
>         slave.pcm {
>                 type hw
>                 card $CARD
>                 device $DEV
>                 subdevice $SUBDEV
>         }
> }
> plug {
>         @args.0 SLAVE
>         @args.SLAVE {
>                 type string
>         }
>         type plug
>         slave.pcm $SLAVE
> }
> shm {
>         @args.0 SOCKET
>         @args.1 PCM
>         @args.SOCKET {
>                 type string
>         }
>         @args.PCM {
>                 type string
>         }
>         type shm
>         server $SOCKET
>         pcm $PCM
> }
> tee {
>         @args.0 SLAVE
>         @args.1 FILE
>         @args.2 FORMAT
>         @args.SLAVE {
>                 type string
>         }
>         @args.FILE {
>                 type string
>         }
>         @args.FORMAT {
>                 type string
>                 default raw
>         }
>         type file
>         slave.pcm $SLAVE
>         file $FILE
>         format $FORMAT
> }
> file {
>         @args.0 FILE
>         @args.1 FORMAT
>         @args.FILE {
>                 type string
>         }
>         @args.FORMAT {
>                 type string
>                 default raw
>         }
>         type file
>         slave.pcm null
>         file $FILE
>         format $FORMAT
> }
> null {
>         type null
> }
> cards 'cards.pcm'
> front 'cards.pcm.front'
> rear 'cards.pcm.rear'
> center_lfe 'cards.pcm.center_lfe'
> side 'cards.pcm.side'
> surround40 'cards.pcm.surround40'
> surround41 'cards.pcm.surround41'
> surround50 'cards.pcm.surround50'
> surround51 'cards.pcm.surround51'
> surround71 'cards.pcm.surround71'
> iec958 'cards.pcm.iec958'
> spdif 'cards.pcm.iec958'
> modem 'cards.pcm.modem'
> phoneline 'cards.pcm.phoneline'
> default 'cards.pcm.default'
> dmix 'cards.pcm.dmix'
> dsnoop 'cards.pcm.dsnoop'
> ca0106 {
>         type hw
>         card 0
> }
>
>
>   
>> arecord -l
>>     
> **** List of CAPTURE Hardware Devices **** card 0: CA0106 [CA0106],
> device 0: ca0106 [CA0106]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: CA0106 [CA0106], device 1: ca0106 [CA0106]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: CA0106 [CA0106], device 2: ca0106 [CA0106]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: CA0106 [CA0106], device 3: ca0106 [CA0106]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
>
>
>
>
>
>
>
>   



-------------------------------------------------------------------------
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