aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-03-05 08:56:07 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-03-05 08:56:07 -0300
commit1388c0a35da467a71f2e9d8a30f9e79e8d4eabff (patch)
tree9f72e7b20890db462192cff1756483c2064029f1 /contrib
parent498bf47a1c0e67ed22abbcfacf3fadeb31f4f100 (diff)
mc_nextgen_test: enable ALSA interfaces and add new alsa types
Two extra ALSA interface types were added on the latest version of the ALSA patchset, with got merged upstream. Add support for them. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/test/mc_nextgen_test.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/test/mc_nextgen_test.c b/contrib/test/mc_nextgen_test.c
index 22f3240b..a62fd13e 100644
--- a/contrib/test/mc_nextgen_test.c
+++ b/contrib/test/mc_nextgen_test.c
@@ -180,6 +180,7 @@ static inline const char *intf_type(uint32_t intf_type)
return "CA";
case MEDIA_INTF_T_DVB_NET:
return "dvbnet";
+
case MEDIA_INTF_T_V4L_VIDEO:
return "video";
case MEDIA_INTF_T_V4L_VBI:
@@ -190,7 +191,7 @@ static inline const char *intf_type(uint32_t intf_type)
return "v4l2-subdev";
case MEDIA_INTF_T_V4L_SWRADIO:
return "swradio";
-#if 0
+
case MEDIA_INTF_T_ALSA_PCM_CAPTURE:
return "pcm-capture";
case MEDIA_INTF_T_ALSA_PCM_PLAYBACK:
@@ -203,7 +204,10 @@ static inline const char *intf_type(uint32_t intf_type)
return "rawmidi";
case MEDIA_INTF_T_ALSA_HWDEP:
return "hwdep";
-#endif
+ case MEDIA_INTF_T_ALSA_SEQUENCER:
+ return "sequencer";
+ case MEDIA_INTF_T_ALSA_TIMER:
+ return "ALSA timer";
default:
return "unknown_intf";
}

Privacy Policy