Picomod7 ALSA

      Picomod7 ALSA

      Hi, how do I access the sound device? I have inlcuded the ALSAlib. In my FS there's a /proc/asound directory. Inside there's a card0 folder. The hardware is identified as pm7tlv320. The question is: what is the name of the device? With the ALSAlib there comes a test program named pcm that should generate a sinus wave to the sound output. Here I have to add the device name e.g. ./pcm -Dhw:0,0. All devices I tried did not work.

      (_snd_pcm_hw_open) Invalid value for card
      Playback open error: No such file or directory

      In my /dev folder there's no device that looks like sound.

      Thanks in advance.

      Re: Picomod7 ALSA

      you need these device-nodes in /dev/snd:

      Source Code

      1. crw-r--r-- 1 root root 116, 0 Mar 15 2012 controlC0
      2. crw-r--r-- 1 root root 116, 24 Mar 15 2012 pcmC0D0c
      3. crw-r--r-- 1 root root 116, 16 Mar 15 2012 pcmC0D0p
      4. crw-r--r-- 1 root root 116, 33 Mar 15 2012 timer


      with zImage_PicoMOD7_V0.1 you should see in the bootlog:

      Source Code

      1. ALSA device list:
      2. #0: pm7-tlv320 (tlv320aic23)
      F&S Elektronik Systeme GmbH
      As this is an international forum, please try to post in English.
      Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

      Re: Picomod7 ALSA

      I have these lines in bootlog:

      Source Code

      1. ALSA device list:
      2. #0: pm7-tlv320 (tlv320aic23)

      but no /dev/snd directory.

      Here I send my #ls -lah output:

      Source Code

      1. total 6
      2. drwxr-xr-x 6 root root 3.0K Jun 5 00:45 .
      3. drwxr-xr-x 19 root root 1.0K Jun 11 09:30 ..
      4. crw-rw-rw- 1 root root 5, 1 Jun 4 07:40 console
      5. crw-r----- 1 root tty 29, 0 Jun 4 07:40 fb0
      6. crw-r----- 1 root tty 29, 1 Jun 4 07:40 fb1
      7. crw-r----- 1 root tty 29, 2 Jun 4 07:40 fb2
      8. crw-r----- 1 root tty 29, 3 Jun 4 07:40 fb3
      9. brw-r----- 1 root root 3, 0 Jun 4 07:40 hda
      10. brw-r----- 1 root root 3, 1 Jun 4 07:40 hda1
      11. brw-r----- 1 root root 3, 10 Jun 4 07:40 hda10
      12. brw-r----- 1 root root 3, 11 Jun 4 07:40 hda11
      13. brw-r----- 1 root root 3, 12 Jun 4 07:40 hda12
      14. brw-r----- 1 root root 3, 13 Jun 4 07:40 hda13
      15. brw-r----- 1 root root 3, 14 Jun 4 07:40 hda14
      16. brw-r----- 1 root root 3, 15 Jun 4 07:40 hda15
      17. brw-r----- 1 root root 3, 2 Jun 4 07:40 hda2
      18. brw-r----- 1 root root 3, 3 Jun 4 07:40 hda3
      19. brw-r----- 1 root root 3, 4 Jun 4 07:40 hda4
      20. brw-r----- 1 root root 3, 5 Jun 4 07:40 hda5
      21. brw-r----- 1 root root 3, 6 Jun 4 07:40 hda6
      22. brw-r----- 1 root root 3, 7 Jun 4 07:40 hda7
      23. brw-r----- 1 root root 3, 8 Jun 4 07:40 hda8
      24. brw-r----- 1 root root 3, 9 Jun 4 07:40 hda9
      25. brw-r----- 1 root root 3, 64 Jun 4 07:40 hdb
      26. brw-r----- 1 root root 3, 65 Jun 4 07:40 hdb1
      27. brw-r----- 1 root root 3, 74 Jun 4 07:40 hdb10
      28. brw-r----- 1 root root 3, 75 Jun 4 07:40 hdb11
      29. brw-r----- 1 root root 3, 76 Jun 4 07:40 hdb12
      30. brw-r----- 1 root root 3, 77 Jun 4 07:40 hdb13
      31. brw-r----- 1 root root 3, 78 Jun 4 07:40 hdb14
      32. brw-r----- 1 root root 3, 79 Jun 4 07:40 hdb15
      33. brw-r----- 1 root root 3, 66 Jun 4 07:40 hdb2
      34. brw-r----- 1 root root 3, 67 Jun 4 07:40 hdb3
      35. brw-r----- 1 root root 3, 68 Jun 4 07:40 hdb4
      36. brw-r----- 1 root root 3, 69 Jun 4 07:40 hdb5
      37. brw-r----- 1 root root 3, 70 Jun 4 07:40 hdb6
      38. brw-r----- 1 root root 3, 71 Jun 4 07:40 hdb7
      39. brw-r----- 1 root root 3, 72 Jun 4 07:40 hdb8
      40. brw-r----- 1 root root 3, 73 Jun 4 07:40 hdb9
      41. crw-rw-rw- 1 root root 89, 0 Jun 4 07:40 i2c-0
      42. crw-rw-rw- 1 root root 89, 1 Jun 4 07:40 i2c-1
      43. crw-rw-rw- 1 root root 89, 2 Jun 4 07:40 i2c-2
      44. crw-rw-rw- 1 root root 89, 3 Jun 4 07:40 i2c-3
      45. drwxr-xr-x 2 root root 1.0K Jun 4 07:40 input
      46. crw-r----- 1 root root 1, 2 Jun 4 07:40 kmem
      47. lrwxrwxrwx 1 root root 10 May 30 15:23 log -> ../tmp/log
      48. brw-r----- 1 root root 7, 0 Jun 4 07:40 loop0
      49. brw-r----- 1 root root 7, 1 Jun 4 07:40 loop1
      50. crw-r----- 1 root root 1, 1 Jun 4 07:40 mem
      51. crw-r----- 1 root root 90, 0 Jun 4 07:40 mtd0
      52. crw-r----- 1 root root 90, 2 Jun 4 07:40 mtd1
      53. crw-r----- 1 root root 90, 4 Jun 4 07:40 mtd2
      54. crw-r----- 1 root root 90, 6 Jun 4 07:40 mtd3
      55. brw-r----- 1 root root 31, 0 Jun 4 07:40 mtdblock0
      56. brw-r----- 1 root root 31, 1 Jun 4 07:40 mtdblock1
      57. brw-r----- 1 root root 31, 2 Jun 4 07:40 mtdblock2
      58. brw-r----- 1 root root 31, 3 Jun 4 07:40 mtdblock3
      59. drwxr-xr-x 2 root root 1.0K Jun 4 07:40 net
      60. crw-rw-rw- 1 root root 1, 3 Jun 4 07:40 null
      61. crw-rw-rw- 1 root root 10, 1 Jun 4 07:40 psaux
      62. crw-rw-rw- 1 root root 5, 2 Jun 4 07:40 ptmx
      63. drwxr-xr-x 2 root root 0 Dec 31 1969 pts
      64. crw-rw-rw- 1 root root 2, 0 Jun 4 07:40 ptyp0
      65. crw-rw-rw- 1 root root 2, 1 Jun 4 07:40 ptyp1
      66. crw-rw-rw- 1 root root 2, 2 Jun 4 07:40 ptyp2
      67. crw-rw-rw- 1 root root 2, 3 Jun 4 07:40 ptyp3
      68. crw-rw-rw- 1 root root 2, 4 Jun 4 07:40 ptyp4
      69. crw-rw-rw- 1 root root 2, 5 Jun 4 07:40 ptyp5
      70. crw-rw-rw- 1 root root 2, 6 Jun 4 07:40 ptyp6
      71. crw-rw-rw- 1 root root 2, 7 Jun 4 07:40 ptyp7
      72. crw-rw-rw- 1 root root 2, 8 Jun 4 07:40 ptyp8
      73. crw-rw-rw- 1 root root 2, 9 Jun 4 07:40 ptyp9
      74. brw-r----- 1 root root 1, 1 Jun 4 07:40 ram
      75. brw-r----- 1 root root 1, 0 Jun 4 07:40 ram0
      76. brw-r----- 1 root root 1, 1 Jun 4 07:40 ram1
      77. brw-r----- 1 root root 1, 2 Jun 4 07:40 ram2
      78. brw-r----- 1 root root 1, 3 Jun 4 07:40 ram3
      79. crw-rw-rw- 1 root root 1, 8 Jun 4 07:40 random
      80. crw-r----- 1 root root 10, 135 Jun 4 07:40 rtc
      81. crw-r--r-- 1 root root 254, 0 Jun 5 00:45 rtc0
      82. brw-r----- 1 root root 8, 0 Jun 4 07:40 sda
      83. brw-r----- 1 root root 8, 1 Jun 4 07:40 sda1
      84. brw-r----- 1 root root 8, 10 Jun 4 07:40 sda10
      85. brw-r----- 1 root root 8, 11 Jun 4 07:40 sda11
      86. brw-r----- 1 root root 8, 12 Jun 4 07:40 sda12
      87. brw-r----- 1 root root 8, 13 Jun 4 07:40 sda13
      88. brw-r----- 1 root root 8, 14 Jun 4 07:40 sda14
      89. brw-r----- 1 root root 8, 15 Jun 4 07:40 sda15
      90. brw-r----- 1 root root 8, 2 Jun 4 07:40 sda2
      91. brw-r----- 1 root root 8, 3 Jun 4 07:40 sda3
      92. brw-r----- 1 root root 8, 4 Jun 4 07:40 sda4
      93. brw-r----- 1 root root 8, 5 Jun 4 07:40 sda5
      94. brw-r----- 1 root root 8, 6 Jun 4 07:40 sda6
      95. brw-r----- 1 root root 8, 7 Jun 4 07:40 sda7
      96. brw-r----- 1 root root 8, 8 Jun 4 07:40 sda8
      97. brw-r----- 1 root root 8, 9 Jun 4 07:40 sda9
      98. brw-r----- 1 root root 8, 16 Jun 4 07:40 sdb
      99. brw-r----- 1 root root 8, 17 Jun 4 07:40 sdb1
      100. brw-r----- 1 root root 8, 26 Jun 4 07:40 sdb10
      101. brw-r----- 1 root root 8, 27 Jun 4 07:40 sdb11
      102. brw-r----- 1 root root 8, 28 Jun 4 07:40 sdb12
      103. brw-r----- 1 root root 8, 29 Jun 4 07:40 sdb13
      104. brw-r----- 1 root root 8, 30 Jun 4 07:40 sdb14
      105. brw-r----- 1 root root 8, 31 Jun 4 07:40 sdb15
      106. brw-r----- 1 root root 8, 18 Jun 4 07:40 sdb2
      107. brw-r----- 1 root root 8, 19 Jun 4 07:40 sdb3
      108. brw-r----- 1 root root 8, 20 Jun 4 07:40 sdb4
      109. brw-r----- 1 root root 8, 21 Jun 4 07:40 sdb5
      110. brw-r----- 1 root root 8, 22 Jun 4 07:40 sdb6
      111. brw-r----- 1 root root 8, 23 Jun 4 07:40 sdb7
      112. brw-r----- 1 root root 8, 24 Jun 4 07:40 sdb8
      113. brw-r----- 1 root root 8, 25 Jun 4 07:40 sdb9
      114. drwxrwxrwx 2 root root 40 Dec 31 1969 shm
      115. crw-rw-rw- 1 root root 5, 0 Jun 4 07:40 tty
      116. crw-rw-rw- 1 root root 4, 0 Jun 4 07:40 tty0
      117. crw-rw-rw- 1 root root 4, 1 Jun 4 07:40 tty1
      118. crw-rw-rw- 1 root root 4, 2 Jun 4 07:40 tty2
      119. crw-rw-rw- 1 root root 4, 3 Jun 4 07:40 tty3
      120. crw-rw-rw- 1 root root 4, 4 Jun 4 07:40 tty4
      121. crw-rw-rw- 1 root root 4, 5 Jun 4 07:40 tty5
      122. crw-rw-rw- 1 root root 4, 6 Jun 4 07:40 tty6
      123. crw-rw-rw- 1 root root 4, 7 Jun 4 07:40 tty7
      124. crw-rw-rw- 1 root root 204, 16 Jun 4 07:40 ttyAM0
      125. crw-rw-rw- 1 root root 204, 17 Jun 4 07:40 ttyAM1
      126. crw-rw-rw- 1 root root 204, 18 Jun 4 07:40 ttyAM2
      127. crw-rw-rw- 1 root root 204, 64 Jun 4 07:40 ttyAMA0
      128. crw-rw-rw- 1 root root 204, 65 Jun 4 07:40 ttyAMA1
      129. crw-rw-rw- 1 root root 204, 66 Jun 4 07:40 ttyAMA2
      130. crw-rw-rw- 1 root root 204, 67 Jun 4 07:40 ttyAMA3
      131. crw-rw-rw- 1 root root 204, 46 Jun 4 07:40 ttyCPM0
      132. crw-rw-rw- 1 root root 204, 47 Jun 4 07:40 ttyCPM1
      133. crw-rw-rw- 1 root root 204, 48 Jun 4 07:40 ttyCPM2
      134. crw-rw-rw- 1 root root 204, 49 Jun 4 07:40 ttyCPM3
      135. crw-rw-rw- 1 root root 57, 0 Jun 4 07:40 ttyP0
      136. crw-rw-rw- 1 root root 57, 1 Jun 4 07:40 ttyP1
      137. crw-rw-rw- 1 root root 57, 2 Jun 4 07:40 ttyP2
      138. crw-rw-rw- 1 root root 57, 3 Jun 4 07:40 ttyP3
      139. crw-rw-rw- 1 root root 204, 148 Jun 4 07:40 ttyPSC0
      140. crw-rw-rw- 1 root root 204, 149 Jun 4 07:40 ttyPSC1
      141. crw-rw-rw- 1 root root 204, 150 Jun 4 07:40 ttyPSC2
      142. crw-rw-rw- 1 root root 204, 151 Jun 4 07:40 ttyPSC3
      143. crw-rw-rw- 1 root root 4, 64 Jun 4 07:40 ttyS0
      144. crw-rw-rw- 1 root root 4, 65 Jun 4 07:40 ttyS1
      145. crw-rw-rw- 1 root root 4, 66 Jun 4 07:40 ttyS2
      146. crw-rw-rw- 1 root root 4, 67 Jun 4 07:40 ttyS3
      147. crw-rw-rw- 1 root root 204, 64 Jun 4 07:40 ttySAC0
      148. crw-rw-rw- 1 root root 204, 65 Jun 4 07:40 ttySAC1
      149. crw------- 1 root root 204, 66 Jun 4 07:40 ttySAC2
      150. crw-rw-rw- 1 root root 204, 67 Jun 4 07:40 ttySAC3
      151. crw-rw-rw- 1 root root 204, 8 Jun 4 07:40 ttySC0
      152. crw-rw-rw- 1 root root 204, 9 Jun 4 07:40 ttySC1
      153. crw-rw-rw- 1 root root 204, 10 Jun 4 07:40 ttySC2
      154. crw-rw-rw- 1 root root 204, 11 Jun 4 07:40 ttySC3
      155. crw-rw-rw- 1 root root 204, 12 Jun 4 07:40 ttySC4
      156. crw-rw-rw- 1 root root 204, 13 Jun 4 07:40 ttySC5
      157. crw-rw-rw- 1 root root 204, 14 Jun 4 07:40 ttySC6
      158. crw-rw-rw- 1 root root 204, 15 Jun 4 07:40 ttySC7
      159. crw-rw-rw- 1 root root 204, 187 Jun 4 07:40 ttyUL0
      160. crw-rw-rw- 1 root root 204, 188 Jun 4 07:40 ttyUL1
      161. crw-rw-rw- 1 root root 204, 189 Jun 4 07:40 ttyUL2
      162. crw-rw-rw- 1 root root 204, 190 Jun 4 07:40 ttyUL3
      163. crw-rw-rw- 1 root root 207, 16 Jun 4 07:40 ttymxc0
      164. crw-rw-rw- 1 root root 207, 17 Jun 4 07:40 ttymxc1
      165. crw-rw-rw- 1 root root 207, 18 Jun 4 07:40 ttymxc2
      166. crw-rw-rw- 1 root root 3, 0 Jun 4 07:40 ttyp0
      167. crw-rw-rw- 1 root root 3, 1 Jun 4 07:40 ttyp1
      168. crw-rw-rw- 1 root root 3, 2 Jun 4 07:40 ttyp2
      169. crw-rw-rw- 1 root root 3, 3 Jun 4 07:40 ttyp3
      170. crw-rw-rw- 1 root root 3, 4 Jun 4 07:40 ttyp4
      171. crw-rw-rw- 1 root root 3, 5 Jun 4 07:40 ttyp5
      172. crw-rw-rw- 1 root root 3, 6 Jun 4 07:40 ttyp6
      173. crw-rw-rw- 1 root root 3, 7 Jun 4 07:40 ttyp7
      174. crw-rw-rw- 1 root root 3, 8 Jun 4 07:40 ttyp8
      175. crw-rw-rw- 1 root root 3, 9 Jun 4 07:40 ttyp9
      176. brw-r----- 1 root root 180, 0 Jun 4 07:40 uba
      177. brw-r----- 1 root root 180, 1 Jun 4 07:40 uba1
      178. brw-r----- 1 root root 180, 2 Jun 4 07:40 uba2
      179. brw-r----- 1 root root 180, 3 Jun 4 07:40 uba3
      180. brw-r----- 1 root root 180, 4 Jun 4 07:40 uba4
      181. brw-r----- 1 root root 180, 5 Jun 4 07:40 uba5
      182. brw-r----- 1 root root 180, 6 Jun 4 07:40 uba6
      183. brw-r----- 1 root root 180, 8 Jun 4 07:40 ubb
      184. brw-r----- 1 root root 180, 65 Jun 4 07:40 ubb1
      185. brw-r----- 1 root root 180, 66 Jun 4 07:40 ubb2
      186. brw-r----- 1 root root 180, 67 Jun 4 07:40 ubb3
      187. brw-r----- 1 root root 180, 68 Jun 4 07:40 ubb4
      188. brw-r----- 1 root root 180, 69 Jun 4 07:40 ubb5
      189. brw-r----- 1 root root 180, 70 Jun 4 07:40 ubb6
      190. crw-rw-rw- 1 root root 1, 9 Jun 4 07:40 urandom
      191. crw-rw-rw- 1 root root 1, 5 Jun 4 07:40 zero

      Re: Picomod7 ALSA

      Source Code

      1. mkdir /dev/snd
      2. mknod /dev/snd/controlC0 c 116 0
      3. ...


      If you use v0.1 root-file-system these are per default set.
      F&S Elektronik Systeme GmbH
      As this is an international forum, please try to post in English.
      Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.