aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/omap2
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2014-05-12 04:42:49 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-12-01 04:09:43 -0500
commitc49ad78e3c8fc015f65c4d59e31f14100d6ecefc (patch)
treec45ec7f7f407cd88514ad2158c64011587ec957a /drivers/video/fbdev/omap2
parent5a8bf632fbf2f81c6483b124da5b2bde9ea73981 (diff)
OMAPDSS: hdmi4: Remove callbacks for the old ASoC DAI driver
Removes the OMAP4 HDMI audio callbacks for the old external DAI driver. Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev/omap2')
-rw-r--r--drivers/video/fbdev/omap2/dss/hdmi4.c113
1 files changed, 0 insertions, 113 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi4.c b/drivers/video/fbdev/omap2/dss/hdmi4.c
index 1005cea38ff0..33ed4109f7bc 100644
--- a/drivers/video/fbdev/omap2/dss/hdmi4.c
+++ b/drivers/video/fbdev/omap2/dss/hdmi4.c
@@ -457,112 +457,6 @@ static int hdmi_read_edid(struct omap_dss_device *dssdev,
457 return r; 457 return r;
458} 458}
459 459
460#if defined(CONFIG_OMAP4_DSS_HDMI_AUDIO)
461static int hdmi_audio_enable(struct omap_dss_device *dssdev)
462{
463 int r;
464
465 mutex_lock(&hdmi.lock);
466
467 if (!hdmi_mode_has_audio(hdmi.cfg.hdmi_dvi_mode)) {
468 r = -EPERM;
469 goto err;
470 }
471
472 r = hdmi_wp_audio_enable(&hdmi.wp, true);
473 if (r)
474 goto err;
475
476 mutex_unlock(&hdmi.lock);
477 return 0;
478
479err:
480 mutex_unlock(&hdmi.lock);
481 return r;
482}
483
484static void hdmi_audio_disable(struct omap_dss_device *dssdev)
485{
486 hdmi_wp_audio_enable(&hdmi.wp, false);
487}
488
489static int hdmi_audio_start(struct omap_dss_device *dssdev)
490{
491 return hdmi4_audio_start(&hdmi.core, &hdmi.wp);
492}
493
494static void hdmi_audio_stop(struct omap_dss_device *dssdev)
495{
496 hdmi4_audio_stop(&hdmi.core, &hdmi.wp);
497}
498
499static bool hdmi_audio_supported(struct omap_dss_device *dssdev)
500{
501 bool r;
502
503 mutex_lock(&hdmi.lock);
504
505 r = hdmi_mode_has_audio(hdmi.cfg.hdmi_dvi_mode);
506
507 mutex_unlock(&hdmi.lock);
508 return r;
509}
510
511static int hdmi_audio_config(struct omap_dss_device *dssdev,
512 struct omap_dss_audio *audio)
513{
514 int r;
515 u32 pclk = hdmi.cfg.timings.pixelclock;
516
517 mutex_lock(&hdmi.lock);
518
519 if (!hdmi_mode_has_audio(hdmi.cfg.hdmi_dvi_mode)) {
520 r = -EPERM;
521 goto err;
522 }
523
524 r = hdmi4_audio_config(&hdmi.core, &hdmi.wp, audio, pclk);
525 if (r)
526 goto err;
527
528 mutex_unlock(&hdmi.lock);
529 return 0;
530
531err:
532 mutex_unlock(&hdmi.lock);
533 return r;
534}
535#else
536static int hdmi_audio_enable(struct omap_dss_device *dssdev)
537{
538 return -EPERM;
539}
540
541static void hdmi_audio_disable(struct omap_dss_device *dssdev)
542{
543}
544
545static int hdmi_audio_start(struct omap_dss_device *dssdev)
546{
547 return -EPERM;
548}
549
550static void hdmi_audio_stop(struct omap_dss_device *dssdev)
551{
552}
553
554static bool hdmi_audio_supported(struct omap_dss_device *dssdev)
555{
556 return false;
557}
558
559static int hdmi_audio_config(struct omap_dss_device *dssdev,
560 struct omap_dss_audio *audio)
561{
562 return -EPERM;
563}
564#endif
565
566static int hdmi_set_infoframe(struct omap_dss_device *dssdev, 460static int hdmi_set_infoframe(struct omap_dss_device *dssdev,
567 const struct hdmi_avi_infoframe *avi) 461 const struct hdmi_avi_infoframe *avi)
568{ 462{
@@ -591,13 +485,6 @@ static const struct omapdss_hdmi_ops hdmi_ops = {
591 .read_edid = hdmi_read_edid, 485 .read_edid = hdmi_read_edid,
592 .set_infoframe = hdmi_set_infoframe, 486 .set_infoframe = hdmi_set_infoframe,
593 .set_hdmi_mode = hdmi_set_hdmi_mode, 487 .set_hdmi_mode = hdmi_set_hdmi_mode,
594
595 .audio_enable = hdmi_audio_enable,
596 .audio_disable = hdmi_audio_disable,
597 .audio_start = hdmi_audio_start,
598 .audio_stop = hdmi_audio_stop,
599 .audio_supported = hdmi_audio_supported,
600 .audio_config = hdmi_audio_config,
601}; 488};
602 489
603static void hdmi_init_output(struct platform_device *pdev) 490static void hdmi_init_output(struct platform_device *pdev)