summaryrefslogtreecommitdiff
path: root/firmware/sound.c
AgeCommit message (Collapse)Author
2007-10-06Unify PCM interface just above the hardware driver level for all targets ↵Michael Sevakis
including the sims. Perform lockout of audio callback when changing states. Weird new playback or recording trouble? Check before and after this revision first though things seem quite sound. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15006 a1c6a512-1295-4272-9138-f99709370657
2007-10-02Fix red. Finish adding the remaining file.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14950 a1c6a512-1295-4272-9138-f99709370657
2007-10-02Split wm8731 and wm8721 drivers. wm8721 can be much simpler since it has no ↵Michael Sevakis
recording. Provide reg bit definitions for those. Add some temporary hacks pcm-pp to prevent crashing when playing after recording. Make playback start after recording on pp5020. Get wm8731 to monitor recording but plans are to do that digitally. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14948 a1c6a512-1295-4272-9138-f99709370657
2007-09-20Beginning of an M:Robe 500i port. Currently only in the bootloader stage. ↵Karl Kurbjun
Needs another piece of code to start the boot process - will be in the wiki. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14763 a1c6a512-1295-4272-9138-f99709370657
2007-07-31working volume control in the simJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14097 a1c6a512-1295-4272-9138-f99709370657
2007-06-05e200: Fix errors from recording addition and a warning that comes up when ↵Michael Sevakis
fixing the errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13558 a1c6a512-1295-4272-9138-f99709370657
2007-06-05e200: Add recording. Just from MIC right now and FM integration will happen ↵Michael Sevakis
soon. Most every bit of weirdness is nescessary and no problems seem to exist that the retailos doesn't exhibit too (namely noise when LCD is on when recording from MIC). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13557 a1c6a512-1295-4272-9138-f99709370657
2007-05-27Fix the audiohw settings stub for the sim so the rec screen doesnt crash anymoreJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13497 a1c6a512-1295-4272-9138-f99709370657
2007-05-22* move audio settings into audio codec driversChristian Gmeiner
* add mas35xx driver for all mas35xx targets. Later mas35xx code from sound.c will move to this new driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13464 a1c6a512-1295-4272-9138-f99709370657
2007-05-20Increase sansa volume range at the lower end. This seems to be necessary Antonius Hellmann
now after the audio improvement: -40.5dB ... +6dB => -73.5 ... +6dB git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13447 a1c6a512-1295-4272-9138-f99709370657
2007-05-02Gigabeat: Separate driver for audio codec. Tweak pcm driver to comply with ↵Michael Sevakis
intended interface. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13307 a1c6a512-1295-4272-9138-f99709370657
2007-04-15adapt some valuesChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13167 a1c6a512-1295-4272-9138-f99709370657
2007-04-12simplify UDA1380 bass and treble codeMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13122 a1c6a512-1295-4272-9138-f99709370657
2007-04-12remove Sansa from the todoMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13121 a1c6a512-1295-4272-9138-f99709370657
2007-04-11Moved SH1 system code to target tree. * First shot at hwcompat cleanup.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13114 a1c6a512-1295-4272-9138-f99709370657
2007-03-11Enable balance control on SansaDaniel Ankers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12730 a1c6a512-1295-4272-9138-f99709370657
2007-03-11Sound for Sansa E200 - based on work by myself, Rene Peinthor, Barry Wardell ↵Daniel Ankers
and Christian Gmeiner from the AS3514 datasheet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12727 a1c6a512-1295-4272-9138-f99709370657
2007-03-07Use the new DSP callback functionality in firmware/sound.c to deal with ↵Thom Johansen
SWCODEC stereo width and channel configuration instead of the old more spread out #ifdef based approach. Rename the DSP functions involved for more consistent naming. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12677 a1c6a512-1295-4272-9138-f99709370657
2007-03-07Hack around the lack of a hardware prescaler on a number of WM codecs. Bass ↵Thom Johansen
and treble controls should work on DAPs using these chips now, but will be prone to distort when boosting bass. Gut out UDA1380 code(!!) and switch to high bass cutoff and low treble cutoff in WM8975 driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12673 a1c6a512-1295-4272-9138-f99709370657
2007-02-26WM8711/8721/8731 have no tone controls, so enable the software tone controls ↵Jens Arnold
for the respective targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12499 a1c6a512-1295-4272-9138-f99709370657
2007-02-26Add software based bass/treble controls for targets which have no such ↵Thom Johansen
functionality in hardware (currently only X5). They can also be used on any other SWCODEC target by adding #define HAVE_SW_TONE_CONTROLS in the relevant config-*.h file. Also remove some now unneeded zero checks when using get_replaygain_int(). Comments on sound quality are welcome as some parameters can still be fine-tuned. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12489 a1c6a512-1295-4272-9138-f99709370657
2006-12-18FS#6096. Recording on PortalPlayer targets (H10, iPod Video, iPod 4g, iPod ↵Barry Wardell
Color, iPod Nano). * Fix failed compile of enc_config.c when HAVE_MPEG2_SAMPR is not defined. * Fix bug in AIFF encoder header creation on little endian targets. * Add recording screen keymaps for H10 and iPod. * Move pcm_playback PP specific code to target tree. * Add recording code to wmcodec drivers. * Add pcm_record code. Some problems still remain: * Playback doesn't work after recording until Rockbox is restarted. * Gain control not implemented. * Only 16-bit/44KHz for now. The hardware should be capable of up to 24-bit/96KHz. * Line-in recording not tested on H10. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11794 a1c6a512-1295-4272-9138-f99709370657
2006-12-06move some audio driver specific code to the correspoding filesMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11675 a1c6a512-1295-4272-9138-f99709370657
2006-12-06first step in audio driver unification: renaming the functions to audio_*Marcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11670 a1c6a512-1295-4272-9138-f99709370657
2006-11-22Sansa doesn't use a Wolfson codec. Various other changes to allow Sansa to ↵Daniel Ankers
compile correctly with a normal build. Based on FS#6336 by Pavel Gnelitsa git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11570 a1c6a512-1295-4272-9138-f99709370657
2006-10-21add support for the Wolfson WM8751Marcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11300 a1c6a512-1295-4272-9138-f99709370657
2006-08-12Iriver iFP7xx sound support.Tomasz Malesinski
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10552 a1c6a512-1295-4272-9138-f99709370657
2006-07-21Patch #5347 by Rani Hod - Adds FM radio and recording features to the iAudio X5.Linus Nielsen Feltzing
Also includes a rewrite of the Coldfire I2C driver to include both read and write. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10272 a1c6a512-1295-4272-9138-f99709370657
2006-05-14Iriver: Moved the handling of the UDA1380 split gain (analog preamp + ↵Jens Arnold
decimator gain) into the UDA driver. * All: Settings structure sorted & cleaned up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9927 a1c6a512-1295-4272-9138-f99709370657
2006-04-04Correct minimum value for TLV320 volumeLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9495 a1c6a512-1295-4272-9138-f99709370657
2006-03-30iPod mini 2G: Define correct audio codec, and fix WM8731 driver to work with ↵Jens Arnold
PP5020. Audio is working now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9367 a1c6a512-1295-4272-9138-f99709370657
2006-03-29iAudio X5 doesn't have bass and trebleLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9338 a1c6a512-1295-4272-9138-f99709370657
2006-03-28Correct maximum and default volume for iAudio X5Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9330 a1c6a512-1295-4272-9138-f99709370657
2006-03-28First quick'n'dirty volume control for the iAudio X5Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9327 a1c6a512-1295-4272-9138-f99709370657
2006-03-27Fix some math for ipod volume settingsBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9291 a1c6a512-1295-4272-9138-f99709370657
2006-03-26Fixed potential sample overflow in variable stereo width > 100% and karaoke ↵Jens Arnold
mode, both hwcodec and swcodec. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9263 a1c6a512-1295-4272-9138-f99709370657
2006-03-22Fixed line out volume for 4G, Nano and 5G Ipods. Partial patch #4814 byThom Johansen
Ralf Herz. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9181 a1c6a512-1295-4272-9138-f99709370657
2006-03-21Enabled channel configuration and stereo width option on software codecThom Johansen
platforms. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9173 a1c6a512-1295-4272-9138-f99709370657
2006-02-28iPod 5G: Correctly implement mute when setting volumeDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8863 a1c6a512-1295-4272-9138-f99709370657
2006-02-26iPod 3G - initial (completely untested) attempt at audio supportDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8847 a1c6a512-1295-4272-9138-f99709370657
2006-02-13iPod: Audio driver for iPod Video/5G. Rename wm8971_* functions to ↵Dave Chapman
wmcodec_* to enable unification of the audio code for WM codecs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8676 a1c6a512-1295-4272-9138-f99709370657
2006-02-08Patch #1403437 by Peter D'Hoye & Martin Scarratt: Recording gain.Hristo Kovachev
Changes: ***1. all platforms: 1.1 corrects gain display bug; 1.2 allows combined setting of stereo gain without an extra line on the display; 2. iRiver H1xx and H3xx specific: 2.1 correctly named the decimator variables, they were called 'gain'; 2.2 splitted decimator gain settings for mic and line-in so that they are saved separately; 2.3 added combined analog and decimator gain setting giving a smooth gain range with the best analog/decimator gain combination git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8627 a1c6a512-1295-4272-9138-f99709370657
2006-02-04iAudio X5: various fixes to make the bootloader compileLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8560 a1c6a512-1295-4272-9138-f99709370657
2006-02-03Fixed warnings on iFP.Tomasz Malesinski
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8550 a1c6a512-1295-4272-9138-f99709370657
2006-01-30iPod: Initial attempt at volume/bass/treble control - more work is needed, ↵Dave Chapman
but it seems to be working. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8495 a1c6a512-1295-4272-9138-f99709370657
2005-12-07Simplified and uniform volume handling: * Volume setting in dB on all ↵Jens Arnold
targets, within the 'natural' range defined by the respective DAC (limited to -100..+12 dB for archos Recorders and Ondios in order to avoid 4 chars being displayed in the status bar). 0 dB means line level on all targets. * No more artificial volume limiting for Iriver and Player, settings always represent true values. Removed the various sound scaling options. * Bumped config version so save your settings. Also make sure to adjust the volume after loading a .cfg, then save the .cfg again, otherwise the volume will be out of range (a flaw in the .cfg loader). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8197 a1c6a512-1295-4272-9138-f99709370657
2005-12-04set default sound scaling metric properlyAnton Oleynikov
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8146 a1c6a512-1295-4272-9138-f99709370657
2005-12-04iRiver: new sound option "prevent clipping:adjust volume/adjust bass/adjust ↵Anton Oleynikov
current/off" git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8145 a1c6a512-1295-4272-9138-f99709370657
2005-11-12iRiver: Initial support for wav-recording in recording menu. Supports ↵Andy
mic/line-in (and radio), monitor mode, time-splitting (and byte-splitting), pause/resume etc. Things todo: Prerecording, peakmeter (should be simple), frequency other than 44.1 kHz, etc.. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7818 a1c6a512-1295-4272-9138-f99709370657
2005-11-11iPod: Code cleanup - the bootloader now compiles with zero warningsDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7812 a1c6a512-1295-4272-9138-f99709370657