20 Feb, 2019
10 commits
-
Enable sound on samus using the broadwell I2S and an RT5677 audio codec.
Reviewed-by: Bin Meng
Signed-off-by: Simon Glass -
Add a sound driver for samus which ties together the audio codec and
I2S controller.For now broadwell_sound is commented out in the makefile since we cannot
compile it without sound support enabled. The next commit fixes this.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
This audio codec is used on samus. Add a driver for it.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
I2S is used to send digital audio data to an audio codec. Add support for
this on broadwell.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add a sound driver which can output simple beeps using this legacy timer.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Add sound support for link, using the HDA codec implementation.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
When testing the sound system we don't need the hear the beeps. The
testing works by checking the data that would be emitted. Add a
device-tree property to silence the sound, and enable it for testing.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
The Intel High-definition Audio is a newer-generation audio system which
provides for transfer of a large number of audio stream, each containing
up to 16 channels.Add support for HDA as a library which can be used by other drivers.
U-Boot currently uses only two channels (stereo).Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
Some audio codecs such as Intel HDA do not need to use digital data to
play sounds, but instead have a way to emit beeps. Add this interface as
an option. If the beep interface is not supported, then the sound uclass
falls back to the I2S interface.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng -
This method in the sound API is optional since some drivers can do this
when probing or as part of SoC init. Mark it as such.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
10 Feb, 2019
3 commits
-
At present there is still some samsung-specific code in the audio codecs.
Remove it so that these can be used by other SoCs.Signed-off-by: Simon Glass
-
Fix a typo that appears many times in this file.
Signed-off-by: Simon Glass
-
This chip is used by spring. Add a driver for it and update the
samsung_sound driver to pick it up.Signed-off-by: Simon Glass
01 Feb, 2019
2 commits
-
Add a sound driver for rk3288 supporting chromebook_jerry. This uses the
I2S driver, and existing audio codec and the clock/pinmux support.Signed-off-by: Simon Glass
Reviewed-by: Philipp Tomsich -
Add a driver for I2S which allows audio data to be sent from the SoC to
the audio codec. The sample rate and other settings are hard-coded for now
as there is no suitable device-tree binding available.Signed-off-by: Simon Glass
Reviewed-by: Philipp Tomsich
14 Dec, 2018
25 commits
-
At present the 'beep' sound generates a waveform for only one channel even
if two are being used. This means that the beep is twice the frequency it
should be. Correct this by making it a parameter.The fix in a previous commit was correct for sandbox but not for other
boards.Fixes: 03f11e87a8 ("sound: Correct data output in sound_create_square_wave()")
Signed-off-by: Simon Glass -
At present these parameters are hard-coded in the sdl interface code.
Allow them to be specified by the driver instead.Signed-off-by: Simon Glass
-
Return a valid error code instead of -1.
Signed-off-by: Simon Glass
-
Fix a few files whos license headers were not converted to SPDX.
Signed-off-by: Simon Glass
-
All users of sound are converted to use driver model. Drop the old code
and the CONFIG_DM_SOUND option.Signed-off-by: Simon Glass
-
Update snow's device tree and config to use driver model for sound. Also
update the others as best we can.Spring does not appear to have audio support in the kernel. The smdk5250
and smdk5420 boards use a wolfson codec which I cannot test with. So the
only boards that is tested and known to work are snow, pit and pi.Signed-off-by: Simon Glass
-
Add support for this new codec which is used by pit.
Signed-off-by: Simon Glass
-
The register-access code is useful for any maxim codec. Move it out into
its own file.Signed-off-by: Simon Glass
-
Move the existing hardware drivers over to use driver model.
Signed-off-by: Simon Glass
-
The current ID enums start from 1 but there does not seem to be any reason
that they cannot start with 0. Adjust the code to avoid the +1 in
codec_init().Signed-off-by: Simon Glass
-
The sound driver pulls together the audio codec and i2s drivers in order
to actually make sounds. It supports setup() and play() methods. The
sound_find_codec_i2s() function allows locating the linked codec and i2s
devices. They can be referred to from uclass-private data.Add a uclass and a test for sound.
Signed-off-by: Simon Glass
-
The i2s bus is commonly used with audio codecs. It provides a way to
stream digital data sychronously in both directions. U-Boot only supports
audio output, so this uclass is very simple, with a single tx_data()
method.Add a uclass and a test for i2s.
Signed-off-by: Simon Glass
-
An audio codec provides a way to convert digital data to sound and vice
versa. Add a simple uclass which just supports setting the parameters for
the codec.Signed-off-by: Simon Glass
-
This structure contains information that is likely needed by any i2s
driver so it seems useful to attach it to the (forthcoming) i2c uclass.
For now, just rename it.Signed-off-by: Simon Glass
-
The U-Boot sound system provides basic support for beeping. At present it
does not use driver model, but it needs to be converted. Add an option to
enable driver model for sound. For now it is not connected to anything.
Future work will add drivers which use this option. It will then be
removed once everything is converted.Signed-off-by: Simon Glass
-
For snow the codec is at address 0x11 on the i2c bus, in 7-bit format.
The device tree and code are in 8-bit format (i.e. shifted left one bit).
Fix both. Fix pit in a similar way.Signed-off-by: Simon Glass
-
Tidy up the ordering of header files in the sounds files.
Signed-off-by: Simon Glass
-
This function has only one line in it. Drop it.
Signed-off-by: Simon Glass
-
These are only used in two functions so can be made local.
Also change the first argument of max98095_do_init() to suit.
Signed-off-by: Simon Glass
-
These are only used in two functions so can be made local.
Signed-off-by: Simon Glass
-
We can put this in the private structure and avoid a global.
Signed-off-by: Simon Glass
-
We can put this in the private structure and avoid a global.
Signed-off-by: Simon Glass
-
With driver model we want to do a minimal probe when the device is probed
and then set up the codec interface later when a sound is actully played.Split this setup code out into its own function to help with this.
Signed-off-by: Simon Glass
-
With driver model we want to do a minimal probe when the device is probed
and then set up the codec interface later when a sound is actully played.Split this setup code out into its own function to help with this.
Signed-off-by: Simon Glass
-
With driver model we cannot pass in the global struct, but instead want
to pass in the driver-private data. Split some of the code out of
wm8994_init() to handle this.Signed-off-by: Simon Glass