28502669 | 16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Add uclass operations for beeping
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
sound: Add uclass operations for beeping
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
show more ...
|
a1b17e4f | 10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: core: Add a function to read into a unsigned int
The current dev_read...() functions use s32 and u32 which are convenient for device tree but not so useful for normal code, which often wants to
dm: core: Add a function to read into a unsigned int
The current dev_read...() functions use s32 and u32 which are convenient for device tree but not so useful for normal code, which often wants to use normal integers for values.
Add a helper which supports returning an unsigned int. Also add signed versions of the unsigned readers.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
e625b68b | 10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sandbox: Update sound to use two buffers
At present we use a single buffer for sound which means we cannot be playing one sound while queueing up the next. This wouldn't matter except that a lon
dm: sandbox: Update sound to use two buffers
At present we use a single buffer for sound which means we cannot be playing one sound while queueing up the next. This wouldn't matter except that a long sound (more than a second) has to be created as a single buffer, thus using a lot of memory. To better mimic what real sound drivers do, add support for double buffering in sandbox.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
e96fa6c9 | 10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for i2s
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 thi
dm: sound: Create a uclass for i2s
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 <sjg@chromium.org>
show more ...
|
40e9ede1 | 23-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sandbox: Use 'extras' to specify 'head' files
At present sandbox has a start.o in the 'start' target but also includes it in the normal target list. This is not how this is normally handled. It is n
sandbox: Use 'extras' to specify 'head' files
At present sandbox has a start.o in the 'start' target but also includes it in the normal target list. This is not how this is normally handled. It is needed because sandbox does not include the u-boot-init variable in its link rule.
Update the rule and move start.o from the normal target list to the 'extras' list.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
a65d1a06 | 23-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sandbox: Zero the ram buffer on startup
At present the RAM buffer is not inited unless it is read from a file, likely produced by an earlier phase of U-Boot. This causes valgrind warnings whenever t
sandbox: Zero the ram buffer on startup
At present the RAM buffer is not inited unless it is read from a file, likely produced by an earlier phase of U-Boot. This causes valgrind warnings whenever the RAM buffer is used. Correct this by initing it if needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|