// SPDX-License-Identifier: GPL-2.0 /* * Handlers for board audio hooks, split from bttv-cards * * Copyright (c) 2006 Mauro Carvalho Chehab <[email protected]> */ #include "bttv-audio-hook.h" #include <linux/delay.h> /* ----------------------------------------------------------------------- */ /* winview */ void winview_volume(struct bttv *btv, __u16 volume) { … } /* ----------------------------------------------------------------------- */ /* mono/stereo control for various cards (which don't use i2c chips but */ /* connect something to the GPIO pins */ void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } /* * Mario Medina Nussbaum <[email protected]> * I discover that on BT848_GPIO_DATA address a byte 0xcce enable stereo, * 0xdde enables mono and 0xccd enables sap * * Petr Vandrovec <[email protected]> * P.S.: At least mask in line above is wrong - GPIO pins 3,2 select * input/output sound connection, so both must be set for output mode. * * Looks like it's needed only for the "tvphone", the "tvphone 98" * handles this with a tda9840 * */ void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } /* Lifetec 9415 handling */ void lt9415_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } /* TDA9821 on TerraTV+ Bt848, Bt878 */ void terratv_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } void winfast2000_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } /* * Dariusz Kowalewski <[email protected]> * sound control for Prolink PV-BT878P+9B (PixelView PlayTV Pro FM+NICAM * revision 9B has on-board TDA9874A sound decoder). * * Note: There are card variants without tda9874a. Forcing the "stereo sound route" * will mute this cards. */ void pvbt878p9b_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } /* * Dariusz Kowalewski <[email protected]> * sound control for FlyVideo 2000S (with tda9874 decoder) * based on pvbt878p9b_audio() - this is not tested, please fix!!! */ void fv2000s_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } /* * sound control for Canopus WinDVR PCI * Masaki Suzuki <[email protected]> */ void windvr_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … } /* * sound control for AD-TVK503 * Hiroshi Takekawa <[email protected]> */ void adtvk503_audio(struct bttv *btv, struct v4l2_tuner *t, int set) { … }