Commit graph

438 commits

Author SHA1 Message Date
Ayaz Ahmad
d9809ae397 radio: iris: Use kernel API to copy data from user space
Use copy_from_user kernel api to copy any data from user space
to kernel space.

Bug: 28769546
Change-Id: Ia3b7bb0f98180bd8792c1c18e930cb5609b8dc82
CRs-Fixed: 540320
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
Signed-off-by: Siqi Lin <siqilin@google.com>
2016-05-31 14:34:42 -07:00
Satish Kodishala
33e340a008 radio: iris: Checking if driver's buffer is large enough.
Checking if driver's buffer is large enough to copy
the data from user space.

Bug: 28769546
Change-Id: I7b4eed81cf77ce2973669ce18ccd95a5df397d82
CRs-fixed: 552329
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
Signed-off-by: Siqi Lin <siqilin@google.com>
2016-05-31 14:34:41 -07:00
Ayaz Ahmad
caa39eb7df radio: iris: Prevent probable overflow
casting a unsigned int into an integer, integer to
unsigned int may cause buffer overflow.

Bug: 28769368
Change-Id: I54be4d4c5470616a59a772c587fe6d5f32575c32
CRs-Fixed: 539008
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
Signed-off-by: Siqi Lin <siqilin@google.com>
2016-05-31 14:34:41 -07:00
Duy Truong
04e554807c Update copyright to The Linux Foundation
Change-Id: Ibead64ce2e901dede2ddd1b86088b88f2350ce92
Signed-off-by: Duy Truong <dtruong@codeaurora.org>
2013-03-15 17:07:39 -07:00
Ayaz Ahmad
124d6f7020 radio: iris: Add support for RT Plus, eRT feature.
- Allow Soc to interrupt host for RT Plus, eRT data
 - Parse the RDS group for RT Plus, eRT
 - Queue the parsed data and event for RT Plus, eRT
   to upper layer
CRs-fixed: 419248

Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

(cherry picked from commit 89265111440674132f59c3aa2938a0aefbfc84fb)

Change-Id: I44010cebd5d7de7ae3a4b076971d24d65aa4fb91
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:24:15 -08:00
Ayaz Ahmad
fcf952fcb7 radio: iris: Pass proper parameters to SOC for RDS transmission.
- Pass number of ps string instead of ps length
 - Use proper name for radio text length

CRs-Fixed: 388115
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
(cherry picked from commit 1c0db5273216ea80f3762dc5675daebac16e1e0b)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
(cherry picked from commit d327e591c875450aa8ff157645974aa3fb7c0cc3)

Change-Id: I501af5c175c07f84dc117fc5e8ac410cecc8c35d
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:19:27 -08:00
Venkateshwarlu Domakonda
68fde5a04c radio-iris: Fix corner cases in dqbuf
- Sometimes user data getting corrupted and it is not available
at the kernel level
- Use the kernel buffer instead of user space buffer to copy
the data from fifo.
- Increase the STD_BUF_SIZE buffer size from 64 to 128 bytes to compatible
with Frameworks buffer size

Change-Id: I1e0fd8e59b218e7bec7820b0c27e2405d472cd56
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
(cherry picked from commit 7f095c44d4f63b168820aeba9d72b2504a879ab9)

Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
2013-03-07 15:18:34 -08:00
Ayaz Ahmad
cf8e521b5d radio: iris: Set band limits as passed from upper layer
Seek up/down in some band is tuning to a station
which is out of band becuase band limits passed from upper
layer are not used

Change-Id: Ic7d11cb33e7964d385be04b0d2e007889ccc1429
CRs-Fixed: 384287
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
2013-02-27 18:21:10 -08:00
Anantha Krishnan
d6dc85833e radio-tavarua: Validate whether the current station is good or bad
Provide mechanism to decide whether the currently tuned station
is valid or not.

CRs-Fixed: 371689
Change-Id: I1a28537d242fbb636732b120c9259ad5e7fffcc0
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2013-02-27 18:18:50 -08:00
Ayaz Ahmad
d14c60e64d radio: iris: Validate whether the current station is good or bad
Provide mechanism to decide whether the currently tuned station
is valid or not

CRs-Fixed: 371689
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
Change-Id: I1f058bdeec8ecebe85b950631118c1ac9604760f
2013-02-27 18:16:48 -08:00
Venkateshwarlu Domakonda
ad66cb7d55 radio-tavarua: Add new IOCTL to set the soft mute
Implement IOCTL to enable or disable the soft mute settings.

Change-Id: Ie7f684f93e866d1126a59315bbe550e0677d35ee
CRs-Fixed: 356774
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
2013-02-27 18:13:33 -08:00
Anantha Krishnan
3e3687e226 radio-iris: Add ioctl commands to configure spur table
Provide interfaces to allow host to update the spur table
with spur frequencies specific to platforms.

CRs-Fixed: 352591
Change-Id: I139ac84a4a45578ebab63c26d7176666d47d3e2a
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2013-02-27 18:13:07 -08:00
Ayaz Ahmad
d0727821ee radio: tavarua: Add IOCTL to enable the FM TX Tone generator
Implement IOCTL to set the Internal FM TX Tone
generator values

Change-Id: I2a94d5559a90362b9439ea510e98489102ed0c04
CRs-Fixed: 356789
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
2013-02-27 18:13:05 -08:00
Steve Muckle
8ce05b36db radio-tavarua: compilation fix for gcc 4.6
The use of gcc 4.6 triggers a compilation warning regarding
possible uninitialized use of a variable.

Change-Id: I498ca7af5af88d91696c8d322ddc81795f961f31
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
2013-02-27 18:12:48 -08:00
Anantha Krishnan
a5c636459d radio-tavarua: Add IOCTL commands to configure the SPUR Table
Provide interfaces to allow host to update the SPUR Table
with newly found spur frequencies and their RMSSI values.

CRs-Fixed: 352591
Change-Id: I84f296ea313971cc1995c644d604f96581be5f7f
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2013-02-27 18:11:54 -08:00
David Brown
6fb73feae7 radio: iris: Qualcomm FM radio driver
Including:
commit 7ba5c1ccceac56a2c4de59d379af68289f5726d4
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Tue Nov 20 14:55:15 2012 +0530

    radio: iris: Allow user to set number of stations

    Maximum number of stations to be searched passed from application
    is not passed to FM Soc

    Set max number of stations to be searched passed from framework
    instead of always setting number of stations to zero

    Change-Id: I7196d16bfdb86ea6fb1c6ec3d9ef7b7538001bec
    CRs-Fixed: 421945
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

commit 89265111440674132f59c3aa2938a0aefbfc84fb
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Fri Oct 5 19:39:11 2012 +0530

    radio: iris: Add support for RT Plus, eRT feature

     - Allow Soc to interrupt host for RT Plus, eRT data
     - Parse the RDS group for RT Plus, eRT
     - Queue the parsed data and event for RT Plus, eRT
       to upper layer

    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
    Change-Id: Id351b0c466855e9b0d20bf38a601aa63dd1be2b1

commit 7f095c44d4f63b168820aeba9d72b2504a879ab9
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Wed May 30 15:31:38 2012 +0530

    radio-iris: Fix corner cases in dqbuf

    - Sometimes user data getting corrupted and it is not available
    at the kernel level
    - Use the kernel buffer instead of user space buffer to copy
    the data from fifo.
    - Increase the STD_BUF_SIZE buffer size from 64 to 128 bytes to compatible
    with Frameworks buffer size

    Change-Id: I1e0fd8e59b218e7bec7820b0c27e2405d472cd56
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 1c0db5273216ea80f3762dc5675daebac16e1e0b
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Mon Aug 27 17:52:51 2012 +0530

    radio: iris: Pass proper parameters to SOC for RDS transmission

     - Pass number of ps string instead of ps length
     - Use proper name for radio text length

    Change-Id: I3dc87673e15eea4a230093ccb3d0a11af28910cf
    CRs-Fixed: 388115
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

commit d588e7c5529d481a17dc2f5609f461ab6a98e7c8
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Fri Aug 3 20:40:33 2012 +0530

    radio: iris: Set band limits as passed from upper layer

    Seek up/down in some band is tuning to a station
    which is out of band becuase band limits passed from upper
    layer are not used

    Change-Id: Ic7d11cb33e7964d385be04b0d2e007889ccc1429
    CRs-Fixed: 384287
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

commit 37294ba321af3b2722540e97ba19ec50b3748d8e
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Tue Jul 10 16:38:11 2012 +0530

    radio: iris: Validate whether the current station is good or bad

    Provide mechanism to decide whether the currently tuned station
    is valid or not

    CRs-Fixed: 371689
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
    Change-Id: I1f058bdeec8ecebe85b950631118c1ac9604760f

commit f950e320ee1e717b33c6ca7fbed7efe34beb07cf
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Wed Jun 6 14:25:49 2012 +0530

    radio-iris: Add ioctl commands to configure spur table

    Provide interfaces to allow host to update the spur table
    with spur frequencies specific to platforms.

    CRs-Fixed: 352591
    Change-Id: I139ac84a4a45578ebab63c26d7176666d47d3e2a
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit c1e6a95c31cc474f809bb7ab3c036e8890be7709
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Tue May 15 19:29:54 2012 +0530

    radio: iris: Add calibration mode

    Do not queue the FM enabled/disabled events
    while calibration is in progress

    CRs-Fixed: 358229
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
    Change-Id: I02ee9c095d9d242de0610b210ae4e5d328e0afa8

commit d7b5a77f8183754fb9391f47739d8a529dca4cd3
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Apr 30 04:21:03 2012 -0700

    Revert "radio-iris: Configure search direction as passed by FM APP"

    As per V4L2 framework APP should pass the parameter as '1' to
    search in forward direction and '0' to search in downward
    direction. Reverting the change that was uploaded as it configured
    the search direction directly that it received it from the APP.
    APP should pass '1' for SEEK UP and '0' for SEEK DOWN . The driver
    should check for the direction before configuring. To the FM SOC,
    '0' means SEEK-UP and '1' means SEEK-DOWN. If APP passes '1' driver
    understands that user is requesting SEEK-UP operation and will
    configure the direction as '0'.

    This reverts commit 4667d9d437c2fe5501db1fd741b4643452eda61b

    Change-Id: I64a4c2674281c0d405ff03f8cbff9956a27f6e40
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 152fe5bbe0ddb8407030c31bde743006a66509b5
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Feb 28 18:07:20 2012 +0530

    radio-iris: Add buffer overflow checks to Default Data Write ioctl

    Copy only the requested amount of data specified by the user as
    part of the FM Default Data Write HCI command.
    Sending additional default data than requested by the user
    causes data abort in WNCSS and results in WLAN crash.

    CRs-Fixed: 356330
    Change-Id: Icd87f2357ca53c3fa66d703e0e6f373c01b7023c
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 71731d5d400fa60cca24303aa31dd95a1443803d
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Wed Apr 4 12:30:51 2012 +0530

    radio: iris: Implement new radio IOCTLs.

    Implement IOCTLs for Tx power level control

    CRs-fixed: 349247
    Change-Id: Ie188b08fdf0aa697b6e1eada5c597813f0dc678f
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 4667d9d437c2fe5501db1fd741b4643452eda61b
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu Mar 8 10:46:06 2012 +0530

    radio-iris: Configure the search direction value as passed by FM APP

    Do not invert the values passed for the search direction.
    Configure the value of search direction as passed from the user-space.

    Change-Id: Ic02714174740f4abb0c4b209a6f83c8f2c8575e6
    CRs-Fixed: 340401
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 3dad6519412c1de30c8905683047f51a89fd377b
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Tue Mar 13 13:41:19 2012 +0530

    radio: iris: Send proper event to FM frameworks

    Send enable, disable event to fm frameworks
    when FM TX is turend on/off respectively

    Change-Id: I9372cc143d6352d3faaf137726156d2760165272
    CRs-Fixed: 339470
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

commit b69202b62234d2a3103117536ed637bde87dcc2b
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Thu Feb 23 19:24:46 2012 +0530

    radio: iris: Fix the set station issue at boundary

    Seek frequency at lower/upper limit is not working
    if selected country is in Europe band with channel
     spacing 50Khz

    Use the correct upper limit for Europe band

    Change-Id: Icdcb116c24ae9840cc66b1dc2da5fa739a2f89c8
    CRs-Fixed: 338137
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

commit 0f69eb40055f94b293e9723f1d16ba9786a6eb82
Author: Sunny Kapdi <sunnyk@codeaurora.org>
Date:   Fri Jan 27 18:01:01 2012 -0800

    radio: iris: Add support for FM Subsystem Restart

    Inject FM Disable event when WCNSS resets.

    1. When WCNSS crashes, SMD will close the FM port
    2. Schedule a work queue to send RADIO_DISABLED event to upper layer.

    Change-Id: I10e4834df507fe39ce58b92e650c1a39ccbf66f7
    Signed-off-by: Sunny Kapdi <sunnyk@codeaurora.org>

commit 2f51a97c592d5cc369cef42c3b90743e3265fc75
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Mon Jan 23 20:11:13 2012 +0530

    radio: iris: Return proper antenna type for get antenna IOCTL

    FM TX UI turns off due to the invalid return value in response
    to GetAntenna on FM TX Restart.Save the type of the antenna that
    is set as part of SetAntenna.Return that in response to getAntenna.

    Change-Id: I35cf0ca36ed60a3c94b4bc98e020053763b24c88
    CRs-Fixed: 332432
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 1da1a240ee193089d5baf0740de25c525331650f
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Wed Jan 11 11:00:10 2012 +0530

    radio: iris: Fix the AF jump issue

    Clear the current AF JUMP settings before re configure.
    Otherwise FM Rx jumps to alternate frequency even though it
    is disabled

    Change-Id: Iab2e612c701876f2adec27d7d1abfcbe7fa6af52
    CRs-Fixed: 328783
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit d3184a4f6aecc65dafc0f45f5ca3a165523c08c7
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Wed Jan 4 21:18:01 2012 +0530

    radio: iris: Add signal detection threshold IOCTL's

    Add the IOCTL's to get the signal detection parameters like
    SINR, SINR samples, Low detection threshold and high
    detection threshold

    Change-Id: I0b8f8d978bd25990098b20073fd664e649af3b49
    CRs-Fixed: 322688
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 3d1d6e4b0c1f31b914328c6db797409f6abaf124
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Fri Dec 9 15:08:58 2011 +0530

    radio: iris: Fix the crash with get signal threshold command.

    Access to unallocated memory is causing the crash.
    Correct the implementation of returning the response to
    get signal threshold command.

    Change-Id: I920e984f68fbcfef82ad2f6e9d252f42c0b815d9
    CRs-Fixed: 330569
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit d6140eb5ef2ca2f342be568cc369a4ceeaeb9eac
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Tue Jan 17 16:23:52 2012 +0530

    radio: iris: Use service availability to indicate station's signal strength

    Check the service availability event to indicate the signal strength
    of the tuned station.

    Change-Id: I7d1c1f3de13351222cfdc27bc2d80dd08aadfdf2
    CRs-Fixed: 331137
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 6983984c309a429d2ee3f161003c53335a30c6ae
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Fri Jan 13 18:36:12 2012 +0530

    radio: iris: Increase the RT buffer to fit the RT header

    Increase the RDS Radio text buffer size to fit the RT header.
    And also limit the Radio text to maximum allowed length

    Change-Id: Ib38b4bfaae83d5f381a831c2e202c7f3a52698b4
    CRs-Fixed: 328036
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit acdebccd13dccabb9103bb7ced38c5e89bb78417
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Fri Dec 23 14:31:38 2011 +0530

    radio: iris: Incorporate changes in tune status event

    SINR and interference detection threshold parameters are added to the
    tune status event. Update the driver to incorporate the changes.

    CRs-Fixed: 322478
    Change-Id: Ia883c85469ba4d4025d518b6ddba371c755f3763
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit de0b5d915d3968ede7ab26377409ae9ee87e1bd6
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Dec 27 18:09:10 2011 +0530

    radio: iris: Add place holder for set audio path IOCTL

    Add place holder for Audio path IOCTL to make the FM FTM
    code generic across all platforms

    Change-Id: Iede9b6543e932882ee9c4bf4ead6f933132a08d8
    CRs-Fixed: 322893
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit d2ec468dc6623ef96728ec40a53df438f68d0d32
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Mon Dec 12 14:02:15 2011 +0530

    radio: iris: Fix the FM FTM Tx set station issue

    The get station parameters command failed during FM Tx as this is
    specific to Fm Rx.Add the check before issuing the get station
    parameters command

    CRs-Fixed: 323778
    Change-Id: Ie1a00fe5bf742c2c8158cff563c56d7fea44a21e
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 5e96e69e15862ec28b0ebbd1790009e453e0278a
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Mon Dec 5 17:36:06 2011 +0530

    radio-iris: Disable DC calibration.

    Disable do/set DC calibration.

    Change-Id: I3fdb39fb8fe3be3fd9f39aafe30b69f1127bedc8
    CRs-Fixed: 322471
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 862492da4d83cb2a5c3b2c6821e6a3329a56951c
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Tue Nov 29 11:51:24 2011 +0530

    radio: iris: Handle error case for get & set frequency.

    Check the status and update the frequency.

    Change-Id: Ia529f92f0119ba6aaa46fa4559e88560f93f70cb
    CRs-Fixed: 317131
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 61dc15eae13804a779dfd504a7d4875630b13820
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Dec 6 11:39:02 2011 +0530

    radio-iris: Add place holder for TAVARUA specific commands.

    Change-Id: I83226f1d6dce998dab0bde990c6855b0763ac0f3
    CRs-Fixed: 314648
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit c5320c2e36ef90f3c4b540f8361af4c6847c6185
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Mon Nov 28 14:28:51 2011 +0530

    radio: iris: Fix the FM FTM Tx configuration failure

    FM configuration failure is due to two issues. Since the calibration
    will take around 6 seconds to complete, any commands sent to SOC
    during that time will fail.Added a state machine to prevent the
    execution of another command while FM calibration is in progress.

    The other issues is with the Get tuner command.FM kernel driver is
    sending the Rx specific command to get the Tx configuration.
    Send the proper command to get the TX configuration parameters.

    CRs-Fixed: 317658
    Change-Id: I54e637c267cbdb88d15d68d8ad7ceb72f985c54d
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 45496f1b5ba4a2497bdefae56e770947a59c6868
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Wed Nov 23 12:51:13 2011 +0530

    radio-iris: Send the right channel spacing value to the SOC

    Send the set channel spacing command to SOC when there is a change

    CRs-Fixed: 318626
    Change-Id: I7471ec83253a1400fec1565c155f15723f403dd7
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit f78dab8050e0c6611cadf477cac7a879d40108e5
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Tue Nov 29 10:57:31 2011 -0800

    radio: iris: use the proper function to read from SMD

    Events are read from SMD in tasklet context, but The function
    used to read from SMD causes a deadlock as it only works
    in interrupt context. This patch replaces the read function
    with an appropriate function that can be used in tasklet
    context.

    CRs-Fixed: 322243
    Change-Id: I02e65fe33f4eee6ff1296abffd010f1283682624
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 3a0b75d0af955926606ce97ae491d1fea02f3725
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Wed Nov 23 17:03:27 2011 +0530

    radio: iris: Fix the calibration issue.

    Fix the preset issue after the calibration

    Change-Id: I5c0c694304b70be48462feaf64f688109596e781
    CRs-Fixed: 318867
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 4944e69000f93253863c632b572e602975f6dad7
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Fri Nov 25 16:00:20 2011 +0530

    radio: iris: Fix memory leak

    Fix the memory leak in transport driver.Free the memory
    after sending the command to SOC

    Change-Id: I2948debf882e004df41d6a1b5ce81581c1034ae2
    CRs-Fixed: 320325
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit f1febce83b54ac1ee999672fee32fd08e5c243fa
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Wed Nov 9 10:30:16 2011 +0530

    radio: iris: Fix stereo display issue

    There was a bug where the kernel driver was not sending the
    audio mode event.This patch adds the support to send the events
    to the upper layer.

    Change-Id: I08326f5de2796bf40ec25b5646bd21be4aa94b88
    CRs-Fixed: 312918
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit dcf9919244b01bbc73ab4c16c97ae1cd8d1d30fb
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Mon Nov 7 17:55:48 2011 -0800

    FM: fix the bug where SMD interrupts might not be processed

    radio_hci_smd_recv_event() function allocates memory with
    GFP_KERNEL which might sleep which can cause the interrupts
    not to be processed. This patch changes GFP_KERNEL to
    GFP_ATOMIC which prevents the function from sleeping
    while allocating memory.

    Change-Id: I0ff0feabf972c4ff5a9fb8474ec68611a13668bf
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit bab6b7ee8a65a87ae78160d707311618308528fa
Author: Priyanka Vunnam <pvunnam@codeaurora.org>
Date:   Tue Nov 1 15:41:54 2011 +0530

    radio: iris: Fix a few possible coding errors

    Add checks for null pointer dereferences, take care of memory leaks
    and handle buffer overflows.

    Change-Id: I0722f96707a8eeb2a231fc4601beeb3dbca9ceb9
    CRs-fixed: 313392
    Signed-off-by: Priyanka Vunnam <pvunnam@codeaurora.org>

commit f856ae6f14473db110e4e538408f9f502136cfb8
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Mon Oct 17 18:43:26 2011 +0530

    radio: iris: Implemen low power IOCTL's

    This patch adds the support for low power mode related IOCTL's

    Change-Id: Icbfb21c24b82d9dc40203bcaf37049160285cc4e
    CRs-Fixed: 312921
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit cb48ee690877fa3be1c9c367d169e3aec34b65ac
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Oct 25 09:57:06 2011 +0530

    radio: iris: Added IOCTL's for FM calibration

    This patch adds support for FM Calibration IOCTL's
    to perform the FM calibration during the bootup
    and on every enable

    Change-Id: If1c9e1d131d67df1434e86debd214b52379cad61
    CRs-Fixed: 313588
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 787af69e5f496a5c1af539b84a4b604296869eeb
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Fri Oct 14 21:23:03 2011 +0530

    radio: iris: Added missing radio IOCTLs.

    Added IOCTLs for Read/Write default data commands

    CRs-fixed: 312337
    Change-Id: I1012840bb94352041f1e5134054588cb0976eb62
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 1c67b75359aebeb2aba90f0124c0f12afd7e1d72
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Mon Oct 17 13:05:48 2011 +0530

    radio: iris: Corrected the OGF values

    There was a bug where we were using wrong OGF values
    for set/get threshold, get station debug parameters,
    get RT and get PS commands. This patch is submitted with
    Correct OGF values
    CRs-Fixed: 307742

    Change-Id: I6c47125e5749a22d82256e24101952778255a1b4
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit cf3a81185fc3c9130a61097ea3f0d5abe457988a
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Sep 22 21:02:02 2011 +0530

    radio: iris: Freeing  memory after event handling

    There was bug where we were not freeing the memory after event handling.
    This patch adds the code to clear the skb memory.

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 3c7a8eb9d84fd4a0b7e931e8ea607a6e9e2e2c0d
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Sun Sep 18 09:10:21 2011 +0530

    radio: iris: Added missing radio Events & IOCTLs.

    Added support for events rds availability, service availability,
    alternate frequency list and RDS group complete.

    Added IOCTLs for search on, radio state, search Program Type,
    search Program Identification, alternate frequency jump,
    stop Program Service name transmission and stop radio text transmission.

    CRs-fixed: 307369
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit f0d1374a2038d59170ad3b5953c8aa9e28859cd2
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Sep 8 10:13:13 2011 +0530

    radio: iris: Fix for Japan band setting failure

    There was a bug where we are using default configuration
    (Setting to US band)in FM enable. This patch removes
    the default settings.

    CRs-fixed: 305266
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 0f4098f5b445f624e821e5cc97f88b0635ec95c3
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Sep 6 16:46:28 2011 +0530

    radio: iris: Added support for FTM commands

    This patch adds support for  RDS group counters,
    Set HLsi and Set notch filter FTM commands.

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 8f972e5c91c3ff4f62852b65ae145c58d0e11118
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Wed Aug 24 11:48:32 2011 -0700

    radio: iris: fix the seek bug during FM TX

    This patch fixes the issue we could not seek to
    another station in the TX mode when RDS was enabled.

    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit cc62b1cce23459f8074f71567e9fe0f1e64c991b
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Mon Aug 22 19:15:29 2011 +0530

    radio:iris:Fix for regional band settings issue

    This patch fixes the bug where the regional band settings were
    overwritten by default settings.
    And also sets proper high and low band limits
    for Japan band.

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 07522d9b9dfa7892b195f19bd3765dd8e8b1b627
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Aug 16 05:09:30 2011 -0700

    radio:iris: fix the FM scan failure issue

    This patch fixes the bug where break statements were missing
    while setting the stereo mode and enabling FM in
    Transmitter mode.

    CRs-fixed: 301572

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit d928d54d59013dc82df80b4ee52f753cb5640a88
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Thu Aug 11 13:15:41 2011 -0700

    radio: iris: adding support for TX functionality

    This patch adds the functionality for FM enable, disable,
    tuning, configuration and RDS functionality for FM TX

    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 6cc0e32a30b04ecb0376c99c5f97f06956feb537
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Fri Aug 12 10:54:48 2011 -0700

    radio: iris: Fixed the ssbi riva poke issue

    This patch adds the proper command type for riva poke

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 58273f8b07b5f17b8287a9c06f59d977e4872583
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Wed Aug 10 19:07:45 2011 -0700

    radio: iris: Fixed the issue with RDS configuration

    This patch configures the rds registers properly

    CRs-fixed: 298431
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 0ffb5d65b7783fd60f08272d68362272ed3de88b
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Aug 2 17:54:13 2011 -0700

    radio: iris: Added code to enable soft mute

    This patch adds code to enable soft mute, signal blending and
    interference blending

    CRs-fixed: 297396
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit abc8efa59771639e344b95a01c1a4b0d8c67154a
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Aug 2 14:31:30 2011 -0700

    radio:iris:Adding support for FM debug commands

    This patch adds new debug commands for FM driver

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 18fb80ef719e94493c257e3cd6c92e790cc6223f
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Sun Jul 17 17:33:00 2011 -0700

    radio: iris: Added code for search station list response

    This patch adds support to handle  the search station list
    response event

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 7bb2210232d7a218a8a5dde43dddbcaafa76f745
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Jul 14 11:27:30 2011 -0700

    radio-iris: Adding offset to the search mode for RDS search command

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 78a782be53183ace3fb289e5ee9d6c1efc9e4af2
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Thu Jul 7 21:11:21 2011 -0700

    radio: iris: adding support for RDS program service and radio text

    This patch adds support for RDS program service and radio text
    so that RDS data is displayed in the UI

    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7
Author: Bryan Huntsman <bryanh@codeaurora.org>
Date:   Tue Aug 16 17:27:22 2011 -0700

    Initial Contribution

    msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142

    Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
commit 8d8992e355f868f757044680f6a3ee97011fc170
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Sep 22 21:02:02 2011 +0530

    radio: iris: Freeing  memory after event handling

    There was bug where we were not freeing the memory after event handling.
    This patch adds the code to clear the skb memory.

    Change-Id: I865fb9e62388a1fdff78a3ae3d852af8c4c16d8f
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 3e13e1f80d483b49c4863aba38e585bbd5526443
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Sun Sep 18 09:10:21 2011 +0530

    radio: iris: Added missing radio Events & IOCTLs.

    Added support for events rds availability, service availability,
    alternate frequency list and RDS group complete.

    Added IOCTLs for search on, radio state, search Program Type,
    search Program Identification, alternate frequency jump,
    stop Program Service name transmission and stop radio text transmission.

    CRs-fixed: 307369
    Change-Id: I0bb0f5cd2aef30e60c6af3d5deb7f1ddab93065a
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit ac31e78597cc8da6b66258abd84e9e33829351d3
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Sep 8 10:13:13 2011 +0530

    radio: iris: Fix for Japan band setting failure

    There was a bug where we are using default configuration
    (Setting to US band)in FM enable. This patch removes
    the default settings.

    Change-Id: Idb43920df86557dda5087fda39e599fb3705d1d5
    CRs-fixed: 305266
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 70746090ff484139a57eeb2a73e92b6a3360d200
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Sep 6 16:46:28 2011 +0530

    radio: iris: Added support for FTM commands

    This patch adds support for  RDS group counters,
    Set HLsi and Set notch filter FTM commands.

    Change-Id: I6831cc870fdc0cf4ebaaafb9247614a9fd3dee56
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 480d7d564b0d3948231f23416ab6512f315a0818
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Wed Aug 24 11:48:32 2011 -0700

    radio: iris: fix the seek bug during FM TX

    This patch fixes the issue we could not seek to
    another station in the TX mode when RDS was enabled.

    Change-Id: I8ed1c90aa51eccc15103de69b7b87488d2902e77
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 8662f02e39b782782c6ec7bf1bc9254aafa68ea6
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Mon Aug 22 19:15:29 2011 +0530

    radio:iris:Fix for regional band settings issue

    This patch fixes the bug where the regional band settings were
    overwritten by default settings.
    And also sets proper high and low band limits
    for Japan band.

    Change-Id: If952ef44050a7449547968168e3ee14370c94efd
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit bf8e7d014c89b814c6eaff2d51d0f5a00e96a14b
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Aug 16 05:09:30 2011 -0700

    radio:iris: fix the FM scan failure issue

    This patch fixes the bug where break statements were missing
    while setting the stereo mode and enabling FM in
    Transmitter mode.

    Change-Id: I8aeb109eedb2fdfb2d8084b263977794c6d0dbac
    CRs-fixed: 301572

    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 3e721410f5fb14d29c9d105baaed222d927e9c09
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Thu Aug 11 13:15:41 2011 -0700

    radio: iris: adding support for TX functionality

    This patch adds the functionality for FM enable, disable,
    tuning, configuration and RDS functionality for FM TX

    Change-Id: I6a3c55db06fb712db2425906dbe2e4aed1dfa1f0
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit b9eb8c4bb9eec935b04630bac04cebd8ce071fc3
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Fri Aug 12 10:54:48 2011 -0700

    radio: iris: Fixed the ssbi riva poke issue

    This patch adds the proper command type for riva poke

    Change-Id: I878dc62a635abe3c3b5628fb524619e3962c7868
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 08ce3a00e2d9b04426c2a48793cb04be4ddedf38
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Wed Aug 10 19:07:45 2011 -0700

    radio: iris: Fixed the issue with RDS configuration

    This patch configures the rds registers properly

    Change-Id: Iaf17ffbe6802a12ca0b528edc5e763f03903f219
    CRs-fixed: 298431
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 4f33497a60134707b1c0d23711d77c5a06f3a6cc
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Aug 2 17:54:13 2011 -0700

    radio: iris: Added code to enable soft mute

    This patch adds code to enable soft mute, signal blending and
    interference blending

    CRs-fixed: 297396
    Change-Id: Idddbfb758cb45ffa28a2c972a44449c3239f5868
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 6ee7ee74e3bd5b48df34f60c0d656fb186341fdc
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Aug 2 14:31:30 2011 -0700

    radio:iris:Adding support for FM debug commands

    This patch adds new debug commands for FM driver

    Change-Id: I6f92be14197f8ff6e16e1a6a0e6778eab61040f2
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 94d218b5185682de673f86d5527f9c48ac1ef35b
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Sun Jul 17 17:33:00 2011 -0700

    radio: iris: Added code for search station list response

    This patch adds support to handle  the search station list
    response event

    Change-Id: Ie6e9e4867427eaace9ef179de2ec0f4e4b870234
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit c7c4b59a4319b937d20ccd328349838f2babf6c8
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Jul 14 11:27:30 2011 -0700

    radio-iris: Adding offset to the search mode for RDS search command

    Change-Id: I05e8efc1c9e54098bdb7955599b0d4549f37a1b2
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 8ddd11bdaf5dccab3f8941db1051e3c8cc7e24a8
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Thu Jul 7 21:11:21 2011 -0700

    radio: iris: adding support for RDS program service and radio text

    This patch adds support for RDS program service and radio text
    so that RDS data is displayed in the UI

    Change-Id: Idc0d7caa77fef053cdd597426fd236de89649dff
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 254e89abff8418d60d7d5f44db0f6782b6474937
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Tue Jul 12 16:07:11 2011 -0700

    radio: iris: using correct OGF for cancel search

    Change-Id: I4ca6b99f482503d5f056d8a0ac43548b229c6ed2
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 0a7d32781050824c2130e9c2b8a7ea569100e686
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Thu Jul 7 20:05:41 2011 -0700

    radio: iris: Sending an event to the app for disable

    This patch sends an event back to the app indicating
    disable has been completed

    Change-Id: I592f721885385e893c1cc38d18028b25bd8b3446
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit cde6173f8e2223feaf14fa9d5ec8fb3a10dffda7
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Fri Jun 24 10:32:24 2011 -0700

    radio: iris: returning a tune success event for FM tune command

    Change-Id: Ib2db48e85cef7d0cb909737954b863ecd6772146
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 4108d501b055c21d19396ce52686975916f93c50
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Thu Jun 23 23:01:13 2011 -0700

    iris: msm8960: removing check for open/close calls in radio transport

    Change-Id: Ie64e8fe712b3b0bfbe5f137b463605ca99116566
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 96e6bba671f11ff39a901f6a71fd06efe74d2dd0
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Wed Jun 22 01:41:51 2011 -0700

    radio: iris: adding wait_queue functionality and cleaning up code

    In this patch we add the wait_queue functionality so that the
    after sending a command the driver blocks until an event is
    recieved from RIVA.

    Change-Id: I9742f6db71e80f2931e796110adb034ea1cc2f5f
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

commit 4a8a4b1f27ccf01758c00e63451f1a69b32f2b36
Author: Archana Ramachandran <archanar@codeaurora.org>
Date:   Wed Jun 15 19:31:59 2011 -0700

    msm: FM iris driver fix for enable, disable and tune

    FM iris driver fix for enable/disable and tune,
    removed tasklets and wait

    Change-Id: Ia4c065dd5f062f8e89bd5e7d3bd71fdf403f4773
    Signed-off-by: Archana Ramachandran <archanar@codeaurora.org>

commit 31abca6a78e2128358b9a3434bc7c23d84eab65d
Author: Archana Ramachandran <archanar@codeaurora.org>
Date:   Tue Jun 14 11:33:45 2011 -0700

    msm: FM iris Driver bug fixes for initialization and cleanup

    FM iris driver updates fixes for platform init, v4l
    registration, export symbol to dynamic modules

    Change-Id: I7107d174620248f2b465721da78f782a17f3ed89
    Signed-off-by: Archana Ramachandran <archanar@codeaurora.org>

commit f966cdb1ae7f5e99a719cc234a496c9a20ec8331
Author: Archana Ramachandran <archanar@codeaurora.org>
Date:   Wed May 11 15:07:11 2011 -0700

    radio: iris: FM driver HCI code for async events and platform

    Modified FM driver to handle hci async events,
    added platform register and remove code,
    removed all the static objects and
    added DQBUF code to pass the data from the driver to the FM app

    Change-Id: I04c07083f4436ebe0f31ddb8a6738f2714fb305b
    Signed-off-by: Archana Ramachandran <archanar@codeaurora.org>

commit 19f8510478edc3a4baed0e689ad7d57d7ac00f23
Author: Ankur Nandwani <ankurn@codeaurora.org>
Date:   Wed Apr 20 21:15:39 2011 -0700

    radio: Iris: Add support for FM driver

    This driver provides support for FM on 8960. Messages
    are exchanged with RIVA using HCI protocol and SMD
    is used as the transport. Currently the driver
    dosen't handle RDS data and send asynchronous
    data to the FM App.

    Change-Id: I9eba2ee9b285e4f788b726bc45f50d589a3240b4
    Signed-off-by: Ankur Nandwani <ankurn@codeaurora.org>

Signed-off-by: David Brown <davidb@codeaurora.org>
2013-02-25 11:30:56 -08:00
David Brown
f01a4269de radio: tavarua: Add MSM FM radio driver
Including:

commit a6757832d554710798747bf3b46e560370bc0427
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Mon Sep 24 15:05:44 2012 +0530

    radio-tavarua: Add support for WCN2243 v2.1 SOC

    Enable support for WCN2243 v2.1 SoC which is respin of
    WCN2243 v2.0 with the bug fixes.

    Change-Id: I883ec0407224d875b1ba1b062903a4eefeb962c4
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
    Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>

commit 4c2dcd4a4cec5939fffda43f162c04757fdba42c
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Jun 25 14:09:14 2012 +0530

    radio-tavarua: Validate whether the current station is good or bad

    Provide mechanism to decide whether the currently tuned station
    is valid or not.

    CRs-Fixed: 371689
    Change-Id: I1a28537d242fbb636732b120c9259ad5e7fffcc0
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 9efd5c923e5c8282ad7f80997732e4562cab1767
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Fri May 11 21:18:45 2012 +0530

    radio-tavarua: Add new IOCTL to set the soft mute

    Implement IOCTL to enable or disable the soft mute settings.

    Change-Id: Ie7f684f93e866d1126a59315bbe550e0677d35ee
    CRs-Fixed: 356774
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit a0d56b574b8d217b5aecde623da475596db35918
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Tue Jun 26 15:58:41 2012 +0530

    radio: tavarua: Add IOCTL to enable the FM TX Tone generator

    Implement IOCTL to set the Internal FM TX Tone
    generator values

    Change-Id: I2a94d5559a90362b9439ea510e98489102ed0c04
    CRs-Fixed: 356789
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

commit 537e445794569b7d70726679ed02b6c879dd9d3b
Author: Steve Muckle <smuckle@codeaurora.org>
Date:   Mon Jun 25 17:38:29 2012 -0700

    radio-tavarua: compilation fix for gcc 4.6

    The use of gcc 4.6 triggers a compilation warning regarding
    possible uninitialized use of a variable.

    Change-Id: I498ca7af5af88d91696c8d322ddc81795f961f31
    Signed-off-by: Steve Muckle <smuckle@codeaurora.org>

commit 93eb1769b8cc503bc431d266b4cd5aa5ea73a49e
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Jun 4 13:41:07 2012 +0530

    radio-tavarua: Add IOCTL commands to configure the SPUR Table

    Provide interfaces to allow host to update the SPUR Table
    with newly found spur frequencies and their RMSSI values.

    CRs-Fixed: 352591
    Change-Id: I84f296ea313971cc1995c644d604f96581be5f7f
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 6be5660f48f46aec14c2c6ecc84eca4f52f18776
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Apr 30 04:08:01 2012 -0700

    Revert "radio-tavarua: Configure search direction as passed by FM APP"

    As per V4L2 framework APP should pass the parameter as '1' to
    search in forward direction and '0' to search in downward
    direction. Reverting the change that was uploaded as it configured
    the search direction directly that it received it from the APP.
    APP should pass '1' for SEEK UP and '0' for SEEK DOWN . The driver
    should check for the direction before configuring. To the FM SOC,
    '0' means SEEK-UP and '1' means SEEK-DOWN. If APP passes '1' driver
    understands that user is requesting SEEK-UP operation and will
    configure the direction as '0'.

    This reverts commit 75b90b2359fe55e9e98906fbc088a32fe5537675

    Change-Id: I46d50994ec7eb52db389dc1b02e9a78600dbb5e1
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 00c882d6fc56349032062f8f17d556ef475c1e5f
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Thu Apr 12 10:50:53 2012 +0530

    radio-tavarua: Fix corner cases in dqbuf

    - Sometimes user data getting corrupted and it is not available
      at the kernel level
    - Use the kernel buffer instead of user space buffer to copy
      the data from fifo.
    - Increase the STD_BUF_SIZE buffer size from 64 to 128 bytes

    CRs-Fixed: 344443
    Change-Id: Ibb8c60f18b72cbcd63c2f39eb49fbbadb7af5443
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit af2eafc359250859c61f8b2c4fc33406b7eeab6a
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Wed Apr 4 11:58:28 2012 +0530

    radio-tavarua: Update the low power mode flag during FM off operation

    The lower power mode flag is not updated after the interrupts
    have been disabled during FM turn Off operation. This causes the
    interrupts to not to be enabled during next FM turn On
    operation and this results in GPIO not toggling for XFR operations.

    Change-Id: I0f2199292b570f1add2bc23c9cf6bcd480781c03
    CRs-Fixed: 344780
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit b49c2cb0221cabfa9f41891fa93ecdceeed55d17
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Tue Apr 17 17:44:50 2012 +0530

    radio-tavarua: Enable the I2S lines only when FM is in digital path.

    With this change I2S Path will not be enabled by default as part of
    FM on sequence. It will be enabled only when FM Digital Path is set.

    Change-Id: Iab09eb6a0c7ab06e880e15ce505fb94f5a61692e
    CRs-Fixed: 335908
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 75b90b2359fe55e9e98906fbc088a32fe5537675
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu Mar 8 12:42:30 2012 +0530

    radio-tavarua: Configure the search direction value as passed by FM APP

    Do not invert the values passed for the search direction.
    Configure the value of search direction as passed from the user-space.

    Change-Id: I93e14cc9e309e2e9429768e289c594003954cfe3
    CRs-Fixed: 340401
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 1475c9390d9262cab388a9930a879ed9cf1af6b1
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu Feb 16 21:54:03 2012 +0530

    radio-tavarua: Queue only the FM Shutdown work during FM Off

    Disable the IRQ line and do not add any work other than
    FM Shutdown work to the FM radio work queue as part of the
    FM "Turn Off" operation.

    Change-Id: I9bde2651a0e24ba8c0c50df6d41d030848f77dc0
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 0fa19849354c41e3ac89ec0b6b3bb411cb69b908
Author: Ayaz Ahmad <aahmad@codeaurora.org>
Date:   Wed Mar 14 22:54:53 2012 +0530

    radio-tavarua: Send disable event

    Send disable event when FM turn off is completed
    so that file descriptor can be released safely

    CRs-Fixed: 339470
    Change-Id: Ib66f4cd79a470498404a07759d730504f6615e33
    Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>

commit 9ac855f01e3898663dba342cddc2b3d39a4457dd
Author: Taniya Das <tdas@codeaurora.org>
Date:   Thu Feb 9 18:05:21 2012 +0530

    radio: radio-tavarua: Re-org code for workqueue

    When fm task is killed from task manager rpc failure is seen.
    <3>[   72.817162] pmapp_rpc_req_reply: rpc failed! len = -512
    <3>[   72.817173] fm_radio_shutdown: voting off failed with :(-512)
    RPC failure is because data to be sent from apps, was on behalf of the
    current process, but as the process is killed the current->pid given to
    rpc is a non-existing pid.
    To resolve the issue a valid pid is needed, which can be done by
    queueing a work in existing workqueue and wait for completion.

    Change-Id: I8181d0a398d79b493b92c899f068f008a8ff2d0f
    Signed-off-by: Taniya Das <tdas@codeaurora.org>

commit a3dcce4029742d8e510c695b902cbe349bf98f44
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu Jan 5 19:27:57 2012 +0530

    radio-tavarua: Add commands to configure the FM Search parameters.

    Provide commands to get/set the On channel and Off channel detection
    threshold search parameters to optimize the FM search performance.

    Change-Id: Id232ffe2d1231fbd44bb34b4b98263434763b7c0
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit d09f24a89c3bf1c9e8e2792a2c6d133dd98a1bae
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Fri Jan 13 19:10:39 2012 +0530

    radio-tavarua: Increase the RT buffer to fit the RT header

    Current RDS RT Buffer is not sufficient to accommodate the
    RT header and data. Increase the RDS Radio text buffer size to
    accomidate the RT header and data.

    Change-Id: I742dad912bbe6e360ffeda09f80117d47822fdc5
    CRs-Fixed: 328036
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 31f45dafe0b257cd662e944dffd3cd5a57f5ae17
Author: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Date:   Fri Jan 6 14:58:13 2012 +0530

    radio-tavarua: Modify FM Turn Off Sequence.

    Flush the event and work queues prior to queuing READY event.

    Change-Id: I95584006d252b2284bf15562edbca50fa5593384
    CRs-Fixed: 327151, 326855
    Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>

commit 29f1d9352f5cf247ff0a4136bd2b43d894e4565c
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu Dec 29 21:17:29 2011 +0530

    radio-tavarua: Set the lower and upper band limits for all regions

    Configure the lower and upper band limits for all regions.

    Change-Id: Ie9ceced02be0d3f5b335fb7eb6594d5783823f91
    CRs-Fixed: 326007, 325078
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 71d6fa6ccd9d6bf6d47dda6b4e4b8b672161adca
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Dec 13 19:30:51 2011 +0530

    radio-tavarua: Add place holders for IRIS specific commands

    Change-Id: I4bcf4316b23ce0f9c02815c0bc0d495ee49df51f
    CRs-Fixed: 324758
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 40bcd05937c63eca0965b6043b2c30bed5a60c81
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Dec 5 15:28:29 2011 +0530

    radio-tavarua: Add host side support for the new FM Search Algorithm

    Change-Id: Iba497b84e525d08fa588bb7f58ff6a238452c47c
    CRs-Fixed: 314648
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 71bea3c7b5426071b56ef2e58572466582a231d6
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Nov 15 07:36:49 2011 +0530

    radio-tavarua: Perform suspend and resume only when device count is '0'

    CRs-Fixed: 321609
    Change-Id: Ia377d22d96be7e46c04e80d4b5ba07760ca82d4d
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit bdb128c752857876e6ca229e4627296470466d97
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Nov 21 17:51:26 2011 +0530

    radio-tavarua: Add private IOCTLs to poke threshold values.

    Add V4L2 private IOCTL commands to poke On-channel and
    Off-channel detection threshold values.

    Change-Id: I299a2ba7c5f25bcb36688ae0f7de7aff255b7d03
    CRs-Fixed: 320147
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit c72725ac8cfae7b51a4fd76e29a767616af97886
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Sep 6 09:28:22 2011 +0530

    radio-tavarua: Configuring the FM Audio path

    This changes ensures that if 'Ananlog' path is enabled
    then 'Digital' path is disabled and vice-versa.

    Change-Id: I3492471ab69923d29c9912bb1a84784638b38ee1
    CRs-Fixed: 304621
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit a2f9808c5848657e91c6a84d2abf3b2b6cfbdba3
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Oct 4 20:02:11 2011 +0530

    radio-tavarua: Modified the device count handling mechanism

    Replaced the existing mutex lock with atomic increment/decrement
    operations for manipulating the device count.

    Change-Id: Ic08b3861f06620acbc68b6ca0aea7c622e7027b3
    CRs-Fixed: 296214
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 4e38bfc56cfbc092a6edd3256d66756e5ebd7095
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Sep 15 16:00:31 2011 +0530

    radio: tavarua: Added place holder for notch filter ioctl

    This patch adds place holder for notch filter, to keep
    the driver compatible with the framework changes made for IRIS

    CRs-fixed: 306856
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 3be3b2611624ebcc8f7758e115a13631a888093c
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Sep 5 17:22:48 2011 +0530

    radio-tavarua: Added changes to return the RMSSI Delta value

    This change involves returning the currently set RMSSI Delta value.

    CRs-Fixed: 304534
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit f225860718c7595b75d59c8fd6a3cee0ea6da4bb
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu Jun 30 01:32:09 2011 +0530

    radio-tavarua: Adding V4L2 private control to enable HLSI

    This change is to add a new private control to enable the
    high-low injection.

    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit a02ef213066e163f2c9dfde2a3bab6cc0d94a090
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Jun 28 00:57:25 2011 +0530

    radio-tavarua: Changes for supporting the new FM Search Algorithm.

    Added host side changes for supporting the new Bahama FM Searcher
    Algorithm. This involves configuring the channel spacing as 100KHz
    and enabling the 200KHz enforcer for regions that are 200KHz spaced.

    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 3b44cd4aeedfa3026caf379c4687d980ed3261b8
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Wed Jul 6 12:36:15 2011 +0530

    radio-tavarua: Adding private control to configure the RMSSI threshold

    This change is to add V4L2 private controls for configuring the
    value of RMSSI threshold.

    CRs-Fixed: 293328
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit e46ef6f1bc4d6d406e90e8e4dbcbeef0e2257cae
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Wed Jun 29 23:56:03 2011 +0530

    radio-tavarua: FM jumps to alternate freq. with AF jump option disabled

    When the transmit power of the currently tuned station decreases,
    FM Receiver automatically switches to available alternate frequencies,
    even though the auto AF jump feature is not enabled

    CRs-Fixed: 293773
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit c88b6e39d50f56e8a9d644d16352f5cb82709ec0
Author: Rahul Kashyap <rkashyap@codeaurora.org>
Date:   Thu Jul 7 10:52:16 2011 +0530

    radio-tavarua: Set FM status before calling FM Shutdown.

    FM status is checked in FM shutdown function, based on which Bahama
    SYS RESET GPIO is put in Low power mode

    Signed-off-by: Rahul Kashyap <rkashyap@codeaurora.org>

commit 3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7
Author: Bryan Huntsman <bryanh@codeaurora.org>
Date:   Tue Aug 16 17:27:22 2011 -0700

    Initial Contribution

    msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142

    Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
commit 97e954c69fd028d044fea6f9a11e6666d32c5a82
Author: Srinivasa Rao Uppala <uppalas@codeaurora.org>
Date:   Thu Sep 15 16:00:31 2011 +0530

    radio: tavarua: Added place holder for notch filter ioctl

    This patch adds place holder for notch filter, to keep
    the driver compatible with the framework changes made for IRIS

    CRs-fixed: 306856
    Change-Id: I3b20c6138798c2eb19ece5be1c381f2297e204dd
    Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>

commit 011ecfecd703869bc6d8566a008d7496b3f75af2
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Sep 5 17:22:48 2011 +0530

    radio-tavarua: Added changes to return the RMSSI Delta value

    This change involves returning the currently set RMSSI Delta value.

    CRs-Fixed: 304534
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
    Change-Id: I62725f08ba121f2d43d81943938f69bb36d54ede

commit 675a1815dcb46cb3afc7a1877a6bb2f673852487
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu Jun 30 01:32:09 2011 +0530

    radio-tavarua: Adding V4L2 private control to enable HLSI

    This change is to add a new private control to enable the
    high-low injection.

    Change-Id: Ib64b29e01bbfa950827514edafaf5fe1d5d97db4
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 04e89de8b7687459788b37a45b77c2f13c6af3fb
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Jun 28 00:57:25 2011 +0530

    radio-tavarua: Changes for supporting the new FM Search Algorithm.

    Added host side changes for supporting the new Bahama FM Searcher
    Algorithm. This involves configuring the channel spacing as 100KHz
    and enabling the 200KHz enforcer for regions that are 200KHz spaced.

    Change-Id: Ia2d26a09c4f79b22426bc13499c4c2a17d7d366e
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 4f5bfe8884d04a45cec3b293d3b1cce8cb3e05b8
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Wed Jul 6 12:36:15 2011 +0530

    radio-tavarua: Adding private control to configure the RMSSI threshold

    This change is to add V4L2 private controls for configuring the
    value of RMSSI threshold.

    CRs-Fixed: 293328
    Change-Id: Ic18aae8eeddc7634033ac26aa5e6d2639a7d832e
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit c8dfdb17594429322b117fafecb0508d28885ad6
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Wed Jun 29 23:56:03 2011 +0530

    radio-tavarua: FM jumps to alternate freq. with AF jump option disabled

    When the transmit power of the currently tuned station decreases,
    FM Receiver automatically switches to available alternate frequencies,
    even though the auto AF jump feature is not enabled

    CRs-Fixed: 293773
    Change-Id: Ic84bae6a11dbedee570388c9b74f11d4489dc9b4
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 7d1434c73bd05190048550e1f2611d39b2461081
Author: Rahul Kashyap <rkashyap@codeaurora.org>
Date:   Thu Jul 7 10:52:16 2011 +0530

    radio-tavarua: Set FM status before calling FM Shutdown.

    FM status is checked in FM shutdown function, based on which Bahama
    SYS RESET GPIO is put in Low power mode

    Signed-off-by: Rahul Kashyap <rkashyap@codeaurora.org>
    Change-Id: I06162deb33e4f938246ea61c7db79f6aa02ae747

commit 44de9e51c6ed4fea63618121be09f8725ebed000
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Jun 20 20:27:05 2011 +0530

    radio-tavarua: Modified the processing of radio text(RT) header

    Saving the radio text payload in to the RT buffer after filling
    up the first 5 bytes with the contents of RT header.

    CRs-Fixed: 289884
    Change-Id: I84513ceab215358153e018c41de51b8bf1f7a6f4
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 6870685de158946f94911ae778d798899d79f4be
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Thu May 5 10:39:44 2011 +0530

    radio-tavarua: Added support for peeking MPX_DCC parameter

    CRs-Fixed: 285809
    Change-Id: I1f7e8f22bfdbe1e6b2235e8b3fa31889568f17b5
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit baa2f80baebc44da31f81567cc81eca3ec52dfa0
Author: Srinivas Krovvidi <skrovvid@codeaurora.org>
Date:   Tue May 17 14:21:39 2011 +0530

    FM: tavarua driver changes to update i2s gpios on start and stop FM.

    The direction of MSM GPIOs is different for BT and FM. So when
    ever FM is started or stopped these GPIOs are required to be
    updated.

    Change-Id: I39162ea964e3ffb2c1b7f27f8b90022cdc91c0c2
    Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>

commit 86e15169938beb7deeb60589b62fc90ad90f0ce7
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Apr 19 19:12:01 2011 +0530

    radio: tavarua: Handling BT-FM concurrency using a global mutex instance

    Change-Id: I4cf4ea1879775ab88e583f6da6795adcb6050ea8
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 5629ce1cc45fe4117359301dc5fbcae2eea6e2dc
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Fri Apr 29 00:42:41 2011 +0530

    radio: tavarua: Added support for JAPAN-WIDE regional band

    Change-Id: Iffb02653afb3b496c3178c05774e4c1adc00b82a
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 17ce68c25984aa7a461bb72d6fa24a41e27301a9
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Apr 5 14:06:57 2011 +0530

    radio: tavarua: Configuring FM SoC as I2S master/slave based on target

    Change-Id: I2b7b7895b9fc5e8ba3dd8d8b23ef5e596fc008a9
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 8e393f6c4d77b37e5a7a8fb9e7e495cd55e2fb47
Author: Michael Bohan <mbohan@codeaurora.org>
Date:   Thu Feb 24 12:10:11 2011 -0800

    Initial contribution

    This commit takes the MSM and driver changes from
    git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.35 and applies
    them on top of
    git://android.git.kernel.org/kernel/common.git:android-2.6.38.

    Change-Id: I3e80240311c76c05d4177a4958a660fba80d5d14
    Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
commit 218bf7f07f8c43cde535abfac5e0ba911cb87306
Author: Raj Kushwaha <rajk@codeaurora.org>
Date:   Mon Aug 8 10:38:31 2011 -0700

    radio-tavarua: Changes for supporting the new FM Search Algorithm.

    Added host side changes for supporting the new Bahama FM Searcher
    Algorithm. This involves configuring the channel spacing as 100KHz
    and enabling the 200KHz enforcer for regions that are 200KHz spaced.

    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
    (cherry picked from commit 04e89de8b7687459788b37a45b77c2f13c6af3fb)

    Change-Id: I73df8688ec61a99dab0da1faee248c0a3e76c206
    Signed-off-by: Raj Kushwaha <rajk@codeaurora.org>

commit 76f3145f203b55ecd701cd7e8956f313129b7a29
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Mon Jun 20 20:27:05 2011 +0530

    radio-tavarua: Modified the processing of radio text(RT) header

    Saving the radio text payload in to the RT buffer after filling
    up the first 5 bytes with the contents of RT header.

    CRs-Fixed: 289884
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
    (cherry picked from commit 44de9e51c6ed4fea63618121be09f8725ebed000)

    Change-Id: I7abf3f13071a295afb75bfa59f56beb3c33ffc91
    Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>

commit f71154eab0921fe407f14e46898db3913d0450b6
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Apr 19 19:12:01 2011 +0530

    radio: tavarua: Handling BT-FM concurrency using a global mutex instance

    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
    (cherry picked from commit 86e15169938beb7deeb60589b62fc90ad90f0ce7)

    Change-Id: I403bb53d3735b5cf516cd4527b064f2bcbcb075f
    Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>

commit 057eeff9dd5de6be15500e9884515f92d8b84881
Author: Anantha Krishnan <ananthk@codeaurora.org>
Date:   Tue Apr 5 14:06:57 2011 +0530

    radio: tavarua: Configuring FM SoC as I2S master/slave based on target

    Change-Id: I2b7b7895b9fc5e8ba3dd8d8b23ef5e596fc008a9
    Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>

commit 1d697cb2ec68bd5ba724b10ea3a229115cd584d9
Author: David Brown <davidb@codeaurora.org>
Date:   Mon Mar 14 10:45:03 2011 -0700

    radio: tavarua: Fix enum warnings

    The xfr_status variable is being read from an 8-bit unsigned register.
    Although the value definitions it is compared with are defined in an
    enum, these use bit arithmetic to define the cases (setting the high
    bit) which brings the constant values outside of the range of the
    enum.  This causes warnings on gcc 4.5.

    Fix this by keeping the value as an unsigned char.

    Change-Id: Iab1ebe7692f62ba5a1716aca9dcf9690c65dcc5f
    Signed-off-by: David Brown <davidb@codeaurora.org>

commit 48abd8198c1a848ed6dce104ac43fb5b7d3f28d4
Author: Srinivas Krovvidi <skrovvid@codeaurora.org>
Date:   Wed Mar 2 18:30:16 2011 +0530

    radio: tavarua: Changes for supporting FM Tx power level

    Added changes to support setting different power levels
    at which FM transmitter can radiate.

    Change-Id: I99358bf7fac48fcc4c5337bc2750e0da0f79ecbc
    Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>

commit c36319f2c0acea7a8628f22da4c3507267775a70
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Fri Feb 18 10:53:42 2011 +0530

    radio:tavarua: Adding new controls to get IOC and IntDet in FM Driver.

    Change-Id: I96f544bafc4a2ab6c8616644c989b24a92ad9fab
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit ad4f9f3d7f62eb71a6eec5ba187995ba8b8d4227
Author: Srinivas Krovvidi <skrovvid@codeaurora.org>
Date:   Thu Feb 3 18:38:48 2011 +0530

    FM: V4L2 driver changes for enabling FM Tx.

    Change-Id: Ife0209379bc697c89d43f89df2f715cb762b4046
    Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>

commit 62604db9c8b7476c2e6981d7c20f3b84a0d4283e
Author: Srinivas Krovvidi <skrovvid@codeaurora.org>
Date:   Wed Feb 9 15:21:31 2011 +0530

    FM: Stereo/mono blending and SoftMute features enabled by default

    Change-Id: Idedd7b3542cf61543b1392189f8cdec050c313a9
    CRs-Fixed: 273742
    Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>

commit e9ac973a0f575b17a8d495c9541dc94887e0d8a7
Author: Rakesh KrishnaMoorthy <rakeshk@codeaurora.org>
Date:   Wed Feb 9 20:26:38 2011 +0530

    radio/tavarua: Add implementation for returning the Mute mode status

    This change fixes the issue of not returning the correct status
    for get Mute mode request from user space

    CRs-Fixed: 261537
    Change-Id: I7c213388b0e8f4077e611a8c0d5a1202aa5030dc
    Signed-off-by: Rakesh KrishnaMoorthy <rakeshk@codeaurora.org>

commit b86d3dcc5704ac909a5db5d8b5dd782f67487ba7
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Thu Jan 6 15:44:38 2011 +0530

    radio: tavarua: Use internal vreg controllers based on bt status

    This change checks the bt status and enables the
    internal vreg controllers accordingly for the optimal
    power usage.

    Change-Id: I887a64039524bee04bc3b38a50e0cc8ee8fc161f
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit a19594bce16cce078c38f20af5d5334ed9152584
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Tue Dec 21 20:26:15 2010 +0530

    FM: Adding support to WCN2243 v2 FM

    Change-Id: I129f50a8076fd2a0100d866fa9e0b1cb33990882
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit c053f1ab26af965a28d3f68298a709dee478abb1
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Mon Dec 13 12:25:51 2010 +0530

    radio: Adding Fm shutdown down sequence for Marimba

    Change-Id: I8af146be2ef9fb724636ab12dc12437e34f9c718
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit df0fe1bb9141910151e27c0959de133fb094a8fc
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Thu Dec 9 14:46:51 2010 +0530

    radio: including slab.h for kfree and kzalloc declarations

    Fm driver uses kzalloc and kfree function, which is getting
    compiled in 7x30 case, as it is getting included from some
    other headers internally. But, It is giving compiler issues
    in 8x60. It is recomended to include the slab.h rather than
    depending on the other headers.

    Change-Id: Id111bd73ffb9346519847de9eff5576043576040
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit 1be9894ababe1d65da8a3a997a8f8f0a42921742
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Mon Dec 6 17:37:00 2010 +0530

    radio: Adding support for the nested interrupt request.

    Using the generic irq interface which support both
    nested and non-nested GPIO interrupts. In MSM8x60, FM
    ISR is connected to PMIC GPIO which is nested interrupt.

    Change-Id: I32326f9e23839960b2ae8433363e4e194d53e3fa
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit 31b2fd9ccd06f593ddd987dd13b29e42cebcf93a
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Fri Nov 19 11:06:32 2010 +0530

    radio: Adding changes FM driver to support WCN2243

    This change makes the v4l2 driver to work for both
    Marimba and WCN2243 chips, FM driver will get the
    current connectivity type and call the corresponding
    i2c slaves.

    Change-Id: Id8e76e629276c78814885945569cd1ee105c7e59
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit 16b18b63619a491413546f6d8910615fb3042828
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Mon Nov 22 11:56:15 2010 +0530

    radio: Initializing the work queue for raw rds read.

    This change initializes the work queue for raw rds read.

    Change-Id: I50fed2a1792e06ddc490c796351586a89c8ed8b5
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit 30beae9ef1644657be08fb94a9eb2068097e1f74
Author: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
Date:   Thu Nov 18 16:40:07 2010 +0530

    radio: Change to driver to set the chip-Id as the version

    This change sets the version of the v4l2 driver with the
    chip-Id of the FM SoC, so that the upper layers can get the
    chip-Id and perform the calibration and required firmware patch
    downloads.

    Change-Id: I0b5b84a8eb16c33ce4438def9dfe4cc135e8be03
    Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>

commit 9709e34cb615584e13739e42cccf40e01c752940
Author: Laura Abbott <lauraa@codeaurora.org>
Date:   Thu Oct 14 13:14:33 2010 -0700

    radio: Fix section mismatch

    The function tavarua_probe is reference outside of the __init section.
    This is fixed by calling platform_driver_probe instead of
    platform_driver_register since the device is not hotplugable.

    Change-Id: If4883d03c2e71a2f769401ef7fa1155b4a86187e
    Signed-off-by: Laura Abbott <lauraa@codeaurora.org>

commit 826d26c4992b04b3775852b49071b14dab4f17e5
Author: Rajiv Kumar <rkumar@codeaurora.org>
Date:   Fri Oct 8 12:48:32 2010 +0530

    radio: Fix for DP timeout and Tune response failure issue

    The suspend and resume routines in radio-tavarua modified to reduce the
    processing time to make sure that the DP timeout does not happen.
    This fixes the crash due to this timeout during the stability tests.

    Unwanted read of FM SoC Tune control registers on every Tune interrupt
    is removed to reduce the i2c bus transactions.
    This fixes the intermittent tune failures seen during FM tune stress
    tests.

    CRs-fixed: 256708, 252894
    Change-Id: Ifb060f95336529f3bdf8bfa2ddc2cc1cb0e4d56c
    Signed-off-by: Rajiv Kumar <rkumar@codeaurora.org>

commit 2712ccd9fb537934a2680fc57e363d3b46e59e68
Author: Vijayadurga Muthusamy <vmuthusa@codeaurora.org>
Date:   Tue Sep 21 15:38:51 2010 -0500

    radio:FM Changes to read the threshold value as a signed integer

    FM driver code modified in such a way that it reads
    and interprets the threshold value as a signed integer.
    This ensures that framework/app
    layer will get the proper signed values as expected.

    CRs Fixed:  243833
    Change-Id: I236d7a1fe20869043d3b59b09f070ba061453332
    Signed-off-by: Vijayadurga Muthusamy <vmuthusa@codeaurora.org>

commit 44e8afe41625f2a781192bcf15871e6e58dc402c
Author: Vijayadurga Muthusamy <vmuthusa@codeaurora.org>
Date:   Wed Sep 22 11:30:58 2010 -0500

    radio: FM fix for headset plug/unplug issue

    Waiting on a completion variable, which has timeout
    in its earlier wait was causing kernel crash at some
    occasions. Initialization of completion (struct completion)
    variable before waiting on it ensures the proper working of FM driver.

    CRs-Fixed: 256443
    Change-Id: I03245254050d905bf0bdc7c483757942ca786481
    Signed-off-by: Vijayadurga Muthusamy <vmuthusa@codeaurora.org>

commit b53acb30b28eff7cbd18c1c16264544631ec3f34
Author: Vijayadurga Muthusamy <vmuthusa@codeaurora.org>
Date:   Thu Sep 16 10:07:17 2010 -0500

    radio: FM Disable operation is made synchronous

    FM Disable operation is made synchronous to the
    top layers by waiting till the READY interrupt
    at the driver layers. This ensures that the Disable() will
    disable the FM in one go, so that the further
    cleanup of FM driver resources can be done by closing the
    device descriptors.

    Change-Id: Ic71379c2996ca8aa974c3020465e2fd83a39a492
    CRs-Fixed: 250289, 251760
    Signed-off-by: Vijayadurga Muthusamy <vmuthusa@codeaurora.org>

commit 160d42d529f7a5563bbd7cd117c83b7f434f0c22
Author: Bryan Huntsman <bryanh@codeaurora.org>
Date:   Wed Sep 8 18:01:18 2010 -0700

    Initial contribution.

    This commit takes the MSM and driver changes from
    git://codeaurora.org/quic/la/kernel/msm.git:android-msm-2.6.32 and
    applies them on top of
    git://android.git.kernel.org/kernel/common.git:android-2.6.35.

    Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
commit 1919f250807e0c6eddd8fef847e664bfbe532496
Author: Simon Venshtain <simionv@codeaurora.org>
Date:   Mon Aug 16 11:19:20 2010 -0500

    radio: tavarua: fixed low power support

    removed unnecessary i2c transaction to move between
    power modes when the requested power mode is already
    enabled. Changed the way the driver does user refernce
    count from atomic operations to semaphore synchronization.
    Also, disabled debugs.

    Change-Id: Iadc507984bf3a7c7e6e87b77224e58dcef19a6aa
    Signed-off-by: Simon Venshtain <simionv@codeaurora.org>

commit e922b1be98b585e82ce4dcca5dba5e470475fe1c
Author: Stephen Boyd <sboyd@codeaurora.org>
Date:   Wed Aug 4 14:18:08 2010 -0700

    radio: tavura: Fix copy_from_user() warning

    The compiler is having a hard time determining that bytes_to_copy
    cannot be larger than XFR_REG_NUM. This causes a warning when
    strict user copy checks are enabled. Silence the warning by
    making bytes_to_copy unsigned, and use a more appropriate min
    function (min_t) on the bytes_left variable to help the compiler
    understand that the buffer will never overflow.

    In file included from include/linux/uaccess.h:5,
    from drivers/media/radio/radio-tavarua.c:32:
    In function 'copy_from_user', inlined from 'tavarua_fops_write' at
    drivers/media/radio/radio-tavarua.c:1408:
    arch/arm/include/asm/uaccess.h:417:
    warning: call to 'copy_from_user_overflow' declared with attribute warning:
    copy_from_user() buffer size is not provably correct

    Change-Id: I8294ecb31be2aa2cbd13a270b437a45e5cf51a36
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 637046dc2b30da935013272656b3681e2d7187b0
Author: Simon Venshtain simionv@codeaurora.org <simionv@codeaurora.org>
Date:   Mon Jun 21 10:42:58 2010 -0500

    radio: tavarua: added comments and macros

    Added more detailed comments, function headers and
    macros for constants for better code maintainability.

    Change-Id: Ia18c4bbc38dcb5aca91360e3cdf5589f3d2b6817
    Signed-off-by: Simon Venshtain <simionv@codeaurora.org>

commit d9397555f617b2eb8afa748a8a35b7097098a360
Author: David Scherba <dscherba@codeaurora.org>
Date:   Tue Jun 1 18:13:27 2010 -0400

    radio: tavarua: Setup FM Rx audio path when FM receiver is enabled

    Default FM Rx audio output path is set to analog.  This is changed to
    digital I2S when the FM receiver is successfully enabled.

    Change-Id: I519c67dc3262bf7258a87d86b5ede05c0dc4d544
    Signed-off-by: David Scherba <dscherba@codeaurora.org>

Signed-off-by: David Brown <davidb@codeaurora.org>
2013-02-25 11:30:55 -08:00
Mauro Carvalho Chehab
f074ff92b5 [media] radio-sf16fmr2: fix session mismatches
WARNING: drivers/media/radio/built-in.o(.data+0x284): Section mismatch in reference from the variable fmr2_driver to the function .init.text:fmr2_probe()
The variable fmr2_driver references
the function __init fmr2_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/media/built-in.o(.data+0x48200): Section mismatch in reference from the variable fmr2_driver to the function .init.text:fmr2_probe()
The variable fmr2_driver references
the function __init fmr2_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-19 13:32:37 -03:00
Hans Verkuil
cfb19b0ab1 [media] radio-maxiradio: use the tea575x framework
This card is based on the tea575x receiver. Use the tea575x-tuner framework
instead of reinventing the wheel.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-19 11:29:09 -03:00
Hans Verkuil
d4ecc83b79 [media] tea575x-tuner: update to latest V4L2 framework requirements
The tea575x-tuner module has been updated to use the latest V4L2 framework
functionality. This also required changes in the drivers that rely on it.

The tea575x changes are:

- The drivers must provide a v4l2_device struct to the tea module.
- The radio_nr module parameter must be part of the actual radio driver,
  and not of the tea module.
- Changed the frequency range to the normal 76-108 MHz range instead of
  50-150.
- Add hardware frequency seek support.
- Fix broken rxsubchans/audmode handling.
- The application can now select between stereo and mono.
- Support polling for control events.
- Add V4L2 priority handling.

And radio-sf16fmr2.c now uses the isa bus kernel framework.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Thanks-to: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-19 11:27:21 -03:00
Hans Verkuil
9f1dfccf66 [media] Add missing slab.h to fix linux-next compile errors
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-19 11:25:12 -03:00
Masanari Iida
bdb2c41fc1 [media] [trivial]: Fix typo in radio-sf16fmr2.c
Correct spelling "contrls" to "controls" in
drivers/media/radio/radio-sf16fmr2.c

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-08 09:00:30 -03:00
Axel Lin
c6e8d86fff [media] convert drivers/media/* to use module_i2c_driver()
This patch converts the drivers in drivers/media/* to use the
module_i2_driver() macro which makes the code smaller and a bit simpler.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Heungjun Kim <riverful.kim@samsung.com>
Cc: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: Andrew Chew <achew@nvidia.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: Johannes Obermaier <johannes.obermaier@gmail.com>
Cc: Steven Toth <stoth@kernellabs.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-08 08:48:01 -03:00
Randy Dunlap
2e2ba5d1e2 [media] wl128x: fix build errors when GPIOLIB is not enabled
From: Randy Dunlap <rdunlap@xenotime.net>

Fix wl128x Kconfig to depend on GPIOLIB since TI_ST also
depends on GPIOLIB.

(.text+0xe6d60): undefined reference to `st_register'
(.text+0xe7016): undefined reference to `st_unregister'
(.text+0xe70ce): undefined reference to `st_unregister'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Manjunatha Halli <manjunatha_halli@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-15 12:04:45 -02:00
Hans Verkuil
f51f86fd5d [media] radio/Kconfig: cleanup
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:12:02 -02:00
Hans Verkuil
6b39246cf9 [media] radio-zoltrix: Convert to radio-isa
Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:11:47 -02:00
Hans Verkuil
da1ff35132 [media] radio-typhoon: Convert to radio-isa
Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:11:35 -02:00
Hans Verkuil
1d211f26b5 [media] radio-trust: Convert to radio-isa
Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:11:23 -02:00
Hans Verkuil
32c518364a [media] radio-terratec: Convert to radio-isa
Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:11:11 -02:00
Hans Verkuil
8bd7ef5ae6 [media] radio-rtrack2: Convert to radio-isa
Tested with v4l2-compliance, but not with actual hardware. Contact the
linux-media mailinglist if you have this card!

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:10:41 -02:00
Hans Verkuil
f8c085244e [media] radio-gemtek: Convert to radio-isa
Tested with actual hardware (up to two cards) and the Keene USB FM Transmitter.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:09:39 -02:00
Hans Verkuil
3088fba877 [media] radio-aztech: Convert to radio-isa
Tested with actual hardware and the Keene USB FM Transmitter.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:09:27 -02:00
Hans Verkuil
cc3c6df16b [media] radio-aimslab: Convert to radio-isa
Tested with actual hardware and the Keene USB FM Transmitter.

Improved the volume handling delays through trial and error.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:08:52 -02:00
Hans Verkuil
137c579c12 [media] radio-isa: add framework for ISA radio drivers
We have quite a few ISA radio drivers, which are all very similar.

This framework makes it possible to reduce the code size of those drivers
and makes it much easier to keep them up to date with the latest V4L2 API
developments.

Drivers rewritten to use this framework fully pass the v4l2-compliance tests
and are properly using the ISA bus (so they can be found under /sys/bus/isa).

It is now also possible to support multiple cards using the same driver
(tested with two radio-gemtek cards).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 17:01:13 -02:00
Hans Verkuil
1bf20c3a0c [media] radio-keene: add a driver for the Keene FM Transmitter
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-02-14 16:39:47 -02:00
Linus Torvalds
122804ecb5 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (655 commits)
  [media] revert patch: HDIC HD29L2 DMB-TH USB2.0 reference design driver
  mb86a20s: Add a few more register settings at the init seq
  mb86a20s: Group registers into the same line
  [media] [PATCH] don't reset the delivery system on DTV_CLEAR
  [media] [BUG] it913x-fe fix typo error making SNR levels unstable
  [media] cx23885: Query the CX25840 during enum_input for status
  [media] cx25840: Add support for g_input_status
  [media] rc-videomate-m1f.c Rename to match remote controler name
  [media] drivers: media: au0828: Fix dependency for VIDEO_AU0828
  [media] convert drivers/media/* to use module_platform_driver()
  [media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVB
  [media] Exynos4 JPEG codec v4l2 driver
  [media] doc: v4l: selection: choose pixels as units for selection rectangles
  [media] v4l: s5p-tv: mixer: fix setup of VP scaling
  [media] v4l: s5p-tv: mixer: add support for selection API
  [media] v4l: emulate old crop API using extended crop/compose API
  [media] doc: v4l: add documentation for selection API
  [media] doc: v4l: add binary images for selection API
  [media] v4l: add support for selection api
  [media] hd29l2: fix review findings
  ...
2012-01-15 12:49:56 -08:00
Rusty Russell
90ab5ee941 module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int.  In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.

It's time to remove the int/unsigned int option.  For this version
it'll simply give a warning, but it'll break next kernel version.

Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-01-13 09:32:20 +10:30
Axel Lin
1d6629b156 [media] convert drivers/media/* to use module_platform_driver()
This patch converts the drivers in drivers/media/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.

Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: "Richard Röjfors" <richard.rojfors@pelagicore.com>
Cc: "Matti J. Aaltonen" <matti.j.aaltonen@nokia.com>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Manjunath Hadli <manjunath.hadli@ti.com>
Cc: Muralidharan Karicheri <m-karicheri2@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Daniel Drake <dsd@laptop.org>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Matti J. Aaltonen <matti.j.aaltonen@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-01-10 23:27:13 -02:00
Fabio Estevam
0abffb9442 [media] drivers: media: radio: Fix dependencies for RADIO_WL128X
Fix the following build warning:

warning: (RADIO_WL128X) selects TI_ST which has unmet direct dependencies (MISC_DEVICES && NET && GPIOLIB)

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-01-06 13:17:50 -02:00
Xi Wang
8cc20dd89c [media] wl128x: fmdrv_tx: fix signedness bugs
Message-Id: <1322820073-19347-4-git-send-email-xi.wang@gmail.com>

The error handling with (ret < 0) didn't work where ret is a u32.
Use int instead.  To be consistent we also change the functions to
return an int.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-12-30 17:01:52 -02:00
Xi Wang
d24674c60b [media] wl128x: fmdrv_rx: fix signedness bugs
Message-Id: <1322820073-19347-3-git-send-email-xi.wang@gmail.com>

The error handling with (ret < 0) didn't work where ret is a u32.
Use int instead.  To be consistent we also change the functions to
return an int.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-12-30 17:01:38 -02:00
Xi Wang
a61278037b [media] wl128x: fmdrv_common: fix signedness bugs
Message-Id: <1322820073-19347-2-git-send-email-xi.wang@gmail.com>

The error handling with (ret < 0) didn't work where ret is a u32.
Use int instead.  To be consistent we also change the functions to
return an int.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-12-30 17:00:56 -02:00
Dan Carpenter
75c1ca364d [media] radio: NUL terminate a user string
We pass this to fm_tx_set_radio_text() which expects a NUL terminated
string.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-11-25 15:46:59 -02:00
Axel Lin
bd93b3ad27 [media] media/radio/tef6862: fix checking return value of i2c_master_send
i2c_master_send returns negative errno, or else the number of bytes written.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-11-24 18:22:22 -02:00
Mauro Carvalho Chehab
12cbfd0a3c Merge tag 'v3.2-rc2' into staging/for_v3.3
* tag 'v3.2-rc2': (3068 commits)
  Linux 3.2-rc2
  hfs: add sanity check for file name length
  fsl-rio: fix compile error
  blackfin: Fixup export.h includes
  Blackfin: add serial TX IRQ in individual platform resource
  virtio-pci: fix use after free
  ACPI / cpuidle: Remove acpi_idle_suspend (to fix suspend regression)
  drm/radeon/kms/combios: fix dynamic allocation of PM clock modes
  [CPUFREQ] db8500: fix build error due to undeclared i variable
  bma023: Add SFI translation for this device
  vrtc: change its year offset from 1960 to 1972
  ce4100: fix a build error
  arm/imx: fix imx6q mmc error when mounting rootfs
  arm/imx: fix AUTO_ZRELADDR selection
  arm/imx: fix the references to ARCH_MX3
  ARM: mx51/53: set pwm clock parent to ipg_perclk
  btrfs: rename the option to nospace_cache
  drm/radeon/kms/pm: switch to dynamically allocating clock mode array
  drm/radeon/kms: optimize r600_pm_profile_init
  drm/radeon/kms/pm: add a proper pm profile init function for fusion
  ...

Conflicts:
	drivers/media/radio/Kconfig
2011-11-23 19:42:09 -02:00
Greg Kroah-Hartman
ecb3b2b35d USB: convert drivers/media/* to use module_usb_driver()
This converts the drivers in drivers/media/* to use the
module_usb_driver() macro which makes the code smaller and a bit
simpler.

Added bonus is that it removes some unneeded kernel log messages about
drivers loading and/or unloading.

Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Luca Risolia <luca.risolia@studio.unibo.it>
Cc: Jean-Francois Moine <moinejf@free.fr>
Cc: Frank Zago <frank@zago.net>
Cc: Olivier Lorin <o.lorin@laposte.net>
Cc: Erik Andren <erik.andren@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Brian Johnson <brijohn@gmail.com>
Cc: Leandro Costantino <lcostantino@gmail.com>
Cc: Antoine Jacquet <royale@zerezo.com>
Cc: Jarod Wilson <jarod@redhat.com>
Cc: Florian Mickler <florian@mickler.org>
Cc: Antti Palosaari <crope@iki.fi>
Cc: Michael Krufky <mkrufky@kernellabs.com>
Cc: "David Härdeman" <david@hardeman.nu>
Cc: Florent Audebert <florent.audebert@anevia.com>
Cc: Sam Doshi <sam@metal-fish.co.uk>
Cc: Manu Abraham <manu@linuxtv.org>
Cc: Olivier Grenie <olivier.grenie@dibcom.fr>
Cc: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Cc: "Igor M. Liplianin" <liplianin@me.by>
Cc: Derek Kelly <user.vdr@gmail.com>
Cc: Malcolm Priestley <tvboxspy@gmail.com>
Cc: Steven Toth <stoth@kernellabs.com>
Cc: "André Weidemann" <Andre.Weidemann@web.de>
Cc: Martin Wilks <m.wilks@technisat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Jose Alberto Reguero <jareguero@telefonica.net>
Cc: David Henningsson <david.henningsson@canonical.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Joe Perches <joe@perches.com>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Anssi Hannula <anssi.hannula@iki.fi>
Cc: Rafi Rubin <rafi@seas.upenn.edu>
Cc: Dan Carpenter <error27@gmail.com>
Cc: Paul Bender <pebender@gmail.com>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: "Márcio A Alves" <froooozen@gmail.com>
Cc: Julia Lawall <julia@diku.dk>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Chris Rankin <rankincj@yahoo.com>
Cc: Lee Jones <lee.jones@canonical.com>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Dean Anderson <linux-dev@sensoray.com>
Cc: Pete Eberlein <pete@sensoray.com>
Cc: Arvydas Sidorenko <asido4@gmail.com>
Cc: Andrea Anacleto <andreaanacleto@libero.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-18 09:46:12 -08:00
Hans Verkuil
e21d98651a [media] V4L menu: reorganize the radio menu
Move all USB radio devices to the top of the list and move all ISA
devices to a separate menu.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-11-08 11:49:02 -02:00
Linus Torvalds
32aaeffbd4 Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
* 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
  Revert "tracing: Include module.h in define_trace.h"
  irq: don't put module.h into irq.h for tracking irqgen modules.
  bluetooth: macroize two small inlines to avoid module.h
  ip_vs.h: fix implicit use of module_get/module_put from module.h
  nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
  include: replace linux/module.h with "struct module" wherever possible
  include: convert various register fcns to macros to avoid include chaining
  crypto.h: remove unused crypto_tfm_alg_modname() inline
  uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
  pm_runtime.h: explicitly requires notifier.h
  linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
  miscdevice.h: fix up implicit use of lists and types
  stop_machine.h: fix implicit use of smp.h for smp_processor_id
  of: fix implicit use of errno.h in include/linux/of.h
  of_platform.h: delete needless include <linux/module.h>
  acpi: remove module.h include from platform/aclinux.h
  miscdevice.h: delete unnecessary inclusion of module.h
  device_cgroup.h: delete needless include <linux/module.h>
  net: sch_generic remove redundant use of <linux/module.h>
  net: inet_timewait_sock doesnt need <linux/module.h>
  ...

Fix up trivial conflicts (other header files, and  removal of the ab3550 mfd driver) in
 - drivers/media/dvb/frontends/dibx000_common.c
 - drivers/media/video/{mt9m111.c,ov6650.c}
 - drivers/mfd/ab3550-core.c
 - include/linux/dmaengine.h
2011-11-06 19:44:47 -08:00
Linus Torvalds
1046a2c428 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (144 commits)
  [media] saa7134.h: Suppress compiler warnings when CONFIG_VIDEO_SAA7134_RC is not set
  [media] it913x [VER 1.07] Support for single ITE 9135 devices
  [media] Support for Terratec G1
  [media] cx25821: off by one in cx25821_vidioc_s_input()
  [media] media: tea5764: reconcile Kconfig symbol and macro
  [media] omap_vout: Add poll() support
  [media] omap3isp: preview: Add crop support on the sink pad
  [media] omap3isp: preview: Rename min/max input/output sizes defines
  [media] omap3isp: preview: Remove horizontal averager support
  [media] omap3isp: Report the ISP revision through the media controller API
  [media] omap3isp: ccdc: remove redundant operation
  [media] omap3isp: Fix memory leaks in initialization error paths
  [media] omap3isp: Add missing mutex_destroy() calls
  [media] omap3isp: Move *_init_entities() functions to the init/cleanup section
  [media] omap3isp: Move media_entity_cleanup() from unregister() to cleanup()
  [media] MFC: Change MFC firmware binary name
  [media] vb2: add vb2_get_unmapped_area in vb2 core
  [media] v4l: Add v4l2 subdev driver for S5K6AAFX sensor
  [media] v4l: Add AUTO option for the V4L2_CID_POWER_LINE_FREQUENCY control
  [media] media: ov6650: stylistic improvements
  ...
2011-11-04 07:58:25 -07:00
Paul Bolle
8c4343e590 [media] media: tea5764: reconcile Kconfig symbol and macro
The Kconfig symbol RADIO_TEA5764_XTAL is unused. The code does use a
RADIO_TEA5764_XTAL macro, but does that rather peculiar. But there seems
to be a way to keep both. (The easiest way out would be to rip out both
the Kconfig symbol and the macro.)

Note there's also a module parameter 'use_xtal' to influence all this.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-11-03 18:33:54 -02:00