All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to open CAPTURE device
@ 2010-11-30  7:03 Irfan Shaikh
  2010-11-30  9:56 ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: Irfan Shaikh @ 2010-11-30  7:03 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org

Hello,

         I have connected ipod to my hardware (using USB) and i want to read the audio pcm data from ipod. I am running following section of code to detect connection of ipod. But i am not finding any capture device connected.
        Am i giving some wrong name of capture device ? If wrong how can i find correct name of Audio Capture device.

/***********************************************************************************************************************************************/
const char *capture_device="plughw:1,0";

while((retVal = snd_pcm_open( &pcm_capture, (const char *)capture_device, SND_PCM_STREAM_CAPTURE, 1))!=0)
{
  if (retVal != 0){
    printf("Opening Capture device FAILED\n");
    printf("Still waiting for Capture device to be connected\n");
    usleep(5000);
  }
}
/***********************************************************************************************************************************************/
OUTPUT :

Opening Capture device FAILED
Still waiting for Capture device to be connected
ALSA lib pcm_hw.c:1433:(_snd_pcm_hw_open) Invalid value for card
Opening Capture device FAILED
Still waiting for Capture device to be connected
ALSA lib pcm_hw.c:1433:(_snd_pcm_hw_open) Invalid value for card
Opening Capture device FAILED
Still waiting for Capture device to be connected
ALSA lib pcm_hw.c:1433:(_snd_pcm_hw_open) Invalid value for card
Opening Capture device FAILED
Still waiting for Capture device to be connected
ALSA lib pcm_hw.c:1433:(_snd_pcm_hw_open) Invalid value for card
Opening Capture device FAILED
Still waiting for Capture device to be connected
.
.
.
.
.
.
.
/*Continues*/
.
.
.
.
.
.
.
.
.
.
.
.
.

Regards


SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any 
 virus transmitted by this email.
Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-01  5:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-30  7:03 Unable to open CAPTURE device Irfan Shaikh
2010-11-30  9:56 ` Clemens Ladisch
2010-11-30 10:05   ` Irfan Shaikh
2010-11-30 15:35     ` Clemens Ladisch
2010-12-01  5:33       ` Irfan Shaikh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.