Fix PR1201 nxstyle issues.
This commit is contained in:
parent
d001c82bc6
commit
36f54e280f
@ -95,10 +95,11 @@ int stm32_cs4344_initialize(int minor)
|
||||
audinfo("minor %d\n", minor);
|
||||
DEBUGASSERT(minor >= 0 && minor <= 25);
|
||||
|
||||
/* Have we already initialized? Since we never uninitialize we must prevent
|
||||
* multiple initializations. This is necessary, for example, when the
|
||||
* touchscreen example is used as a built-in application in NSH and can be
|
||||
* called numerous time. It will attempt to initialize each time.
|
||||
/* Have we already initialized? Since we never uninitialize we must
|
||||
* prevent multiple initializations. This is necessary, for example,
|
||||
* when the touchscreen example is used as a built-in application in
|
||||
* NSH and can be called numerous time. It will attempt to initialize
|
||||
* each time.
|
||||
*/
|
||||
|
||||
if (!initialized)
|
||||
|
@ -146,13 +146,13 @@ static const struct audio_ops_s g_audioops =
|
||||
cs4344_pause, /* pause */
|
||||
cs4344_resume, /* resume */
|
||||
#endif
|
||||
NULL, /* allocbuffer */
|
||||
NULL, /* freebuffer */
|
||||
NULL, /* allocbuffer */
|
||||
NULL, /* freebuffer */
|
||||
cs4344_enqueuebuffer, /* enqueue_buffer */
|
||||
cs4344_cancelbuffer, /* cancel_buffer */
|
||||
cs4344_ioctl, /* ioctl */
|
||||
NULL, /* read */
|
||||
NULL, /* write */
|
||||
NULL, /* read */
|
||||
NULL, /* write */
|
||||
cs4344_reserve, /* reserve */
|
||||
cs4344_release /* release */
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user