]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'sound/for-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 13 Dec 2013 01:00:10 +0000 (12:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 13 Dec 2013 01:00:10 +0000 (12:00 +1100)
1  2 
sound/atmel/abdac.c
sound/pci/hda/hda_generic.c
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_realtek.c

index 721d8fd45685f769cbc616a6ba0552b85cd5c841,b78a3bc6f35e2586245e4d051e87171b81fb4098..3519518e25a09612c71f1888bc097e9f088ca6ee
@@@ -354,11 -354,10 +354,11 @@@ static int set_sample_rates(struct atme
        /* we start at 192 kHz and work our way down to 5112 Hz */
        while (new_rate >= RATE_MIN && index < (MAX_NUM_RATES + 1)) {
                new_rate = clk_round_rate(dac->sample_clk, 256 * new_rate);
-               if (new_rate < 0)
+               if (new_rate <= 0)
                        break;
                /* make sure we are below the ABDAC clock */
 -              if (new_rate <= clk_get_rate(dac->pclk)) {
 +              if (index < MAX_NUM_RATES &&
 +                  new_rate <= clk_get_rate(dac->pclk)) {
                        dac->rates[index] = new_rate / 256;
                        index++;
                }
Simple merge
Simple merge
Simple merge
Simple merge