cap_desc.session = pcm->session;
#endif
cap_desc.caps.ac_len = sizeof(struct audio_caps_s);
- cap_desc.caps.ac_type = AUDIO_TYPE_OUTPUT;
+ if (pcm->flags & PCM_IN) {
+ cap_desc.caps.ac_type = AUDIO_TYPE_INPUT;
+ } else {
+ cap_desc.caps.ac_type = AUDIO_TYPE_OUTPUT;
+ }
cap_desc.caps.ac_channels = config->channels;
cap_desc.caps.ac_controls.hw[0] = config->rate;
cap_desc.caps.ac_controls.b[2] = pcm_format_to_bits(config->format);
endif #DEBUG_FS
+config DEBUG_AUDIO
+ bool "Audio Debug Output"
+ default n
+ ---help---
+ Enable Audio debug SYSLOG output (disabled by default)
+
+if DEBUG_AUDIO
+
+config DEBUG_AUDIO_ERROR
+ bool "Audio Error Output"
+ default n
+ depends on DEBUG_ERROR
+ ---help---
+ Enable audio error debug SYSLOG output.
+
+config DEBUG_AUDIO_WARN
+ bool "Audio Warning Output"
+ default n
+ depends on DEBUG_WARN
+ ---help---
+ Enable audio warning debug SYSLOG output.
+
+config DEBUG_AUDIO_INFO
+ bool "Audio Infomational Debug Output"
+ default n
+ depends on DEBUG_VERBOSE
+ ---help---
+ Enable audio informational debug SYSLOG output.
+
+endif #DEBUG_AUDIO
+
config DEBUG_LIB
bool "C Library Debug Output"
default n
bool "Registering audio device as different devices for capture and playback"
default n
-
-config DEBUG_AUDIO_ERROR
- bool "Output AUDIO Error Debug Messages"
- default n
-
-config DEBUG_AUDIO_WARN
- bool "Output AUDIO Warning Debug Messages"
- default n
-
-config DEBUG_AUDIO_INFO
- bool "Output AUDIO Info Debug Messages"
- default n
-
-
menu "Supported Audio Formats"
config AUDIO_FORMAT_AC3