Commit 4b9b936f authored by Nickolay V. Shmyrev's avatar Nickolay V. Shmyrev Committed by Mauro Carvalho Chehab

V4L/DVB (6416): Split hooks on volume and audio mode and rework their handling

Also convert audio_mode_gpio functions from audio_hook
Signed-off-by: default avatarNickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 40c6e683
This diff is collapsed.
...@@ -7,17 +7,17 @@ ...@@ -7,17 +7,17 @@
#include "bttvp.h" #include "bttvp.h"
static void winview_audio(struct bttv *btv, struct video_audio *v, int set); void winview_volume (struct bttv *btv, __u16 volume);
static void lt9415_audio(struct bttv *btv, struct video_audio *v, int set);
static void avermedia_tvphone_audio(struct bttv *btv, struct video_audio *v, void lt9415_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
int set); void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void avermedia_tv_stereo_audio(struct bttv *btv, struct video_audio *v, void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
int set); void terratv_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void terratv_audio(struct bttv *btv, struct video_audio *v, int set); void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void gvbctv3pci_audio(struct bttv *btv, struct video_audio *v, int set); void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void gvbctv5pci_audio(struct bttv *btv, struct video_audio *v, int set); void winfast2000_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void winfast2000_audio(struct bttv *btv, struct video_audio *v, int set); void pvbt878p9b_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void pvbt878p9b_audio(struct bttv *btv, struct video_audio *v, int set); void fv2000s_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void fv2000s_audio(struct bttv *btv, struct video_audio *v, int set); void windvr_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void windvr_audio(struct bttv *btv, struct video_audio *v, int set); void adtvk503_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
static void adtvk503_audio(struct bttv *btv, struct video_audio *v, int set);
...@@ -414,7 +414,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -414,7 +414,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = UNSET, .tuner_type = UNSET,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = avermedia_tvphone_audio, .audio_mode_gpio= avermedia_tvphone_audio,
.has_remote = 1, .has_remote = 1,
}, },
[BTTV_BOARD_MATRIX_VISION] = { [BTTV_BOARD_MATRIX_VISION] = {
...@@ -526,7 +526,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -526,7 +526,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_PAL, .tuner_type = TUNER_PHILIPS_PAL,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = avermedia_tv_stereo_audio, .audio_mode_gpio= avermedia_tv_stereo_audio,
.no_gpioirq = 1, .no_gpioirq = 1,
}, },
[BTTV_BOARD_VHX] = { [BTTV_BOARD_VHX] = {
...@@ -591,7 +591,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -591,7 +591,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = UNSET, .tuner_type = UNSET,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = winview_audio, .volume_gpio = winview_volume,
.has_radio = 1, .has_radio = 1,
}, },
[BTTV_BOARD_AVEC_INTERCAP] = { [BTTV_BOARD_AVEC_INTERCAP] = {
...@@ -715,7 +715,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -715,7 +715,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_PAL, .tuner_type = TUNER_PHILIPS_PAL,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = terratv_audio, .audio_mode_gpio= terratv_audio,
}, },
[BTTV_BOARD_HAUPPAUG_WCAM] = { [BTTV_BOARD_HAUPPAUG_WCAM] = {
.name = "Hauppauge WinCam newer (bt878)", .name = "Hauppauge WinCam newer (bt878)",
...@@ -763,7 +763,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -763,7 +763,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_PAL, .tuner_type = TUNER_PHILIPS_PAL,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = terratv_audio, .audio_mode_gpio= terratv_audio,
/* GPIO wiring: /* GPIO wiring:
External 20 pin connector (for Active Radio Upgrade board) External 20 pin connector (for Active Radio Upgrade board)
gpio00: i2c-sda gpio00: i2c-sda
...@@ -902,7 +902,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -902,7 +902,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_PAL, /* default for now, gpio reads BFFF06 for Pal bg+dk */ .tuner_type = TUNER_PHILIPS_PAL, /* default for now, gpio reads BFFF06 for Pal bg+dk */
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = winfast2000_audio, .audio_mode_gpio= winfast2000_audio,
.has_remote = 1, .has_remote = 1,
}, },
[BTTV_BOARD_CHRONOS_VS2] = { [BTTV_BOARD_CHRONOS_VS2] = {
...@@ -1022,7 +1022,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -1022,7 +1022,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.has_radio = 1, .has_radio = 1,
.audio_hook = avermedia_tvphone_audio, .audio_mode_gpio= avermedia_tvphone_audio,
}, },
[BTTV_BOARD_PV951] = { [BTTV_BOARD_PV951] = {
.name = "ProVideo PV951", /* pic16c54 */ .name = "ProVideo PV951", /* pic16c54 */
...@@ -1154,7 +1154,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -1154,7 +1154,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_ALPS_TSHC6_NTSC, .tuner_type = TUNER_ALPS_TSHC6_NTSC,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = gvbctv3pci_audio, .audio_mode_gpio= gvbctv3pci_audio,
}, },
[BTTV_BOARD_PXELVWPLTVPAK] = { [BTTV_BOARD_PXELVWPLTVPAK] = {
.name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP", .name = "Prolink PV-BT878P+4E / PixelView PlayTV PAK / Lenco MXTV-9578 CP",
...@@ -1459,7 +1459,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -1459,7 +1459,7 @@ struct tvcard bttv_tvcards[] = {
/* -dk-???: set mute=0x1800 for tda9874h daughterboard */ /* -dk-???: set mute=0x1800 for tda9874h daughterboard */
.gpiomux = { 0x0000,0x0800,0x1000,0x1000 }, .gpiomux = { 0x0000,0x0800,0x1000,0x1000 },
.gpiomute = 0x1800, .gpiomute = 0x1800,
.audio_hook = fv2000s_audio, .audio_mode_gpio= fv2000s_audio,
.no_msp34xx = 1, .no_msp34xx = 1,
.no_tda9875 = 1, .no_tda9875 = 1,
.needs_tvaudio = 1, .needs_tvaudio = 1,
...@@ -1500,7 +1500,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -1500,7 +1500,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_SHARP_2U5JF5540_NTSC, .tuner_type = TUNER_SHARP_2U5JF5540_NTSC,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = gvbctv3pci_audio, .audio_mode_gpio= gvbctv3pci_audio,
}, },
/* ---- card 0x44 ---------------------------------- */ /* ---- card 0x44 ---------------------------------- */
...@@ -1619,7 +1619,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -1619,7 +1619,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_PAL, .tuner_type = TUNER_PHILIPS_PAL,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = pvbt878p9b_audio, /* Note: not all cards have stereo */ .audio_mode_gpio= pvbt878p9b_audio, /* Note: not all cards have stereo */
.has_radio = 1, /* Note: not all cards have radio */ .has_radio = 1, /* Note: not all cards have radio */
.has_remote = 1, .has_remote = 1,
/* GPIO wiring: /* GPIO wiring:
...@@ -1697,7 +1697,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -1697,7 +1697,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_NTSC, .tuner_type = TUNER_PHILIPS_NTSC,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = windvr_audio, .audio_mode_gpio= windvr_audio,
}, },
[BTTV_BOARD_GRANDTEC_MULTI] = { [BTTV_BOARD_GRANDTEC_MULTI] = {
.name = "GrandTec Multi Capture Card (Bt878)", .name = "GrandTec Multi Capture Card (Bt878)",
...@@ -1794,7 +1794,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -1794,7 +1794,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_NTSC_M, .tuner_type = TUNER_PHILIPS_NTSC_M,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = gvbctv5pci_audio, .audio_mode_gpio= gvbctv5pci_audio,
.has_radio = 1, .has_radio = 1,
}, },
[BTTV_BOARD_OSPREY1x0] = { [BTTV_BOARD_OSPREY1x0] = {
...@@ -2093,7 +2093,7 @@ struct tvcard bttv_tvcards[] = { ...@@ -2093,7 +2093,7 @@ struct tvcard bttv_tvcards[] = {
.tuner_type = TUNER_PHILIPS_NTSC, .tuner_type = TUNER_PHILIPS_NTSC,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.audio_hook = adtvk503_audio, .audio_mode_gpio= adtvk503_audio,
}, },
/* ---- card 0x64 ---------------------------------- */ /* ---- card 0x64 ---------------------------------- */
...@@ -3160,8 +3160,8 @@ static void flyvideo_gpio(struct bttv *btv) ...@@ -3160,8 +3160,8 @@ static void flyvideo_gpio(struct bttv *btv)
/* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80 /* LR90 Audio Routing is done by 2 hef4052, so Audio_Mask has 4 bits: 0x001c80
* LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00 * LR26/LR50 only has 1 hef4052, Audio_Mask 0x000c00
* Audio options: from tuner, from tda9821/tda9821(mono,stereo,sap), from tda9874, ext., mute */ * Audio options: from tuner, from tda9821/tda9821(mono,stereo,sap), from tda9874, ext., mute */
if(has_tda9820_tda9821) btv->audio_hook = lt9415_audio; if(has_tda9820_tda9821) btv->audio_mode_gpio = lt9415_audio;
/* todo: if(has_tda9874) btv->audio_hook = fv2000s_audio; */ /* todo: if(has_tda9874) btv->audio_mode_gpio = fv2000s_audio; */
} }
static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1, static int miro_tunermap[] = { 0,6,2,3, 4,5,6,0, 3,0,4,5, 5,2,16,1,
...@@ -3581,8 +3581,10 @@ void __devinit bttv_init_card2(struct bttv *btv) ...@@ -3581,8 +3581,10 @@ void __devinit bttv_init_card2(struct bttv *btv)
btv->has_remote=1; btv->has_remote=1;
if (!bttv_tvcards[btv->c.type].no_gpioirq) if (!bttv_tvcards[btv->c.type].no_gpioirq)
btv->gpioirq=1; btv->gpioirq=1;
if (bttv_tvcards[btv->c.type].audio_hook) if (bttv_tvcards[btv->c.type].volume_gpio)
btv->audio_hook=bttv_tvcards[btv->c.type].audio_hook; btv->volume_gpio=bttv_tvcards[btv->c.type].volume_gpio;
if (bttv_tvcards[btv->c.type].audio_mode_gpio)
btv->audio_mode_gpio=bttv_tvcards[btv->c.type].audio_mode_gpio;
if (bttv_tvcards[btv->c.type].digital_mode == DIGITAL_MODE_CAMERA) { if (bttv_tvcards[btv->c.type].digital_mode == DIGITAL_MODE_CAMERA) {
/* detect Bt832 chip for quartzsight digital camera */ /* detect Bt832 chip for quartzsight digital camera */
......
...@@ -1434,20 +1434,6 @@ static void bttv_reinit_bt848(struct bttv *btv) ...@@ -1434,20 +1434,6 @@ static void bttv_reinit_bt848(struct bttv *btv)
static int get_control(struct bttv *btv, struct v4l2_control *c) static int get_control(struct bttv *btv, struct v4l2_control *c)
{ {
#ifdef CONFIG_VIDEO_V4L1
if (btv->audio_hook && (c->id == V4L2_CID_AUDIO_VOLUME)) {
struct video_audio va;
memset(&va,0,sizeof(va));
btv->audio_hook(btv,&va,0);
switch (c->id) {
case V4L2_CID_AUDIO_VOLUME:
c->value = va.volume;
break;
}
return 0;
}
#endif
switch (c->id) { switch (c->id) {
case V4L2_CID_BRIGHTNESS: case V4L2_CID_BRIGHTNESS:
c->value = btv->bright; c->value = btv->bright;
...@@ -1513,21 +1499,6 @@ static int set_control(struct bttv *btv, struct v4l2_control *c) ...@@ -1513,21 +1499,6 @@ static int set_control(struct bttv *btv, struct v4l2_control *c)
{ {
int val; int val;
#ifdef CONFIG_VIDEO_V4L1
if (btv->audio_hook && (c->id == V4L2_CID_AUDIO_VOLUME)) {
struct video_audio va;
memset(&va,0,sizeof(va));
btv->audio_hook(btv,&va,0);
switch (c->id) {
case V4L2_CID_AUDIO_VOLUME:
va.volume = c->value;
break;
}
btv->audio_hook(btv,&va,1);
return 0;
}
#endif
switch (c->id) { switch (c->id) {
case V4L2_CID_BRIGHTNESS: case V4L2_CID_BRIGHTNESS:
bt848_bright(btv,c->value); bt848_bright(btv,c->value);
...@@ -1545,6 +1516,11 @@ static int set_control(struct bttv *btv, struct v4l2_control *c) ...@@ -1545,6 +1516,11 @@ static int set_control(struct bttv *btv, struct v4l2_control *c)
audio_mute(btv, c->value); audio_mute(btv, c->value);
/* fall through */ /* fall through */
case V4L2_CID_AUDIO_VOLUME: case V4L2_CID_AUDIO_VOLUME:
if (btv->volume_gpio) {
btv->volume_gpio (btv, c->value);
}
bttv_call_i2c_clients(btv,VIDIOC_S_CTRL,c);
break;
case V4L2_CID_AUDIO_BALANCE: case V4L2_CID_AUDIO_BALANCE:
case V4L2_CID_AUDIO_BASS: case V4L2_CID_AUDIO_BASS:
case V4L2_CID_AUDIO_TREBLE: case V4L2_CID_AUDIO_TREBLE:
...@@ -1953,22 +1929,10 @@ static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg) ...@@ -1953,22 +1929,10 @@ static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg)
return -EINVAL; return -EINVAL;
mutex_lock(&btv->lock); mutex_lock(&btv->lock);
bttv_call_i2c_clients(btv, VIDIOC_S_TUNER, t); bttv_call_i2c_clients(btv, VIDIOC_S_TUNER, t);
#ifdef CONFIG_VIDEO_V4L1
if (btv->audio_hook) { if (btv->audio_mode_gpio) {
struct video_audio va; btv->audio_mode_gpio (btv,t,1);
memset(&va, 0, sizeof(struct video_audio));
if (t->audmode == V4L2_TUNER_MODE_MONO)
va.mode = VIDEO_SOUND_MONO;
else if (t->audmode == V4L2_TUNER_MODE_STEREO ||
t->audmode == V4L2_TUNER_MODE_LANG1_LANG2)
va.mode = VIDEO_SOUND_STEREO;
else if (t->audmode == V4L2_TUNER_MODE_LANG1)
va.mode = VIDEO_SOUND_LANG1;
else if (t->audmode == V4L2_TUNER_MODE_LANG2)
va.mode = VIDEO_SOUND_LANG2;
btv->audio_hook(btv,&va,1);
} }
#endif
mutex_unlock(&btv->lock); mutex_unlock(&btv->lock);
return 0; return 0;
} }
...@@ -2846,19 +2810,11 @@ static int bttv_do_ioctl(struct inode *inode, struct file *file, ...@@ -2846,19 +2810,11 @@ static int bttv_do_ioctl(struct inode *inode, struct file *file,
return 0; return 0;
} }
*c = bttv_ctls[i]; *c = bttv_ctls[i];
#ifdef CONFIG_VIDEO_V4L1
if (btv->audio_hook && i >= 4 && i <= 8) { if (!btv->volume_gpio &&
struct video_audio va; (bttv_ctls[i].id == V4L2_CID_AUDIO_VOLUME))
memset(&va,0,sizeof(va)); *c = no_ctl;
btv->audio_hook(btv,&va,0);
switch (bttv_ctls[i].id) {
case V4L2_CID_AUDIO_VOLUME:
if (!(va.flags & VIDEO_AUDIO_VOLUME))
*c = no_ctl;
break;
}
}
#endif
return 0; return 0;
} }
case VIDIOC_G_PARM: case VIDIOC_G_PARM:
...@@ -2890,26 +2846,11 @@ static int bttv_do_ioctl(struct inode *inode, struct file *file, ...@@ -2890,26 +2846,11 @@ static int bttv_do_ioctl(struct inode *inode, struct file *file,
t->type = V4L2_TUNER_ANALOG_TV; t->type = V4L2_TUNER_ANALOG_TV;
if (btread(BT848_DSTATUS)&BT848_DSTATUS_HLOC) if (btread(BT848_DSTATUS)&BT848_DSTATUS_HLOC)
t->signal = 0xffff; t->signal = 0xffff;
#ifdef CONFIG_VIDEO_V4L1
if (btv->audio_hook) { if (btv->audio_mode_gpio) {
/* Hmmm ... */ btv->audio_mode_gpio (btv,t,0);
struct video_audio va;
memset(&va, 0, sizeof(struct video_audio));
btv->audio_hook(btv,&va,0);
t->audmode = V4L2_TUNER_MODE_MONO;
t->rxsubchans = V4L2_TUNER_SUB_MONO;
if(va.mode & VIDEO_SOUND_STEREO) {
t->audmode = V4L2_TUNER_MODE_STEREO;
t->rxsubchans = V4L2_TUNER_SUB_STEREO;
}
if(va.mode & VIDEO_SOUND_LANG2) {
t->audmode = V4L2_TUNER_MODE_LANG1;
t->rxsubchans = V4L2_TUNER_SUB_LANG1
| V4L2_TUNER_SUB_LANG2;
}
} }
#endif
/* FIXME: fill capability+audmode */
mutex_unlock(&btv->lock); mutex_unlock(&btv->lock);
return 0; return 0;
} }
...@@ -3403,6 +3344,10 @@ static int radio_do_ioctl(struct inode *inode, struct file *file, ...@@ -3403,6 +3344,10 @@ static int radio_do_ioctl(struct inode *inode, struct file *file,
bttv_call_i2c_clients(btv, VIDIOC_G_TUNER, t); bttv_call_i2c_clients(btv, VIDIOC_G_TUNER, t);
if (btv->audio_mode_gpio) {
btv->audio_mode_gpio (btv,t,0);
}
mutex_unlock(&btv->lock); mutex_unlock(&btv->lock);
return 0; return 0;
......
...@@ -241,9 +241,10 @@ struct tvcard ...@@ -241,9 +241,10 @@ struct tvcard
unsigned int radio_addr; unsigned int radio_addr;
unsigned int has_radio; unsigned int has_radio;
#ifdef CONFIG_VIDEO_V4L1
void (*audio_hook)(struct bttv *btv, struct video_audio *v, int set); void (*volume_gpio)(struct bttv *btv, __u16 volume);
#endif void (*audio_mode_gpio)(struct bttv *btv, struct v4l2_tuner *tuner, int set);
void (*muxsel_hook)(struct bttv *btv, unsigned int input); void (*muxsel_hook)(struct bttv *btv, unsigned int input);
}; };
......
...@@ -336,9 +336,10 @@ struct bttv { ...@@ -336,9 +336,10 @@ struct bttv {
/* old gpio interface */ /* old gpio interface */
wait_queue_head_t gpioq; wait_queue_head_t gpioq;
int shutdown; int shutdown;
#ifdef CONFIG_VIDEO_V4L1
void (*audio_hook)(struct bttv *btv, struct video_audio *v, int set); void (*volume_gpio)(struct bttv *btv, __u16 volume);
#endif void (*audio_mode_gpio)(struct bttv *btv, struct v4l2_tuner *tuner, int set);
/* new gpio interface */ /* new gpio interface */
spinlock_t gpio_lock; spinlock_t gpio_lock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment