/linux/sound/pci/hda/ |
H A D | hda_bind.c | 23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() local 28 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match() 29 u32 rev_id = codec->core.revision_id; in hda_codec_match() 34 codec->preset = list; in hda_codec_match() 44 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() local 47 if (codec->bus->shutdown) in hda_codec_unsol_event() 51 if (codec->core.dev.power.power_state.event != PM_EVENT_ON) in hda_codec_unsol_event() 54 if (codec->patch_ops.unsol_event) in hda_codec_unsol_event() 55 codec->patch_ops.unsol_event(codec, ev); in hda_codec_unsol_event() 63 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name() argument [all …]
|
H A D | patch_ca0132.c | 1135 struct hda_codec *codec; member 1181 #define ca0132_quirk(spec) ((spec)->codec->fixup_id) 1527 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() argument 1531 response = snd_hda_codec_read(codec, nid, 0, verb, parm); in codec_send_command() 1537 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() argument 1540 return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, in codec_set_converter_format() 1544 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() argument 1551 return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID, in codec_set_converter_stream_channel() 1556 static int chipio_send(struct hda_codec *codec, in chipio_send() argument 1565 res = snd_hda_codec_read(codec, WIDGET_CHIP_CTRL, 0, in chipio_send() [all …]
|
H A D | hda_codec.c | 27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument 29 #define codec_has_epss(codec) \ argument 30 ((codec)->core.power_caps & AC_PWRST_EPSS) 31 #define codec_has_clkstop(codec) \ argument 32 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local 41 struct hda_bus *bus = codec->bus; in codec_exec_verb() 48 snd_hda_power_up_pm(codec); in codec_exec_verb() 52 err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, in codec_exec_verb() [all …]
|
H A D | patch_conexant.c | 74 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() argument 76 struct conexant_spec *spec = codec->spec; in cx_auto_parse_beep() 79 for_each_hda_codec_node(nid, codec) in cx_auto_parse_beep() 80 if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) in cx_auto_parse_beep() 85 #define cx_auto_parse_beep(codec) 0 argument 93 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() argument 95 struct conexant_spec *spec = codec->spec; in cx_auto_parse_eapd() 98 for_each_hda_codec_node(nid, codec) { in cx_auto_parse_eapd() 99 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in cx_auto_parse_eapd() 101 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)) in cx_auto_parse_eapd() [all …]
|
H A D | patch_hdmi.c | 78 struct hda_codec *codec; member 99 int (*pin_get_eld)(struct hda_codec *codec, hda_nid_t pin_nid, 102 void (*pin_setup_infoframe)(struct hda_codec *codec, hda_nid_t pin_nid, 107 int (*pin_hbr_setup)(struct hda_codec *codec, hda_nid_t pin_nid, 110 int (*setup_stream)(struct hda_codec *codec, hda_nid_t cvt_nid, 114 void (*pin_cvt_fixup)(struct hda_codec *codec, 132 struct hda_codec *codec; member 197 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp() argument 199 struct hdmi_spec *spec = codec->spec; in codec_has_acomp() 203 #define codec_has_acomp(codec) false argument [all …]
|
H A D | hda_generic.c | 105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() argument 107 struct hda_gen_spec *spec = codec->spec; in parse_user_hints() 110 val = snd_hda_get_bool_hint(codec, "jack_detect"); in parse_user_hints() 112 codec->no_jack_detect = !val; in parse_user_hints() 113 val = snd_hda_get_bool_hint(codec, "inv_jack_detect"); in parse_user_hints() 115 codec->inv_jack_detect = !!val; in parse_user_hints() 116 val = snd_hda_get_bool_hint(codec, "trigger_sense"); in parse_user_hints() 118 codec->no_trigger_sense = !val; in parse_user_hints() 119 val = snd_hda_get_bool_hint(codec, "inv_eapd"); in parse_user_hints() 121 codec->inv_eapd = !!val; in parse_user_hints() [all …]
|
H A D | patch_realtek.c | 114 void (*init_hook)(struct hda_codec *codec); 115 void (*power_hook)(struct hda_codec *codec); 116 void (*shutup)(struct hda_codec *codec); 145 static void coef_mutex_lock(struct hda_codec *codec) in coef_mutex_lock() argument 147 struct alc_spec *spec = codec->spec; in coef_mutex_lock() 149 snd_hda_power_up_pm(codec); in coef_mutex_lock() 153 static void coef_mutex_unlock(struct hda_codec *codec) in coef_mutex_unlock() argument 155 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() 158 snd_hda_power_down_pm(codec); in coef_mutex_unlock() 161 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx() argument [all …]
|
H A D | hda_jack.c | 29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument 31 if (codec->no_jack_detect) in is_jack_detectable() 33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable() 35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable() 38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable() 39 !codec->jackpoll_interval) in is_jack_detectable() 46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in read_pin_sense() argument 51 if (!codec->no_trigger_sense) { in read_pin_sense() 52 pincap = snd_hda_query_pin_caps(codec, nid); in read_pin_sense() 54 snd_hda_codec_read(codec, nid, 0, in read_pin_sense() [all …]
|
H A D | patch_cs8409.c | 22 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config() argument 24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() 28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() 55 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) in cs8409_alloc_spec() argument 62 codec->spec = spec; in cs8409_alloc_spec() 63 spec->codec = codec; in cs8409_alloc_spec() 64 codec->power_save_node = 1; in cs8409_alloc_spec() 72 static inline int cs8409_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs8409_vendor_coef_get() argument [all …]
|
H A D | patch_cmedia.c | 48 struct hda_codec *codec; member 127 hp_jack_plugin = snd_hda_jack_detect(spec->codec, hp_pin); in cm9825_unsol_hp_delayed() 129 codec_dbg(spec->codec, "hp_jack_plugin %d, hp_pin 0x%X\n", in cm9825_unsol_hp_delayed() 134 snd_hda_codec_write(spec->codec, 0x42, 0, in cm9825_unsol_hp_delayed() 137 codec_dbg(spec->codec, "codec_write err %d\n", err); in cm9825_unsol_hp_delayed() 139 snd_hda_sequence_write(spec->codec, spec->chip_hp_remove_verbs); in cm9825_unsol_hp_delayed() 141 snd_hda_sequence_write(spec->codec, in cm9825_unsol_hp_delayed() 145 jack = snd_hda_jack_tbl_get(spec->codec, hp_pin); in cm9825_unsol_hp_delayed() 148 snd_hda_jack_report_sync(spec->codec); in cm9825_unsol_hp_delayed() 152 static void hp_callback(struct hda_codec *codec, struct hda_jack_callback *cb) in hp_callback() argument [all …]
|
H A D | patch_senarytech.c | 63 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep() argument 65 struct senary_spec *spec = codec->spec; in senary_auto_parse_beep() 68 for_each_hda_codec_node(nid, codec) in senary_auto_parse_beep() 69 if ((get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) && in senary_auto_parse_beep() 70 (get_wcaps(codec, nid) & (AC_WCAP_OUT_AMP | AC_WCAP_AMP_OVRD))) in senary_auto_parse_beep() 75 #define senary_auto_parse_beep(codec) 0 argument 79 static void senary_auto_parse_eapd(struct hda_codec *codec) in senary_auto_parse_eapd() argument 81 struct senary_spec *spec = codec->spec; in senary_auto_parse_eapd() 84 for_each_hda_codec_node(nid, codec) { in senary_auto_parse_eapd() 85 if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) in senary_auto_parse_eapd() [all …]
|
H A D | hda_sysfs.c | 3 * sysfs interface for HD-audio codec 33 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show() local 34 snd_hda_update_power_acct(codec); in power_on_acct_show() 35 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct)); in power_on_acct_show() 42 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show() local 43 snd_hda_update_power_acct(codec); in power_off_acct_show() 44 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct)); in power_off_acct_show() 55 struct hda_codec *codec = dev_get_drvdata(dev); \ 56 return sysfs_emit(buf, "0x%x\n", codec->field); \ 64 struct hda_codec *codec 78 pin_configs_show(struct hda_codec * codec,struct snd_array * list,char * buf) pin_configs_show() argument 97 struct hda_codec *codec = dev_get_drvdata(dev); init_pin_configs_show() local 105 struct hda_codec *codec = dev_get_drvdata(dev); driver_pin_configs_show() local 115 clear_codec(struct hda_codec * codec) clear_codec() argument 128 reconfig_codec(struct hda_codec * codec) reconfig_codec() argument 218 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_show() local 230 parse_init_verbs(struct hda_codec * codec,const char * buf) parse_init_verbs() argument 256 struct hda_codec *codec = dev_get_drvdata(dev); init_verbs_store() local 267 struct hda_codec *codec = dev_get_drvdata(dev); hints_show() local 279 get_hint(struct hda_codec * codec,const char * key) get_hint() argument 306 parse_hints(struct hda_codec * codec,const char * buf) parse_hints() argument 361 struct hda_codec *codec = dev_get_drvdata(dev); hints_store() local 372 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_show() local 376 parse_user_pin_configs(struct hda_codec * codec,const char * buf) parse_user_pin_configs() argument 394 struct hda_codec *codec = dev_get_drvdata(dev); user_pin_configs_store() local 416 snd_hda_get_hint(struct hda_codec * codec,const char * key) snd_hda_get_hint() argument 432 snd_hda_get_bool_hint(struct hda_codec * codec,const char * key) snd_hda_get_bool_hint() argument 468 snd_hda_get_int_hint(struct hda_codec * codec,const char * key,int * valp) snd_hda_get_int_hint() argument 539 struct hda_codec *codec; parse_codec_mode() local 713 struct hda_codec *codec; snd_hda_load_patch() local 767 snd_hda_sysfs_init(struct hda_codec * codec) snd_hda_sysfs_init() argument 777 snd_hda_sysfs_clear(struct hda_codec * codec) snd_hda_sysfs_clear() argument [all...] |
H A D | hda_proc.c | 22 #define param_read(codec, nid, parm) \ argument 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument 75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() argument 80 list_for_each_entry(cpcm, &codec->pcm_list_head, list) { in print_nid_pcms() 94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() argument 97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps() 112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument 126 if (snd_hda_get_raw_connections(codec, nid, &conn, 1) < 0) in is_stereo_amps() 129 wcaps = snd_hda_param_read(codec, conn, AC_PAR_AUDIO_WIDGET_CAP); in is_stereo_amps() [all …]
|
H A D | patch_si3054.c | 64 #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) argument 65 #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) argument 66 #define SET_REG_CACHE(codec,reg,val) \ argument 67 snd_hda_codec_write_cache(codec,reg,0,SI3054_VERB_WRITE_NODE,val) 88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get() local 91 uvalue->value.integer.value[0] = (GET_REG(codec, reg)) & mask ? 1 : 0 ; in si3054_switch_get() 98 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put() local 102 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) | mask); in si3054_switch_put() 104 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) & ~mask); in si3054_switch_put() 125 static int si3054_build_controls(struct hda_codec *codec) in si3054_build_controls() argument [all …]
|
H A D | hda_jack.h | 55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() argument 65 return snd_hda_jack_tbl_get_mst(codec, nid, 0); in snd_hda_jack_tbl_get() 69 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, 72 void snd_hda_jack_tbl_disconnect(struct hda_codec *codec); 73 void snd_hda_jack_tbl_clear(struct hda_codec *codec); 75 void snd_hda_jack_set_dirty_all(struct hda_codec *codec); 77 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, 81 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, 95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() argument [all …]
|
/linux/sound/pci/ali5451/ |
H A D | ali5451.c | 141 #define ALI_REG(codec, x) ((codec)->port + x) argument 180 struct snd_ali *codec; member 264 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() argument 267 return (unsigned int)inl(ALI_REG(codec, port)); in snd_ali_5451_peek() 270 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke() argument 274 outl((unsigned int)val, ALI_REG(codec, port)); in snd_ali_5451_poke() 277 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready() argument 286 res = snd_ali_5451_peek(codec,port); in snd_ali_codec_ready() 294 snd_ali_5451_poke(codec, port, res & ~0x8000); in snd_ali_codec_ready() 295 dev_dbg(codec->card->dev, "ali_codec_ready: codec is not ready.\n"); in snd_ali_codec_ready() [all …]
|
/linux/sound/hda/ |
H A D | hdac_device.c | 19 static void setup_fg_nodes(struct hdac_device *codec); 20 static int get_codec_vendor_name(struct hdac_device *codec); 41 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() argument 48 dev = &codec->dev; in snd_hdac_device_init() 57 codec->bus = bus; in snd_hdac_device_init() 58 codec->addr = addr; in snd_hdac_device_init() 59 codec->type = HDA_DEV_CORE; in snd_hdac_device_init() 60 mutex_init(&codec->widget_lock); in snd_hdac_device_init() 61 mutex_init(&codec->regmap_lock); in snd_hdac_device_init() 62 pm_runtime_set_active(&codec->dev); in snd_hdac_device_init() [all …]
|
H A D | hdac_regmap.c | 25 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock() argument 27 return snd_hdac_keep_power_up(codec); in codec_pm_lock() 30 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock() argument 33 snd_hdac_power_down_pm(codec); in codec_pm_unlock() 40 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local 45 return !codec->cache_coef; in hda_volatile_reg() 67 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local 72 snd_array_for_each(&codec->vendor_verbs, i, v) { in hda_writeable_reg() 77 if (codec->caps_overwriting) in hda_writeable_reg() 85 return codec->cache_coef; in hda_writeable_reg() [all …]
|
H A D | hdac_sysfs.c | 24 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 25 return sysfs_emit(buf, "0x%x\n", codec->type); \ 34 struct hdac_device *codec = dev_to_hdac_dev(dev); \ 36 codec->type ? codec->type : ""); \ 89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, 91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, 114 struct hdac_device *codec; in widget_attr_show() local 119 nid = get_codec_nid(kobj, &codec); in widget_attr_show() 122 return wid_attr->show(codec, nid, wid_attr, buf); in widget_attr_show() 130 struct hdac_device *codec; in widget_attr_store() local [all …]
|
/linux/drivers/media/pci/zoran/ |
H A D | videocodec.c | 20 struct videocodec *codec; member 25 const struct videocodec *codec; member 42 struct videocodec *codec; in videocodec_attach() local 63 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach() 64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach() 66 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach() 67 if (!codec) in videocodec_attach() 70 res = strlen(codec->name); in videocodec_attach() 71 snprintf(codec->name + res, sizeof(codec->name) - res, "[%d]", h->attached); in videocodec_attach() 72 codec->master_data = master; in videocodec_attach() [all …]
|
H A D | zr36016.c | 36 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_read() 39 if (ptr->codec->master_data->readreg) in zr36016_read() 40 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36016_read() 51 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_write() 56 if (ptr->codec->master_data->writereg) in zr36016_write() 57 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36016_write() 71 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_readi() 74 if ((ptr->codec->master_data->writereg) && (ptr->codec->master_data->readreg)) { in zr36016_readi() 75 ptr->codec->master_data->writereg(ptr->codec, ZR016_IADDR, reg & 0x0F); in zr36016_readi() 76 value = (ptr->codec->master_data->readreg(ptr->codec, ZR016_IDATA)) & 0xFF; in zr36016_readi() [all …]
|
/linux/include/sound/ |
H A D | hda_codec.h | 105 int (*build_controls)(struct hda_codec *codec); 106 int (*build_pcms)(struct hda_codec *codec); 107 int (*init)(struct hda_codec *codec); 108 void (*free)(struct hda_codec *codec); 109 void (*unsol_event)(struct hda_codec *codec, unsigned int res); 110 void (*set_power_state)(struct hda_codec *codec, hda_nid_t fg, 112 int (*suspend)(struct hda_codec *codec); 113 int (*resume)(struct hda_codec *codec); 114 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 115 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); [all …]
|
H A D | hda_regmap.h | 15 int snd_hdac_regmap_init(struct hdac_device *codec); 16 void snd_hdac_regmap_exit(struct hdac_device *codec); 17 int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, 19 int snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, 21 int snd_hdac_regmap_read_raw_uncached(struct hdac_device *codec, 23 int snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg, 25 int snd_hdac_regmap_update_raw(struct hdac_device *codec, unsigned int reg, 27 int snd_hdac_regmap_update_raw_once(struct hdac_device *codec, unsigned int reg, 29 void snd_hdac_regmap_sync(struct hdac_device *codec); 79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write() argument [all …]
|
/linux/sound/soc/codecs/ |
H A D | cs40l50-codec.c | 77 static int cs40l50_swap_ext_clk(struct cs40l50_codec *codec, const unsigned int clk_src) in cs40l50_swap_ext_clk() argument 84 ret = cs40l50_get_clk_config(codec->bclk_ratio * codec->rate, &cfg); in cs40l50_swap_ext_clk() 95 ret = regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk() 102 ret = regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk() 109 return regmap_update_bits(codec->regmap, CS40L50_REFCLK_INPUT, in cs40l50_swap_ext_clk() 120 struct cs40l50_codec *codec = snd_soc_component_get_drvdata(comp); in cs40l50_clk_en() local 125 ret = cs40l50_dsp_write(codec->dev, codec->regmap, CS40L50_STOP_PLAYBACK); in cs40l50_clk_en() 129 ret = cs40l50_dsp_write(codec->dev, codec->regmap, CS40L50_START_I2S); in cs40l50_clk_en() 133 ret = cs40l50_swap_ext_clk(codec, CS40L50_PLL_REFCLK_BCLK); in cs40l50_clk_en() 138 ret = cs40l50_swap_ext_clk(codec, CS40L50_PLL_REFCLK_MCLK); in cs40l50_clk_en() [all …]
|
H A D | hda.c | 16 static int hda_codec_create_dais(struct hda_codec *codec, int pcm_count, in hda_codec_create_dais() argument 19 struct device *dev = &codec->core.dev; in hda_codec_create_dais() 28 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in hda_codec_create_dais() 83 static int hda_codec_register_dais(struct hda_codec *codec, struct snd_soc_component *component) in hda_codec_register_dais() argument 90 if (list_empty(&codec->pcm_list_head)) in hda_codec_register_dais() 92 list_for_each_entry(pcm, &codec->pcm_list_head, list) in hda_codec_register_dais() 95 ret = hda_codec_create_dais(codec, pcm_count, &drvs); in hda_codec_register_dais() 101 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_register_dais() 124 static void hda_codec_unregister_dais(struct hda_codec *codec, in hda_codec_unregister_dais() argument 133 list_for_each_entry(pcm, &codec->pcm_list_head, list) { in hda_codec_unregister_dais() [all …]
|