#
185f812c |
|
19-Jan-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
doc: replace @return by Return: Sphinx expects Return: and not @return to indicate a return value. find . -name '*.c' -exec \ sed -i 's/^\(\s\)\*\(\s*\)@return\(\s\)/\1*\2Return:\3/' {} \; find . -name '*.h' -exec \ sed -i 's/^\(\s\)\*\(\s*\)@return\(\s\)/\1*\2Return:\3/' {} \; Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
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 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> |
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org> |
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org> |
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org> |
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
a77bf709 |
|
27-Feb-2014 |
Simon Glass <sjg@chromium.org> |
sound: Move Samsung-specific code into its own file The i2s code is in fact Samsung-specific, but there might be other implementation. Move this code into its own file. This makes it slightly more obviously how to adjust the code to support another SoC, when someone takes this task on. Also drop non-FDT support, since it isn't used on Exynos 5. Tested-by: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> |
#
1a459660 |
|
08-Jul-2013 |
Wolfgang Denk <wd@denx.de> |
Add GPL-2.0+ SPDX-License-Identifier to source files Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com> |
#
14d2dfc3 |
|
14-Feb-2013 |
Rajeshwari Shinde <rajeshwari.s@samsung.com> |
Sound: Support for MAX98095 codec in driver This patchs adds support for MAX98095 codec in sound driver. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> |
#
f482310c |
|
26-Dec-2012 |
Rajeshwari Shinde <rajeshwari.s@samsung.com> |
Sound: Add FDT support to driver This patch adds FDT support to the sound driver. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> |
#
511ed5fd |
|
25-Oct-2012 |
Rajeshwari Shinde <rajeshwari.s@samsung.com> |
SOUND: SAMSUNG: Add I2S driver This patch adds driver for I2S interface specific to samsung. Signed-off-by: R. Chandrasekar <rcsekar@samsung.com> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> |
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
3062cd17 |
|
03-Feb-2020 |
Simon Glass <sjg@chromium.org> |
sound: Add a new stop_play() method At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
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 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>
|
#
e65f9ef9 |
|
16-Feb-2019 |
Simon Glass <sjg@chromium.org> |
sound: Mark sound_setup() as optional 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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
#
f987177d |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Use the correct number of channels for sound 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 <sjg@chromium.org>
|
#
f2b25c9b |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Complete migration to driver model 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 <sjg@chromium.org>
|
#
d4901898 |
|
10-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Create a uclass for sound 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 <sjg@chromium.org>
|
#
7153ad83 |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Drop codec_type This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
ee53494d |
|
03-Dec-2018 |
Simon Glass <sjg@chromium.org> |
dm: sound: Rename en_sound_codec to sound_codec The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
7d92b060 |
|
15-Nov-2018 |
Simon Glass <sjg@chromium.org> |
sound: Add sample rate as a parameter for square wave At present this value is hard-coded in the function that generates a square wave. Since sample rates vary between different hardware, it makes more sense to have this as a parameter. Update the function and its users. Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
|
#
a77bf709 |
|
27-Feb-2014 |
Simon Glass <sjg@chromium.org> |
sound: Move Samsung-specific code into its own file The i2s code is in fact Samsung-specific, but there might be other implementation. Move this code into its own file. This makes it slightly more obviously how to adjust the code to support another SoC, when someone takes this task on. Also drop non-FDT support, since it isn't used on Exynos 5. Tested-by: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
|
#
1a459660 |
|
08-Jul-2013 |
Wolfgang Denk <wd@denx.de> |
Add GPL-2.0+ SPDX-License-Identifier to source files Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
|
#
14d2dfc3 |
|
14-Feb-2013 |
Rajeshwari Shinde <rajeshwari.s@samsung.com> |
Sound: Support for MAX98095 codec in driver This patchs adds support for MAX98095 codec in sound driver. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
|
#
f482310c |
|
26-Dec-2012 |
Rajeshwari Shinde <rajeshwari.s@samsung.com> |
Sound: Add FDT support to driver This patch adds FDT support to the sound driver. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
|
#
511ed5fd |
|
25-Oct-2012 |
Rajeshwari Shinde <rajeshwari.s@samsung.com> |
SOUND: SAMSUNG: Add I2S driver This patch adds driver for I2S interface specific to samsung. Signed-off-by: R. Chandrasekar <rcsekar@samsung.com> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
|