[alsa-devel] Channel configuration

Irfan Shaikh irfan.shaikh at sasken.com
Mon Dec 20 17:12:40 CET 2010

Not able to configure my playback device to MONO . But my playback device supports MONO. What is wrong in the below configuration
Error : Channels not available for PLAYBACK device

retVal = snd_pcm_hw_params_set_channels( pcm, hwparams, 1);
  if (retVal < 0){
    printf("Channels not available : %s\n", name);
    return retVal;

PLEASE Let me know what mistake am i doing.

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

More information about the Alsa-devel mailing list