Kuninori Morimoto
2014-09-01 00:35:51 UTC
Hi Mark, Lars
I want to add DPCM support on simle-card driver.
1st reason is for "sampling-rate-convert".
And, 2nd reason, our customer want to use 2 cpu 1 codec style.
It works in my local environment.
but, I need to know what is the good style for DT.
I guss Xiubo's clean up patch seems good for me,
so, below approach is based on his style.
What do you think this ?
-- normal style --
sound {
compatible = "simple-audio-card";
...
simple-audio-card,dai-link {
...
cpu {
...
};
codec {
...
};
}
}
-- use DPCM for sampling-rate-convert --
sound {
compatible = "simple-audio-card";
...
simple-audio-card,dai-link {
...
cpu {
...
};
codec {
...
fixed-sampling-rate = <xxx>;
};
}
}
FE-cpu : cpu
FE-codec : dummy
BE-cpu : dummy
BE-codec : codec
-- use DPCM for multi DAI --
sound {
compatible = "simple-audio-card";
...
simple-audio-card,dai-link {
...
***@0 {
...
};
***@1 {
...
};
***@1 {
...
};
}
}
FE-cpu : ***@0
FE-codec : dummy
BE-cpu : ***@1
BE-codec : ***@1
Best regards
---
Kuninori Morimoto
I want to add DPCM support on simle-card driver.
1st reason is for "sampling-rate-convert".
And, 2nd reason, our customer want to use 2 cpu 1 codec style.
It works in my local environment.
but, I need to know what is the good style for DT.
I guss Xiubo's clean up patch seems good for me,
so, below approach is based on his style.
What do you think this ?
-- normal style --
sound {
compatible = "simple-audio-card";
...
simple-audio-card,dai-link {
...
cpu {
...
};
codec {
...
};
}
}
-- use DPCM for sampling-rate-convert --
sound {
compatible = "simple-audio-card";
...
simple-audio-card,dai-link {
...
cpu {
...
};
codec {
...
fixed-sampling-rate = <xxx>;
};
}
}
FE-cpu : cpu
FE-codec : dummy
BE-cpu : dummy
BE-codec : codec
-- use DPCM for multi DAI --
sound {
compatible = "simple-audio-card";
...
simple-audio-card,dai-link {
...
***@0 {
...
};
***@1 {
...
};
***@1 {
...
};
}
}
FE-cpu : ***@0
FE-codec : dummy
BE-cpu : ***@1
BE-codec : ***@1
Best regards
---
Kuninori Morimoto