pm_runtime_get_sync(intelhaddata->dev);
- if (!intelhaddata->connected) {
- dev_dbg(intelhaddata->dev, "%s: HDMI cable plugged-out\n",
- __func__);
- retval = -ENODEV;
- goto error;
- }
-
/* set the runtime hw parameter with local snd_pcm_hardware struct */
runtime->hw = had_pcm_hardware;
case SNDRV_PCM_TRIGGER_START:
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
case SNDRV_PCM_TRIGGER_RESUME:
- /* Disable local INTRs till register prgmng is done */
- if (!intelhaddata->connected) {
- dev_dbg(intelhaddata->dev,
- "_START: HDMI cable plugged-out\n");
- retval = -ENODEV;
- break;
- }
-
/* Enable Audio */
had_ack_irqs(intelhaddata); /* FIXME: do we need this? */
had_enable_audio(intelhaddata, true);
intelhaddata = snd_pcm_substream_chip(substream);
runtime = substream->runtime;
- if (!intelhaddata->connected) {
- dev_dbg(intelhaddata->dev, "%s: HDMI cable plugged-out\n",
- __func__);
- retval = -ENODEV;
- goto prep_end;
- }
-
dev_dbg(intelhaddata->dev, "period_size=%d\n",
(int)frames_to_bytes(runtime, runtime->period_size));
dev_dbg(intelhaddata->dev, "periods=%d\n", runtime->periods);