dm: sound: Complete migration to driver model
All users of sound are converted to use driver model. Drop the old code and the CONFIG_DM_SOUND option. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#include <unistd.h>
|
||||
#include <linux/input.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <sound.h>
|
||||
#include <asm/state.h>
|
||||
|
||||
enum {
|
||||
|
||||
@@ -54,12 +54,12 @@ int sandbox_sdl_scan_keys(int key[], int max_keys);
|
||||
int sandbox_sdl_key_pressed(int keycode);
|
||||
|
||||
/**
|
||||
* sandbox_sdl_sound_start() - start playing a sound
|
||||
* sandbox_sdl_sound_play() - Play a sound
|
||||
*
|
||||
* @frequency: Frequency of sounds in Hertz
|
||||
* @return 0 if OK, -ENODEV if no sound is available
|
||||
* @data: Data to play (typically 16-bit)
|
||||
* @count: Number of bytes in data
|
||||
*/
|
||||
int sandbox_sdl_sound_start(uint frequency);
|
||||
int sandbox_sdl_sound_play(const void *data, uint count);
|
||||
|
||||
/**
|
||||
* sandbox_sdl_sound_stop() - stop playing a sound
|
||||
@@ -68,14 +68,6 @@ int sandbox_sdl_sound_start(uint frequency);
|
||||
*/
|
||||
int sandbox_sdl_sound_stop(void);
|
||||
|
||||
/**
|
||||
* sandbox_sdl_sound_play() - Play a sound
|
||||
*
|
||||
* @data: Data to play (typically 16-bit)
|
||||
* @count: Number of bytes in data
|
||||
*/
|
||||
int sandbox_sdl_sound_play(const void *data, uint count);
|
||||
|
||||
/**
|
||||
* sandbox_sdl_sound_init() - set up the sound system
|
||||
*
|
||||
@@ -110,6 +102,11 @@ static inline int sandbox_sdl_sound_start(uint frequency)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
int sandbox_sdl_sound_play(const void *data, uint count)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
static inline int sandbox_sdl_sound_stop(void)
|
||||
{
|
||||
return -ENODEV;
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Copyright (c) 2013 Google, Inc
|
||||
*/
|
||||
|
||||
#ifndef __SANDBOX_SOUND_H
|
||||
#define __SANDBOX_SOUND_H
|
||||
|
||||
int sound_play(unsigned int msec, unsigned int frequency);
|
||||
|
||||
int sound_init(const void *blob);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user