[alsa-devel] Bad file descriptor : -EBADFD

Irfan Shaikh irfan.shaikh at sasken.com
Wed Mar 23 12:40:20 CET 2011


Thanks for your comment !

I have used following check and it is success.
Even if the below API is succes still i get -EBADFD.....How can i resolve the issue ?

 if (snd_pcm_hw_params(alsaParams->playback_handle,                                  \
                          alsaParams->hwparams_playback) < 0)
    {
        snd_pcm_close(alsaParams->playback_handle);
        alsaParams->playback_handle = NULL;
        free(alsaParams);
        alsaParams = NULL;
        RSE_TRACE_ERROR (IPOD_AUDIO_THREAD_DEBUG,("Error setting HW params."));
        return NULL;
    }

________________________________________
From: Clemens Ladisch [clemens at ladisch.de]
Sent: Wednesday, March 23, 2011 5:00 PM
To: Irfan Shaikh
Cc: alsa-devel at alsa-project.org
Subject: Re: [alsa-devel] Bad file descriptor : -EBADFD

Irfan Shaikh wrote:
> -EBADFD

This is used by ALSA to tell you that the device is not in the correct
state for the function.  In this case, I'd guess that snd_pcm_hw_params
was not called or did not succeed.

> SASKEN BUSINESS DISCLAIMER: ...

*** DISCLAIMER ***
This e-mail contains public information intended for any subscriber of
this mailing list and for anybody else who bothers to read it; it will
be copied, disclosed and distributed to the public.  If you think you
are not the intended recipient, please commit suicide immediately.
These terms apply also to any e-mails quoted in, referenced from, or
answering this e-mail, and supersede any disclaimers in those e-mails.
Additionally, disclaimers in those e-mails will incur legal processing
fees of $42 per line; you have agreed to this by reading this disclaimer.


Regards,
Clemens


More information about the Alsa-devel mailing list