Lines Matching refs:desc

123 	struct CHIPDESC *desc;  member
328 struct CHIPDESC *desc = chip->desc; in chip_thread() local
349 mode = desc->getrxsubchans(chip); in chip_thread()
383 desc->setaudmode(chip, selected); in chip_thread()
1747 struct CHIPDESC *desc = chip->desc; in tvaudio_s_ctrl() local
1753 chip_write_masked(chip,desc->inputreg,desc->inputmute,desc->inputmask); in tvaudio_s_ctrl()
1755 chip_write_masked(chip,desc->inputreg, in tvaudio_s_ctrl()
1756 desc->inputmap[chip->input],desc->inputmask); in tvaudio_s_ctrl()
1767 chip_write(chip, desc->leftreg, desc->volfunc(left)); in tvaudio_s_ctrl()
1768 chip_write(chip, desc->rightreg, desc->volfunc(right)); in tvaudio_s_ctrl()
1772 chip_write(chip, desc->bassreg, desc->bassfunc(ctrl->val)); in tvaudio_s_ctrl()
1775 chip_write(chip, desc->treblereg, desc->treblefunc(ctrl->val)); in tvaudio_s_ctrl()
1798 struct CHIPDESC *desc = chip->desc; in tvaudio_s_routing() local
1800 if (!(desc->flags & CHIP_HAS_INPUTSEL)) in tvaudio_s_routing()
1808 chip_write_masked(chip, desc->inputreg, in tvaudio_s_routing()
1809 desc->inputmap[chip->input], desc->inputmask); in tvaudio_s_routing()
1816 struct CHIPDESC *desc = chip->desc; in tvaudio_s_tuner() local
1818 if (!desc->setaudmode) in tvaudio_s_tuner()
1838 desc->setaudmode(chip, vt->audmode); in tvaudio_s_tuner()
1846 struct CHIPDESC *desc = chip->desc; in tvaudio_g_tuner() local
1848 if (!desc->getrxsubchans) in tvaudio_g_tuner()
1854 vt->rxsubchans = desc->getrxsubchans(chip); in tvaudio_g_tuner()
1872 struct CHIPDESC *desc = chip->desc; in tvaudio_s_frequency() local
1883 desc->setaudmode(chip, V4L2_TUNER_MODE_MONO); in tvaudio_s_frequency()
1893 struct CHIPDESC *desc = chip->desc; in tvaudio_log_status() local
1895 v4l2_info(sd, "Chip: %s\n", desc->name); in tvaudio_log_status()
1941 struct CHIPDESC *desc; in tvaudio_probe() local
1947 for (desc = chiplist; desc->name != NULL; desc++) in tvaudio_probe()
1949 (desc == chiplist) ? "" : ", ", desc->name); in tvaudio_probe()
1961 for (desc = chiplist; desc->name != NULL; desc++) { in tvaudio_probe()
1962 if (0 == *(desc->insmodopt)) in tvaudio_probe()
1964 if (client->addr < desc->addr_lo || in tvaudio_probe()
1965 client->addr > desc->addr_hi) in tvaudio_probe()
1967 if (desc->checkit && !desc->checkit(chip)) in tvaudio_probe()
1971 if (desc->name == NULL) { in tvaudio_probe()
1975 v4l2_info(sd, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name); in tvaudio_probe()
1976 if (desc->flags) { in tvaudio_probe()
1978 (desc->flags & CHIP_HAS_VOLUME) ? " volume" : "", in tvaudio_probe()
1979 (desc->flags & CHIP_HAS_BASSTREBLE) ? " bass/treble" : "", in tvaudio_probe()
1980 (desc->flags & CHIP_HAS_INPUTSEL) ? " audiomux" : ""); in tvaudio_probe()
1985 strscpy(client->name, desc->name, I2C_NAME_SIZE); in tvaudio_probe()
1986 chip->desc = desc; in tvaudio_probe()
1987 chip->shadow.count = desc->registers+1; in tvaudio_probe()
1992 if (desc->initialize != NULL) in tvaudio_probe()
1993 desc->initialize(chip); in tvaudio_probe()
1995 chip_cmd(chip, "init", &desc->init); in tvaudio_probe()
1998 if (desc->flags & CHIP_HAS_INPUTSEL) in tvaudio_probe()
2001 if (desc->flags & CHIP_HAS_VOLUME) { in tvaudio_probe()
2002 if (!desc->volfunc) { in tvaudio_probe()
2007 desc->flags &= ~CHIP_HAS_VOLUME; in tvaudio_probe()
2012 desc->volinit ? desc->volinit : 65535); in tvaudio_probe()
2019 if (desc->flags & CHIP_HAS_BASSTREBLE) { in tvaudio_probe()
2020 if (!desc->bassfunc || !desc->treblefunc) { in tvaudio_probe()
2025 desc->flags &= ~CHIP_HAS_BASSTREBLE; in tvaudio_probe()
2030 desc->bassinit ? desc->bassinit : 32768); in tvaudio_probe()
2034 desc->trebleinit ? desc->trebleinit : 32768); in tvaudio_probe()
2050 if (desc->flags & CHIP_NEED_CHECKMODE) { in tvaudio_probe()
2051 if (!desc->getrxsubchans || !desc->setaudmode) { in tvaudio_probe()