slim_ngd: Send data-length instead of segment for defining channel

Master component expects data-length instead of segment length and
those two may differ for some protocols.

Change-Id: Idf48f856f7c58d80304f9f13b642d1bccdb09e83
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
This commit is contained in:
Sagar Dharia 2015-04-16 11:48:07 -06:00
parent 1d3e459d52
commit e95bc325be
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ static int ngd_allocbw(struct slim_device *sb, int *subfrmc, int *clkgear)
/* Per protocol, only last 5 bits for client no. */
wbuf[txn.len++] = (u8) (slc->prop.dataf << 5) |
(sb->laddr & 0x1f);
wbuf[txn.len] = slc->seglen;
wbuf[txn.len] = slc->prop.sampleszbits >> 2;
if (slc->srch && slc->prop.prot == SLIM_PUSH)
slc->prop.prot = SLIM_PULL;
if (slc->coeff == SLIM_COEFF_3)