* Sound on OMAP1510 Innovator
@ 2006-03-08 6:50 Prakash Narayanan M
2006-03-09 17:08 ` lamikr
0 siblings, 1 reply; 2+ messages in thread
From: Prakash Narayanan M @ 2006-03-08 6:50 UTC (permalink / raw)
To: linux-omap-open-source
Hai all
I am trying to use the Sound device on Innovator OMAP1510.
I am testing with a c code to acquire for sometime (3s) through the mic
and replay it through the speaker.
What the program does?
1. opens /dev/mixer and set the mic gain to 100 and close /dev/mixer
2. opens /dev/dsp (Read only mode) and set the parameters
3. reads the mic values to a buffer and close /dev/dsp
4. opens /dev/mixer and set the mic gain to 0 and close /dev/mixer
5. opens /dev/dsp (Write only mode) and set the parameters
6. write the buffer to /dev/dsp device
OBSERVATIONS:
In step 2 the following message comes but proceeds further
"SOUND_PCM_READ_BITS ioctl failed: Invalid argument"
Then in step 4 the following message commes and exit(1) is done in the
code
"open of /dev/mixer failed: Device or resource busy"
All throughout the running of the program the speaker produces noise and
do not produce an legible sound.
/dev/dsp and /dev/mixer is put in the FS with rights as told in the
Linux Kernel website.
Also instead of using the program we tried with
#cat /dev/dsp > file
#cat file > /dev/dsp
This also produces just noise.
When kernel is booted the following modules are loaded
Loading modules on the device
Using i2c-core.o
Using i2c-algo-bit.o
Using i2c-omap1510.o
i2c_omap1510_init: OMAP1510 I2C module
Using soundcore.o
Using omap-audio.o
Using omap1510-aic23.o
aic23_attach: chip found @ 0x1b
OMAP1510 audio support initialized
Anyone who has knowledge about the usage of sound device in OMAP1510
Innovator please help me out.
Thanks in advance
Regards
Prakash
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Sound on OMAP1510 Innovator
2006-03-08 6:50 Sound on OMAP1510 Innovator Prakash Narayanan M
@ 2006-03-09 17:08 ` lamikr
0 siblings, 0 replies; 2+ messages in thread
From: lamikr @ 2006-03-09 17:08 UTC (permalink / raw)
To: Prakash Narayanan M; +Cc: linux-omap-open-source
Hi
Assuming that you are using /dev/dsp you are using OSS version from the
aic23 driver, am I correct?
Have you tested with the alsa version? In addition is normal music play
working ok for you?
("cat song.wav > /dev/dsp" with the oss driver and "aplayer song.wav"
with the alsa driver)
Mika
>I am trying to use the Sound device on Innovator OMAP1510.
>
>I am testing with a c code to acquire for sometime (3s) through the mic
>and replay it through the speaker.
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-09 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 6:50 Sound on OMAP1510 Innovator Prakash Narayanan M
2006-03-09 17:08 ` lamikr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox