From e221cdcf44c80a6de78fd9285c5325db231ed20c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 10 Dec 2018 10:37:50 -0700 Subject: 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 --- drivers/sound/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/sound/sandbox.c') diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c index 089d8309727..b0b07f3239b 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; } -- cgit v1.2.3