summaryrefslogtreecommitdiff
path: root/firmware/sound.c
AgeCommit message (Collapse)Author
2010-05-11r25940 oops. No, no, no, that wasn't quite right. Must be truthful about the ↵Michael Sevakis
level in decidecibels for subsequent code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25941 a1c6a512-1295-4272-9138-f99709370657
2010-05-11MRobe100, HD200, Gigabeat F/X (anything with wm8750 or wm8751). Properly ↵Michael Sevakis
prescale bass and treble controls to avoid clipping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25940 a1c6a512-1295-4272-9138-f99709370657
2010-04-26Add MPIO HD200 port - changed filesMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
2010-04-25Fix yellowsThomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25720 a1c6a512-1295-4272-9138-f99709370657
2010-04-25Remove lots of simulator-speficic #ifdef'ing in sound.c to allow for DSP ↵Thomas Martitz
effects in the sims, e.g. for bass and treble (targets that do those effects in HW don't simulate using dsp). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25719 a1c6a512-1295-4272-9138-f99709370657
2010-04-13Fix minor mistake in tone control code: UDA1341 was added to the wrong part ↵Torne Wuff
of the conditional (it has hw bass/treble but not prescaling, like the other wm codecs listed) and TSC2100 has no hw tone controls at all so is already covered by HAVE_SW_TONE_CONTROLS. Comment has been clarified to make this less likely to happen again :) Net effect: tone controls should no longer adjust the overall perceived volume in a weird way on mini2440. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25640 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Fix further tabsAndree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24156 a1c6a512-1295-4272-9138-f99709370657
2009-11-11Comstify a function pointer arrayNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23609 a1c6a512-1295-4272-9138-f99709370657
2009-11-03Improvements to mini2440 audio; change CPU freq to 406MHzBob Cousins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23495 a1c6a512-1295-4272-9138-f99709370657
2009-08-01 * Move DSP_CALLBACK_* enum to sound.hMaurus Cuelenaere
* Add software based volume control for a certain range (SW_VOLUME_MIN -> SW_VOLUME_MAX) * Make Onda VX747 use it * Don't change volume or frequency in Ingenic Jz4740 codec driver when they're already set git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22106 a1c6a512-1295-4272-9138-f99709370657
2009-07-11Fix red in bootloadersAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21782 a1c6a512-1295-4272-9138-f99709370657
2009-07-11Improvements to the pitch screen UI (FS#10359 by David Johnston)Alexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21781 a1c6a512-1295-4272-9138-f99709370657
2009-06-28Create an udacodec interface (similar to ascodec and wmcoded) and ↵Bertrik Sikken
adapt/implement it for the iriver h1xx/h3xx and the meizus. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21546 a1c6a512-1295-4272-9138-f99709370657
2009-05-26Fix audio on Onda VX747Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21097 a1c6a512-1295-4272-9138-f99709370657
2009-05-253 new ports: Samsung YH-820, YH-920, and YH-925. Mostly functional. Audio ↵Mark Arigo
working on 820 & 925 (untested on the 920). No battery readings. No recording. No plugins. Keymap needs work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21083 a1c6a512-1295-4272-9138-f99709370657
2009-03-03Get the volume controls working on the M:Robe 500 along with some minor code ↵Karl Kurbjun
changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20194 a1c6a512-1295-4272-9138-f99709370657
2009-01-02Small binsize optimization and likely a tiny speedup tooNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19641 a1c6a512-1295-4272-9138-f99709370657
2008-12-31Gigabeat S: Allow recording from FM. Give FM the same volume range as ↵Michael Sevakis
playback. NOTE: This bumps the si4700 output volume to -0dB so other players with that may need a minor adjustment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19619 a1c6a512-1295-4272-9138-f99709370657
2008-12-27Fix for FS#9444. Scales balance between current and mute. Mutes channel at ↵Steve Gotthardt
100% balance when volume is muted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19601 a1c6a512-1295-4272-9138-f99709370657
2008-12-08Have drivers merged for WM8711/21/31 since they are so similar but respect ↵Michael Sevakis
all register differences between codecs. Change minis to #define the actual codec type. If anything breaks check if OSCPD and CLKOUTPD need to be clear for the target- H10 is fine. A nice naming convention suggestion for WM codec multidrivers would be welcome rather than naming for a specific chip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19367 a1c6a512-1295-4272-9138-f99709370657
2008-11-24Fix compilation of Clip simulatorRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19203 a1c6a512-1295-4272-9138-f99709370657
2008-09-13iPod Video: Fix playback after recording (FS #7402). Implement recording ↵Jens Arnold
gain adjustment. * Enable timeout for zero-crossing detection (SLOWCLK), avoids hanging volume/ gain due to DC offsets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18509 a1c6a512-1295-4272-9138-f99709370657
2008-09-10iPod G4, Color/Photo and Nano audio driver rework: Fix playback after ↵Jens Arnold
recording (FS #7402). Implement recording gain adjustment. * Fix slightly off Bass/Treble scale. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18490 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-22Initial D2 sound playback support (known issues to follow on the CowonD2Info ↵Rob Purchase
wiki page). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17753 a1c6a512-1295-4272-9138-f99709370657
2008-05-24Make life easier for people working on new ports (audio drivers are normally ↵Dave Chapman
one of the last things written), and revert r17511. Also take the opportunity to use more typical dummy values for VOLUME_MIN and VOLUME_MAX. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17620 a1c6a512-1295-4272-9138-f99709370657
2008-05-16fix some problems with missing HAVE_RECORDING checks #2Christian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17545 a1c6a512-1295-4272-9138-f99709370657
2008-05-16fix FS#8992 - hope all sound bass/treble problems are gone nowChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17541 a1c6a512-1295-4272-9138-f99709370657
2008-05-16simplify #if statementChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17538 a1c6a512-1295-4272-9138-f99709370657
2008-05-16add AUDIOHW_CAP for bass cutoff and treble cut off and fix a wrong ifdef for ↵Christian Gmeiner
simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17537 a1c6a512-1295-4272-9138-f99709370657
2008-05-14Introduce PRESCALER_CAP and move some driver specific code to the correct place.Christian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17516 a1c6a512-1295-4272-9138-f99709370657
2008-05-14Fail with an error and kick suspect looking default values.Christian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17511 a1c6a512-1295-4272-9138-f99709370657
2008-05-13add BALANCE_CAP and CLIPPING_CAP and move some mas35xx code into audio ↵Christian Gmeiner
driver mas35xx.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17489 a1c6a512-1295-4272-9138-f99709370657
2008-05-03Gigabeat S: Man it's so loud in here. We have SOUND! Someone please make ↵Michael Sevakis
keymaps consistent; it's rather messy atm. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17327 a1c6a512-1295-4272-9138-f99709370657
2008-04-28undo some changes of my last patch... should fix wm8751 based targetsChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17286 a1c6a512-1295-4272-9138-f99709370657
2008-04-28* introduce AUDIOHW_CAPS to define which audio codec can do what kind of ↵Christian Gmeiner
operations in hw, e.g. setting bass * added documentation why and when we need the software based prescaler * implement audiohw_set_bass and audiohw_set_treble for mas35xx * clean up sound_set_bass and sound_set_treble * simplify some #ifdef logic * fix special handling of WM8751 - looking for tester :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17274 a1c6a512-1295-4272-9138-f99709370657
2008-04-27fix redJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17260 a1c6a512-1295-4272-9138-f99709370657
2008-04-22move mas35xx specific code for set_channels and set_stereo_width to ↵Christian Gmeiner
mas35xx.c audio codec driver. If you ask why I am doing this... cleaning up sound.c and move target specific code into target tree or into audio codec drivers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17217 a1c6a512-1295-4272-9138-f99709370657
2008-04-22a warning is betterChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17215 a1c6a512-1295-4272-9138-f99709370657
2008-04-22move defines for VOLUME_MIN and VOLUME_MAX to their correct place (mas35xx.h)Christian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17214 a1c6a512-1295-4272-9138-f99709370657
2008-04-15Kill warnings that annoy me when building for Gigabeat S.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17120 a1c6a512-1295-4272-9138-f99709370657
2008-04-09D2: Beginnings of a WM8985 driver (based on WM8758, using EQ1 and EQ5 as HW ↵Rob Purchase
treble/bass). Untested, but harmless. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17057 a1c6a512-1295-4272-9138-f99709370657
2008-03-31Introduce sanity check and extra nop to stabilise TCC780x ↵Rob Purchase
set_cpu_frequency(). Re-enable HAVE_ADJUSTABLE_CPU_FREQ and kill a few warnings by setting HAVE_SW_TONE_CONTROLS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16904 a1c6a512-1295-4272-9138-f99709370657
2008-02-06mrobe 100: (1) fix the sound volume by properly enabling headphone output, ↵Mark Arigo
(2) disable line-out since there's no connector. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16230 a1c6a512-1295-4272-9138-f99709370657
2007-12-10Revert previous commit (still learning to work with git...)Marcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15904 a1c6a512-1295-4272-9138-f99709370657
2007-12-10use dB units for balance controlMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15902 a1c6a512-1295-4272-9138-f99709370657
2007-11-27Fix crash in sim when changing the MAS specific sound settings.Dan Everton
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15833 a1c6a512-1295-4272-9138-f99709370657
2007-11-24Commit FS#7440. The iPod Video doesn't actually have a hardware equalizer. ↵Dan Everton
It does have hardware bass/treble settings with configurable cutoff. So make the bass/treble settings use the hardware and remove the hardware equalizer configuration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15782 a1c6a512-1295-4272-9138-f99709370657
2007-11-15move {bass,treble,prescale}_table from sound.c to mas35xx.hChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15632 a1c6a512-1295-4272-9138-f99709370657
2007-10-13Fix warnings by being stricter about declaring volume min/maxDan Everton
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15102 a1c6a512-1295-4272-9138-f99709370657