Fix PR1201 nxstyle issues.

This commit is contained in:
Ouss4 2020-06-05 18:41:58 +01:00 committed by Alan Carvalho de Assis
parent d001c82bc6
commit 36f54e280f
2 changed files with 9 additions and 8 deletions

View File

@ -95,10 +95,11 @@ int stm32_cs4344_initialize(int minor)
audinfo("minor %d\n", minor); audinfo("minor %d\n", minor);
DEBUGASSERT(minor >= 0 && minor <= 25); DEBUGASSERT(minor >= 0 && minor <= 25);
/* Have we already initialized? Since we never uninitialize we must prevent /* Have we already initialized? Since we never uninitialize we must
* multiple initializations. This is necessary, for example, when the * prevent multiple initializations. This is necessary, for example,
* touchscreen example is used as a built-in application in NSH and can be * when the touchscreen example is used as a built-in application in
* called numerous time. It will attempt to initialize each time. * NSH and can be called numerous time. It will attempt to initialize
* each time.
*/ */
if (!initialized) if (!initialized)

View File

@ -146,13 +146,13 @@ static const struct audio_ops_s g_audioops =
cs4344_pause, /* pause */ cs4344_pause, /* pause */
cs4344_resume, /* resume */ cs4344_resume, /* resume */
#endif #endif
NULL, /* allocbuffer */ NULL, /* allocbuffer */
NULL, /* freebuffer */ NULL, /* freebuffer */
cs4344_enqueuebuffer, /* enqueue_buffer */ cs4344_enqueuebuffer, /* enqueue_buffer */
cs4344_cancelbuffer, /* cancel_buffer */ cs4344_cancelbuffer, /* cancel_buffer */
cs4344_ioctl, /* ioctl */ cs4344_ioctl, /* ioctl */
NULL, /* read */ NULL, /* read */
NULL, /* write */ NULL, /* write */
cs4344_reserve, /* reserve */ cs4344_reserve, /* reserve */
cs4344_release /* release */ cs4344_release /* release */
}; };