[alsa-devel] simle-card DT style for DPCM
    Kuninori Morimoto 
    kuninori.morimoto.gx at gmail.com
       
    Mon Sep  1 02:35:51 CEST 2014
    
    
  
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 {
		...
		cpu at 0 {
			...
		};
		cpu at 1 {
			...
		};
		codec at 1 {
			...
		};
	}
}
	FE-cpu   : cpu at 0
        FE-codec : dummy
        BE-cpu   : cpu at 1
        BE-codec : codec at 1
Best regards
---
Kuninori Morimoto
    
    
More information about the Alsa-devel
mailing list