RE: [linux-audio-dev] very limited formats

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: RE: [linux-audio-dev] very limited formats
From: C.L. Tien - ¥Ð©Ó (cltien_AT_cmedia.com.tw)
Date: Thu Jan 01 2004 - 03:19:38 EET


Ron,

S doesn't mean stereo, it means signed for 16-bit sample. The i810_audio support only signed 16-bit little-endian PCM. AFMT_MU_LAW is rarely supported by today's hardware.

ChenLi Tien

-----Original Message-----
From: Ron Shacham [mailto:rs2194_AT_columbia.edu]
Sent: 2003/12/31 [¬P´Á¤T] ¤U¤È 05:27
To: linux-audio-dev_AT_music.columbia.edu
Cc:
Subject: [linux-audio-dev] very limited formats
Hello, this is my first time posting.
I have been programming on my personal linux box (rh 8), and I've been
unable to set any audio formats on the sound device other than 16-bit
linear. For example, I try the following:

int format = AFMT_MU_LAW;
ioctl(audio_fd, SNDCTL_DSP_SETFMT, &format);

I set this right after opening the device.

Then, when I query for the format, it returns 16.
The following:
ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &mask);
shows zeroes for everything except for AFMT_S16_NE

I have integrated audio hardware (intel i810).
I might also mention that I cannot get mono to work, but only stereo.
Any ideas?

Regards,
Ron


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Jan 01 2004 - 03:32:43 EET