summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8751.c (follow)
Commit message (Collapse)AuthorAge
* wm8751: document and fix audiohw settingsAmaury Pouly2016-12-12
| | | | | | | Document 3D depth range. Fix mismatch in recording volume: the displayed volume is completely off the chart Change-Id: I4c363f369e5d72f332391a6f96457b4e450404f9
* Fix various reds. Some includes needed fixup.Thomas Martitz2014-03-03
| | | | Change-Id: I4327740bae17054131feb917abdd58846c451988
* Fix audio on m:robe 100.Szymon Dziok2013-12-17
| | | | | | Tested on different revisions and it works reliably. Change-Id: Ic710236247a17f516c8561429f2da5c9684341b9
* Do some cleanup, adjustment and a couple fixes to recent sound changes.Michael Sevakis2013-04-22
| | | | | | | | | | | | | | | | | | | | | * SOUND_x enum can be generated by audiohw_settings.h along with settings entries and sound_val2phys. * VOLUME_MIN and VOLUME_MAX are no longer necessary within sound.c. If you need them, they are for target-defined purposes. * Fix up SDL volume implementation in sdl.c. Move sim volume calculation code to pcm-sdl.c. * Min trigger tresholds were based upon VOLUME_MIN for some reason. These setting have nothing to do with playback volume. Since it is no longer present, set these at -89dB which is the minimum peak meter sensitivity setting. * Fix an oversight in wm8758.c. I forgot to add the dB->register conversion to audiohw_set_volume. Change-Id: Ie1df33f1793eee75e6793f16bc7bddd16edb7f75
* Straighten out the mad twisted state of sound.c and related areas.Michael Sevakis2013-04-15
| | | | | | | | | | | | | | | | | | This is going right in since it's long overdue. If anything is goofed, drop me a line or just tweak it yourself if you know what's wrong. :-) Make HW/SW codec interface more uniform when emulating HW functionality on SWCODEC for functions such as "audiohw_set_pitch". The firmware-to- DSP plumbing is in firmware/drivers/audiohw-swcodec.c. "sound_XXX" APIs are all in sound.c with none in DSP code any longer. Reduce number of settings definitions needed by each codec by providing defaults for common ones like balance, channels and SW tone controls. Remove need for separate SIM code and tables and add virtual codec header for hosted targets. Change-Id: I3f23702bca054fc9bda40f49824ce681bb7f777b
* WM8750: Extend recording gain range.Marcin Bukat2012-01-25
| | | | | | | Use two stage amplification (PGA gain and digital stage gain) combined to extend recgain range to -17.25 +60.0dB. Change-Id: I4df8af801730b7efb2d35096de077ba31d331222
* Add missing includes found using -Wmissing-declarations.Boris Gjenero2011-12-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31396 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD300: vastly improve sound quality. This unfortunately means reverting ↵Marcin Bukat2011-11-05
| | | | | | r28797 which introduced poping noise git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30904 a1c6a512-1295-4272-9138-f99709370657
* use correct define for gigabeat fx to enable lineout (was broken in r29588)Robert Kukla2011-03-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29646 a1c6a512-1295-4272-9138-f99709370657
* WM8750/51: properly apply recording gainMarcin Bukat2011-03-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29594 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD300: Enable line-in recording. Thanks Andriej Azariev for pointing ↵Marcin Bukat2011-03-15
| | | | | | out such capability of this DAP. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29590 a1c6a512-1295-4272-9138-f99709370657
* fix redMarcin Bukat2011-03-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29589 a1c6a512-1295-4272-9138-f99709370657
* WM8750/51 driver:Marcin Bukat2011-03-14
| | | | | | | | 1) Set prescaler correctly when 3d enhancement in use. 2) Implement sound_val2phys so gains in recording screen are correct. 3) Minor cleanups. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29588 a1c6a512-1295-4272-9138-f99709370657
* slightly modified FS#11531 by me: WM8750/51 driver reworkMarcin Bukat2011-03-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29584 a1c6a512-1295-4272-9138-f99709370657
* WM8750 - fix muted output when entering FM radio screen.Marcin Bukat2010-12-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28869 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD300 - initial commitMarcin Bukat2010-11-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28680 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD200 - fix stupid typo introduced in r28270 which forced device hard ↵Marcin Bukat2010-10-18
| | | | | | shutdown during boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28304 a1c6a512-1295-4272-9138-f99709370657
* HD200 - GPIO57 is headphone output enable. Proper handling of this line ↵Marcin Bukat2010-10-13
| | | | | | fixes hissing noise after startup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28270 a1c6a512-1295-4272-9138-f99709370657
* WM8750 - add ALC and NGAT related low level functions (disabled now by default)Marcin Bukat2010-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27587 a1c6a512-1295-4272-9138-f99709370657
* HD200 - Setup codec as I2S master and enable recordingMarcin Bukat2010-07-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27250 a1c6a512-1295-4272-9138-f99709370657
* r25940 oops. No, no, no, that wasn't quite right. Must be truthful about the ↵Michael Sevakis2010-05-11
| | | | | | level in decidecibels for subsequent code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25941 a1c6a512-1295-4272-9138-f99709370657
* MRobe100, HD200, Gigabeat F/X (anything with wm8750 or wm8751). Properly ↵Michael Sevakis2010-05-11
| | | | | | prescale bass and treble controls to avoid clipping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25940 a1c6a512-1295-4272-9138-f99709370657
* HD200 - add FM support.Marcin Bukat2010-04-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25757 a1c6a512-1295-4272-9138-f99709370657
* Remove pcm_mute() which has been unused since r19308Rafaël Carré2010-04-27
| | | | | | | Remove audiohw_mute from header as well, and make this function static to each driver (commented out when it was unused) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25733 a1c6a512-1295-4272-9138-f99709370657
* Add MPIO HD200 port - changed filesMarcin Bukat2010-04-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
* CLOCKING register should be set on hardware init.Michael Sevakis2008-12-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19410 a1c6a512-1295-4272-9138-f99709370657
* Bring consistency to pcm implementation and samplerate handling. Less ↵Michael Sevakis2008-12-12
| | | | | | low-level duplication. A small test_sampr fix so it works on coldfire again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19400 a1c6a512-1295-4272-9138-f99709370657
* Meg F/X can beep and click using a hardware timer so let us try it out. To ↵Michael Sevakis2008-12-07
| | | | | | match things up better, fix PCM beeping to give correct frequency (and get a pointer wrap bug too). Do some minor adjustments to compensate for corrections. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19355 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow and red. Maybe create some new.Michael Sevakis2008-11-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19231 a1c6a512-1295-4272-9138-f99709370657
* Get rid of remaining audiohw_enable_output style codec setup and use ↵Michael Sevakis2008-11-26
| | | | | | pre/post split initialization. Move some SoC-specific code like i2s_reset out of the codec drivers. Helps to unify drivers and it was only ever used to enable. I cannot possibly test everything so report (I'll be on call ;) or fix problems if any crop up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19228 a1c6a512-1295-4272-9138-f99709370657
* Revert last commit (accidentally committed the whole tree)Karl Kurbjun2008-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19095 a1c6a512-1295-4272-9138-f99709370657
* Add in the needed crt0.S code for the wakeup alarm alsoKarl Kurbjun2008-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19094 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | 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
* undo some changes of my last patch... should fix wm8751 based targetsChristian Gmeiner2008-04-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17286 a1c6a512-1295-4272-9138-f99709370657
* * introduce AUDIOHW_CAPS to define which audio codec can do what kind of ↵Christian Gmeiner2008-04-28
| | | | | | | | | | | | | | 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
* Return value of audiohw_set_xxx_vol is never used and most of the time we ↵Christian Gmeiner2008-02-13
| | | | | | have a return 0; --> kick it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16300 a1c6a512-1295-4272-9138-f99709370657
* mrobe 100: (1) fix the sound volume by properly enabling headphone output, ↵Mark Arigo2008-02-06
| | | | | | (2) disable line-out since there's no connector. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16230 a1c6a512-1295-4272-9138-f99709370657
* audio on the m:robe 100 Robert Kukla2008-01-20
| | | | | | | | | - using the existing wm8751 driver (from gigabeat port) integrated into the portal player environment - only 44.1kHz at the moment - for some reason the output is very quiet - due to the lack of usable buttons the easiest (?) way to start an audio file is to copy the .playlist_control, config.cfg and nvram.bin files from another target, where auto resume is enabled. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16117 a1c6a512-1295-4272-9138-f99709370657
* Revert previous commit (still learning to work with git...)Marcoen Hirschberg2007-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15904 a1c6a512-1295-4272-9138-f99709370657
* use dB units for balance controlMarcoen Hirschberg2007-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15902 a1c6a512-1295-4272-9138-f99709370657
* remove not used dummy codeChristian Gmeiner2007-11-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15763 a1c6a512-1295-4272-9138-f99709370657
* get rid of audiohw_resetChristian Gmeiner2007-11-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15720 a1c6a512-1295-4272-9138-f99709370657
* Increase step size of stereo width to 5% to avoid tediously long list in ↵Thom Johansen2007-10-09
| | | | | | settings. Reduce max limit from 255% to 250% for cosmetic reasons, value of 255% was chosen because of (very) old restrictions in settings system anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15057 a1c6a512-1295-4272-9138-f99709370657
* Changes bass setting to use adaptive bass instead of linear bass. The ↵Steve Gotthardt2007-07-13
| | | | | | | | | datasheet recommends it and it should stop clipping on bass. Steve Gotthardt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13867 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat: Audio tweak mishmash - Make sure zero crossing detection times out ↵Michael Sevakis2007-06-24
| | | | | | so the volume always gets updated. Make sure i2s is off at boot and set to proper mode before audio hardware is initialized. Make pausing pcm instant instead of waiting until the end of the current DMA transfer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13706 a1c6a512-1295-4272-9138-f99709370657
* * changed pararmeter of audiohw_mute from int to boolChristian Gmeiner2007-06-13
| | | | | | | | | | * unification of init and close NOTE: audiohw_init is a void function now, because it never (can) fail okay from JdGordon@irc git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13622 a1c6a512-1295-4272-9138-f99709370657
* some little more work on audio codec driver unification - more will followChristian Gmeiner2007-06-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13620 a1c6a512-1295-4272-9138-f99709370657
* the DAC drivers need to include audiohw.h nowMarcoen Hirschberg2007-05-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13474 a1c6a512-1295-4272-9138-f99709370657
* * move audio settings into audio codec driversChristian Gmeiner2007-05-22
| | | | | | | | * 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
* No more ear doctor visits after powering/unpowering the Gigabeat. Cleanup a ↵Michael Sevakis2007-05-03
| | | | | | little too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13312 a1c6a512-1295-4272-9138-f99709370657