summaryrefslogtreecommitdiffstats
path: root/drivers/sound
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-12-10 10:37:50 -0700
committerSimon Glass <sjg@chromium.org>2018-12-13 16:37:09 -0700
commite221cdcf44c80a6de78fd9285c5325db231ed20c (patch)
tree138387d1a785612a1cef0c36c8f7209c2f235df4 /drivers/sound
parentbc58184ec5013a6ec5bf75a314c08bd7ae24d60b (diff)
downloadu-boot-e221cdcf44c80a6de78fd9285c5325db231ed20c.tar.gz
u-boot-e221cdcf44c80a6de78fd9285c5325db231ed20c.tar.xz
u-boot-e221cdcf44c80a6de78fd9285c5325db231ed20c.zip
dm: sandbox: Allow selection of sample rate and channels
At present these parameters are hard-coded in the sdl interface code. Allow them to be specified by the driver instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sound')
-rw-r--r--drivers/sound/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c
index 089d830972..b0b07f3239 100644
--- a/drivers/sound/sandbox.c
+++ b/drivers/sound/sandbox.c
@@ -102,7 +102,7 @@ static int sandbox_i2s_probe(struct udevice *dev)
uc_priv->id = 1;
/* Ignore any error here - we'll just have no sound */
- sandbox_sdl_sound_init();
+ sandbox_sdl_sound_init(uc_priv->samplingrate, uc_priv->channels);
return 0;
}