Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

RK3188 No HDMI Sound on KitKat on some TVs FIX !!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    RK3188 No HDMI Sound on KitKat on some TVs FIX !!!

    On KitKat, some TV you may get sound from HDMI, this is not a fault actually is feature of the SOC. Basically your unit tries to communicate with the TV and if the TV does not reply back in a certain time the unit assume you are connecting to a DVI monitor rather than a TV so it cuts the sound.

    I looked around and I count find a solution and at the request of some members I spent one night trying to fix this issue and in the end I fix it and decide to share the findings with the community, maybe somebody else can benefit from them.

    If there is a easier way I don’t know. If it helped you let me know.

    1. Open file drivers/video/rockchip/hdmi/rk_hdmi.h

    Find the line

    Code:
    int    audio_num;
    and immediately after add:
    Code:
    int        base_audio_support;
    2. Open file drivers/video/rockchip/hdmi/hdmi_edid.c

    Find the following line and comment it out.

    Code:
    hdmi_edid_debug("[EDID-CEA] ddc_offset %d underscan_support %d baseaudio_support %d yuv_support %d native_dtd_num %d\n", ddc_offset, underscan_support, baseaudio_support, yuv_support, native_dtd_num);
    and imediattly after add:

    Code:
           pedid->base_audio_support = baseaudio_support;

    3 Open drivers/video/rockchip/hdmi/hdmi_lcdc.c

    Find the following two lines and comment them out.

    Code:
    dev_err(hdmi->dev, "warning: EDID error, assume sink as DVI !!!!"); 
    hdmi->edid.sink_hdmi = 0;
    And immediately after add:

    Code:
      dev_err(hdmi->dev, "warning: EDID error, assume sink as HDMI!!!!"); 
      hdmi->edid.sink_hdmi = 1; 
      hdmi->edid.base_audio_support = 1;


    Thats it... Now you should get sound....
    For all your computer problems...
    http://www.salvamipc.es

    #2
    Awsome work yet again Smic this will help alot of users! Well done.
    Many devices now mk902ii/Shield/Mk68 /Ugoos/neox5/minix5 (yes they still work lol) mk80 no it doesnt work lol.

    Comment


      #3
      Originally posted by scooter2014 View Post
      Awsome work yet again Smic this will help alot of users! Well done.
      Smic's kernel for the MK809III worked wonderfully with my Motorola Lapdock. It's the first and only kernel to give me audio out on a kitkat ROM.

      Comment


        #4
        Which github source do you use?
        You just set base_audio_support, but where does it be used?

        Originally posted by smic717394 View Post
        On KitKat, some TV you may get sound from HDMI, this is not a fault actually is feature of the SOC. Basically your unit tries to communicate with the TV and if the TV does not reply back in a certain time the unit assume you are connecting to a DVI monitor rather than a TV so it cuts the sound.

        I looked around and I count find a solution and at the request of some members I spent one night trying to fix this issue and in the end I fix it and decide to share the findings with the community, maybe somebody else can benefit from them.

        If there is a easier way I don’t know. If it helped you let me know.

        1. Open file drivers/video/rockchip/hdmi/rk_hdmi.h

        Find the line

        Code:
        int    audio_num;
        and immediately after add:
        Code:
        int        base_audio_support;
        2. Open file drivers/video/rockchip/hdmi/hdmi_edid.c

        Find the following line and comment it out.

        Code:
        hdmi_edid_debug("[EDID-CEA] ddc_offset %d underscan_support %d baseaudio_support %d yuv_support %d native_dtd_num %d\n", ddc_offset, underscan_support, baseaudio_support, yuv_support, native_dtd_num);
        and imediattly after add:

        Code:
               pedid->base_audio_support = baseaudio_support;

        3 Open drivers/video/rockchip/hdmi/hdmi_lcdc.c

        Find the following two lines and comment them out.

        Code:
        dev_err(hdmi->dev, "warning: EDID error, assume sink as DVI !!!!"); 
        hdmi->edid.sink_hdmi = 0;
        And immediately after add:

        Code:
          dev_err(hdmi->dev, "warning: EDID error, assume sink as HDMI!!!!"); 
          hdmi->edid.sink_hdmi = 1; 
          hdmi->edid.base_audio_support = 1;


        Thats it... Now you should get sound....

        Comment


          #5
          I use RK3188_R-BOX_ANDROID, the base_audio_support is use by RK hdmi driver I think since 3066. What git you have? cant you find the lines in hdmi_edid.c, rk_hdmi.h, hdmi_lcdc.c. Strange it could be called diferent in your sdk, just look at the code and see how they define the default basic sound
          For all your computer problems...
          http://www.salvamipc.es

          Comment


            #6
            I use https://github.com/linux-rockchip/ke...ip-3.0-rbox-kk
            what's your git url?

            Originally posted by smic717394 View Post
            I use RK3188_R-BOX_ANDROID, the base_audio_support is use by RK hdmi driver I think since 3066. What git you have? cant you find the lines in hdmi_edid.c, rk_hdmi.h, hdmi_lcdc.c. Strange it could be called diferent in your sdk, just look at the code and see how they define the default basic sound

            Comment


              #7
              Originally posted by helloben1980 View Post
              I use a private SDk and I promised that I wouldn't make it public or next time they will not provide it for me. But I look at the code from yours and Its fine, you have the new drivers, just look for the code and replace it, easy peasy.
              For all your computer problems...
              http://www.salvamipc.es

              Comment


                #8
                Cool...thx a lot.
                I have seen many roms suffering from this issue.

                Comment


                  #9
                  Originally posted by smic717394 View Post
                  I looked around and I count find a solution and at the request of some members I spent one night trying to fix this issue and in the end I fix it and decide to share the findings with the community, maybe somebody else can benefit from them.
                  Excellent, are you okay with me using this in my builds?
                  Measy U4B (=Tronsmart T428) used by my kids!
                  Onda v975m - M802 - Bought from Banggood.com
                  Pipo M8HD 3G - RK3188 - don't buy from pipo-store
                  Tronsmart S89 Vega -S802 (sponsored by Geekbuying)
                  CX921b -RK3188T (sponsored by AndroidTV)
                  Cube U30GT2 - RK3188 (part sponsored by Geekbuying)
                  RKM MK902 - RK3188 (sponsored by RKM)



                  Donate to Finless

                  Comment


                    #10
                    Re: RK3188 No HDMI Sound on KitKat on some TVs FIX !!!

                    Originally posted by d33 View Post
                    Excellent, are you okay with me using this in my builds?
                    sure men, its all yours.
                    For all your computer problems...
                    http://www.salvamipc.es

                    Comment


                      #11
                      Get the following error with https://github.com/linux-rockchip/ke...ip-3.0-rbox-kk
                      Code:
                      drivers/video/rockchip/hdmi/hdmi-edid.c: In function ‘hdmi_edid_parse_extensions_cea’:
                      drivers/video/rockchip/hdmi/hdmi-edid.c:277:30: error: ‘baseaudio_support’ undeclared (first use in this function)
                        pedid->base_audio_support = baseaudio_support;

                      Comment


                        #12
                        Re: RK3188 No HDMI Sound on KitKat on some TVs FIX !!!

                        Originally posted by mo123 View Post
                        Get the following error with https://github.com/linux-rockchip/ke...ip-3.0-rbox-kk
                        Code:
                        drivers/video/rockchip/hdmi/hdmi-edid.c: In function ‘hdmi_edid_parse_extensions_cea’:
                        drivers/video/rockchip/hdmi/hdmi-edid.c:277:30: error: ‘baseaudio_support’ undeclared (first use in this function)
                          pedid->base_audio_support = baseaudio_support;
                        The line that actually changes DVI to HDMI is hdmi->edid.sink_hdmi = 1; but the base support was also use in JB so I would use it even it it looks like its no longer need it.

                        You get this errors, because in some SDKs the baseaudio_support is not defined or its been commented out. So open rk_hdmi_edid.c and find this lines and uncomment the lines as bellow.

                        around line 255 you have, uncomment this line:
                        //unsigned int underscan_support, baseaudio_support;

                        Change to:
                        unsigned int underscan_support, baseaudio_support;
                        also around line 270 you have
                        //baseaudio_support = (buf[3] >> 6) & 0x01;

                        Change to:
                        baseaudio_support = (buf[3] >> 6) & 0x01;
                        Last edited by smic717394; 07-12-2014, 10:06.
                        For all your computer problems...
                        http://www.salvamipc.es

                        Comment


                          #13
                          RK3188 No HDMI Sound on KitKat on some TVs FIX !!!

                          As SMIC says you need to declare it first. It was commented out in my source


                          Sent from my iPhone using Tapatalk
                          Measy U4B (=Tronsmart T428) used by my kids!
                          Onda v975m - M802 - Bought from Banggood.com
                          Pipo M8HD 3G - RK3188 - don't buy from pipo-store
                          Tronsmart S89 Vega -S802 (sponsored by Geekbuying)
                          CX921b -RK3188T (sponsored by AndroidTV)
                          Cube U30GT2 - RK3188 (part sponsored by Geekbuying)
                          RKM MK902 - RK3188 (sponsored by RKM)



                          Donate to Finless

                          Comment


                            #14
                            RK3188 No HDMI Sound on KitKat on some TVs FIX !!!

                            Is this to fix the sound resorting to something when you reboot?
                            I have to turn the sound on when I reboot on my mk802iv


                            Sent from my iPad using Tapatalk HD

                            Comment


                              #15
                              Awesome

                              It was driving me nuts....Thank you.
                              Prahjister ****MK808(nonB)****MK808B V5****MK808B Plus****UBOX R89**** CX919****MK808B Pro****Nexbox N9****Eny Em95****Matricon Q2****Tanix TX5 Pro****

                              Comment

                              Working...
                              X