[media] media: au8522 change to create MC pad for ALSA Audio Out
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 11 Feb 2016 23:41:27 +0000 (21:41 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 27 Feb 2016 11:34:10 +0000 (08:34 -0300)
Add new pad for ALSA Audio Out to au8522_media_pads.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/au8522.h
drivers/media/dvb-frontends/au8522_decoder.c

index 3c72f40f53218a35646c3e00bb95e54f60cce9e2..d7a997fada7fe510c7a9c148d6450d40fcb5ea7a 100644 (file)
@@ -94,6 +94,7 @@ enum au8522_media_pads {
        AU8522_PAD_INPUT,
        AU8522_PAD_VID_OUT,
        AU8522_PAD_VBI_OUT,
+       AU8522_PAD_AUDIO_OUT,
 
        AU8522_NUM_PADS
 };
index 73612c5353d1942c4daa9de76c58aa15591ebe4d..0ab9f1eb8a29853a7f5efbf86ac6cd48df25f35d 100644 (file)
@@ -766,6 +766,7 @@ static int au8522_probe(struct i2c_client *client,
        state->pads[AU8522_PAD_INPUT].flags = MEDIA_PAD_FL_SINK;
        state->pads[AU8522_PAD_VID_OUT].flags = MEDIA_PAD_FL_SOURCE;
        state->pads[AU8522_PAD_VBI_OUT].flags = MEDIA_PAD_FL_SOURCE;
+       state->pads[AU8522_PAD_AUDIO_OUT].flags = MEDIA_PAD_FL_SOURCE;
        sd->entity.function = MEDIA_ENT_F_ATV_DECODER;
 
        ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads),