• Mauro Carvalho Chehab's avatar
    [media] saa7134: use input types, instead of hardcoding strings · 8fc34867
    Mauro Carvalho Chehab authored
    Currently, the saa7134 driver is hardcoding input names on each
    board entry. More modern drivers define, instead, an enum for each
    input type.
    
    While the current logic works, it adds extra complexity at the driver,
    as it needs to discover the type of the input using some euristics.
    
    Instead, let's standardize the input types and use a type, instead of
    a name on all places.
    
    That will allow further patches to properly report the input type
    via VIDIOC_G_INPUT and to remove an extra field from the struct to
    identify if the input is for TV.
    
    Please notice that several boards define an input for receiving composite
    signals via a S-Video connector. The name of such input was inconsistent,
    so this patch cleans it and make it to be properly reported the
    same way for all boards.
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    8fc34867
saa7134.h 31.2 KB