i used same i2c with you.
is there any way to check whether sound card is created or not.

my proc/modules is
cat /proc/modules
snd_soc_tlv320aic3x 32090 0 - Live 0xbf283000
g_mass_storage 43040 0 - Live 0xbf259000
bnep 13989 2 - Live 0xbf251000
rfcomm 57794 0 - Live 0xbf23a000
bluetooth 262236 10 bnep,rfcomm, Live 0xbf13b000
sunxi_sndi2s 3543 0 - Live 0xbf137000
sunxi_i2s 6772 1 - Live 0xbf132000
sunxi_i2sdma 4995 1 - Live 0xbf12d000
sndi2s 3085 1 - Live 0xbf129000
sunxi_cedar_mod 9760 0 - Live 0xbf122000
mali 111646 0 - Live 0xbf0f9000
ump 50945 1 mali, Live 0xbf0e6000
hdmi 31945 0 - Live 0xbf0cc000
sunxi_gmac 29321 0 - Live 0xbf0bf000
8188eu 500444 0 - Live 0xbf02d000
sg 22771 0 - Live 0xbf022000
usb_storage 45317 0 - Live 0xbf000000
root@marsboard:/lib/modules/3.4.103+/kernel/sound/soc/codecs#

as you see, snd_soc_tlv320aic3x  module is loaded.



2015-03-23 13:22 GMT+02:00 Puneet B <[email protected]>:

> Still sound card not created , for that you need to change machine driver
> code with i2c bus number and address.
> same thing you need to add in device.c file. First ensure that codec
> driver probe in calling.
>
> Regards
> Punith
>
> On Mon, Mar 23, 2015 at 3:46 PM, OMER AYGOR EYZA TEKNOLOJİ <
> [email protected]> wrote:
>
>> Hi thanks for your replay.
>>
>> when i load your machine code. it looks like this:
>> root@marsboard:/lib/modules/3.4.103+/kernel/sound/soc/sunxi/i2s#
>> modprobe snd-soc-rx51
>> <4>soc-audio soc-audio.3: ASoC machine RX-51 should use
>> snd_soc_register_card()
>> [ 1625.151383] soc-audio soc-audio.3: ASoC machine RX-51 should use
>> snd_soc_register_card()
>>
>> i think i2s works:
>> root@marsboard:/lib/modules/3.4.103+/kernel/sound/soc/sunxi/i2s# ls
>> /dev/snd/
>> by-path  controlC0  controlC1  pcmC0D0c  pcmC0D0p  pcmC1D0p  timer
>>
>> root@marsboard:/lib/modules/3.4.103+/kernel/sound/soc/sunxi/i2s# aplay -l
>> **** List of PLAYBACK Hardware Devices ****
>> card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>> card 1: sunxisndi2s [sunxi-sndi2s], device 0: SUNXI-I2S sndi2s-0 []
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>>
>> i connet logic anaalyser. there is not any song i played. but some i2s
>> signals is showing up on the line.
>> i didnt understand.
>>
>> but for now my problem is machine driver has fault. did you get any error
>> like this.
>>
>>
>> [image: Satır içi resim 1]
>>
>>
>>
>> 2015-03-23 7:16 GMT+02:00 Puneet B <[email protected]>:
>>
>>> If you look at some of example code of machine driver you will get it.
>>> like ompa, davinic
>>>
>>> Actually you need to make your machine driver should compile by making
>>> changes in Kconfig and makefile.
>>> then your machine driver will create the snd node file by linking
>>> platform and codec driver .
>>>
>>> Regards
>>> Punith
>>>
>>> On Sat, Mar 21, 2015 at 1:49 AM, <[email protected]> wrote:
>>>
>>>> hi,
>>>>
>>>> where will we put the file (rx51.c) that you gave?
>>>> A20 sees as module tlv320 but alsa dont include it.
>>>> when i write aplay -l , only sunxi device is showing.
>>>>
>>>> i looked with logic anaylzer to i2c pins. scl and sda works.
>>>>
>>>> Thanks for your help.
>>>>
>>>>
>>>>
>>>> On Tuesday, January 6, 2015 at 7:46:40 AM UTC+2, Puneet B wrote:
>>>> > i used i2c second bus,
>>>> >
>>>> > [twi2_para]
>>>> > twi2_used = 1
>>>> > twi2_scl = port:PB20<2><default><default><default>
>>>> > twi2_sda = port:PB21<2><default><default><default>
>>>> >
>>>> > Regards
>>>> > Punith
>>>> >
>>>> >
>>>> >
>>>> > On Mon, Jan 5, 2015 at 11:28 PM,  <[email protected]> wrote:
>>>> > Hi Punith B,
>>>> >
>>>> >
>>>> >
>>>> > which i2c pin did you use?
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Saturday, September 27, 2014 8:19:22 AM UTC+3, Puneet B wrote:
>>>> >
>>>> > >  Hi Rafel,
>>>> >
>>>> > >
>>>> >
>>>> > > The fex file i have attached in my previous post i did not done any
>>>> changes.
>>>> >
>>>> > > and here my machine driver .
>>>> >
>>>> > >
>>>> >
>>>> > > in device.c file just add fallowing line.
>>>> >
>>>> > > +static struct i2c_board_info __initdata aic3x_i2c_board_info[] = {
>>>> >
>>>> > > +        {
>>>> >
>>>> > >  +               .type = "tlv320aic31xx",
>>>> >
>>>> > >  +               .addr = 0x18,
>>>> >
>>>> > > +        }
>>>> >
>>>> > > +};
>>>> >
>>>> > > void __init sw_pdev_init(void)
>>>> >
>>>> > > {
>>>> >
>>>> > >         platform_add_devices(sw_pdevs, ARRAY_SIZE(sw_pdevs));
>>>> >
>>>> > >     +        i2c_register_board_info(2, aic3x_i2c_board_info,
>>>> >
>>>> > >   +                      ARRAY_SIZE(aic3x_i2c_board_info));
>>>> >
>>>> > > }
>>>> >
>>>> > >
>>>> >
>>>> > > which kernel you are using?.
>>>> >
>>>> > >
>>>> >
>>>> > > Regards
>>>> >
>>>> > > Punith
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> >
>>>> > You received this message because you are subscribed to a topic in
>>>> the Google Groups "linux-sunxi" group.
>>>> >
>>>> > To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe.
>>>> >
>>>> > To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> >
>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "linux-sunxi" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "linux-sunxi" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> ...
>>
>> *​*
>> *Sayg. / Best Regards*
>>
>> *ÖMER AYGÖR*
>> Elektronik Ar-Ge Mühendisi
>>
>>
>>
>> *www.eyzateknoloji.com <http://www.eyzateknoloji.com/>*
>> Tel:05066725407
>> Özankara San. Sit. 1122 Cd.
>> 1418.Sk. No:14 Yenimahalle/ANKARA
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "linux-sunxi" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "linux-sunxi" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
...

*​*
*Sayg. / Best Regards*

*ÖMER AYGÖR*
Elektronik Ar-Ge Mühendisi



*www.eyzateknoloji.com <http://www.eyzateknoloji.com/>*
Tel:05066725407
Özankara San. Sit. 1122 Cd.
1418.Sk. No:14 Yenimahalle/ANKARA

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to