Hi,
how is your sound card connected?
If you look at the devicetree for a sound card to work you have to configure
- system clock
- device that handle the communication with the sound card (f ex i2s, or
i2c or usb, or whatever) (sound-dai)
- the soundcard itself (codec?)
So you need more information regarding your hardware, the codec, how is
connected, etc etc
Look at the source of the simple audio card driver and maybe at some other
driver in the kernel source
Cheers
Nick
-----------------------------------------------------------------------------------------------------
sound {
*simple-audio-card,cpu* {
sound-dai = <&*sh_fsi2 0*>;
};
dailink0_master: simple-audio-card,*codec* {
sound-dai = <&*ak4648*>;
clocks = <&*osc*>;
};
};
&i2c0 {
ak4648: ak4648@12 {
#sound-dai-cells = <0>;
*compatible = "asahi-kasei,ak4648";*
reg = <0x12>;
};
};
sh_fsi2: sh_fsi2@ec230000 {
#sound-dai-cells = <1>;
*compatible = "renesas,sh_fsi2";*
reg = <0xec230000 0x400>;
interrupt-parent = <&gic>;
interrupts = <0 146 0x4>;
};
On Thu, 5 Jul 2018 at 16:13, Riccardo Casagrande <
[email protected]> wrote:
>
> Hello all,
>
> I'm new to Linux/Yocto world. I'm working on iMX6Q and I need to add a new
> sound card and recognized from alsamixer.
> I spent days on internet looking for examples and tutorials but at the
> moment alsa never see my sound card.
> This is one of the tutorials I followed
> https://elixir.bootlin.com/linux/v4.5/source/Documentation/devicetree/bindings/sound/simple-card.txt
>
>
> What I've done?
> - Activated support for generic sound board on menuconfig
> - Added new "sound" node in device tree file with minimal
> properties/subnotes
> - Compiled the kernel
> - Compiled and flashed the image
>
>
> but alsamixer still doesn't recognize my sound card, what am I missing?
>
>
> Thanks.
>
>
>
> --
> _______________________________________________
> yocto mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/yocto
>
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto