intelhaddata 167 sound/x86/intel_hdmi_audio.c had_substream_get(struct snd_intelhad *intelhaddata) intelhaddata 172 sound/x86/intel_hdmi_audio.c spin_lock_irqsave(&intelhaddata->had_spinlock, flags); intelhaddata 173 sound/x86/intel_hdmi_audio.c substream = intelhaddata->stream_info.substream; intelhaddata 175 sound/x86/intel_hdmi_audio.c intelhaddata->stream_info.substream_refcount++; intelhaddata 176 sound/x86/intel_hdmi_audio.c spin_unlock_irqrestore(&intelhaddata->had_spinlock, flags); intelhaddata 183 sound/x86/intel_hdmi_audio.c static void had_substream_put(struct snd_intelhad *intelhaddata) intelhaddata 187 sound/x86/intel_hdmi_audio.c spin_lock_irqsave(&intelhaddata->had_spinlock, flags); intelhaddata 188 sound/x86/intel_hdmi_audio.c intelhaddata->stream_info.substream_refcount--; intelhaddata 189 sound/x86/intel_hdmi_audio.c spin_unlock_irqrestore(&intelhaddata->had_spinlock, flags); intelhaddata 247 sound/x86/intel_hdmi_audio.c static void had_enable_audio(struct snd_intelhad *intelhaddata, intelhaddata 251 sound/x86/intel_hdmi_audio.c intelhaddata->aud_config.regx.aud_en = enable; intelhaddata 252 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_CONFIG, intelhaddata 253 sound/x86/intel_hdmi_audio.c intelhaddata->aud_config.regval); intelhaddata 270 sound/x86/intel_hdmi_audio.c static void had_reset_audio(struct snd_intelhad *intelhaddata) intelhaddata 272 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMI_STATUS, intelhaddata 274 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMI_STATUS, 0); intelhaddata 282 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 287 sound/x86/intel_hdmi_audio.c ch_stat0.regx.lpcm_id = (intelhaddata->aes_bits & intelhaddata 289 sound/x86/intel_hdmi_audio.c ch_stat0.regx.clk_acc = (intelhaddata->aes_bits & intelhaddata 321 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, intelhaddata 338 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, intelhaddata 349 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 355 sound/x86/intel_hdmi_audio.c had_prog_status_reg(substream, intelhaddata); intelhaddata 360 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_BUF_CONFIG, buf_cfg.regval); intelhaddata 378 sound/x86/intel_hdmi_audio.c if (intelhaddata->dp_output) { intelhaddata 383 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_CONFIG, cfg_val.regval); intelhaddata 384 sound/x86/intel_hdmi_audio.c intelhaddata->aud_config = cfg_val; intelhaddata 416 sound/x86/intel_hdmi_audio.c static int had_channel_allocation(struct snd_intelhad *intelhaddata, intelhaddata 437 sound/x86/intel_hdmi_audio.c if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) intelhaddata 451 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "select CA 0x%x for %d\n", ca, channels); intelhaddata 468 sound/x86/intel_hdmi_audio.c static void had_build_channel_allocation_map(struct snd_intelhad *intelhaddata) intelhaddata 476 sound/x86/intel_hdmi_audio.c kfree(intelhaddata->chmap->chmap); intelhaddata 477 sound/x86/intel_hdmi_audio.c intelhaddata->chmap->chmap = NULL; intelhaddata 483 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "eld speaker = %x\n", intelhaddata 484 sound/x86/intel_hdmi_audio.c intelhaddata->eld[DRM_ELD_SPEAKER]); intelhaddata 495 sound/x86/intel_hdmi_audio.c eld_high = intelhaddata->eld[DRM_ELD_SPEAKER] & eld_high_mask; intelhaddata 502 sound/x86/intel_hdmi_audio.c intelhaddata->eld[DRM_ELD_SPEAKER] &= intelhaddata 510 sound/x86/intel_hdmi_audio.c if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) intelhaddata 522 sound/x86/intel_hdmi_audio.c intelhaddata->chmap->chmap = chmap; intelhaddata 547 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata = info->private_data; intelhaddata 553 sound/x86/intel_hdmi_audio.c mutex_lock(&intelhaddata->mutex); intelhaddata 554 sound/x86/intel_hdmi_audio.c if (!intelhaddata->chmap->chmap) { intelhaddata 555 sound/x86/intel_hdmi_audio.c mutex_unlock(&intelhaddata->mutex); intelhaddata 559 sound/x86/intel_hdmi_audio.c chmap = intelhaddata->chmap->chmap; intelhaddata 562 sound/x86/intel_hdmi_audio.c mutex_unlock(&intelhaddata->mutex); intelhaddata 567 sound/x86/intel_hdmi_audio.c static int had_register_chmap_ctls(struct snd_intelhad *intelhaddata, intelhaddata 573 sound/x86/intel_hdmi_audio.c NULL, 0, (unsigned long)intelhaddata, intelhaddata 574 sound/x86/intel_hdmi_audio.c &intelhaddata->chmap); intelhaddata 578 sound/x86/intel_hdmi_audio.c intelhaddata->chmap->private_data = intelhaddata; intelhaddata 579 sound/x86/intel_hdmi_audio.c intelhaddata->chmap->kctl->info = had_chmap_ctl_info; intelhaddata 580 sound/x86/intel_hdmi_audio.c intelhaddata->chmap->kctl->get = had_chmap_ctl_get; intelhaddata 581 sound/x86/intel_hdmi_audio.c intelhaddata->chmap->chmap = NULL; intelhaddata 590 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 603 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_CNTL_ST, ctrl_state.regval); intelhaddata 605 sound/x86/intel_hdmi_audio.c ca = had_channel_allocation(intelhaddata, channels); intelhaddata 606 sound/x86/intel_hdmi_audio.c if (intelhaddata->dp_output) { intelhaddata 625 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMIW_INFOFR, info_frame); intelhaddata 626 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMIW_INFOFR, frame2.regval); intelhaddata 627 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMIW_INFOFR, frame3.regval); intelhaddata 631 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMIW_INFOFR, 0x0); intelhaddata 635 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_CNTL_ST, ctrl_state.regval); intelhaddata 729 sound/x86/intel_hdmi_audio.c u32 n_param, struct snd_intelhad *intelhaddata) intelhaddata 734 sound/x86/intel_hdmi_audio.c if (intelhaddata->dp_output) { intelhaddata 743 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "TMDS value=%d, N value=%d, CTS Value=%d\n", intelhaddata 745 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMI_CTS, (BIT(24) | cts_val)); intelhaddata 800 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 804 sound/x86/intel_hdmi_audio.c if (intelhaddata->dp_output) { intelhaddata 820 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_N_ENABLE, (BIT(24) | n_val)); intelhaddata 870 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 872 sound/x86/intel_hdmi_audio.c int idx = intelhaddata->bd_head; intelhaddata 873 sound/x86/intel_hdmi_audio.c int ofs = intelhaddata->pcmbuf_filled * intelhaddata->period_bytes; intelhaddata 879 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_BUF_ADDR(idx), addr); intelhaddata 880 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_BUF_LEN(idx), intelhaddata 881 sound/x86/intel_hdmi_audio.c intelhaddata->period_bytes); intelhaddata 884 sound/x86/intel_hdmi_audio.c intelhaddata->bd_head++; intelhaddata 885 sound/x86/intel_hdmi_audio.c intelhaddata->bd_head %= intelhaddata->num_bds; intelhaddata 886 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_filled++; intelhaddata 887 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_filled %= substream->runtime->periods; intelhaddata 891 sound/x86/intel_hdmi_audio.c static void had_invalidate_bd(struct snd_intelhad *intelhaddata, intelhaddata 894 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_BUF_ADDR(idx), 0); intelhaddata 895 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_BUF_LEN(idx), 0); intelhaddata 900 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 906 sound/x86/intel_hdmi_audio.c intelhaddata->num_bds = min(num_periods, HAD_NUM_OF_RING_BUFS); intelhaddata 908 sound/x86/intel_hdmi_audio.c intelhaddata->num_bds = max(intelhaddata->num_bds, 2U); intelhaddata 909 sound/x86/intel_hdmi_audio.c intelhaddata->period_bytes = intelhaddata 911 sound/x86/intel_hdmi_audio.c WARN_ON(intelhaddata->period_bytes & 0x3f); intelhaddata 913 sound/x86/intel_hdmi_audio.c intelhaddata->bd_head = 0; intelhaddata 914 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_head = 0; intelhaddata 915 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_filled = 0; intelhaddata 918 sound/x86/intel_hdmi_audio.c if (i < intelhaddata->num_bds) intelhaddata 919 sound/x86/intel_hdmi_audio.c had_prog_bd(substream, intelhaddata); intelhaddata 921 sound/x86/intel_hdmi_audio.c had_invalidate_bd(intelhaddata, i); intelhaddata 924 sound/x86/intel_hdmi_audio.c intelhaddata->bd_head = 0; /* reset at head again before starting */ intelhaddata 929 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 934 sound/x86/intel_hdmi_audio.c had_prog_bd(substream, intelhaddata); intelhaddata 937 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_head++; intelhaddata 938 sound/x86/intel_hdmi_audio.c intelhaddata->pcmbuf_head %= num_periods; intelhaddata 945 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata) intelhaddata 951 sound/x86/intel_hdmi_audio.c spin_lock_irqsave(&intelhaddata->had_spinlock, flags); intelhaddata 954 sound/x86/intel_hdmi_audio.c had_read_register(intelhaddata, intelhaddata 955 sound/x86/intel_hdmi_audio.c AUD_BUF_LEN(intelhaddata->bd_head), intelhaddata 957 sound/x86/intel_hdmi_audio.c if (len < 0 || len > intelhaddata->period_bytes) { intelhaddata 958 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "Invalid buf length %d\n", intelhaddata 968 sound/x86/intel_hdmi_audio.c if (++processed >= intelhaddata->num_bds) { intelhaddata 972 sound/x86/intel_hdmi_audio.c had_advance_ringbuf(substream, intelhaddata); intelhaddata 975 sound/x86/intel_hdmi_audio.c len = intelhaddata->period_bytes - len; intelhaddata 976 sound/x86/intel_hdmi_audio.c len += intelhaddata->period_bytes * intelhaddata->pcmbuf_head; intelhaddata 978 sound/x86/intel_hdmi_audio.c spin_unlock_irqrestore(&intelhaddata->had_spinlock, flags); intelhaddata 983 sound/x86/intel_hdmi_audio.c static void had_process_buffer_done(struct snd_intelhad *intelhaddata) intelhaddata 987 sound/x86/intel_hdmi_audio.c substream = had_substream_get(intelhaddata); intelhaddata 991 sound/x86/intel_hdmi_audio.c if (!intelhaddata->connected) { intelhaddata 997 sound/x86/intel_hdmi_audio.c if (had_process_ringbuf(substream, intelhaddata) < 0) intelhaddata 1003 sound/x86/intel_hdmi_audio.c had_substream_put(intelhaddata); intelhaddata 1010 sound/x86/intel_hdmi_audio.c static void wait_clear_underrun_bit(struct snd_intelhad *intelhaddata) intelhaddata 1017 sound/x86/intel_hdmi_audio.c had_read_register(intelhaddata, AUD_HDMI_STATUS, &val); intelhaddata 1022 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_HDMI_STATUS, val); intelhaddata 1024 sound/x86/intel_hdmi_audio.c dev_err(intelhaddata->dev, "Unable to clear UNDERRUN bits\n"); intelhaddata 1031 sound/x86/intel_hdmi_audio.c static void had_do_reset(struct snd_intelhad *intelhaddata) intelhaddata 1033 sound/x86/intel_hdmi_audio.c if (!intelhaddata->need_reset || !intelhaddata->connected) intelhaddata 1037 sound/x86/intel_hdmi_audio.c had_reset_audio(intelhaddata); intelhaddata 1038 sound/x86/intel_hdmi_audio.c wait_clear_underrun_bit(intelhaddata); intelhaddata 1039 sound/x86/intel_hdmi_audio.c intelhaddata->need_reset = false; intelhaddata 1043 sound/x86/intel_hdmi_audio.c static void had_process_buffer_underrun(struct snd_intelhad *intelhaddata) intelhaddata 1048 sound/x86/intel_hdmi_audio.c substream = had_substream_get(intelhaddata); intelhaddata 1051 sound/x86/intel_hdmi_audio.c had_substream_put(intelhaddata); intelhaddata 1053 sound/x86/intel_hdmi_audio.c intelhaddata->need_reset = true; intelhaddata 1061 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata; intelhaddata 1065 sound/x86/intel_hdmi_audio.c intelhaddata = snd_pcm_substream_chip(substream); intelhaddata 1068 sound/x86/intel_hdmi_audio.c pm_runtime_get_sync(intelhaddata->dev); intelhaddata 1091 sound/x86/intel_hdmi_audio.c spin_lock_irq(&intelhaddata->had_spinlock); intelhaddata 1092 sound/x86/intel_hdmi_audio.c intelhaddata->stream_info.substream = substream; intelhaddata 1093 sound/x86/intel_hdmi_audio.c intelhaddata->stream_info.substream_refcount++; intelhaddata 1094 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&intelhaddata->had_spinlock); intelhaddata 1098 sound/x86/intel_hdmi_audio.c pm_runtime_mark_last_busy(intelhaddata->dev); intelhaddata 1099 sound/x86/intel_hdmi_audio.c pm_runtime_put_autosuspend(intelhaddata->dev); intelhaddata 1108 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata; intelhaddata 1110 sound/x86/intel_hdmi_audio.c intelhaddata = snd_pcm_substream_chip(substream); intelhaddata 1113 sound/x86/intel_hdmi_audio.c spin_lock_irq(&intelhaddata->had_spinlock); intelhaddata 1114 sound/x86/intel_hdmi_audio.c intelhaddata->stream_info.substream = NULL; intelhaddata 1115 sound/x86/intel_hdmi_audio.c intelhaddata->stream_info.substream_refcount--; intelhaddata 1116 sound/x86/intel_hdmi_audio.c while (intelhaddata->stream_info.substream_refcount > 0) { intelhaddata 1117 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&intelhaddata->had_spinlock); intelhaddata 1119 sound/x86/intel_hdmi_audio.c spin_lock_irq(&intelhaddata->had_spinlock); intelhaddata 1121 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&intelhaddata->had_spinlock); intelhaddata 1123 sound/x86/intel_hdmi_audio.c pm_runtime_mark_last_busy(intelhaddata->dev); intelhaddata 1124 sound/x86/intel_hdmi_audio.c pm_runtime_put_autosuspend(intelhaddata->dev); intelhaddata 1134 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata; intelhaddata 1137 sound/x86/intel_hdmi_audio.c intelhaddata = snd_pcm_substream_chip(substream); intelhaddata 1142 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "%s:allocated memory = %d\n", intelhaddata 1152 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata; intelhaddata 1154 sound/x86/intel_hdmi_audio.c intelhaddata = snd_pcm_substream_chip(substream); intelhaddata 1155 sound/x86/intel_hdmi_audio.c had_do_reset(intelhaddata); intelhaddata 1166 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata; intelhaddata 1168 sound/x86/intel_hdmi_audio.c intelhaddata = snd_pcm_substream_chip(substream); intelhaddata 1170 sound/x86/intel_hdmi_audio.c spin_lock(&intelhaddata->had_spinlock); intelhaddata 1176 sound/x86/intel_hdmi_audio.c had_ack_irqs(intelhaddata); /* FIXME: do we need this? */ intelhaddata 1177 sound/x86/intel_hdmi_audio.c had_enable_audio(intelhaddata, true); intelhaddata 1183 sound/x86/intel_hdmi_audio.c had_enable_audio(intelhaddata, false); intelhaddata 1184 sound/x86/intel_hdmi_audio.c intelhaddata->need_reset = true; intelhaddata 1190 sound/x86/intel_hdmi_audio.c spin_unlock(&intelhaddata->had_spinlock); intelhaddata 1202 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata; intelhaddata 1205 sound/x86/intel_hdmi_audio.c intelhaddata = snd_pcm_substream_chip(substream); intelhaddata 1208 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "period_size=%d\n", intelhaddata 1210 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "periods=%d\n", runtime->periods); intelhaddata 1211 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "buffer_size=%d\n", intelhaddata 1213 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "rate=%d\n", runtime->rate); intelhaddata 1214 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "channels=%d\n", runtime->channels); intelhaddata 1216 sound/x86/intel_hdmi_audio.c had_do_reset(intelhaddata); intelhaddata 1219 sound/x86/intel_hdmi_audio.c disp_samp_freq = intelhaddata->tmds_clock_speed; intelhaddata 1221 sound/x86/intel_hdmi_audio.c retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata); intelhaddata 1223 sound/x86/intel_hdmi_audio.c dev_err(intelhaddata->dev, intelhaddata 1228 sound/x86/intel_hdmi_audio.c if (intelhaddata->dp_output) intelhaddata 1229 sound/x86/intel_hdmi_audio.c link_rate = intelhaddata->link_rate; intelhaddata 1232 sound/x86/intel_hdmi_audio.c n_param, intelhaddata); intelhaddata 1234 sound/x86/intel_hdmi_audio.c had_prog_dip(substream, intelhaddata); intelhaddata 1236 sound/x86/intel_hdmi_audio.c retval = had_init_audio_ctrl(substream, intelhaddata); intelhaddata 1239 sound/x86/intel_hdmi_audio.c had_init_ringbuf(substream, intelhaddata); intelhaddata 1246 sound/x86/intel_hdmi_audio.c had_write_register(intelhaddata, AUD_BUF_CH_SWAP, SWAP_LFE_CENTER); intelhaddata 1257 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata; intelhaddata 1260 sound/x86/intel_hdmi_audio.c intelhaddata = snd_pcm_substream_chip(substream); intelhaddata 1262 sound/x86/intel_hdmi_audio.c if (!intelhaddata->connected) intelhaddata 1265 sound/x86/intel_hdmi_audio.c len = had_process_ringbuf(substream, intelhaddata); intelhaddata 1302 sound/x86/intel_hdmi_audio.c static int had_process_mode_change(struct snd_intelhad *intelhaddata) intelhaddata 1309 sound/x86/intel_hdmi_audio.c substream = had_substream_get(intelhaddata); intelhaddata 1314 sound/x86/intel_hdmi_audio.c had_enable_audio(intelhaddata, false); intelhaddata 1317 sound/x86/intel_hdmi_audio.c disp_samp_freq = intelhaddata->tmds_clock_speed; intelhaddata 1319 sound/x86/intel_hdmi_audio.c retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata); intelhaddata 1321 sound/x86/intel_hdmi_audio.c dev_err(intelhaddata->dev, intelhaddata 1326 sound/x86/intel_hdmi_audio.c if (intelhaddata->dp_output) intelhaddata 1327 sound/x86/intel_hdmi_audio.c link_rate = intelhaddata->link_rate; intelhaddata 1330 sound/x86/intel_hdmi_audio.c n_param, intelhaddata); intelhaddata 1333 sound/x86/intel_hdmi_audio.c had_enable_audio(intelhaddata, true); intelhaddata 1336 sound/x86/intel_hdmi_audio.c had_substream_put(intelhaddata); intelhaddata 1341 sound/x86/intel_hdmi_audio.c static void had_process_hot_plug(struct snd_intelhad *intelhaddata) intelhaddata 1345 sound/x86/intel_hdmi_audio.c spin_lock_irq(&intelhaddata->had_spinlock); intelhaddata 1346 sound/x86/intel_hdmi_audio.c if (intelhaddata->connected) { intelhaddata 1347 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "Device already connected\n"); intelhaddata 1348 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&intelhaddata->had_spinlock); intelhaddata 1353 sound/x86/intel_hdmi_audio.c had_enable_audio(intelhaddata, false); intelhaddata 1355 sound/x86/intel_hdmi_audio.c intelhaddata->connected = true; intelhaddata 1356 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, intelhaddata 1359 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&intelhaddata->had_spinlock); intelhaddata 1361 sound/x86/intel_hdmi_audio.c had_build_channel_allocation_map(intelhaddata); intelhaddata 1364 sound/x86/intel_hdmi_audio.c substream = had_substream_get(intelhaddata); intelhaddata 1367 sound/x86/intel_hdmi_audio.c had_substream_put(intelhaddata); intelhaddata 1370 sound/x86/intel_hdmi_audio.c snd_jack_report(intelhaddata->jack, SND_JACK_AVOUT); intelhaddata 1374 sound/x86/intel_hdmi_audio.c static void had_process_hot_unplug(struct snd_intelhad *intelhaddata) intelhaddata 1378 sound/x86/intel_hdmi_audio.c spin_lock_irq(&intelhaddata->had_spinlock); intelhaddata 1379 sound/x86/intel_hdmi_audio.c if (!intelhaddata->connected) { intelhaddata 1380 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, "Device already disconnected\n"); intelhaddata 1381 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&intelhaddata->had_spinlock); intelhaddata 1387 sound/x86/intel_hdmi_audio.c had_enable_audio(intelhaddata, false); intelhaddata 1389 sound/x86/intel_hdmi_audio.c intelhaddata->connected = false; intelhaddata 1390 sound/x86/intel_hdmi_audio.c dev_dbg(intelhaddata->dev, intelhaddata 1393 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&intelhaddata->had_spinlock); intelhaddata 1395 sound/x86/intel_hdmi_audio.c kfree(intelhaddata->chmap->chmap); intelhaddata 1396 sound/x86/intel_hdmi_audio.c intelhaddata->chmap->chmap = NULL; intelhaddata 1399 sound/x86/intel_hdmi_audio.c substream = had_substream_get(intelhaddata); intelhaddata 1402 sound/x86/intel_hdmi_audio.c had_substream_put(intelhaddata); intelhaddata 1405 sound/x86/intel_hdmi_audio.c snd_jack_report(intelhaddata->jack, 0); intelhaddata 1423 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata = snd_kcontrol_chip(kcontrol); intelhaddata 1425 sound/x86/intel_hdmi_audio.c mutex_lock(&intelhaddata->mutex); intelhaddata 1426 sound/x86/intel_hdmi_audio.c ucontrol->value.iec958.status[0] = (intelhaddata->aes_bits >> 0) & 0xff; intelhaddata 1427 sound/x86/intel_hdmi_audio.c ucontrol->value.iec958.status[1] = (intelhaddata->aes_bits >> 8) & 0xff; intelhaddata 1429 sound/x86/intel_hdmi_audio.c (intelhaddata->aes_bits >> 16) & 0xff; intelhaddata 1431 sound/x86/intel_hdmi_audio.c (intelhaddata->aes_bits >> 24) & 0xff; intelhaddata 1432 sound/x86/intel_hdmi_audio.c mutex_unlock(&intelhaddata->mutex); intelhaddata 1450 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata = snd_kcontrol_chip(kcontrol); intelhaddata 1457 sound/x86/intel_hdmi_audio.c mutex_lock(&intelhaddata->mutex); intelhaddata 1458 sound/x86/intel_hdmi_audio.c if (intelhaddata->aes_bits != val) { intelhaddata 1459 sound/x86/intel_hdmi_audio.c intelhaddata->aes_bits = val; intelhaddata 1462 sound/x86/intel_hdmi_audio.c mutex_unlock(&intelhaddata->mutex); intelhaddata 1477 sound/x86/intel_hdmi_audio.c struct snd_intelhad *intelhaddata = snd_kcontrol_chip(kcontrol); intelhaddata 1479 sound/x86/intel_hdmi_audio.c mutex_lock(&intelhaddata->mutex); intelhaddata 1480 sound/x86/intel_hdmi_audio.c memcpy(ucontrol->value.bytes.data, intelhaddata->eld, intelhaddata 1482 sound/x86/intel_hdmi_audio.c mutex_unlock(&intelhaddata->mutex);