File formats auto-detection by Lasi Harmony
Hi,
The patch above permits harmony driver to auto-detect file format when the application, which access to /dev/audio, doesn't set the output settings itself via ioctl() before starting playing.
Formats recognized are:
8 bits u-law
8 bits A-law
16 bits linear
Into these patch, I included again the sound mixer to make it work on a clean CVS image.
Any feedbacks would be appreciated;
Regards
Matthieu Delahaye
ESIEE Team
http://www.esiee.fr/puffin
drivers/sound/Makefile +10 -1
@@ -108,7 +108,7 @@ # Declare multi-part drivers. list-multi := sound.o gus.o pas2.o sb.o sb_lib.o vidc_mod.o \ - soundcore.o wavefront.o + soundcore.o wavefront.o harmony.o sound-objs := \ dev_table.o soundcard.o sound_syms.o \
@@ -124,6 +124,7 @@ sb_lib-objs := sb_common.o sb_audio.o sb_midi.o sb_mixer.o sb_ess.o vidc_mod-objs := vidc.o vidc_fill.o wavefront-objs := wavfront.o wf_midi.o yss225.o +harmony-objs := harmony_driver.o harmony_sound.o harmony_mixer.o # Extract lists of the multi-part drivers.
@@ -189,6 +190,9 @@ wavefront.o: $(wavefront-objs) $(LD) -r -o $@ $(wavefront-objs) +harmony.o: $(harmony-objs) + $(LD) -r -o $@ $(harmony-objs.o) + # Firmware files that need translation # # The translated files are protected by a file that keeps track
@@ -332,3 +336,8 @@ ifneq ($(FILES_BOOT_CHANGED),) $(FILES_BOOT_CHANGED): dummy endif + + + + +
drivers/sound/harmony.h +161 -0
161 lines not on this page · raw message
drivers/sound/harmony_driver.c +183 -0
183 lines not on this page · raw message
drivers/sound/harmony_mixer.c +319 -0
319 lines not on this page · raw message
drivers/sound/harmony_mixer.h +62 -0
62 lines not on this page · raw message
drivers/sound/harmony_sound.c +703 -0
703 lines not on this page · raw message