/* * * This file is part of Open Sound System. * * Copyright (C) 2008 Paulo Matias * * I hereby grant permanent and irrevocable permission for * 4Front Technologies to use and sublicense this code * unrestrictedly. * * Permission is granted for third parties to use this code * under the terms of either BSD, GPL v2 or CDDL licenses. * */ /* Codec index is 0 */ /* Codec vendor 10ec:0260 */ /* HD codec revision 1.0 (4.0) (0x00100400) */ /* Subsystem ID 1025160d */ #include "hdaudio_cfg.h" #include "hdaudio.h" #include "hdaudio_codec.h" #include "hdaudio_dedicated.h" #include "hdaudio_mixers.h" int hdaudio_travelmate4060_mixer_init (int dev, hdaudio_mixer_t * mixer, int cad, int top_group) { DDB(cmn_err(CE_CONT, "hdaudio_travelmate4060_mixer_init got called.\n")); /* Acer TravelMate 4060 and similar Aspire series, with ALC260 codec, * need that we init GPIO in order to all mixer controls being found * and in order to internal speaker and headphone jack to work. */ corb_write(mixer, cad, 0x01, 0, SET_GPIO_ENABLE, 1); corb_write(mixer, cad, 0x01, 0, SET_GPIO_DIR, 1); corb_write(mixer, cad, 0x01, 0, SET_GPIO_DATA, 1); return hdaudio_generic_mixer_init(dev, mixer, cad, top_group); }