~ubuntu-audio-dev/alsa-driver/tiwai-trunk2

« back to all changes in this revision

Viewing changes to soc/sh/rcar/dma.c

  • Committer: Canonistack server
  • Date: 2016-05-27 17:04:40 UTC
  • Revision ID: david.henningsson@canonical.com-20160527170440-e1vppk5freik7anx
Test run of 623 machines: 3 failing with 3 errors and 0 warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
                size = ARRAY_SIZE(gen2_id_table_cmd);
317
317
        }
318
318
 
319
 
        if (!entry)
320
 
                return 0xFF;
321
 
 
322
 
        if (size <= id)
323
 
                return 0xFF;
 
319
        if ((!entry) || (size <= id)) {
 
320
                struct device *dev = rsnd_priv_to_dev(rsnd_io_to_priv(io));
 
321
 
 
322
                dev_err(dev, "unknown connection (%s[%d])\n",
 
323
                        rsnd_mod_name(mod), rsnd_mod_id(mod));
 
324
 
 
325
                /* use non-prohibited SRS number as error */
 
326
                return 0x00; /* SSI00 */
 
327
        }
324
328
 
325
329
        return entry[id];
326
330
}